configure revision f9c28e31
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xprop 1.2.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/app/xprop/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 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='xprop' 583PACKAGE_TARNAME='xprop' 584PACKAGE_VERSION='1.2.5' 585PACKAGE_STRING='xprop 1.2.5' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/issues' 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 630LINT_FALSE 631LINT_TRUE 632LINT_FLAGS 633LINT 634XPROP_LIBS 635XPROP_CFLAGS 636MAN_SUBSTS 637XORG_MAN_PAGE 638ADMIN_MAN_DIR 639DRIVER_MAN_DIR 640MISC_MAN_DIR 641FILE_MAN_DIR 642LIB_MAN_DIR 643APP_MAN_DIR 644ADMIN_MAN_SUFFIX 645DRIVER_MAN_SUFFIX 646MISC_MAN_SUFFIX 647FILE_MAN_SUFFIX 648LIB_MAN_SUFFIX 649APP_MAN_SUFFIX 650SED 651host_os 652host_vendor 653host_cpu 654host 655build_os 656build_vendor 657build_cpu 658build 659INSTALL_CMD 660PKG_CONFIG_LIBDIR 661PKG_CONFIG_PATH 662PKG_CONFIG 663CHANGELOG_CMD 664STRICT_CFLAGS 665CWARNFLAGS 666BASE_CFLAGS 667EGREP 668GREP 669CPP 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__include 678DEPDIR 679OBJEXT 680EXEEXT 681ac_ct_CC 682CPPFLAGS 683LDFLAGS 684CFLAGS 685CC 686AM_BACKSLASH 687AM_DEFAULT_VERBOSITY 688AM_DEFAULT_V 689AM_V 690am__untar 691am__tar 692AMTAR 693am__leading_dot 694SET_MAKE 695AWK 696mkdir_p 697MKDIR_P 698INSTALL_STRIP_PROGRAM 699STRIP 700install_sh 701MAKEINFO 702AUTOHEADER 703AUTOMAKE 704AUTOCONF 705ACLOCAL 706VERSION 707PACKAGE 708CYGPATH_W 709am__isrc 710INSTALL_DATA 711INSTALL_SCRIPT 712INSTALL_PROGRAM 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732runstatedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL 752am__quote' 753ac_subst_files='' 754ac_user_opts=' 755enable_option_checking 756enable_silent_rules 757enable_dependency_tracking 758enable_selective_werror 759enable_strict_compilation 760with_lint 761' 762 ac_precious_vars='build_alias 763host_alias 764target_alias 765CC 766CFLAGS 767LDFLAGS 768LIBS 769CPPFLAGS 770CPP 771PKG_CONFIG 772PKG_CONFIG_PATH 773PKG_CONFIG_LIBDIR 774XPROP_CFLAGS 775XPROP_LIBS 776LINT 777LINT_FLAGS' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816runstatedir='${localstatedir}/run' 817includedir='${prefix}/include' 818oldincludedir='/usr/include' 819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 820infodir='${datarootdir}/info' 821htmldir='${docdir}' 822dvidir='${docdir}' 823pdfdir='${docdir}' 824psdir='${docdir}' 825libdir='${exec_prefix}/lib' 826localedir='${datarootdir}/locale' 827mandir='${datarootdir}/man' 828 829ac_prev= 830ac_dashdash= 831for ac_option 832do 833 # If the previous option needs an argument, assign it. 834 if test -n "$ac_prev"; then 835 eval $ac_prev=\$ac_option 836 ac_prev= 837 continue 838 fi 839 840 case $ac_option in 841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 842 *=) ac_optarg= ;; 843 *) ac_optarg=yes ;; 844 esac 845 846 # Accept the important Cygnus configure options, so we can diagnose typos. 847 848 case $ac_dashdash$ac_option in 849 --) 850 ac_dashdash=yes ;; 851 852 -bindir | --bindir | --bindi | --bind | --bin | --bi) 853 ac_prev=bindir ;; 854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 855 bindir=$ac_optarg ;; 856 857 -build | --build | --buil | --bui | --bu) 858 ac_prev=build_alias ;; 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 860 build_alias=$ac_optarg ;; 861 862 -cache-file | --cache-file | --cache-fil | --cache-fi \ 863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 864 ac_prev=cache_file ;; 865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 867 cache_file=$ac_optarg ;; 868 869 --config-cache | -C) 870 cache_file=config.cache ;; 871 872 -datadir | --datadir | --datadi | --datad) 873 ac_prev=datadir ;; 874 -datadir=* | --datadir=* | --datadi=* | --datad=*) 875 datadir=$ac_optarg ;; 876 877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 878 | --dataroo | --dataro | --datar) 879 ac_prev=datarootdir ;; 880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 882 datarootdir=$ac_optarg ;; 883 884 -disable-* | --disable-*) 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 886 # Reject names that are not valid shell variable names. 887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 888 as_fn_error $? "invalid feature name: $ac_useropt" 889 ac_useropt_orig=$ac_useropt 890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891 case $ac_user_opts in 892 *" 893"enable_$ac_useropt" 894"*) ;; 895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 896 ac_unrecognized_sep=', ';; 897 esac 898 eval enable_$ac_useropt=no ;; 899 900 -docdir | --docdir | --docdi | --doc | --do) 901 ac_prev=docdir ;; 902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 903 docdir=$ac_optarg ;; 904 905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 906 ac_prev=dvidir ;; 907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 908 dvidir=$ac_optarg ;; 909 910 -enable-* | --enable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: $ac_useropt" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919"enable_$ac_useropt" 920"*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=\$ac_optarg ;; 925 926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 928 | --exec | --exe | --ex) 929 ac_prev=exec_prefix ;; 930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 932 | --exec=* | --exe=* | --ex=*) 933 exec_prefix=$ac_optarg ;; 934 935 -gas | --gas | --ga | --g) 936 # Obsolete; use --with-gas. 937 with_gas=yes ;; 938 939 -help | --help | --hel | --he | -h) 940 ac_init_help=long ;; 941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 942 ac_init_help=recursive ;; 943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 944 ac_init_help=short ;; 945 946 -host | --host | --hos | --ho) 947 ac_prev=host_alias ;; 948 -host=* | --host=* | --hos=* | --ho=*) 949 host_alias=$ac_optarg ;; 950 951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 952 ac_prev=htmldir ;; 953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 954 | --ht=*) 955 htmldir=$ac_optarg ;; 956 957 -includedir | --includedir | --includedi | --included | --include \ 958 | --includ | --inclu | --incl | --inc) 959 ac_prev=includedir ;; 960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 961 | --includ=* | --inclu=* | --incl=* | --inc=*) 962 includedir=$ac_optarg ;; 963 964 -infodir | --infodir | --infodi | --infod | --info | --inf) 965 ac_prev=infodir ;; 966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 967 infodir=$ac_optarg ;; 968 969 -libdir | --libdir | --libdi | --libd) 970 ac_prev=libdir ;; 971 -libdir=* | --libdir=* | --libdi=* | --libd=*) 972 libdir=$ac_optarg ;; 973 974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 975 | --libexe | --libex | --libe) 976 ac_prev=libexecdir ;; 977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 978 | --libexe=* | --libex=* | --libe=*) 979 libexecdir=$ac_optarg ;; 980 981 -localedir | --localedir | --localedi | --localed | --locale) 982 ac_prev=localedir ;; 983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 984 localedir=$ac_optarg ;; 985 986 -localstatedir | --localstatedir | --localstatedi | --localstated \ 987 | --localstate | --localstat | --localsta | --localst | --locals) 988 ac_prev=localstatedir ;; 989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 991 localstatedir=$ac_optarg ;; 992 993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 994 ac_prev=mandir ;; 995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 996 mandir=$ac_optarg ;; 997 998 -nfp | --nfp | --nf) 999 # Obsolete; use --without-fp. 1000 with_fp=no ;; 1001 1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1003 | --no-cr | --no-c | -n) 1004 no_create=yes ;; 1005 1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1008 no_recursion=yes ;; 1009 1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1012 | --oldin | --oldi | --old | --ol | --o) 1013 ac_prev=oldincludedir ;; 1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1017 oldincludedir=$ac_optarg ;; 1018 1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1020 ac_prev=prefix ;; 1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1022 prefix=$ac_optarg ;; 1023 1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1025 | --program-pre | --program-pr | --program-p) 1026 ac_prev=program_prefix ;; 1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1029 program_prefix=$ac_optarg ;; 1030 1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1032 | --program-suf | --program-su | --program-s) 1033 ac_prev=program_suffix ;; 1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1036 program_suffix=$ac_optarg ;; 1037 1038 -program-transform-name | --program-transform-name \ 1039 | --program-transform-nam | --program-transform-na \ 1040 | --program-transform-n | --program-transform- \ 1041 | --program-transform | --program-transfor \ 1042 | --program-transfo | --program-transf \ 1043 | --program-trans | --program-tran \ 1044 | --progr-tra | --program-tr | --program-t) 1045 ac_prev=program_transform_name ;; 1046 -program-transform-name=* | --program-transform-name=* \ 1047 | --program-transform-nam=* | --program-transform-na=* \ 1048 | --program-transform-n=* | --program-transform-=* \ 1049 | --program-transform=* | --program-transfor=* \ 1050 | --program-transfo=* | --program-transf=* \ 1051 | --program-trans=* | --program-tran=* \ 1052 | --progr-tra=* | --program-tr=* | --program-t=*) 1053 program_transform_name=$ac_optarg ;; 1054 1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1056 ac_prev=pdfdir ;; 1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1058 pdfdir=$ac_optarg ;; 1059 1060 -psdir | --psdir | --psdi | --psd | --ps) 1061 ac_prev=psdir ;; 1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1063 psdir=$ac_optarg ;; 1064 1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1066 | -silent | --silent | --silen | --sile | --sil) 1067 silent=yes ;; 1068 1069 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1070 | --runstate | --runstat | --runsta | --runst | --runs \ 1071 | --run | --ru | --r) 1072 ac_prev=runstatedir ;; 1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1075 | --run=* | --ru=* | --r=*) 1076 runstatedir=$ac_optarg ;; 1077 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1079 ac_prev=sbindir ;; 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1081 | --sbi=* | --sb=*) 1082 sbindir=$ac_optarg ;; 1083 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1086 | --sharedst | --shareds | --shared | --share | --shar \ 1087 | --sha | --sh) 1088 ac_prev=sharedstatedir ;; 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1092 | --sha=* | --sh=*) 1093 sharedstatedir=$ac_optarg ;; 1094 1095 -site | --site | --sit) 1096 ac_prev=site ;; 1097 -site=* | --site=* | --sit=*) 1098 site=$ac_optarg ;; 1099 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1101 ac_prev=srcdir ;; 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1103 srcdir=$ac_optarg ;; 1104 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1106 | --syscon | --sysco | --sysc | --sys | --sy) 1107 ac_prev=sysconfdir ;; 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1110 sysconfdir=$ac_optarg ;; 1111 1112 -target | --target | --targe | --targ | --tar | --ta | --t) 1113 ac_prev=target_alias ;; 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1115 target_alias=$ac_optarg ;; 1116 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1118 verbose=yes ;; 1119 1120 -version | --version | --versio | --versi | --vers | -V) 1121 ac_init_version=: ;; 1122 1123 -with-* | --with-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1174Try \`$0 --help' for more information" 1175 ;; 1176 1177 *=*) 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1179 # Reject names that are not valid shell variable names. 1180 case $ac_envvar in #( 1181 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1183 esac 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1193 ;; 1194 1195 esac 1196done 1197 1198if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 as_fn_error $? "missing argument to $ac_option" 1201fi 1202 1203if test -n "$ac_unrecognized_opts"; then 1204 case $enable_option_checking in 1205 no) ;; 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209fi 1210 1211# Check all directory arguments for consistency. 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir runstatedir 1216do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1230done 1231 1232# There might be people who depend on the old broken behavior: `$host' 1233# used to hold the argument of --host etc. 1234# FIXME: To remove some day. 1235build=$build_alias 1236host=$host_alias 1237target=$target_alias 1238 1239# FIXME: To remove some day. 1240if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246fi 1247 1248ac_tool_prefix= 1249test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251test "$silent" = yes && exec 6>/dev/null 1252 1253 1254ac_pwd=`pwd` && test -n "$ac_pwd" && 1255ac_ls_di=`ls -di .` && 1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 as_fn_error $? "working directory cannot be determined" 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 as_fn_error $? "pwd does not report name of working directory" 1260 1261 1262# Find the source files, if location was not specified. 1263if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$as_myself" || 1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$as_myself" : 'X\(//\)[^/]' \| \ 1269 X"$as_myself" : 'X\(//\)$' \| \ 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1271$as_echo X"$as_myself" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293else 1294 ac_srcdir_defaulted=no 1295fi 1296if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1299fi 1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1303 pwd)` 1304# When building in place, set srcdir=. 1305if test "$ac_abs_confdir" = "$ac_pwd"; then 1306 srcdir=. 1307fi 1308# Remove unnecessary trailing slashes from srcdir. 1309# Double slashes in file names in object file debugging info 1310# mess up M-x gdb in Emacs. 1311case $srcdir in 1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313esac 1314for ac_var in $ac_precious_vars; do 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_env_${ac_var}_value=\$${ac_var} 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319done 1320 1321# 1322# Report the --help message. 1323# 1324if test "$ac_init_help" = "long"; then 1325 # Omit some internal or obsolete options to make the list less imposing. 1326 # This message is too long to be a string in the A/UX 3.1 sh. 1327 cat <<_ACEOF 1328\`configure' configures xprop 1.2.5 to adapt to many kinds of systems. 1329 1330Usage: $0 [OPTION]... [VAR=VALUE]... 1331 1332To assign environment variables (e.g., CC, CFLAGS...), specify them as 1333VAR=VALUE. See below for descriptions of some of the useful variables. 1334 1335Defaults for the options are specified in brackets. 1336 1337Configuration: 1338 -h, --help display this help and exit 1339 --help=short display options specific to this package 1340 --help=recursive display the short help of all the included packages 1341 -V, --version display version information and exit 1342 -q, --quiet, --silent do not print \`checking ...' messages 1343 --cache-file=FILE cache test results in FILE [disabled] 1344 -C, --config-cache alias for \`--cache-file=config.cache' 1345 -n, --no-create do not create output files 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347 1348Installation directories: 1349 --prefix=PREFIX install architecture-independent files in PREFIX 1350 [$ac_default_prefix] 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1352 [PREFIX] 1353 1354By default, \`make install' will install all the files in 1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357for instance \`--prefix=\$HOME'. 1358 1359For better control, use the options below. 1360 1361Fine tuning of the installation directories: 1362 --bindir=DIR user executables [EPREFIX/bin] 1363 --sbindir=DIR system admin executables [EPREFIX/sbin] 1364 --libexecdir=DIR program executables [EPREFIX/libexec] 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/xprop] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382_ACEOF 1383 1384 cat <<\_ACEOF 1385 1386Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394_ACEOF 1395fi 1396 1397if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of xprop 1.2.5:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-silent-rules less verbose build output (undo: "make V=1") 1408 --disable-silent-rules verbose build output (undo: "make V=0") 1409 --enable-dependency-tracking 1410 do not reject slow dependency extractors 1411 --disable-dependency-tracking 1412 speeds up one-time build 1413 --disable-selective-werror 1414 Turn off selective compiler errors. (default: 1415 enabled) 1416 --enable-strict-compilation 1417 Enable all warnings from compiler and make them 1418 errors (default: disabled) 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-lint Use a lint-style source code checker (default: 1424 disabled) 1425 1426Some influential environment variables: 1427 CC C compiler command 1428 CFLAGS C compiler flags 1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1430 nonstandard directory <lib dir> 1431 LIBS libraries to pass to the linker, e.g. -l<library> 1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1433 you have headers in a nonstandard directory <include dir> 1434 CPP C preprocessor 1435 PKG_CONFIG path to pkg-config utility 1436 PKG_CONFIG_PATH 1437 directories to add to pkg-config's search path 1438 PKG_CONFIG_LIBDIR 1439 path overriding pkg-config's built-in search path 1440 XPROP_CFLAGS 1441 C compiler flags for XPROP, overriding pkg-config 1442 XPROP_LIBS linker flags for XPROP, overriding pkg-config 1443 LINT Path to a lint-style command 1444 LINT_FLAGS Flags for the lint-style command 1445 1446Use these variables to override the choices made by `configure' or to help 1447it to find libraries and programs with nonstandard names/locations. 1448 1449Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>. 1450_ACEOF 1451ac_status=$? 1452fi 1453 1454if test "$ac_init_help" = "recursive"; then 1455 # If there are subdirs, report their specific --help. 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1457 test -d "$ac_dir" || 1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1459 continue 1460 ac_builddir=. 1461 1462case "$ac_dir" in 1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464*) 1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1466 # A ".." for each directory in $ac_dir_suffix. 1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1468 case $ac_top_builddir_sub in 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1471 esac ;; 1472esac 1473ac_abs_top_builddir=$ac_pwd 1474ac_abs_builddir=$ac_pwd$ac_dir_suffix 1475# for backward compatibility: 1476ac_top_builddir=$ac_top_build_prefix 1477 1478case $srcdir in 1479 .) # We are building in place. 1480 ac_srcdir=. 1481 ac_top_srcdir=$ac_top_builddir_sub 1482 ac_abs_top_srcdir=$ac_pwd ;; 1483 [\\/]* | ?:[\\/]* ) # Absolute name. 1484 ac_srcdir=$srcdir$ac_dir_suffix; 1485 ac_top_srcdir=$srcdir 1486 ac_abs_top_srcdir=$srcdir ;; 1487 *) # Relative name. 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1491esac 1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1493 1494 cd "$ac_dir" || { ac_status=$?; continue; } 1495 # Check for guested configure. 1496 if test -f "$ac_srcdir/configure.gnu"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1499 elif test -f "$ac_srcdir/configure"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure" --help=recursive 1502 else 1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1504 fi || ac_status=$? 1505 cd "$ac_pwd" || { ac_status=$?; break; } 1506 done 1507fi 1508 1509test -n "$ac_init_help" && exit $ac_status 1510if $ac_init_version; then 1511 cat <<\_ACEOF 1512xprop configure 1.2.5 1513generated by GNU Autoconf 2.69 1514 1515Copyright (C) 2012 Free Software Foundation, Inc. 1516This configure script is free software; the Free Software Foundation 1517gives unlimited permission to copy, distribute and modify it. 1518_ACEOF 1519 exit 1520fi 1521 1522## ------------------------ ## 1523## Autoconf initialization. ## 1524## ------------------------ ## 1525 1526# ac_fn_c_try_compile LINENO 1527# -------------------------- 1528# Try to compile conftest.$ac_ext, and return whether this succeeded. 1529ac_fn_c_try_compile () 1530{ 1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1532 rm -f conftest.$ac_objext 1533 if { { ac_try="$ac_compile" 1534case "(($ac_try" in 1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1536 *) ac_try_echo=$ac_try;; 1537esac 1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1539$as_echo "$ac_try_echo"; } >&5 1540 (eval "$ac_compile") 2>conftest.err 1541 ac_status=$? 1542 if test -s conftest.err; then 1543 grep -v '^ *+' conftest.err >conftest.er1 1544 cat conftest.er1 >&5 1545 mv -f conftest.er1 conftest.err 1546 fi 1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1548 test $ac_status = 0; } && { 1549 test -z "$ac_c_werror_flag" || 1550 test ! -s conftest.err 1551 } && test -s conftest.$ac_objext; then : 1552 ac_retval=0 1553else 1554 $as_echo "$as_me: failed program was:" >&5 1555sed 's/^/| /' conftest.$ac_ext >&5 1556 1557 ac_retval=1 1558fi 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1560 as_fn_set_status $ac_retval 1561 1562} # ac_fn_c_try_compile 1563 1564# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1565# --------------------------------------------- 1566# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1567# accordingly. 1568ac_fn_c_check_decl () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 as_decl_name=`echo $2|sed 's/ *(.*//'` 1572 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1574$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1575if eval \${$3+:} false; then : 1576 $as_echo_n "(cached) " >&6 1577else 1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1579/* end confdefs.h. */ 1580$4 1581int 1582main () 1583{ 1584#ifndef $as_decl_name 1585#ifdef __cplusplus 1586 (void) $as_decl_use; 1587#else 1588 (void) $as_decl_name; 1589#endif 1590#endif 1591 1592 ; 1593 return 0; 1594} 1595_ACEOF 1596if ac_fn_c_try_compile "$LINENO"; then : 1597 eval "$3=yes" 1598else 1599 eval "$3=no" 1600fi 1601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1602fi 1603eval ac_res=\$$3 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1605$as_echo "$ac_res" >&6; } 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1607 1608} # ac_fn_c_check_decl 1609 1610# ac_fn_c_try_cpp LINENO 1611# ---------------------- 1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1613ac_fn_c_try_cpp () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 if { { ac_try="$ac_cpp conftest.$ac_ext" 1617case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620esac 1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622$as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } > conftest.i && { 1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1633 test ! -s conftest.err 1634 }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_cpp 1646 1647# ac_fn_c_try_run LINENO 1648# ---------------------- 1649# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1650# that executables *can* be run. 1651ac_fn_c_try_run () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 if { { ac_try="$ac_link" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_link") 2>&5 1662 ac_status=$? 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1665 { { case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_try") 2>&5 1672 ac_status=$? 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; }; }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: program exited with status $ac_status" >&5 1678 $as_echo "$as_me: failed program was:" >&5 1679sed 's/^/| /' conftest.$ac_ext >&5 1680 1681 ac_retval=$ac_status 1682fi 1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 as_fn_set_status $ac_retval 1686 1687} # ac_fn_c_try_run 1688 1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1690# ------------------------------------------------------- 1691# Tests whether HEADER exists and can be compiled using the include files in 1692# INCLUDES, setting the cache variable VAR accordingly. 1693ac_fn_c_check_header_compile () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1697$as_echo_n "checking for $2... " >&6; } 1698if eval \${$3+:} false; then : 1699 $as_echo_n "(cached) " >&6 1700else 1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702/* end confdefs.h. */ 1703$4 1704#include <$2> 1705_ACEOF 1706if ac_fn_c_try_compile "$LINENO"; then : 1707 eval "$3=yes" 1708else 1709 eval "$3=no" 1710fi 1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 1718} # ac_fn_c_check_header_compile 1719 1720# ac_fn_c_try_link LINENO 1721# ----------------------- 1722# Try to link conftest.$ac_ext, and return whether this succeeded. 1723ac_fn_c_try_link () 1724{ 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 rm -f conftest.$ac_objext conftest$ac_exeext 1727 if { { ac_try="$ac_link" 1728case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_link") 2>conftest.err 1735 ac_status=$? 1736 if test -s conftest.err; then 1737 grep -v '^ *+' conftest.err >conftest.er1 1738 cat conftest.er1 >&5 1739 mv -f conftest.er1 conftest.err 1740 fi 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; } && { 1743 test -z "$ac_c_werror_flag" || 1744 test ! -s conftest.err 1745 } && test -s conftest$ac_exeext && { 1746 test "$cross_compiling" = yes || 1747 test -x conftest$ac_exeext 1748 }; then : 1749 ac_retval=0 1750else 1751 $as_echo "$as_me: failed program was:" >&5 1752sed 's/^/| /' conftest.$ac_ext >&5 1753 1754 ac_retval=1 1755fi 1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1758 # interfere with the next link command; also delete a directory that is 1759 # left behind by Apple's compiler. We do this before executing the actions. 1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_link 1765 1766# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1767# ------------------------------------------------------- 1768# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1769# the include files in INCLUDES and setting the cache variable VAR 1770# accordingly. 1771ac_fn_c_check_header_mongrel () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 if eval \${$3+:} false; then : 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1776$as_echo_n "checking for $2... " >&6; } 1777if eval \${$3+:} false; then : 1778 $as_echo_n "(cached) " >&6 1779fi 1780eval ac_res=\$$3 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1782$as_echo "$ac_res" >&6; } 1783else 1784 # Is the header compilable? 1785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1786$as_echo_n "checking $2 usability... " >&6; } 1787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789$4 1790#include <$2> 1791_ACEOF 1792if ac_fn_c_try_compile "$LINENO"; then : 1793 ac_header_compiler=yes 1794else 1795 ac_header_compiler=no 1796fi 1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1799$as_echo "$ac_header_compiler" >&6; } 1800 1801# Is the header present? 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1803$as_echo_n "checking $2 presence... " >&6; } 1804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806#include <$2> 1807_ACEOF 1808if ac_fn_c_try_cpp "$LINENO"; then : 1809 ac_header_preproc=yes 1810else 1811 ac_header_preproc=no 1812fi 1813rm -f conftest.err conftest.i conftest.$ac_ext 1814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1815$as_echo "$ac_header_preproc" >&6; } 1816 1817# So? What about this header? 1818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1819 yes:no: ) 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1821$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1824 ;; 1825 no:yes:* ) 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1827$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1829$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1831$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1833$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1836( $as_echo "## ------------------------------------------------------------------- ## 1837## Report this to https://gitlab.freedesktop.org/xorg/app/xprop/issues ## 1838## ------------------------------------------------------------------- ##" 1839 ) | sed "s/^/$as_me: WARNING: /" >&2 1840 ;; 1841esac 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843$as_echo_n "checking for $2... " >&6; } 1844if eval \${$3+:} false; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 eval "$3=\$ac_header_compiler" 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852fi 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 1855} # ac_fn_c_check_header_mongrel 1856cat >config.log <<_ACEOF 1857This file contains any messages produced by compilers while 1858running configure, to aid debugging if configure makes a mistake. 1859 1860It was created by xprop $as_me 1.2.5, which was 1861generated by GNU Autoconf 2.69. Invocation command line was 1862 1863 $ $0 $@ 1864 1865_ACEOF 1866exec 5>>config.log 1867{ 1868cat <<_ASUNAME 1869## --------- ## 1870## Platform. ## 1871## --------- ## 1872 1873hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1874uname -m = `(uname -m) 2>/dev/null || echo unknown` 1875uname -r = `(uname -r) 2>/dev/null || echo unknown` 1876uname -s = `(uname -s) 2>/dev/null || echo unknown` 1877uname -v = `(uname -v) 2>/dev/null || echo unknown` 1878 1879/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1880/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1881 1882/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1883/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1884/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1885/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1886/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1887/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1888/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1889 1890_ASUNAME 1891 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 $as_echo "PATH: $as_dir" 1898 done 1899IFS=$as_save_IFS 1900 1901} >&5 1902 1903cat >&5 <<_ACEOF 1904 1905 1906## ----------- ## 1907## Core tests. ## 1908## ----------- ## 1909 1910_ACEOF 1911 1912 1913# Keep a trace of the command line. 1914# Strip out --no-create and --no-recursion so they do not pile up. 1915# Strip out --silent because we don't want to record it for future runs. 1916# Also quote any args containing shell meta-characters. 1917# Make two passes to allow for proper duplicate-argument suppression. 1918ac_configure_args= 1919ac_configure_args0= 1920ac_configure_args1= 1921ac_must_keep_next=false 1922for ac_pass in 1 2 1923do 1924 for ac_arg 1925 do 1926 case $ac_arg in 1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1929 | -silent | --silent | --silen | --sile | --sil) 1930 continue ;; 1931 *\'*) 1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1933 esac 1934 case $ac_pass in 1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1936 2) 1937 as_fn_append ac_configure_args1 " '$ac_arg'" 1938 if test $ac_must_keep_next = true; then 1939 ac_must_keep_next=false # Got value, back to normal. 1940 else 1941 case $ac_arg in 1942 *=* | --config-cache | -C | -disable-* | --disable-* \ 1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1945 | -with-* | --with-* | -without-* | --without-* | --x) 1946 case "$ac_configure_args0 " in 1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1948 esac 1949 ;; 1950 -* ) ac_must_keep_next=true ;; 1951 esac 1952 fi 1953 as_fn_append ac_configure_args " '$ac_arg'" 1954 ;; 1955 esac 1956 done 1957done 1958{ ac_configure_args0=; unset ac_configure_args0;} 1959{ ac_configure_args1=; unset ac_configure_args1;} 1960 1961# When interrupted or exit'd, cleanup temporary files, and complete 1962# config.log. We remove comments because anyway the quotes in there 1963# would cause problems or look ugly. 1964# WARNING: Use '\'' to represent an apostrophe within the trap. 1965# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1966trap 'exit_status=$? 1967 # Save into config.log some information that might help in debugging. 1968 { 1969 echo 1970 1971 $as_echo "## ---------------- ## 1972## Cache variables. ## 1973## ---------------- ##" 1974 echo 1975 # The following way of writing the cache mishandles newlines in values, 1976( 1977 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1978 eval ac_val=\$$ac_var 1979 case $ac_val in #( 1980 *${as_nl}*) 1981 case $ac_var in #( 1982 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1983$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1984 esac 1985 case $ac_var in #( 1986 _ | IFS | as_nl) ;; #( 1987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1988 *) { eval $ac_var=; unset $ac_var;} ;; 1989 esac ;; 1990 esac 1991 done 1992 (set) 2>&1 | 1993 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1994 *${as_nl}ac_space=\ *) 1995 sed -n \ 1996 "s/'\''/'\''\\\\'\'''\''/g; 1997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1998 ;; #( 1999 *) 2000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2001 ;; 2002 esac | 2003 sort 2004) 2005 echo 2006 2007 $as_echo "## ----------------- ## 2008## Output variables. ## 2009## ----------------- ##" 2010 echo 2011 for ac_var in $ac_subst_vars 2012 do 2013 eval ac_val=\$$ac_var 2014 case $ac_val in 2015 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2016 esac 2017 $as_echo "$ac_var='\''$ac_val'\''" 2018 done | sort 2019 echo 2020 2021 if test -n "$ac_subst_files"; then 2022 $as_echo "## ------------------- ## 2023## File substitutions. ## 2024## ------------------- ##" 2025 echo 2026 for ac_var in $ac_subst_files 2027 do 2028 eval ac_val=\$$ac_var 2029 case $ac_val in 2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2031 esac 2032 $as_echo "$ac_var='\''$ac_val'\''" 2033 done | sort 2034 echo 2035 fi 2036 2037 if test -s confdefs.h; then 2038 $as_echo "## ----------- ## 2039## confdefs.h. ## 2040## ----------- ##" 2041 echo 2042 cat confdefs.h 2043 echo 2044 fi 2045 test "$ac_signal" != 0 && 2046 $as_echo "$as_me: caught signal $ac_signal" 2047 $as_echo "$as_me: exit $exit_status" 2048 } >&5 2049 rm -f core *.core core.conftest.* && 2050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2051 exit $exit_status 2052' 0 2053for ac_signal in 1 2 13 15; do 2054 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2055done 2056ac_signal=0 2057 2058# confdefs.h avoids OS command line length limits that DEFS can exceed. 2059rm -f -r conftest* confdefs.h 2060 2061$as_echo "/* confdefs.h */" > confdefs.h 2062 2063# Predefined preprocessor variables. 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_NAME "$PACKAGE_NAME" 2067_ACEOF 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_VERSION "$PACKAGE_VERSION" 2075_ACEOF 2076 2077cat >>confdefs.h <<_ACEOF 2078#define PACKAGE_STRING "$PACKAGE_STRING" 2079_ACEOF 2080 2081cat >>confdefs.h <<_ACEOF 2082#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2083_ACEOF 2084 2085cat >>confdefs.h <<_ACEOF 2086#define PACKAGE_URL "$PACKAGE_URL" 2087_ACEOF 2088 2089 2090# Let the site file select an alternate cache file if it wants to. 2091# Prefer an explicitly selected file to automatically selected ones. 2092ac_site_file1=NONE 2093ac_site_file2=NONE 2094if test -n "$CONFIG_SITE"; then 2095 # We do not want a PATH search for config.site. 2096 case $CONFIG_SITE in #(( 2097 -*) ac_site_file1=./$CONFIG_SITE;; 2098 */*) ac_site_file1=$CONFIG_SITE;; 2099 *) ac_site_file1=./$CONFIG_SITE;; 2100 esac 2101elif test "x$prefix" != xNONE; then 2102 ac_site_file1=$prefix/share/config.site 2103 ac_site_file2=$prefix/etc/config.site 2104else 2105 ac_site_file1=$ac_default_prefix/share/config.site 2106 ac_site_file2=$ac_default_prefix/etc/config.site 2107fi 2108for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2109do 2110 test "x$ac_site_file" = xNONE && continue 2111 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2113$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2114 sed 's/^/| /' "$ac_site_file" >&5 2115 . "$ac_site_file" \ 2116 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2118as_fn_error $? "failed to load site script $ac_site_file 2119See \`config.log' for more details" "$LINENO" 5; } 2120 fi 2121done 2122 2123if test -r "$cache_file"; then 2124 # Some versions of bash will fail to source /dev/null (special files 2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2128$as_echo "$as_me: loading cache $cache_file" >&6;} 2129 case $cache_file in 2130 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2131 *) . "./$cache_file";; 2132 esac 2133 fi 2134else 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2136$as_echo "$as_me: creating cache $cache_file" >&6;} 2137 >$cache_file 2138fi 2139 2140# Check that the precious variables saved in the cache have kept the same 2141# value. 2142ac_cache_corrupted=false 2143for ac_var in $ac_precious_vars; do 2144 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2145 eval ac_new_set=\$ac_env_${ac_var}_set 2146 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2147 eval ac_new_val=\$ac_env_${ac_var}_value 2148 case $ac_old_set,$ac_new_set in 2149 set,) 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2151$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2152 ac_cache_corrupted=: ;; 2153 ,set) 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2155$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2156 ac_cache_corrupted=: ;; 2157 ,);; 2158 *) 2159 if test "x$ac_old_val" != "x$ac_new_val"; then 2160 # differences in whitespace do not lead to failure. 2161 ac_old_val_w=`echo x $ac_old_val` 2162 ac_new_val_w=`echo x $ac_new_val` 2163 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2165$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2166 ac_cache_corrupted=: 2167 else 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2169$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2170 eval $ac_var=\$ac_old_val 2171 fi 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2173$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2175$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2176 fi;; 2177 esac 2178 # Pass precious variables to config.status. 2179 if test "$ac_new_set" = set; then 2180 case $ac_new_val in 2181 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2182 *) ac_arg=$ac_var=$ac_new_val ;; 2183 esac 2184 case " $ac_configure_args " in 2185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2186 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2187 esac 2188 fi 2189done 2190if $ac_cache_corrupted; then 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2194$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2195 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2196fi 2197## -------------------- ## 2198## Main body of script. ## 2199## -------------------- ## 2200 2201ac_ext=c 2202ac_cpp='$CPP $CPPFLAGS' 2203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2205ac_compiler_gnu=$ac_cv_c_compiler_gnu 2206 2207 2208 2209ac_config_headers="$ac_config_headers config.h" 2210 2211 2212# Initialize Automake 2213am__api_version='1.16' 2214 2215ac_aux_dir= 2216for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2217 if test -f "$ac_dir/install-sh"; then 2218 ac_aux_dir=$ac_dir 2219 ac_install_sh="$ac_aux_dir/install-sh -c" 2220 break 2221 elif test -f "$ac_dir/install.sh"; then 2222 ac_aux_dir=$ac_dir 2223 ac_install_sh="$ac_aux_dir/install.sh -c" 2224 break 2225 elif test -f "$ac_dir/shtool"; then 2226 ac_aux_dir=$ac_dir 2227 ac_install_sh="$ac_aux_dir/shtool install -c" 2228 break 2229 fi 2230done 2231if test -z "$ac_aux_dir"; then 2232 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2233fi 2234 2235# These three variables are undocumented and unsupported, 2236# and are intended to be withdrawn in a future Autoconf release. 2237# They can cause serious problems if a builder's source tree is in a directory 2238# whose full name contains unusual characters. 2239ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2240ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2241ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2242 2243 2244# Find a good install program. We prefer a C program (faster), 2245# so one script is as good as another. But avoid the broken or 2246# incompatible versions: 2247# SysV /etc/install, /usr/sbin/install 2248# SunOS /usr/etc/install 2249# IRIX /sbin/install 2250# AIX /bin/install 2251# AmigaOS /C/install, which installs bootblocks on floppy discs 2252# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2253# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2254# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2255# OS/2's system install, which has a completely different semantic 2256# ./install, which can be erroneously created by make from ./install.sh. 2257# Reject install programs that cannot install multiple files. 2258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2259$as_echo_n "checking for a BSD-compatible install... " >&6; } 2260if test -z "$INSTALL"; then 2261if ${ac_cv_path_install+:} false; then : 2262 $as_echo_n "(cached) " >&6 2263else 2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2265for as_dir in $PATH 2266do 2267 IFS=$as_save_IFS 2268 test -z "$as_dir" && as_dir=. 2269 # Account for people who put trailing slashes in PATH elements. 2270case $as_dir/ in #(( 2271 ./ | .// | /[cC]/* | \ 2272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2273 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2274 /usr/ucb/* ) ;; 2275 *) 2276 # OSF1 and SCO ODT 3.0 have their own names for install. 2277 # Don't use installbsd from OSF since it installs stuff as root 2278 # by default. 2279 for ac_prog in ginstall scoinst install; do 2280 for ac_exec_ext in '' $ac_executable_extensions; do 2281 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2282 if test $ac_prog = install && 2283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2284 # AIX install. It has an incompatible calling convention. 2285 : 2286 elif test $ac_prog = install && 2287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2288 # program-specific install script used by HP pwplus--don't use. 2289 : 2290 else 2291 rm -rf conftest.one conftest.two conftest.dir 2292 echo one > conftest.one 2293 echo two > conftest.two 2294 mkdir conftest.dir 2295 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2296 test -s conftest.one && test -s conftest.two && 2297 test -s conftest.dir/conftest.one && 2298 test -s conftest.dir/conftest.two 2299 then 2300 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2301 break 3 2302 fi 2303 fi 2304 fi 2305 done 2306 done 2307 ;; 2308esac 2309 2310 done 2311IFS=$as_save_IFS 2312 2313rm -rf conftest.one conftest.two conftest.dir 2314 2315fi 2316 if test "${ac_cv_path_install+set}" = set; then 2317 INSTALL=$ac_cv_path_install 2318 else 2319 # As a last resort, use the slow shell script. Don't cache a 2320 # value for INSTALL within a source directory, because that will 2321 # break other packages using the cache if that directory is 2322 # removed, or if the value is a relative name. 2323 INSTALL=$ac_install_sh 2324 fi 2325fi 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2327$as_echo "$INSTALL" >&6; } 2328 2329# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2330# It thinks the first close brace ends the variable substitution. 2331test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2332 2333test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2334 2335test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2336 2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2338$as_echo_n "checking whether build environment is sane... " >&6; } 2339# Reject unsafe characters in $srcdir or the absolute working directory 2340# name. Accept space and tab only in the latter. 2341am_lf=' 2342' 2343case `pwd` in 2344 *[\\\"\#\$\&\'\`$am_lf]*) 2345 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2346esac 2347case $srcdir in 2348 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2349 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2350esac 2351 2352# Do 'set' in a subshell so we don't clobber the current shell's 2353# arguments. Must try -L first in case configure is actually a 2354# symlink; some systems play weird games with the mod time of symlinks 2355# (eg FreeBSD returns the mod time of the symlink's containing 2356# directory). 2357if ( 2358 am_has_slept=no 2359 for am_try in 1 2; do 2360 echo "timestamp, slept: $am_has_slept" > conftest.file 2361 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2362 if test "$*" = "X"; then 2363 # -L didn't work. 2364 set X `ls -t "$srcdir/configure" conftest.file` 2365 fi 2366 if test "$*" != "X $srcdir/configure conftest.file" \ 2367 && test "$*" != "X conftest.file $srcdir/configure"; then 2368 2369 # If neither matched, then we have a broken ls. This can happen 2370 # if, for instance, CONFIG_SHELL is bash and it inherits a 2371 # broken ls alias from the environment. This has actually 2372 # happened. Such a system could not be considered "sane". 2373 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2374 alias in your environment" "$LINENO" 5 2375 fi 2376 if test "$2" = conftest.file || test $am_try -eq 2; then 2377 break 2378 fi 2379 # Just in case. 2380 sleep 1 2381 am_has_slept=yes 2382 done 2383 test "$2" = conftest.file 2384 ) 2385then 2386 # Ok. 2387 : 2388else 2389 as_fn_error $? "newly created file is older than distributed files! 2390Check your system clock" "$LINENO" 5 2391fi 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2393$as_echo "yes" >&6; } 2394# If we didn't sleep, we still need to ensure time stamps of config.status and 2395# generated files are strictly newer. 2396am_sleep_pid= 2397if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2398 ( sleep 1 ) & 2399 am_sleep_pid=$! 2400fi 2401 2402rm -f conftest.file 2403 2404test "$program_prefix" != NONE && 2405 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2406# Use a double $ so make ignores it. 2407test "$program_suffix" != NONE && 2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2409# Double any \ or $. 2410# By default was `s,x,x', remove it if useless. 2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2413 2414# Expand $ac_aux_dir to an absolute path. 2415am_aux_dir=`cd "$ac_aux_dir" && pwd` 2416 2417if test x"${MISSING+set}" != xset; then 2418 case $am_aux_dir in 2419 *\ * | *\ *) 2420 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2421 *) 2422 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2423 esac 2424fi 2425# Use eval to expand $SHELL 2426if eval "$MISSING --is-lightweight"; then 2427 am_missing_run="$MISSING " 2428else 2429 am_missing_run= 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2431$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2432fi 2433 2434if test x"${install_sh+set}" != xset; then 2435 case $am_aux_dir in 2436 *\ * | *\ *) 2437 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2438 *) 2439 install_sh="\${SHELL} $am_aux_dir/install-sh" 2440 esac 2441fi 2442 2443# Installed binaries are usually stripped using 'strip' when the user 2444# run "make install-strip". However 'strip' might not be the right 2445# tool to use in cross-compilation environments, therefore Automake 2446# will honor the 'STRIP' environment variable to overrule this program. 2447if test "$cross_compiling" != no; then 2448 if test -n "$ac_tool_prefix"; then 2449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2450set dummy ${ac_tool_prefix}strip; ac_word=$2 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2452$as_echo_n "checking for $ac_word... " >&6; } 2453if ${ac_cv_prog_STRIP+:} false; then : 2454 $as_echo_n "(cached) " >&6 2455else 2456 if test -n "$STRIP"; then 2457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2458else 2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 for ac_exec_ext in '' $ac_executable_extensions; do 2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2466 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2468 break 2 2469 fi 2470done 2471 done 2472IFS=$as_save_IFS 2473 2474fi 2475fi 2476STRIP=$ac_cv_prog_STRIP 2477if test -n "$STRIP"; then 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2479$as_echo "$STRIP" >&6; } 2480else 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2482$as_echo "no" >&6; } 2483fi 2484 2485 2486fi 2487if test -z "$ac_cv_prog_STRIP"; then 2488 ac_ct_STRIP=$STRIP 2489 # Extract the first word of "strip", so it can be a program name with args. 2490set dummy strip; ac_word=$2 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2492$as_echo_n "checking for $ac_word... " >&6; } 2493if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2494 $as_echo_n "(cached) " >&6 2495else 2496 if test -n "$ac_ct_STRIP"; then 2497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2498else 2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2500for as_dir in $PATH 2501do 2502 IFS=$as_save_IFS 2503 test -z "$as_dir" && as_dir=. 2504 for ac_exec_ext in '' $ac_executable_extensions; do 2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2506 ac_cv_prog_ac_ct_STRIP="strip" 2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2508 break 2 2509 fi 2510done 2511 done 2512IFS=$as_save_IFS 2513 2514fi 2515fi 2516ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2517if test -n "$ac_ct_STRIP"; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2519$as_echo "$ac_ct_STRIP" >&6; } 2520else 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2522$as_echo "no" >&6; } 2523fi 2524 2525 if test "x$ac_ct_STRIP" = x; then 2526 STRIP=":" 2527 else 2528 case $cross_compiling:$ac_tool_warned in 2529yes:) 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2532ac_tool_warned=yes ;; 2533esac 2534 STRIP=$ac_ct_STRIP 2535 fi 2536else 2537 STRIP="$ac_cv_prog_STRIP" 2538fi 2539 2540fi 2541INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2542 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2544$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2545if test -z "$MKDIR_P"; then 2546 if ${ac_cv_path_mkdir+:} false; then : 2547 $as_echo_n "(cached) " >&6 2548else 2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2551do 2552 IFS=$as_save_IFS 2553 test -z "$as_dir" && as_dir=. 2554 for ac_prog in mkdir gmkdir; do 2555 for ac_exec_ext in '' $ac_executable_extensions; do 2556 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2557 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2558 'mkdir (GNU coreutils) '* | \ 2559 'mkdir (coreutils) '* | \ 2560 'mkdir (fileutils) '4.1*) 2561 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2562 break 3;; 2563 esac 2564 done 2565 done 2566 done 2567IFS=$as_save_IFS 2568 2569fi 2570 2571 test -d ./--version && rmdir ./--version 2572 if test "${ac_cv_path_mkdir+set}" = set; then 2573 MKDIR_P="$ac_cv_path_mkdir -p" 2574 else 2575 # As a last resort, use the slow shell script. Don't cache a 2576 # value for MKDIR_P within a source directory, because that will 2577 # break other packages using the cache if that directory is 2578 # removed, or if the value is a relative name. 2579 MKDIR_P="$ac_install_sh -d" 2580 fi 2581fi 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2583$as_echo "$MKDIR_P" >&6; } 2584 2585for ac_prog in gawk mawk nawk awk 2586do 2587 # Extract the first word of "$ac_prog", so it can be a program name with args. 2588set dummy $ac_prog; ac_word=$2 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2590$as_echo_n "checking for $ac_word... " >&6; } 2591if ${ac_cv_prog_AWK+:} false; then : 2592 $as_echo_n "(cached) " >&6 2593else 2594 if test -n "$AWK"; then 2595 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2596else 2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2598for as_dir in $PATH 2599do 2600 IFS=$as_save_IFS 2601 test -z "$as_dir" && as_dir=. 2602 for ac_exec_ext in '' $ac_executable_extensions; do 2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2604 ac_cv_prog_AWK="$ac_prog" 2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2606 break 2 2607 fi 2608done 2609 done 2610IFS=$as_save_IFS 2611 2612fi 2613fi 2614AWK=$ac_cv_prog_AWK 2615if test -n "$AWK"; then 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2617$as_echo "$AWK" >&6; } 2618else 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2620$as_echo "no" >&6; } 2621fi 2622 2623 2624 test -n "$AWK" && break 2625done 2626 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2628$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2629set x ${MAKE-make} 2630ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2631if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2632 $as_echo_n "(cached) " >&6 2633else 2634 cat >conftest.make <<\_ACEOF 2635SHELL = /bin/sh 2636all: 2637 @echo '@@@%%%=$(MAKE)=@@@%%%' 2638_ACEOF 2639# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2640case `${MAKE-make} -f conftest.make 2>/dev/null` in 2641 *@@@%%%=?*=@@@%%%*) 2642 eval ac_cv_prog_make_${ac_make}_set=yes;; 2643 *) 2644 eval ac_cv_prog_make_${ac_make}_set=no;; 2645esac 2646rm -f conftest.make 2647fi 2648if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2650$as_echo "yes" >&6; } 2651 SET_MAKE= 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654$as_echo "no" >&6; } 2655 SET_MAKE="MAKE=${MAKE-make}" 2656fi 2657 2658rm -rf .tst 2>/dev/null 2659mkdir .tst 2>/dev/null 2660if test -d .tst; then 2661 am__leading_dot=. 2662else 2663 am__leading_dot=_ 2664fi 2665rmdir .tst 2>/dev/null 2666 2667# Check whether --enable-silent-rules was given. 2668if test "${enable_silent_rules+set}" = set; then : 2669 enableval=$enable_silent_rules; 2670fi 2671 2672case $enable_silent_rules in # ((( 2673 yes) AM_DEFAULT_VERBOSITY=0;; 2674 no) AM_DEFAULT_VERBOSITY=1;; 2675 *) AM_DEFAULT_VERBOSITY=1;; 2676esac 2677am_make=${MAKE-make} 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2679$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2680if ${am_cv_make_support_nested_variables+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 if $as_echo 'TRUE=$(BAR$(V)) 2684BAR0=false 2685BAR1=true 2686V=1 2687am__doit: 2688 @$(TRUE) 2689.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2690 am_cv_make_support_nested_variables=yes 2691else 2692 am_cv_make_support_nested_variables=no 2693fi 2694fi 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2696$as_echo "$am_cv_make_support_nested_variables" >&6; } 2697if test $am_cv_make_support_nested_variables = yes; then 2698 AM_V='$(V)' 2699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2700else 2701 AM_V=$AM_DEFAULT_VERBOSITY 2702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2703fi 2704AM_BACKSLASH='\' 2705 2706if test "`cd $srcdir && pwd`" != "`pwd`"; then 2707 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2708 # is not polluted with repeated "-I." 2709 am__isrc=' -I$(srcdir)' 2710 # test to see if srcdir already configured 2711 if test -f $srcdir/config.status; then 2712 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2713 fi 2714fi 2715 2716# test whether we have cygpath 2717if test -z "$CYGPATH_W"; then 2718 if (cygpath --version) >/dev/null 2>/dev/null; then 2719 CYGPATH_W='cygpath -w' 2720 else 2721 CYGPATH_W=echo 2722 fi 2723fi 2724 2725 2726# Define the identity of the package. 2727 PACKAGE='xprop' 2728 VERSION='1.2.5' 2729 2730 2731cat >>confdefs.h <<_ACEOF 2732#define PACKAGE "$PACKAGE" 2733_ACEOF 2734 2735 2736cat >>confdefs.h <<_ACEOF 2737#define VERSION "$VERSION" 2738_ACEOF 2739 2740# Some tools Automake needs. 2741 2742ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2743 2744 2745AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2746 2747 2748AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2749 2750 2751AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2752 2753 2754MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2755 2756# For better backward compatibility. To be removed once Automake 1.9.x 2757# dies out for good. For more background, see: 2758# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2759# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2760mkdir_p='$(MKDIR_P)' 2761 2762# We need awk for the "check" target (and possibly the TAP driver). The 2763# system "awk" is bad on some platforms. 2764# Always define AMTAR for backward compatibility. Yes, it's still used 2765# in the wild :-( We should find a proper way to deprecate it ... 2766AMTAR='$${TAR-tar}' 2767 2768 2769# We'll loop over all known methods to create a tar archive until one works. 2770_am_tools='gnutar pax cpio none' 2771 2772am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2773 2774 2775 2776 2777 2778 2779# POSIX will say in a future version that running "rm -f" with no argument 2780# is OK; and we want to be able to make that assumption in our Makefile 2781# recipes. So use an aggressive probe to check that the usage we want is 2782# actually supported "in the wild" to an acceptable degree. 2783# See automake bug#10828. 2784# To make any issue more visible, cause the running configure to be aborted 2785# by default if the 'rm' program in use doesn't match our expectations; the 2786# user can still override this though. 2787if rm -f && rm -fr && rm -rf; then : OK; else 2788 cat >&2 <<'END' 2789Oops! 2790 2791Your 'rm' program seems unable to run without file operands specified 2792on the command line, even when the '-f' option is present. This is contrary 2793to the behaviour of most rm programs out there, and not conforming with 2794the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2795 2796Please tell bug-automake@gnu.org about your system, including the value 2797of your $PATH and any error possibly output before this message. This 2798can help us improve future automake versions. 2799 2800END 2801 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2802 echo 'Configuration will proceed anyway, since you have set the' >&2 2803 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2804 echo >&2 2805 else 2806 cat >&2 <<'END' 2807Aborting the configuration process, to ensure you take notice of the issue. 2808 2809You can download and install GNU coreutils to get an 'rm' implementation 2810that behaves properly: <https://www.gnu.org/software/coreutils/>. 2811 2812If you want to complete the configuration process using your problematic 2813'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2814to "yes", and re-run configure. 2815 2816END 2817 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2818 fi 2819fi 2820 2821 2822# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834DEPDIR="${am__leading_dot}deps" 2835 2836ac_config_commands="$ac_config_commands depfiles" 2837 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2839$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2840cat > confinc.mk << 'END' 2841am__doit: 2842 @echo this is the am__doit target >confinc.out 2843.PHONY: am__doit 2844END 2845am__include="#" 2846am__quote= 2847# BSD make does it like this. 2848echo '.include "confinc.mk" # ignored' > confmf.BSD 2849# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2850echo 'include confinc.mk # ignored' > confmf.GNU 2851_am_result=no 2852for s in GNU BSD; do 2853 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2854 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2855 ac_status=$? 2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2857 (exit $ac_status); } 2858 case $?:`cat confinc.out 2>/dev/null` in #( 2859 '0:this is the am__doit target') : 2860 case $s in #( 2861 BSD) : 2862 am__include='.include' am__quote='"' ;; #( 2863 *) : 2864 am__include='include' am__quote='' ;; 2865esac ;; #( 2866 *) : 2867 ;; 2868esac 2869 if test "$am__include" != "#"; then 2870 _am_result="yes ($s style)" 2871 break 2872 fi 2873done 2874rm -f confinc.* confmf.* 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2876$as_echo "${_am_result}" >&6; } 2877 2878# Check whether --enable-dependency-tracking was given. 2879if test "${enable_dependency_tracking+set}" = set; then : 2880 enableval=$enable_dependency_tracking; 2881fi 2882 2883if test "x$enable_dependency_tracking" != xno; then 2884 am_depcomp="$ac_aux_dir/depcomp" 2885 AMDEPBACKSLASH='\' 2886 am__nodep='_no' 2887fi 2888 if test "x$enable_dependency_tracking" != xno; then 2889 AMDEP_TRUE= 2890 AMDEP_FALSE='#' 2891else 2892 AMDEP_TRUE='#' 2893 AMDEP_FALSE= 2894fi 2895 2896 2897ac_ext=c 2898ac_cpp='$CPP $CPPFLAGS' 2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2901ac_compiler_gnu=$ac_cv_c_compiler_gnu 2902if test -n "$ac_tool_prefix"; then 2903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2904set dummy ${ac_tool_prefix}gcc; ac_word=$2 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906$as_echo_n "checking for $ac_word... " >&6; } 2907if ${ac_cv_prog_CC+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 if test -n "$CC"; then 2911 ac_cv_prog_CC="$CC" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930CC=$ac_cv_prog_CC 2931if test -n "$CC"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2933$as_echo "$CC" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 2940fi 2941if test -z "$ac_cv_prog_CC"; then 2942 ac_ct_CC=$CC 2943 # Extract the first word of "gcc", so it can be a program name with args. 2944set dummy gcc; ac_word=$2 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2946$as_echo_n "checking for $ac_word... " >&6; } 2947if ${ac_cv_prog_ac_ct_CC+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 if test -n "$ac_ct_CC"; then 2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2952else 2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954for as_dir in $PATH 2955do 2956 IFS=$as_save_IFS 2957 test -z "$as_dir" && as_dir=. 2958 for ac_exec_ext in '' $ac_executable_extensions; do 2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2960 ac_cv_prog_ac_ct_CC="gcc" 2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2962 break 2 2963 fi 2964done 2965 done 2966IFS=$as_save_IFS 2967 2968fi 2969fi 2970ac_ct_CC=$ac_cv_prog_ac_ct_CC 2971if test -n "$ac_ct_CC"; then 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2973$as_echo "$ac_ct_CC" >&6; } 2974else 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976$as_echo "no" >&6; } 2977fi 2978 2979 if test "x$ac_ct_CC" = x; then 2980 CC="" 2981 else 2982 case $cross_compiling:$ac_tool_warned in 2983yes:) 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2986ac_tool_warned=yes ;; 2987esac 2988 CC=$ac_ct_CC 2989 fi 2990else 2991 CC="$ac_cv_prog_CC" 2992fi 2993 2994if test -z "$CC"; then 2995 if test -n "$ac_tool_prefix"; then 2996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2997set dummy ${ac_tool_prefix}cc; ac_word=$2 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2999$as_echo_n "checking for $ac_word... " >&6; } 3000if ${ac_cv_prog_CC+:} false; then : 3001 $as_echo_n "(cached) " >&6 3002else 3003 if test -n "$CC"; then 3004 ac_cv_prog_CC="$CC" # Let the user override the test. 3005else 3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007for as_dir in $PATH 3008do 3009 IFS=$as_save_IFS 3010 test -z "$as_dir" && as_dir=. 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3013 ac_cv_prog_CC="${ac_tool_prefix}cc" 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017done 3018 done 3019IFS=$as_save_IFS 3020 3021fi 3022fi 3023CC=$ac_cv_prog_CC 3024if test -n "$CC"; then 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3026$as_echo "$CC" >&6; } 3027else 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029$as_echo "no" >&6; } 3030fi 3031 3032 3033 fi 3034fi 3035if test -z "$CC"; then 3036 # Extract the first word of "cc", so it can be a program name with args. 3037set dummy cc; ac_word=$2 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3039$as_echo_n "checking for $ac_word... " >&6; } 3040if ${ac_cv_prog_CC+:} false; then : 3041 $as_echo_n "(cached) " >&6 3042else 3043 if test -n "$CC"; then 3044 ac_cv_prog_CC="$CC" # Let the user override the test. 3045else 3046 ac_prog_rejected=no 3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3048for as_dir in $PATH 3049do 3050 IFS=$as_save_IFS 3051 test -z "$as_dir" && as_dir=. 3052 for ac_exec_ext in '' $ac_executable_extensions; do 3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3055 ac_prog_rejected=yes 3056 continue 3057 fi 3058 ac_cv_prog_CC="cc" 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3060 break 2 3061 fi 3062done 3063 done 3064IFS=$as_save_IFS 3065 3066if test $ac_prog_rejected = yes; then 3067 # We found a bogon in the path, so make sure we never use it. 3068 set dummy $ac_cv_prog_CC 3069 shift 3070 if test $# != 0; then 3071 # We chose a different compiler from the bogus one. 3072 # However, it has the same basename, so the bogon will be chosen 3073 # first if we set CC to just the basename; use the full file name. 3074 shift 3075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3076 fi 3077fi 3078fi 3079fi 3080CC=$ac_cv_prog_CC 3081if test -n "$CC"; then 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3083$as_echo "$CC" >&6; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087fi 3088 3089 3090fi 3091if test -z "$CC"; then 3092 if test -n "$ac_tool_prefix"; then 3093 for ac_prog in cl.exe 3094 do 3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3096set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3098$as_echo_n "checking for $ac_word... " >&6; } 3099if ${ac_cv_prog_CC+:} false; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 if test -n "$CC"; then 3103 ac_cv_prog_CC="$CC" # Let the user override the test. 3104else 3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106for as_dir in $PATH 3107do 3108 IFS=$as_save_IFS 3109 test -z "$as_dir" && as_dir=. 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3114 break 2 3115 fi 3116done 3117 done 3118IFS=$as_save_IFS 3119 3120fi 3121fi 3122CC=$ac_cv_prog_CC 3123if test -n "$CC"; then 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3125$as_echo "$CC" >&6; } 3126else 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128$as_echo "no" >&6; } 3129fi 3130 3131 3132 test -n "$CC" && break 3133 done 3134fi 3135if test -z "$CC"; then 3136 ac_ct_CC=$CC 3137 for ac_prog in cl.exe 3138do 3139 # Extract the first word of "$ac_prog", so it can be a program name with args. 3140set dummy $ac_prog; ac_word=$2 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3142$as_echo_n "checking for $ac_word... " >&6; } 3143if ${ac_cv_prog_ac_ct_CC+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145else 3146 if test -n "$ac_ct_CC"; then 3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3156 ac_cv_prog_ac_ct_CC="$ac_prog" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166ac_ct_CC=$ac_cv_prog_ac_ct_CC 3167if test -n "$ac_ct_CC"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3169$as_echo "$ac_ct_CC" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176 test -n "$ac_ct_CC" && break 3177done 3178 3179 if test "x$ac_ct_CC" = x; then 3180 CC="" 3181 else 3182 case $cross_compiling:$ac_tool_warned in 3183yes:) 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3186ac_tool_warned=yes ;; 3187esac 3188 CC=$ac_ct_CC 3189 fi 3190fi 3191 3192fi 3193 3194 3195test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3197as_fn_error $? "no acceptable C compiler found in \$PATH 3198See \`config.log' for more details" "$LINENO" 5; } 3199 3200# Provide some information about the compiler. 3201$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3202set X $ac_compile 3203ac_compiler=$2 3204for ac_option in --version -v -V -qversion; do 3205 { { ac_try="$ac_compiler $ac_option >&5" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211$as_echo "$ac_try_echo"; } >&5 3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3213 ac_status=$? 3214 if test -s conftest.err; then 3215 sed '10a\ 3216... rest of stderr output deleted ... 3217 10q' conftest.err >conftest.er1 3218 cat conftest.er1 >&5 3219 fi 3220 rm -f conftest.er1 conftest.err 3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3222 test $ac_status = 0; } 3223done 3224 3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226/* end confdefs.h. */ 3227 3228int 3229main () 3230{ 3231 3232 ; 3233 return 0; 3234} 3235_ACEOF 3236ac_clean_files_save=$ac_clean_files 3237ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3238# Try to create an executable without -o first, disregard a.out. 3239# It will help us diagnose broken compilers, and finding out an intuition 3240# of exeext. 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3242$as_echo_n "checking whether the C compiler works... " >&6; } 3243ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3244 3245# The possible output files: 3246ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3247 3248ac_rmfiles= 3249for ac_file in $ac_files 3250do 3251 case $ac_file in 3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3254 esac 3255done 3256rm -f $ac_rmfiles 3257 3258if { { ac_try="$ac_link_default" 3259case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3264$as_echo "$ac_try_echo"; } >&5 3265 (eval "$ac_link_default") 2>&5 3266 ac_status=$? 3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3268 test $ac_status = 0; }; then : 3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3270# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3271# in a Makefile. We should not override ac_cv_exeext if it was cached, 3272# so that the user can short-circuit this test for compilers unknown to 3273# Autoconf. 3274for ac_file in $ac_files '' 3275do 3276 test -f "$ac_file" || continue 3277 case $ac_file in 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3279 ;; 3280 [ab].out ) 3281 # We found the default executable, but exeext='' is most 3282 # certainly right. 3283 break;; 3284 *.* ) 3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3286 then :; else 3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3288 fi 3289 # We set ac_cv_exeext here because the later test for it is not 3290 # safe: cross compilers may not add the suffix if given an `-o' 3291 # argument, so we may need to know it at that point already. 3292 # Even if this section looks crufty: it has the advantage of 3293 # actually working. 3294 break;; 3295 * ) 3296 break;; 3297 esac 3298done 3299test "$ac_cv_exeext" = no && ac_cv_exeext= 3300 3301else 3302 ac_file='' 3303fi 3304if test -z "$ac_file"; then : 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306$as_echo "no" >&6; } 3307$as_echo "$as_me: failed program was:" >&5 3308sed 's/^/| /' conftest.$ac_ext >&5 3309 3310{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3312as_fn_error 77 "C compiler cannot create executables 3313See \`config.log' for more details" "$LINENO" 5; } 3314else 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3316$as_echo "yes" >&6; } 3317fi 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3319$as_echo_n "checking for C compiler default output file name... " >&6; } 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3321$as_echo "$ac_file" >&6; } 3322ac_exeext=$ac_cv_exeext 3323 3324rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3325ac_clean_files=$ac_clean_files_save 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3327$as_echo_n "checking for suffix of executables... " >&6; } 3328if { { ac_try="$ac_link" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3334$as_echo "$ac_try_echo"; } >&5 3335 (eval "$ac_link") 2>&5 3336 ac_status=$? 3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3338 test $ac_status = 0; }; then : 3339 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3340# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3341# work properly (i.e., refer to `conftest.exe'), while it won't with 3342# `rm'. 3343for ac_file in conftest.exe conftest conftest.*; do 3344 test -f "$ac_file" || continue 3345 case $ac_file in 3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3348 break;; 3349 * ) break;; 3350 esac 3351done 3352else 3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3356See \`config.log' for more details" "$LINENO" 5; } 3357fi 3358rm -f conftest conftest$ac_cv_exeext 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3360$as_echo "$ac_cv_exeext" >&6; } 3361 3362rm -f conftest.$ac_ext 3363EXEEXT=$ac_cv_exeext 3364ac_exeext=$EXEEXT 3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367#include <stdio.h> 3368int 3369main () 3370{ 3371FILE *f = fopen ("conftest.out", "w"); 3372 return ferror (f) || fclose (f) != 0; 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378ac_clean_files="$ac_clean_files conftest.out" 3379# Check that the compiler produces executables we can run. If not, either 3380# the compiler is broken, or we cross compile. 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3382$as_echo_n "checking whether we are cross compiling... " >&6; } 3383if test "$cross_compiling" != yes; then 3384 { { ac_try="$ac_link" 3385case "(($ac_try" in 3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387 *) ac_try_echo=$ac_try;; 3388esac 3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3390$as_echo "$ac_try_echo"; } >&5 3391 (eval "$ac_link") 2>&5 3392 ac_status=$? 3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3394 test $ac_status = 0; } 3395 if { ac_try='./conftest$ac_cv_exeext' 3396 { { case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399esac 3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3401$as_echo "$ac_try_echo"; } >&5 3402 (eval "$ac_try") 2>&5 3403 ac_status=$? 3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3405 test $ac_status = 0; }; }; then 3406 cross_compiling=no 3407 else 3408 if test "$cross_compiling" = maybe; then 3409 cross_compiling=yes 3410 else 3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3413as_fn_error $? "cannot run C compiled programs. 3414If you meant to cross compile, use \`--host'. 3415See \`config.log' for more details" "$LINENO" 5; } 3416 fi 3417 fi 3418fi 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3420$as_echo "$cross_compiling" >&6; } 3421 3422rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3423ac_clean_files=$ac_clean_files_save 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3425$as_echo_n "checking for suffix of object files... " >&6; } 3426if ${ac_cv_objext+:} false; then : 3427 $as_echo_n "(cached) " >&6 3428else 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431 3432int 3433main () 3434{ 3435 3436 ; 3437 return 0; 3438} 3439_ACEOF 3440rm -f conftest.o conftest.obj 3441if { { ac_try="$ac_compile" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3447$as_echo "$ac_try_echo"; } >&5 3448 (eval "$ac_compile") 2>&5 3449 ac_status=$? 3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3451 test $ac_status = 0; }; then : 3452 for ac_file in conftest.o conftest.obj conftest.*; do 3453 test -f "$ac_file" || continue; 3454 case $ac_file in 3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3457 break;; 3458 esac 3459done 3460else 3461 $as_echo "$as_me: failed program was:" >&5 3462sed 's/^/| /' conftest.$ac_ext >&5 3463 3464{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3466as_fn_error $? "cannot compute suffix of object files: cannot compile 3467See \`config.log' for more details" "$LINENO" 5; } 3468fi 3469rm -f conftest.$ac_cv_objext conftest.$ac_ext 3470fi 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3472$as_echo "$ac_cv_objext" >&6; } 3473OBJEXT=$ac_cv_objext 3474ac_objext=$OBJEXT 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3476$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3477if ${ac_cv_c_compiler_gnu+:} false; then : 3478 $as_echo_n "(cached) " >&6 3479else 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main () 3485{ 3486#ifndef __GNUC__ 3487 choke me 3488#endif 3489 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494if ac_fn_c_try_compile "$LINENO"; then : 3495 ac_compiler_gnu=yes 3496else 3497 ac_compiler_gnu=no 3498fi 3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3500ac_cv_c_compiler_gnu=$ac_compiler_gnu 3501 3502fi 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3504$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3505if test $ac_compiler_gnu = yes; then 3506 GCC=yes 3507else 3508 GCC= 3509fi 3510ac_test_CFLAGS=${CFLAGS+set} 3511ac_save_CFLAGS=$CFLAGS 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3513$as_echo_n "checking whether $CC accepts -g... " >&6; } 3514if ${ac_cv_prog_cc_g+:} false; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 ac_save_c_werror_flag=$ac_c_werror_flag 3518 ac_c_werror_flag=yes 3519 ac_cv_prog_cc_g=no 3520 CFLAGS="-g" 3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3522/* end confdefs.h. */ 3523 3524int 3525main () 3526{ 3527 3528 ; 3529 return 0; 3530} 3531_ACEOF 3532if ac_fn_c_try_compile "$LINENO"; then : 3533 ac_cv_prog_cc_g=yes 3534else 3535 CFLAGS="" 3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538 3539int 3540main () 3541{ 3542 3543 ; 3544 return 0; 3545} 3546_ACEOF 3547if ac_fn_c_try_compile "$LINENO"; then : 3548 3549else 3550 ac_c_werror_flag=$ac_save_c_werror_flag 3551 CFLAGS="-g" 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563if ac_fn_c_try_compile "$LINENO"; then : 3564 ac_cv_prog_cc_g=yes 3565fi 3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3567fi 3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3569fi 3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3571 ac_c_werror_flag=$ac_save_c_werror_flag 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3574$as_echo "$ac_cv_prog_cc_g" >&6; } 3575if test "$ac_test_CFLAGS" = set; then 3576 CFLAGS=$ac_save_CFLAGS 3577elif test $ac_cv_prog_cc_g = yes; then 3578 if test "$GCC" = yes; then 3579 CFLAGS="-g -O2" 3580 else 3581 CFLAGS="-g" 3582 fi 3583else 3584 if test "$GCC" = yes; then 3585 CFLAGS="-O2" 3586 else 3587 CFLAGS= 3588 fi 3589fi 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3591$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3592if ${ac_cv_prog_cc_c89+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 ac_cv_prog_cc_c89=no 3596ac_save_CC=$CC 3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599#include <stdarg.h> 3600#include <stdio.h> 3601struct stat; 3602/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3603struct buf { int x; }; 3604FILE * (*rcsopen) (struct buf *, struct stat *, int); 3605static char *e (p, i) 3606 char **p; 3607 int i; 3608{ 3609 return p[i]; 3610} 3611static char *f (char * (*g) (char **, int), char **p, ...) 3612{ 3613 char *s; 3614 va_list v; 3615 va_start (v,p); 3616 s = g (p, va_arg (v,int)); 3617 va_end (v); 3618 return s; 3619} 3620 3621/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3622 function prototypes and stuff, but not '\xHH' hex character constants. 3623 These don't provoke an error unfortunately, instead are silently treated 3624 as 'x'. The following induces an error, until -std is added to get 3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3626 array size at least. It's necessary to write '\x00'==0 to get something 3627 that's true only with -std. */ 3628int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3629 3630/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3631 inside strings and character constants. */ 3632#define FOO(x) 'x' 3633int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3634 3635int test (int i, double x); 3636struct s1 {int (*f) (int a);}; 3637struct s2 {int (*f) (double a);}; 3638int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3639int argc; 3640char **argv; 3641int 3642main () 3643{ 3644return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3651do 3652 CC="$ac_save_CC $ac_arg" 3653 if ac_fn_c_try_compile "$LINENO"; then : 3654 ac_cv_prog_cc_c89=$ac_arg 3655fi 3656rm -f core conftest.err conftest.$ac_objext 3657 test "x$ac_cv_prog_cc_c89" != "xno" && break 3658done 3659rm -f conftest.$ac_ext 3660CC=$ac_save_CC 3661 3662fi 3663# AC_CACHE_VAL 3664case "x$ac_cv_prog_cc_c89" in 3665 x) 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3667$as_echo "none needed" >&6; } ;; 3668 xno) 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3670$as_echo "unsupported" >&6; } ;; 3671 *) 3672 CC="$CC $ac_cv_prog_cc_c89" 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3674$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3675esac 3676if test "x$ac_cv_prog_cc_c89" != xno; then : 3677 3678fi 3679 3680ac_ext=c 3681ac_cpp='$CPP $CPPFLAGS' 3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3684ac_compiler_gnu=$ac_cv_c_compiler_gnu 3685 3686ac_ext=c 3687ac_cpp='$CPP $CPPFLAGS' 3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3690ac_compiler_gnu=$ac_cv_c_compiler_gnu 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3692$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3693if ${am_cv_prog_cc_c_o+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695else 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707 # Make sure it works both with $CC and with simple cc. 3708 # Following AC_PROG_CC_C_O, we do the test twice because some 3709 # compilers refuse to overwrite an existing .o file with -o, 3710 # though they will create one. 3711 am_cv_prog_cc_c_o=yes 3712 for am_i in 1 2; do 3713 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3714 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3715 ac_status=$? 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3717 (exit $ac_status); } \ 3718 && test -f conftest2.$ac_objext; then 3719 : OK 3720 else 3721 am_cv_prog_cc_c_o=no 3722 break 3723 fi 3724 done 3725 rm -f core conftest* 3726 unset am_i 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3729$as_echo "$am_cv_prog_cc_c_o" >&6; } 3730if test "$am_cv_prog_cc_c_o" != yes; then 3731 # Losing compiler, so override with the script. 3732 # FIXME: It is wrong to rewrite CC. 3733 # But if we don't then we get into trouble of one sort or another. 3734 # A longer-term fix would be to have automake use am__CC in this case, 3735 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3736 CC="$am_aux_dir/compile $CC" 3737fi 3738ac_ext=c 3739ac_cpp='$CPP $CPPFLAGS' 3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_c_compiler_gnu 3743 3744 3745depcc="$CC" am_compiler_list= 3746 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3748$as_echo_n "checking dependency style of $depcc... " >&6; } 3749if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3753 # We make a subdir and do the tests there. Otherwise we can end up 3754 # making bogus files that we don't know about and never remove. For 3755 # instance it was reported that on HP-UX the gcc test will end up 3756 # making a dummy file named 'D' -- because '-MD' means "put the output 3757 # in D". 3758 rm -rf conftest.dir 3759 mkdir conftest.dir 3760 # Copy depcomp to subdir because otherwise we won't find it if we're 3761 # using a relative directory. 3762 cp "$am_depcomp" conftest.dir 3763 cd conftest.dir 3764 # We will build objects and dependencies in a subdirectory because 3765 # it helps to detect inapplicable dependency modes. For instance 3766 # both Tru64's cc and ICC support -MD to output dependencies as a 3767 # side effect of compilation, but ICC will put the dependencies in 3768 # the current directory while Tru64 will put them in the object 3769 # directory. 3770 mkdir sub 3771 3772 am_cv_CC_dependencies_compiler_type=none 3773 if test "$am_compiler_list" = ""; then 3774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3775 fi 3776 am__universal=false 3777 case " $depcc " in #( 3778 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3779 esac 3780 3781 for depmode in $am_compiler_list; do 3782 # Setup a source with many dependencies, because some compilers 3783 # like to wrap large dependency lists on column 80 (with \), and 3784 # we should not choose a depcomp mode which is confused by this. 3785 # 3786 # We need to recreate these files for each test, as the compiler may 3787 # overwrite some of them when testing with obscure command lines. 3788 # This happens at least with the AIX C compiler. 3789 : > sub/conftest.c 3790 for i in 1 2 3 4 5 6; do 3791 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3792 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3793 # Solaris 10 /bin/sh. 3794 echo '/* dummy */' > sub/conftst$i.h 3795 done 3796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3797 3798 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3799 # mode. It turns out that the SunPro C++ compiler does not properly 3800 # handle '-M -o', and we need to detect this. Also, some Intel 3801 # versions had trouble with output in subdirs. 3802 am__obj=sub/conftest.${OBJEXT-o} 3803 am__minus_obj="-o $am__obj" 3804 case $depmode in 3805 gcc) 3806 # This depmode causes a compiler race in universal mode. 3807 test "$am__universal" = false || continue 3808 ;; 3809 nosideeffect) 3810 # After this tag, mechanisms are not by side-effect, so they'll 3811 # only be used when explicitly requested. 3812 if test "x$enable_dependency_tracking" = xyes; then 3813 continue 3814 else 3815 break 3816 fi 3817 ;; 3818 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3819 # This compiler won't grok '-c -o', but also, the minuso test has 3820 # not run yet. These depmodes are late enough in the game, and 3821 # so weak that their functioning should not be impacted. 3822 am__obj=conftest.${OBJEXT-o} 3823 am__minus_obj= 3824 ;; 3825 none) break ;; 3826 esac 3827 if depmode=$depmode \ 3828 source=sub/conftest.c object=$am__obj \ 3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3831 >/dev/null 2>conftest.err && 3832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3836 # icc doesn't choke on unknown options, it will just issue warnings 3837 # or remarks (even with -Werror). So we grep stderr for any message 3838 # that says an option was ignored or not supported. 3839 # When given -MP, icc 7.0 and 7.1 complain thusly: 3840 # icc: Command line warning: ignoring option '-M'; no argument required 3841 # The diagnosis changed in icc 8.0: 3842 # icc: Command line remark: option '-MP' not supported 3843 if (grep 'ignoring option' conftest.err || 3844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3845 am_cv_CC_dependencies_compiler_type=$depmode 3846 break 3847 fi 3848 fi 3849 done 3850 3851 cd .. 3852 rm -rf conftest.dir 3853else 3854 am_cv_CC_dependencies_compiler_type=none 3855fi 3856 3857fi 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3859$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3860CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3861 3862 if 3863 test "x$enable_dependency_tracking" != xno \ 3864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3865 am__fastdepCC_TRUE= 3866 am__fastdepCC_FALSE='#' 3867else 3868 am__fastdepCC_TRUE='#' 3869 am__fastdepCC_FALSE= 3870fi 3871 3872 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3874$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3875if ${ac_cv_prog_cc_c99+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 ac_cv_prog_cc_c99=no 3879ac_save_CC=$CC 3880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3881/* end confdefs.h. */ 3882#include <stdarg.h> 3883#include <stdbool.h> 3884#include <stdlib.h> 3885#include <wchar.h> 3886#include <stdio.h> 3887 3888// Check varargs macros. These examples are taken from C99 6.10.3.5. 3889#define debug(...) fprintf (stderr, __VA_ARGS__) 3890#define showlist(...) puts (#__VA_ARGS__) 3891#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3892static void 3893test_varargs_macros (void) 3894{ 3895 int x = 1234; 3896 int y = 5678; 3897 debug ("Flag"); 3898 debug ("X = %d\n", x); 3899 showlist (The first, second, and third items.); 3900 report (x>y, "x is %d but y is %d", x, y); 3901} 3902 3903// Check long long types. 3904#define BIG64 18446744073709551615ull 3905#define BIG32 4294967295ul 3906#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3907#if !BIG_OK 3908 your preprocessor is broken; 3909#endif 3910#if BIG_OK 3911#else 3912 your preprocessor is broken; 3913#endif 3914static long long int bignum = -9223372036854775807LL; 3915static unsigned long long int ubignum = BIG64; 3916 3917struct incomplete_array 3918{ 3919 int datasize; 3920 double data[]; 3921}; 3922 3923struct named_init { 3924 int number; 3925 const wchar_t *name; 3926 double average; 3927}; 3928 3929typedef const char *ccp; 3930 3931static inline int 3932test_restrict (ccp restrict text) 3933{ 3934 // See if C++-style comments work. 3935 // Iterate through items via the restricted pointer. 3936 // Also check for declarations in for loops. 3937 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3938 continue; 3939 return 0; 3940} 3941 3942// Check varargs and va_copy. 3943static void 3944test_varargs (const char *format, ...) 3945{ 3946 va_list args; 3947 va_start (args, format); 3948 va_list args_copy; 3949 va_copy (args_copy, args); 3950 3951 const char *str; 3952 int number; 3953 float fnumber; 3954 3955 while (*format) 3956 { 3957 switch (*format++) 3958 { 3959 case 's': // string 3960 str = va_arg (args_copy, const char *); 3961 break; 3962 case 'd': // int 3963 number = va_arg (args_copy, int); 3964 break; 3965 case 'f': // float 3966 fnumber = va_arg (args_copy, double); 3967 break; 3968 default: 3969 break; 3970 } 3971 } 3972 va_end (args_copy); 3973 va_end (args); 3974} 3975 3976int 3977main () 3978{ 3979 3980 // Check bool. 3981 _Bool success = false; 3982 3983 // Check restrict. 3984 if (test_restrict ("String literal") == 0) 3985 success = true; 3986 char *restrict newvar = "Another string"; 3987 3988 // Check varargs. 3989 test_varargs ("s, d' f .", "string", 65, 34.234); 3990 test_varargs_macros (); 3991 3992 // Check flexible array members. 3993 struct incomplete_array *ia = 3994 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3995 ia->datasize = 10; 3996 for (int i = 0; i < ia->datasize; ++i) 3997 ia->data[i] = i * 1.234; 3998 3999 // Check named initializers. 4000 struct named_init ni = { 4001 .number = 34, 4002 .name = L"Test wide string", 4003 .average = 543.34343, 4004 }; 4005 4006 ni.number = 58; 4007 4008 int dynamic_array[ni.number]; 4009 dynamic_array[ni.number - 1] = 543; 4010 4011 // work around unused variable warnings 4012 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4013 || dynamic_array[ni.number - 1] != 543); 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4020do 4021 CC="$ac_save_CC $ac_arg" 4022 if ac_fn_c_try_compile "$LINENO"; then : 4023 ac_cv_prog_cc_c99=$ac_arg 4024fi 4025rm -f core conftest.err conftest.$ac_objext 4026 test "x$ac_cv_prog_cc_c99" != "xno" && break 4027done 4028rm -f conftest.$ac_ext 4029CC=$ac_save_CC 4030 4031fi 4032# AC_CACHE_VAL 4033case "x$ac_cv_prog_cc_c99" in 4034 x) 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4036$as_echo "none needed" >&6; } ;; 4037 xno) 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4039$as_echo "unsupported" >&6; } ;; 4040 *) 4041 CC="$CC $ac_cv_prog_cc_c99" 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4043$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4044esac 4045if test "x$ac_cv_prog_cc_c99" != xno; then : 4046 4047fi 4048 4049 4050 4051ac_ext=c 4052ac_cpp='$CPP $CPPFLAGS' 4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4057$as_echo_n "checking how to run the C preprocessor... " >&6; } 4058# On Suns, sometimes $CPP names a directory. 4059if test -n "$CPP" && test -d "$CPP"; then 4060 CPP= 4061fi 4062if test -z "$CPP"; then 4063 if ${ac_cv_prog_CPP+:} false; then : 4064 $as_echo_n "(cached) " >&6 4065else 4066 # Double quotes because CPP needs to be expanded 4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4068 do 4069 ac_preproc_ok=false 4070for ac_c_preproc_warn_flag in '' yes 4071do 4072 # Use a header file that comes with gcc, so configuring glibc 4073 # with a fresh cross-compiler works. 4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4075 # <limits.h> exists even on freestanding compilers. 4076 # On the NeXT, cc -E runs the code through the compiler's parser, 4077 # not just through cpp. "Syntax error" is here to catch this case. 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080#ifdef __STDC__ 4081# include <limits.h> 4082#else 4083# include <assert.h> 4084#endif 4085 Syntax error 4086_ACEOF 4087if ac_fn_c_try_cpp "$LINENO"; then : 4088 4089else 4090 # Broken: fails on valid input. 4091continue 4092fi 4093rm -f conftest.err conftest.i conftest.$ac_ext 4094 4095 # OK, works on sane cases. Now check whether nonexistent headers 4096 # can be detected and how. 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#include <ac_nonexistent.h> 4100_ACEOF 4101if ac_fn_c_try_cpp "$LINENO"; then : 4102 # Broken: success on invalid input. 4103continue 4104else 4105 # Passes both tests. 4106ac_preproc_ok=: 4107break 4108fi 4109rm -f conftest.err conftest.i conftest.$ac_ext 4110 4111done 4112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4113rm -f conftest.i conftest.err conftest.$ac_ext 4114if $ac_preproc_ok; then : 4115 break 4116fi 4117 4118 done 4119 ac_cv_prog_CPP=$CPP 4120 4121fi 4122 CPP=$ac_cv_prog_CPP 4123else 4124 ac_cv_prog_CPP=$CPP 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4127$as_echo "$CPP" >&6; } 4128ac_preproc_ok=false 4129for ac_c_preproc_warn_flag in '' yes 4130do 4131 # Use a header file that comes with gcc, so configuring glibc 4132 # with a fresh cross-compiler works. 4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4134 # <limits.h> exists even on freestanding compilers. 4135 # On the NeXT, cc -E runs the code through the compiler's parser, 4136 # not just through cpp. "Syntax error" is here to catch this case. 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#ifdef __STDC__ 4140# include <limits.h> 4141#else 4142# include <assert.h> 4143#endif 4144 Syntax error 4145_ACEOF 4146if ac_fn_c_try_cpp "$LINENO"; then : 4147 4148else 4149 # Broken: fails on valid input. 4150continue 4151fi 4152rm -f conftest.err conftest.i conftest.$ac_ext 4153 4154 # OK, works on sane cases. Now check whether nonexistent headers 4155 # can be detected and how. 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158#include <ac_nonexistent.h> 4159_ACEOF 4160if ac_fn_c_try_cpp "$LINENO"; then : 4161 # Broken: success on invalid input. 4162continue 4163else 4164 # Passes both tests. 4165ac_preproc_ok=: 4166break 4167fi 4168rm -f conftest.err conftest.i conftest.$ac_ext 4169 4170done 4171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4172rm -f conftest.i conftest.err conftest.$ac_ext 4173if $ac_preproc_ok; then : 4174 4175else 4176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4178as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4179See \`config.log' for more details" "$LINENO" 5; } 4180fi 4181 4182ac_ext=c 4183ac_cpp='$CPP $CPPFLAGS' 4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4186ac_compiler_gnu=$ac_cv_c_compiler_gnu 4187 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4190$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4191if ${ac_cv_path_GREP+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 if test -z "$GREP"; then 4195 ac_path_GREP_found=false 4196 # Loop through the user's path and test for each of PROGNAME-LIST 4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4199do 4200 IFS=$as_save_IFS 4201 test -z "$as_dir" && as_dir=. 4202 for ac_prog in grep ggrep; do 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4205 as_fn_executable_p "$ac_path_GREP" || continue 4206# Check for GNU ac_path_GREP and select it if it is found. 4207 # Check for GNU $ac_path_GREP 4208case `"$ac_path_GREP" --version 2>&1` in 4209*GNU*) 4210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4211*) 4212 ac_count=0 4213 $as_echo_n 0123456789 >"conftest.in" 4214 while : 4215 do 4216 cat "conftest.in" "conftest.in" >"conftest.tmp" 4217 mv "conftest.tmp" "conftest.in" 4218 cp "conftest.in" "conftest.nl" 4219 $as_echo 'GREP' >> "conftest.nl" 4220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4222 as_fn_arith $ac_count + 1 && ac_count=$as_val 4223 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4224 # Best one so far, save it but keep looking for a better one 4225 ac_cv_path_GREP="$ac_path_GREP" 4226 ac_path_GREP_max=$ac_count 4227 fi 4228 # 10*(2^10) chars as input seems more than enough 4229 test $ac_count -gt 10 && break 4230 done 4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4232esac 4233 4234 $ac_path_GREP_found && break 3 4235 done 4236 done 4237 done 4238IFS=$as_save_IFS 4239 if test -z "$ac_cv_path_GREP"; then 4240 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4241 fi 4242else 4243 ac_cv_path_GREP=$GREP 4244fi 4245 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4248$as_echo "$ac_cv_path_GREP" >&6; } 4249 GREP="$ac_cv_path_GREP" 4250 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4253$as_echo_n "checking for egrep... " >&6; } 4254if ${ac_cv_path_EGREP+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4258 then ac_cv_path_EGREP="$GREP -E" 4259 else 4260 if test -z "$EGREP"; then 4261 ac_path_EGREP_found=false 4262 # Loop through the user's path and test for each of PROGNAME-LIST 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_prog in egrep; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4271 as_fn_executable_p "$ac_path_EGREP" || continue 4272# Check for GNU ac_path_EGREP and select it if it is found. 4273 # Check for GNU $ac_path_EGREP 4274case `"$ac_path_EGREP" --version 2>&1` in 4275*GNU*) 4276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4277*) 4278 ac_count=0 4279 $as_echo_n 0123456789 >"conftest.in" 4280 while : 4281 do 4282 cat "conftest.in" "conftest.in" >"conftest.tmp" 4283 mv "conftest.tmp" "conftest.in" 4284 cp "conftest.in" "conftest.nl" 4285 $as_echo 'EGREP' >> "conftest.nl" 4286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4288 as_fn_arith $ac_count + 1 && ac_count=$as_val 4289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4290 # Best one so far, save it but keep looking for a better one 4291 ac_cv_path_EGREP="$ac_path_EGREP" 4292 ac_path_EGREP_max=$ac_count 4293 fi 4294 # 10*(2^10) chars as input seems more than enough 4295 test $ac_count -gt 10 && break 4296 done 4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4298esac 4299 4300 $ac_path_EGREP_found && break 3 4301 done 4302 done 4303 done 4304IFS=$as_save_IFS 4305 if test -z "$ac_cv_path_EGREP"; then 4306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4307 fi 4308else 4309 ac_cv_path_EGREP=$EGREP 4310fi 4311 4312 fi 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4315$as_echo "$ac_cv_path_EGREP" >&6; } 4316 EGREP="$ac_cv_path_EGREP" 4317 4318 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4320$as_echo_n "checking for ANSI C header files... " >&6; } 4321if ${ac_cv_header_stdc+:} false; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4325/* end confdefs.h. */ 4326#include <stdlib.h> 4327#include <stdarg.h> 4328#include <string.h> 4329#include <float.h> 4330 4331int 4332main () 4333{ 4334 4335 ; 4336 return 0; 4337} 4338_ACEOF 4339if ac_fn_c_try_compile "$LINENO"; then : 4340 ac_cv_header_stdc=yes 4341else 4342 ac_cv_header_stdc=no 4343fi 4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4345 4346if test $ac_cv_header_stdc = yes; then 4347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350#include <string.h> 4351 4352_ACEOF 4353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4354 $EGREP "memchr" >/dev/null 2>&1; then : 4355 4356else 4357 ac_cv_header_stdc=no 4358fi 4359rm -f conftest* 4360 4361fi 4362 4363if test $ac_cv_header_stdc = yes; then 4364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4366/* end confdefs.h. */ 4367#include <stdlib.h> 4368 4369_ACEOF 4370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4371 $EGREP "free" >/dev/null 2>&1; then : 4372 4373else 4374 ac_cv_header_stdc=no 4375fi 4376rm -f conftest* 4377 4378fi 4379 4380if test $ac_cv_header_stdc = yes; then 4381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4382 if test "$cross_compiling" = yes; then : 4383 : 4384else 4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4386/* end confdefs.h. */ 4387#include <ctype.h> 4388#include <stdlib.h> 4389#if ((' ' & 0x0FF) == 0x020) 4390# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4391# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4392#else 4393# define ISLOWER(c) \ 4394 (('a' <= (c) && (c) <= 'i') \ 4395 || ('j' <= (c) && (c) <= 'r') \ 4396 || ('s' <= (c) && (c) <= 'z')) 4397# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4398#endif 4399 4400#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4401int 4402main () 4403{ 4404 int i; 4405 for (i = 0; i < 256; i++) 4406 if (XOR (islower (i), ISLOWER (i)) 4407 || toupper (i) != TOUPPER (i)) 4408 return 2; 4409 return 0; 4410} 4411_ACEOF 4412if ac_fn_c_try_run "$LINENO"; then : 4413 4414else 4415 ac_cv_header_stdc=no 4416fi 4417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4418 conftest.$ac_objext conftest.beam conftest.$ac_ext 4419fi 4420 4421fi 4422fi 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4424$as_echo "$ac_cv_header_stdc" >&6; } 4425if test $ac_cv_header_stdc = yes; then 4426 4427$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4428 4429fi 4430 4431# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4433 inttypes.h stdint.h unistd.h 4434do : 4435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4436ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4437" 4438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4439 cat >>confdefs.h <<_ACEOF 4440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4441_ACEOF 4442 4443fi 4444 4445done 4446 4447 4448 4449 4450 4451 4452ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4453if test "x$ac_cv_have_decl___clang__" = xyes; then : 4454 CLANGCC="yes" 4455else 4456 CLANGCC="no" 4457fi 4458 4459ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4460if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4461 INTELCC="yes" 4462else 4463 INTELCC="no" 4464fi 4465 4466ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4467if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4468 SUNCC="yes" 4469else 4470 SUNCC="no" 4471fi 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4482 if test -n "$ac_tool_prefix"; then 4483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4484set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4486$as_echo_n "checking for $ac_word... " >&6; } 4487if ${ac_cv_path_PKG_CONFIG+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 case $PKG_CONFIG in 4491 [\\/]* | ?:[\\/]*) 4492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4493 ;; 4494 *) 4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_exec_ext in '' $ac_executable_extensions; do 4501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4504 break 2 4505 fi 4506done 4507 done 4508IFS=$as_save_IFS 4509 4510 ;; 4511esac 4512fi 4513PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4514if test -n "$PKG_CONFIG"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4516$as_echo "$PKG_CONFIG" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 4523fi 4524if test -z "$ac_cv_path_PKG_CONFIG"; then 4525 ac_pt_PKG_CONFIG=$PKG_CONFIG 4526 # Extract the first word of "pkg-config", so it can be a program name with args. 4527set dummy pkg-config; ac_word=$2 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4529$as_echo_n "checking for $ac_word... " >&6; } 4530if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 case $ac_pt_PKG_CONFIG in 4534 [\\/]* | ?:[\\/]*) 4535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4536 ;; 4537 *) 4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4539for as_dir in $PATH 4540do 4541 IFS=$as_save_IFS 4542 test -z "$as_dir" && as_dir=. 4543 for ac_exec_ext in '' $ac_executable_extensions; do 4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4547 break 2 4548 fi 4549done 4550 done 4551IFS=$as_save_IFS 4552 4553 ;; 4554esac 4555fi 4556ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4557if test -n "$ac_pt_PKG_CONFIG"; then 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4559$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4560else 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4562$as_echo "no" >&6; } 4563fi 4564 4565 if test "x$ac_pt_PKG_CONFIG" = x; then 4566 PKG_CONFIG="" 4567 else 4568 case $cross_compiling:$ac_tool_warned in 4569yes:) 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4572ac_tool_warned=yes ;; 4573esac 4574 PKG_CONFIG=$ac_pt_PKG_CONFIG 4575 fi 4576else 4577 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4578fi 4579 4580fi 4581if test -n "$PKG_CONFIG"; then 4582 _pkg_min_version=0.9.0 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4584$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4585 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4587$as_echo "yes" >&6; } 4588 else 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590$as_echo "no" >&6; } 4591 PKG_CONFIG="" 4592 fi 4593fi 4594# Make sure we can run config.sub. 4595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4597 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4599$as_echo_n "checking build system type... " >&6; } 4600if ${ac_cv_build+:} false; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 ac_build_alias=$build_alias 4604test "x$ac_build_alias" = x && 4605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4606test "x$ac_build_alias" = x && 4607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4610 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4613$as_echo "$ac_cv_build" >&6; } 4614case $ac_cv_build in 4615*-*-*) ;; 4616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4617esac 4618build=$ac_cv_build 4619ac_save_IFS=$IFS; IFS='-' 4620set x $ac_cv_build 4621shift 4622build_cpu=$1 4623build_vendor=$2 4624shift; shift 4625# Remember, the first character of IFS is used to create $*, 4626# except with old shells: 4627build_os=$* 4628IFS=$ac_save_IFS 4629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4630 4631 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4633$as_echo_n "checking host system type... " >&6; } 4634if ${ac_cv_host+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 if test "x$host_alias" = x; then 4638 ac_cv_host=$ac_cv_build 4639else 4640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4642fi 4643 4644fi 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4646$as_echo "$ac_cv_host" >&6; } 4647case $ac_cv_host in 4648*-*-*) ;; 4649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4650esac 4651host=$ac_cv_host 4652ac_save_IFS=$IFS; IFS='-' 4653set x $ac_cv_host 4654shift 4655host_cpu=$1 4656host_vendor=$2 4657shift; shift 4658# Remember, the first character of IFS is used to create $*, 4659# except with old shells: 4660host_os=$* 4661IFS=$ac_save_IFS 4662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4663 4664 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4666$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4667if ${ac_cv_path_SED+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4671 for ac_i in 1 2 3 4 5 6 7; do 4672 ac_script="$ac_script$as_nl$ac_script" 4673 done 4674 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4675 { ac_script=; unset ac_script;} 4676 if test -z "$SED"; then 4677 ac_path_SED_found=false 4678 # Loop through the user's path and test for each of PROGNAME-LIST 4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680for as_dir in $PATH 4681do 4682 IFS=$as_save_IFS 4683 test -z "$as_dir" && as_dir=. 4684 for ac_prog in sed gsed; do 4685 for ac_exec_ext in '' $ac_executable_extensions; do 4686 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4687 as_fn_executable_p "$ac_path_SED" || continue 4688# Check for GNU ac_path_SED and select it if it is found. 4689 # Check for GNU $ac_path_SED 4690case `"$ac_path_SED" --version 2>&1` in 4691*GNU*) 4692 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4693*) 4694 ac_count=0 4695 $as_echo_n 0123456789 >"conftest.in" 4696 while : 4697 do 4698 cat "conftest.in" "conftest.in" >"conftest.tmp" 4699 mv "conftest.tmp" "conftest.in" 4700 cp "conftest.in" "conftest.nl" 4701 $as_echo '' >> "conftest.nl" 4702 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4704 as_fn_arith $ac_count + 1 && ac_count=$as_val 4705 if test $ac_count -gt ${ac_path_SED_max-0}; then 4706 # Best one so far, save it but keep looking for a better one 4707 ac_cv_path_SED="$ac_path_SED" 4708 ac_path_SED_max=$ac_count 4709 fi 4710 # 10*(2^10) chars as input seems more than enough 4711 test $ac_count -gt 10 && break 4712 done 4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4714esac 4715 4716 $ac_path_SED_found && break 3 4717 done 4718 done 4719 done 4720IFS=$as_save_IFS 4721 if test -z "$ac_cv_path_SED"; then 4722 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4723 fi 4724else 4725 ac_cv_path_SED=$SED 4726fi 4727 4728fi 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4730$as_echo "$ac_cv_path_SED" >&6; } 4731 SED="$ac_cv_path_SED" 4732 rm -f conftest.sed 4733 4734 4735 4736 4737 4738 4739# Check whether --enable-selective-werror was given. 4740if test "${enable_selective_werror+set}" = set; then : 4741 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4742else 4743 SELECTIVE_WERROR=yes 4744fi 4745 4746 4747 4748 4749 4750# -v is too short to test reliably with XORG_TESTSET_CFLAG 4751if test "x$SUNCC" = "xyes"; then 4752 BASE_CFLAGS="-v" 4753else 4754 BASE_CFLAGS="" 4755fi 4756 4757# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771xorg_testset_save_CFLAGS="$CFLAGS" 4772 4773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4781/* end confdefs.h. */ 4782int i; 4783_ACEOF 4784if ac_fn_c_try_compile "$LINENO"; then : 4785 xorg_cv_cc_flag_unknown_warning_option=yes 4786else 4787 xorg_cv_cc_flag_unknown_warning_option=no 4788fi 4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4794 CFLAGS="$xorg_testset_save_CFLAGS" 4795fi 4796 4797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4800 fi 4801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4805 $as_echo_n "(cached) " >&6 4806else 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4808/* end confdefs.h. */ 4809int i; 4810_ACEOF 4811if ac_fn_c_try_compile "$LINENO"; then : 4812 xorg_cv_cc_flag_unused_command_line_argument=yes 4813else 4814 xorg_cv_cc_flag_unused_command_line_argument=no 4815fi 4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4817fi 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4821 CFLAGS="$xorg_testset_save_CFLAGS" 4822fi 4823 4824found="no" 4825 4826 if test $found = "no" ; then 4827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4829 fi 4830 4831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4833 fi 4834 4835 CFLAGS="$CFLAGS -Wall" 4836 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4838$as_echo_n "checking if $CC supports -Wall... " >&6; } 4839 cacheid=xorg_cv_cc_flag__Wall 4840 if eval \${$cacheid+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844/* end confdefs.h. */ 4845int i; 4846int 4847main () 4848{ 4849 4850 ; 4851 return 0; 4852} 4853_ACEOF 4854if ac_fn_c_try_link "$LINENO"; then : 4855 eval $cacheid=yes 4856else 4857 eval $cacheid=no 4858fi 4859rm -f core conftest.err conftest.$ac_objext \ 4860 conftest$ac_exeext conftest.$ac_ext 4861fi 4862 4863 4864 CFLAGS="$xorg_testset_save_CFLAGS" 4865 4866 eval supported=\$$cacheid 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4868$as_echo "$supported" >&6; } 4869 if test "$supported" = "yes" ; then 4870 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4871 found="yes" 4872 fi 4873 fi 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889xorg_testset_save_CFLAGS="$CFLAGS" 4890 4891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900int i; 4901_ACEOF 4902if ac_fn_c_try_compile "$LINENO"; then : 4903 xorg_cv_cc_flag_unknown_warning_option=yes 4904else 4905 xorg_cv_cc_flag_unknown_warning_option=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4912 CFLAGS="$xorg_testset_save_CFLAGS" 4913fi 4914 4915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4918 fi 4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4926/* end confdefs.h. */ 4927int i; 4928_ACEOF 4929if ac_fn_c_try_compile "$LINENO"; then : 4930 xorg_cv_cc_flag_unused_command_line_argument=yes 4931else 4932 xorg_cv_cc_flag_unused_command_line_argument=no 4933fi 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4939 CFLAGS="$xorg_testset_save_CFLAGS" 4940fi 4941 4942found="no" 4943 4944 if test $found = "no" ; then 4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 fi 4948 4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4951 fi 4952 4953 CFLAGS="$CFLAGS -Wpointer-arith" 4954 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4956$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4957 cacheid=xorg_cv_cc_flag__Wpointer_arith 4958 if eval \${$cacheid+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963int i; 4964int 4965main () 4966{ 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972if ac_fn_c_try_link "$LINENO"; then : 4973 eval $cacheid=yes 4974else 4975 eval $cacheid=no 4976fi 4977rm -f core conftest.err conftest.$ac_objext \ 4978 conftest$ac_exeext conftest.$ac_ext 4979fi 4980 4981 4982 CFLAGS="$xorg_testset_save_CFLAGS" 4983 4984 eval supported=\$$cacheid 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4986$as_echo "$supported" >&6; } 4987 if test "$supported" = "yes" ; then 4988 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4989 found="yes" 4990 fi 4991 fi 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007xorg_testset_save_CFLAGS="$CFLAGS" 5008 5009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018int i; 5019_ACEOF 5020if ac_fn_c_try_compile "$LINENO"; then : 5021 xorg_cv_cc_flag_unknown_warning_option=yes 5022else 5023 xorg_cv_cc_flag_unknown_warning_option=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 fi 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046_ACEOF 5047if ac_fn_c_try_compile "$LINENO"; then : 5048 xorg_cv_cc_flag_unused_command_line_argument=yes 5049else 5050 xorg_cv_cc_flag_unused_command_line_argument=no 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5053fi 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058fi 5059 5060found="no" 5061 5062 if test $found = "no" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 5067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5069 fi 5070 5071 CFLAGS="$CFLAGS -Wmissing-declarations" 5072 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5074$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5075 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5076 if eval \${$cacheid+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081int i; 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_c_try_link "$LINENO"; then : 5091 eval $cacheid=yes 5092else 5093 eval $cacheid=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext \ 5096 conftest$ac_exeext conftest.$ac_ext 5097fi 5098 5099 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101 5102 eval supported=\$$cacheid 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5104$as_echo "$supported" >&6; } 5105 if test "$supported" = "yes" ; then 5106 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5107 found="yes" 5108 fi 5109 fi 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125xorg_testset_save_CFLAGS="$CFLAGS" 5126 5127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO"; then : 5139 xorg_cv_cc_flag_unknown_warning_option=yes 5140else 5141 xorg_cv_cc_flag_unknown_warning_option=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149fi 5150 5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO"; then : 5166 xorg_cv_cc_flag_unused_command_line_argument=yes 5167else 5168 xorg_cv_cc_flag_unused_command_line_argument=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176fi 5177 5178found="no" 5179 5180 if test $found = "no" ; then 5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 5185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 fi 5188 5189 CFLAGS="$CFLAGS -Wformat=2" 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5192$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5193 cacheid=xorg_cv_cc_flag__Wformat_2 5194 if eval \${$cacheid+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200int 5201main () 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_link "$LINENO"; then : 5209 eval $cacheid=yes 5210else 5211 eval $cacheid=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext \ 5214 conftest$ac_exeext conftest.$ac_ext 5215fi 5216 5217 5218 CFLAGS="$xorg_testset_save_CFLAGS" 5219 5220 eval supported=\$$cacheid 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5222$as_echo "$supported" >&6; } 5223 if test "$supported" = "yes" ; then 5224 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5225 found="yes" 5226 fi 5227 fi 5228 5229 if test $found = "no" ; then 5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 fi 5233 5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5236 fi 5237 5238 CFLAGS="$CFLAGS -Wformat" 5239 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5241$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5242 cacheid=xorg_cv_cc_flag__Wformat 5243 if eval \${$cacheid+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245else 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247/* end confdefs.h. */ 5248int i; 5249int 5250main () 5251{ 5252 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257if ac_fn_c_try_link "$LINENO"; then : 5258 eval $cacheid=yes 5259else 5260 eval $cacheid=no 5261fi 5262rm -f core conftest.err conftest.$ac_objext \ 5263 conftest$ac_exeext conftest.$ac_ext 5264fi 5265 5266 5267 CFLAGS="$xorg_testset_save_CFLAGS" 5268 5269 eval supported=\$$cacheid 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5271$as_echo "$supported" >&6; } 5272 if test "$supported" = "yes" ; then 5273 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5274 found="yes" 5275 fi 5276 fi 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294xorg_testset_save_CFLAGS="$CFLAGS" 5295 5296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305int i; 5306_ACEOF 5307if ac_fn_c_try_compile "$LINENO"; then : 5308 xorg_cv_cc_flag_unknown_warning_option=yes 5309else 5310 xorg_cv_cc_flag_unknown_warning_option=no 5311fi 5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5313fi 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5317 CFLAGS="$xorg_testset_save_CFLAGS" 5318fi 5319 5320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5323 fi 5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332int i; 5333_ACEOF 5334if ac_fn_c_try_compile "$LINENO"; then : 5335 xorg_cv_cc_flag_unused_command_line_argument=yes 5336else 5337 xorg_cv_cc_flag_unused_command_line_argument=no 5338fi 5339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5340fi 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5344 CFLAGS="$xorg_testset_save_CFLAGS" 5345fi 5346 5347found="no" 5348 5349 if test $found = "no" ; then 5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5352 fi 5353 5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5356 fi 5357 5358 CFLAGS="$CFLAGS -Wstrict-prototypes" 5359 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5361$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5362 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5363 if eval \${$cacheid+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368int i; 5369int 5370main () 5371{ 5372 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377if ac_fn_c_try_link "$LINENO"; then : 5378 eval $cacheid=yes 5379else 5380 eval $cacheid=no 5381fi 5382rm -f core conftest.err conftest.$ac_objext \ 5383 conftest$ac_exeext conftest.$ac_ext 5384fi 5385 5386 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 5389 eval supported=\$$cacheid 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5391$as_echo "$supported" >&6; } 5392 if test "$supported" = "yes" ; then 5393 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5394 found="yes" 5395 fi 5396 fi 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412xorg_testset_save_CFLAGS="$CFLAGS" 5413 5414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO"; then : 5426 xorg_cv_cc_flag_unknown_warning_option=yes 5427else 5428 xorg_cv_cc_flag_unknown_warning_option=no 5429fi 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5435 CFLAGS="$xorg_testset_save_CFLAGS" 5436fi 5437 5438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 fi 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450int i; 5451_ACEOF 5452if ac_fn_c_try_compile "$LINENO"; then : 5453 xorg_cv_cc_flag_unused_command_line_argument=yes 5454else 5455 xorg_cv_cc_flag_unused_command_line_argument=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463fi 5464 5465found="no" 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -Wmissing-prototypes" 5477 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5479$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5480 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5481 if eval \${$cacheid+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_link "$LINENO"; then : 5496 eval $cacheid=yes 5497else 5498 eval $cacheid=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext \ 5501 conftest$ac_exeext conftest.$ac_ext 5502fi 5503 5504 5505 CFLAGS="$xorg_testset_save_CFLAGS" 5506 5507 eval supported=\$$cacheid 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5509$as_echo "$supported" >&6; } 5510 if test "$supported" = "yes" ; then 5511 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5512 found="yes" 5513 fi 5514 fi 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530xorg_testset_save_CFLAGS="$CFLAGS" 5531 5532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541int i; 5542_ACEOF 5543if ac_fn_c_try_compile "$LINENO"; then : 5544 xorg_cv_cc_flag_unknown_warning_option=yes 5545else 5546 xorg_cv_cc_flag_unknown_warning_option=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549fi 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554fi 5555 5556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567/* end confdefs.h. */ 5568int i; 5569_ACEOF 5570if ac_fn_c_try_compile "$LINENO"; then : 5571 xorg_cv_cc_flag_unused_command_line_argument=yes 5572else 5573 xorg_cv_cc_flag_unused_command_line_argument=no 5574fi 5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5576fi 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5580 CFLAGS="$xorg_testset_save_CFLAGS" 5581fi 5582 5583found="no" 5584 5585 if test $found = "no" ; then 5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 fi 5589 5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5592 fi 5593 5594 CFLAGS="$CFLAGS -Wnested-externs" 5595 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5597$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5598 cacheid=xorg_cv_cc_flag__Wnested_externs 5599 if eval \${$cacheid+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604int i; 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_link "$LINENO"; then : 5614 eval $cacheid=yes 5615else 5616 eval $cacheid=no 5617fi 5618rm -f core conftest.err conftest.$ac_objext \ 5619 conftest$ac_exeext conftest.$ac_ext 5620fi 5621 5622 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624 5625 eval supported=\$$cacheid 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5627$as_echo "$supported" >&6; } 5628 if test "$supported" = "yes" ; then 5629 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5630 found="yes" 5631 fi 5632 fi 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648xorg_testset_save_CFLAGS="$CFLAGS" 5649 5650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659int i; 5660_ACEOF 5661if ac_fn_c_try_compile "$LINENO"; then : 5662 xorg_cv_cc_flag_unknown_warning_option=yes 5663else 5664 xorg_cv_cc_flag_unknown_warning_option=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5667fi 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672fi 5673 5674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5677 fi 5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO"; then : 5689 xorg_cv_cc_flag_unused_command_line_argument=yes 5690else 5691 xorg_cv_cc_flag_unused_command_line_argument=no 5692fi 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5694fi 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5698 CFLAGS="$xorg_testset_save_CFLAGS" 5699fi 5700 5701found="no" 5702 5703 if test $found = "no" ; then 5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 fi 5707 5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5710 fi 5711 5712 CFLAGS="$CFLAGS -Wbad-function-cast" 5713 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5715$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5716 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5717 if eval \${$cacheid+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723int 5724main () 5725{ 5726 5727 ; 5728 return 0; 5729} 5730_ACEOF 5731if ac_fn_c_try_link "$LINENO"; then : 5732 eval $cacheid=yes 5733else 5734 eval $cacheid=no 5735fi 5736rm -f core conftest.err conftest.$ac_objext \ 5737 conftest$ac_exeext conftest.$ac_ext 5738fi 5739 5740 5741 CFLAGS="$xorg_testset_save_CFLAGS" 5742 5743 eval supported=\$$cacheid 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5745$as_echo "$supported" >&6; } 5746 if test "$supported" = "yes" ; then 5747 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5748 found="yes" 5749 fi 5750 fi 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766xorg_testset_save_CFLAGS="$CFLAGS" 5767 5768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777int i; 5778_ACEOF 5779if ac_fn_c_try_compile "$LINENO"; then : 5780 xorg_cv_cc_flag_unknown_warning_option=yes 5781else 5782 xorg_cv_cc_flag_unknown_warning_option=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5785fi 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790fi 5791 5792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5795 fi 5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804int i; 5805_ACEOF 5806if ac_fn_c_try_compile "$LINENO"; then : 5807 xorg_cv_cc_flag_unused_command_line_argument=yes 5808else 5809 xorg_cv_cc_flag_unused_command_line_argument=no 5810fi 5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5812fi 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5816 CFLAGS="$xorg_testset_save_CFLAGS" 5817fi 5818 5819found="no" 5820 5821 if test $found = "no" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 5826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5828 fi 5829 5830 CFLAGS="$CFLAGS -Wold-style-definition" 5831 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5833$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5834 cacheid=xorg_cv_cc_flag__Wold_style_definition 5835 if eval \${$cacheid+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5839/* end confdefs.h. */ 5840int i; 5841int 5842main () 5843{ 5844 5845 ; 5846 return 0; 5847} 5848_ACEOF 5849if ac_fn_c_try_link "$LINENO"; then : 5850 eval $cacheid=yes 5851else 5852 eval $cacheid=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext \ 5855 conftest$ac_exeext conftest.$ac_ext 5856fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863$as_echo "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5866 found="yes" 5867 fi 5868 fi 5869 5870 if test $found = "no" ; then 5871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5873 fi 5874 5875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5877 fi 5878 5879 CFLAGS="$CFLAGS -fd" 5880 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5882$as_echo_n "checking if $CC supports -fd... " >&6; } 5883 cacheid=xorg_cv_cc_flag__fd 5884 if eval \${$cacheid+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889int i; 5890int 5891main () 5892{ 5893 5894 ; 5895 return 0; 5896} 5897_ACEOF 5898if ac_fn_c_try_link "$LINENO"; then : 5899 eval $cacheid=yes 5900else 5901 eval $cacheid=no 5902fi 5903rm -f core conftest.err conftest.$ac_objext \ 5904 conftest$ac_exeext conftest.$ac_ext 5905fi 5906 5907 5908 CFLAGS="$xorg_testset_save_CFLAGS" 5909 5910 eval supported=\$$cacheid 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5912$as_echo "$supported" >&6; } 5913 if test "$supported" = "yes" ; then 5914 BASE_CFLAGS="$BASE_CFLAGS -fd" 5915 found="yes" 5916 fi 5917 fi 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933xorg_testset_save_CFLAGS="$CFLAGS" 5934 5935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5943/* end confdefs.h. */ 5944int i; 5945_ACEOF 5946if ac_fn_c_try_compile "$LINENO"; then : 5947 xorg_cv_cc_flag_unknown_warning_option=yes 5948else 5949 xorg_cv_cc_flag_unknown_warning_option=no 5950fi 5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5952fi 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5956 CFLAGS="$xorg_testset_save_CFLAGS" 5957fi 5958 5959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5962 fi 5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971int i; 5972_ACEOF 5973if ac_fn_c_try_compile "$LINENO"; then : 5974 xorg_cv_cc_flag_unused_command_line_argument=yes 5975else 5976 xorg_cv_cc_flag_unused_command_line_argument=no 5977fi 5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5979fi 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984fi 5985 5986found="no" 5987 5988 if test $found = "no" ; then 5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 fi 5992 5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5995 fi 5996 5997 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5998 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6000$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6001 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6002 if eval \${$cacheid+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007int i; 6008int 6009main () 6010{ 6011 6012 ; 6013 return 0; 6014} 6015_ACEOF 6016if ac_fn_c_try_link "$LINENO"; then : 6017 eval $cacheid=yes 6018else 6019 eval $cacheid=no 6020fi 6021rm -f core conftest.err conftest.$ac_objext \ 6022 conftest$ac_exeext conftest.$ac_ext 6023fi 6024 6025 6026 CFLAGS="$xorg_testset_save_CFLAGS" 6027 6028 eval supported=\$$cacheid 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6030$as_echo "$supported" >&6; } 6031 if test "$supported" = "yes" ; then 6032 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6033 found="yes" 6034 fi 6035 fi 6036 6037 6038 6039 6040 6041# This chunk adds additional warnings that could catch undesired effects. 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055xorg_testset_save_CFLAGS="$CFLAGS" 6056 6057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6062 $as_echo_n "(cached) " >&6 6063else 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066int i; 6067_ACEOF 6068if ac_fn_c_try_compile "$LINENO"; then : 6069 xorg_cv_cc_flag_unknown_warning_option=yes 6070else 6071 xorg_cv_cc_flag_unknown_warning_option=no 6072fi 6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6074fi 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6078 CFLAGS="$xorg_testset_save_CFLAGS" 6079fi 6080 6081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6084 fi 6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094_ACEOF 6095if ac_fn_c_try_compile "$LINENO"; then : 6096 xorg_cv_cc_flag_unused_command_line_argument=yes 6097else 6098 xorg_cv_cc_flag_unused_command_line_argument=no 6099fi 6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101fi 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6105 CFLAGS="$xorg_testset_save_CFLAGS" 6106fi 6107 6108found="no" 6109 6110 if test $found = "no" ; then 6111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 fi 6114 6115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6117 fi 6118 6119 CFLAGS="$CFLAGS -Wunused" 6120 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6122$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6123 cacheid=xorg_cv_cc_flag__Wunused 6124 if eval \${$cacheid+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130int 6131main () 6132{ 6133 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_link "$LINENO"; then : 6139 eval $cacheid=yes 6140else 6141 eval $cacheid=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext \ 6144 conftest$ac_exeext conftest.$ac_ext 6145fi 6146 6147 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149 6150 eval supported=\$$cacheid 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6152$as_echo "$supported" >&6; } 6153 if test "$supported" = "yes" ; then 6154 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6155 found="yes" 6156 fi 6157 fi 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173xorg_testset_save_CFLAGS="$CFLAGS" 6174 6175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184int i; 6185_ACEOF 6186if ac_fn_c_try_compile "$LINENO"; then : 6187 xorg_cv_cc_flag_unknown_warning_option=yes 6188else 6189 xorg_cv_cc_flag_unknown_warning_option=no 6190fi 6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6192fi 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6196 CFLAGS="$xorg_testset_save_CFLAGS" 6197fi 6198 6199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6202 fi 6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211int i; 6212_ACEOF 6213if ac_fn_c_try_compile "$LINENO"; then : 6214 xorg_cv_cc_flag_unused_command_line_argument=yes 6215else 6216 xorg_cv_cc_flag_unused_command_line_argument=no 6217fi 6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6219fi 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6223 CFLAGS="$xorg_testset_save_CFLAGS" 6224fi 6225 6226found="no" 6227 6228 if test $found = "no" ; then 6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 fi 6232 6233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6235 fi 6236 6237 CFLAGS="$CFLAGS -Wuninitialized" 6238 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6240$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6241 cacheid=xorg_cv_cc_flag__Wuninitialized 6242 if eval \${$cacheid+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248int 6249main () 6250{ 6251 6252 ; 6253 return 0; 6254} 6255_ACEOF 6256if ac_fn_c_try_link "$LINENO"; then : 6257 eval $cacheid=yes 6258else 6259 eval $cacheid=no 6260fi 6261rm -f core conftest.err conftest.$ac_objext \ 6262 conftest$ac_exeext conftest.$ac_ext 6263fi 6264 6265 6266 CFLAGS="$xorg_testset_save_CFLAGS" 6267 6268 eval supported=\$$cacheid 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6270$as_echo "$supported" >&6; } 6271 if test "$supported" = "yes" ; then 6272 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6273 found="yes" 6274 fi 6275 fi 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291xorg_testset_save_CFLAGS="$CFLAGS" 6292 6293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301/* end confdefs.h. */ 6302int i; 6303_ACEOF 6304if ac_fn_c_try_compile "$LINENO"; then : 6305 xorg_cv_cc_flag_unknown_warning_option=yes 6306else 6307 xorg_cv_cc_flag_unknown_warning_option=no 6308fi 6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6314 CFLAGS="$xorg_testset_save_CFLAGS" 6315fi 6316 6317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 fi 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329int i; 6330_ACEOF 6331if ac_fn_c_try_compile "$LINENO"; then : 6332 xorg_cv_cc_flag_unused_command_line_argument=yes 6333else 6334 xorg_cv_cc_flag_unused_command_line_argument=no 6335fi 6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6341 CFLAGS="$xorg_testset_save_CFLAGS" 6342fi 6343 6344found="no" 6345 6346 if test $found = "no" ; then 6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 fi 6350 6351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6353 fi 6354 6355 CFLAGS="$CFLAGS -Wshadow" 6356 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6358$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6359 cacheid=xorg_cv_cc_flag__Wshadow 6360 if eval \${$cacheid+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365int i; 6366int 6367main () 6368{ 6369 6370 ; 6371 return 0; 6372} 6373_ACEOF 6374if ac_fn_c_try_link "$LINENO"; then : 6375 eval $cacheid=yes 6376else 6377 eval $cacheid=no 6378fi 6379rm -f core conftest.err conftest.$ac_objext \ 6380 conftest$ac_exeext conftest.$ac_ext 6381fi 6382 6383 6384 CFLAGS="$xorg_testset_save_CFLAGS" 6385 6386 eval supported=\$$cacheid 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6388$as_echo "$supported" >&6; } 6389 if test "$supported" = "yes" ; then 6390 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6391 found="yes" 6392 fi 6393 fi 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409xorg_testset_save_CFLAGS="$CFLAGS" 6410 6411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420int i; 6421_ACEOF 6422if ac_fn_c_try_compile "$LINENO"; then : 6423 xorg_cv_cc_flag_unknown_warning_option=yes 6424else 6425 xorg_cv_cc_flag_unknown_warning_option=no 6426fi 6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6428fi 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6432 CFLAGS="$xorg_testset_save_CFLAGS" 6433fi 6434 6435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6438 fi 6439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446/* end confdefs.h. */ 6447int i; 6448_ACEOF 6449if ac_fn_c_try_compile "$LINENO"; then : 6450 xorg_cv_cc_flag_unused_command_line_argument=yes 6451else 6452 xorg_cv_cc_flag_unused_command_line_argument=no 6453fi 6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6455fi 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6459 CFLAGS="$xorg_testset_save_CFLAGS" 6460fi 6461 6462found="no" 6463 6464 if test $found = "no" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6471 fi 6472 6473 CFLAGS="$CFLAGS -Wmissing-noreturn" 6474 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6476$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6477 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6478 if eval \${$cacheid+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484int 6485main () 6486{ 6487 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492if ac_fn_c_try_link "$LINENO"; then : 6493 eval $cacheid=yes 6494else 6495 eval $cacheid=no 6496fi 6497rm -f core conftest.err conftest.$ac_objext \ 6498 conftest$ac_exeext conftest.$ac_ext 6499fi 6500 6501 6502 CFLAGS="$xorg_testset_save_CFLAGS" 6503 6504 eval supported=\$$cacheid 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6506$as_echo "$supported" >&6; } 6507 if test "$supported" = "yes" ; then 6508 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6509 found="yes" 6510 fi 6511 fi 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527xorg_testset_save_CFLAGS="$CFLAGS" 6528 6529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6534 $as_echo_n "(cached) " >&6 6535else 6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537/* end confdefs.h. */ 6538int i; 6539_ACEOF 6540if ac_fn_c_try_compile "$LINENO"; then : 6541 xorg_cv_cc_flag_unknown_warning_option=yes 6542else 6543 xorg_cv_cc_flag_unknown_warning_option=no 6544fi 6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6550 CFLAGS="$xorg_testset_save_CFLAGS" 6551fi 6552 6553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6556 fi 6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6564/* end confdefs.h. */ 6565int i; 6566_ACEOF 6567if ac_fn_c_try_compile "$LINENO"; then : 6568 xorg_cv_cc_flag_unused_command_line_argument=yes 6569else 6570 xorg_cv_cc_flag_unused_command_line_argument=no 6571fi 6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6573fi 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6577 CFLAGS="$xorg_testset_save_CFLAGS" 6578fi 6579 6580found="no" 6581 6582 if test $found = "no" ; then 6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6585 fi 6586 6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6589 fi 6590 6591 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6592 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6594$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6595 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6596 if eval \${$cacheid+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601int i; 6602int 6603main () 6604{ 6605 6606 ; 6607 return 0; 6608} 6609_ACEOF 6610if ac_fn_c_try_link "$LINENO"; then : 6611 eval $cacheid=yes 6612else 6613 eval $cacheid=no 6614fi 6615rm -f core conftest.err conftest.$ac_objext \ 6616 conftest$ac_exeext conftest.$ac_ext 6617fi 6618 6619 6620 CFLAGS="$xorg_testset_save_CFLAGS" 6621 6622 eval supported=\$$cacheid 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6624$as_echo "$supported" >&6; } 6625 if test "$supported" = "yes" ; then 6626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6627 found="yes" 6628 fi 6629 fi 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645xorg_testset_save_CFLAGS="$CFLAGS" 6646 6647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6652 $as_echo_n "(cached) " >&6 6653else 6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656int i; 6657_ACEOF 6658if ac_fn_c_try_compile "$LINENO"; then : 6659 xorg_cv_cc_flag_unknown_warning_option=yes 6660else 6661 xorg_cv_cc_flag_unknown_warning_option=no 6662fi 6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6664fi 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6668 CFLAGS="$xorg_testset_save_CFLAGS" 6669fi 6670 6671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6674 fi 6675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683int i; 6684_ACEOF 6685if ac_fn_c_try_compile "$LINENO"; then : 6686 xorg_cv_cc_flag_unused_command_line_argument=yes 6687else 6688 xorg_cv_cc_flag_unused_command_line_argument=no 6689fi 6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6695 CFLAGS="$xorg_testset_save_CFLAGS" 6696fi 6697 6698found="no" 6699 6700 if test $found = "no" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 6705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6707 fi 6708 6709 CFLAGS="$CFLAGS -Wredundant-decls" 6710 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6712$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6713 cacheid=xorg_cv_cc_flag__Wredundant_decls 6714 if eval \${$cacheid+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6718/* end confdefs.h. */ 6719int i; 6720int 6721main () 6722{ 6723 6724 ; 6725 return 0; 6726} 6727_ACEOF 6728if ac_fn_c_try_link "$LINENO"; then : 6729 eval $cacheid=yes 6730else 6731 eval $cacheid=no 6732fi 6733rm -f core conftest.err conftest.$ac_objext \ 6734 conftest$ac_exeext conftest.$ac_ext 6735fi 6736 6737 6738 CFLAGS="$xorg_testset_save_CFLAGS" 6739 6740 eval supported=\$$cacheid 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6742$as_echo "$supported" >&6; } 6743 if test "$supported" = "yes" ; then 6744 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6745 found="yes" 6746 fi 6747 fi 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763xorg_testset_save_CFLAGS="$CFLAGS" 6764 6765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773/* end confdefs.h. */ 6774int i; 6775_ACEOF 6776if ac_fn_c_try_compile "$LINENO"; then : 6777 xorg_cv_cc_flag_unknown_warning_option=yes 6778else 6779 xorg_cv_cc_flag_unknown_warning_option=no 6780fi 6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6782fi 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6786 CFLAGS="$xorg_testset_save_CFLAGS" 6787fi 6788 6789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6792 fi 6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800/* end confdefs.h. */ 6801int i; 6802_ACEOF 6803if ac_fn_c_try_compile "$LINENO"; then : 6804 xorg_cv_cc_flag_unused_command_line_argument=yes 6805else 6806 xorg_cv_cc_flag_unused_command_line_argument=no 6807fi 6808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6809fi 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6813 CFLAGS="$xorg_testset_save_CFLAGS" 6814fi 6815 6816found="no" 6817 6818 if test $found = "no" ; then 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 fi 6822 6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6825 fi 6826 6827 CFLAGS="$CFLAGS -Wlogical-op" 6828 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6830$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6831 cacheid=xorg_cv_cc_flag__Wlogical_op 6832 if eval \${$cacheid+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836/* end confdefs.h. */ 6837int i; 6838int 6839main () 6840{ 6841 6842 ; 6843 return 0; 6844} 6845_ACEOF 6846if ac_fn_c_try_link "$LINENO"; then : 6847 eval $cacheid=yes 6848else 6849 eval $cacheid=no 6850fi 6851rm -f core conftest.err conftest.$ac_objext \ 6852 conftest$ac_exeext conftest.$ac_ext 6853fi 6854 6855 6856 CFLAGS="$xorg_testset_save_CFLAGS" 6857 6858 eval supported=\$$cacheid 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6860$as_echo "$supported" >&6; } 6861 if test "$supported" = "yes" ; then 6862 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6863 found="yes" 6864 fi 6865 fi 6866 6867 6868 6869# These are currently disabled because they are noisy. They will be enabled 6870# in the future once the codebase is sufficiently modernized to silence 6871# them. For now, I don't want them to drown out the other warnings. 6872# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6873# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6874# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6875 6876# Turn some warnings into errors, so we don't accidently get successful builds 6877# when there are problems that should be fixed. 6878 6879if test "x$SELECTIVE_WERROR" = "xyes" ; then 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893xorg_testset_save_CFLAGS="$CFLAGS" 6894 6895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904int i; 6905_ACEOF 6906if ac_fn_c_try_compile "$LINENO"; then : 6907 xorg_cv_cc_flag_unknown_warning_option=yes 6908else 6909 xorg_cv_cc_flag_unknown_warning_option=no 6910fi 6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6916 CFLAGS="$xorg_testset_save_CFLAGS" 6917fi 6918 6919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6922 fi 6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931int i; 6932_ACEOF 6933if ac_fn_c_try_compile "$LINENO"; then : 6934 xorg_cv_cc_flag_unused_command_line_argument=yes 6935else 6936 xorg_cv_cc_flag_unused_command_line_argument=no 6937fi 6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6939fi 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944fi 6945 6946found="no" 6947 6948 if test $found = "no" ; then 6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 fi 6952 6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6955 fi 6956 6957 CFLAGS="$CFLAGS -Werror=implicit" 6958 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6960$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6961 cacheid=xorg_cv_cc_flag__Werror_implicit 6962 if eval \${$cacheid+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6966/* end confdefs.h. */ 6967int i; 6968int 6969main () 6970{ 6971 6972 ; 6973 return 0; 6974} 6975_ACEOF 6976if ac_fn_c_try_link "$LINENO"; then : 6977 eval $cacheid=yes 6978else 6979 eval $cacheid=no 6980fi 6981rm -f core conftest.err conftest.$ac_objext \ 6982 conftest$ac_exeext conftest.$ac_ext 6983fi 6984 6985 6986 CFLAGS="$xorg_testset_save_CFLAGS" 6987 6988 eval supported=\$$cacheid 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6990$as_echo "$supported" >&6; } 6991 if test "$supported" = "yes" ; then 6992 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6993 found="yes" 6994 fi 6995 fi 6996 6997 if test $found = "no" ; then 6998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7000 fi 7001 7002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7004 fi 7005 7006 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7007 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7009$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7010 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7011 if eval \${$cacheid+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016int i; 7017int 7018main () 7019{ 7020 7021 ; 7022 return 0; 7023} 7024_ACEOF 7025if ac_fn_c_try_link "$LINENO"; then : 7026 eval $cacheid=yes 7027else 7028 eval $cacheid=no 7029fi 7030rm -f core conftest.err conftest.$ac_objext \ 7031 conftest$ac_exeext conftest.$ac_ext 7032fi 7033 7034 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036 7037 eval supported=\$$cacheid 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7039$as_echo "$supported" >&6; } 7040 if test "$supported" = "yes" ; then 7041 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7042 found="yes" 7043 fi 7044 fi 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060xorg_testset_save_CFLAGS="$CFLAGS" 7061 7062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7067 $as_echo_n "(cached) " >&6 7068else 7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7070/* end confdefs.h. */ 7071int i; 7072_ACEOF 7073if ac_fn_c_try_compile "$LINENO"; then : 7074 xorg_cv_cc_flag_unknown_warning_option=yes 7075else 7076 xorg_cv_cc_flag_unknown_warning_option=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7079fi 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7083 CFLAGS="$xorg_testset_save_CFLAGS" 7084fi 7085 7086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7089 fi 7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097/* end confdefs.h. */ 7098int i; 7099_ACEOF 7100if ac_fn_c_try_compile "$LINENO"; then : 7101 xorg_cv_cc_flag_unused_command_line_argument=yes 7102else 7103 xorg_cv_cc_flag_unused_command_line_argument=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7106fi 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113found="no" 7114 7115 if test $found = "no" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122 fi 7123 7124 CFLAGS="$CFLAGS -Werror=nonnull" 7125 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7127$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7128 cacheid=xorg_cv_cc_flag__Werror_nonnull 7129 if eval \${$cacheid+:} false; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134int i; 7135int 7136main () 7137{ 7138 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143if ac_fn_c_try_link "$LINENO"; then : 7144 eval $cacheid=yes 7145else 7146 eval $cacheid=no 7147fi 7148rm -f core conftest.err conftest.$ac_objext \ 7149 conftest$ac_exeext conftest.$ac_ext 7150fi 7151 7152 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154 7155 eval supported=\$$cacheid 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7157$as_echo "$supported" >&6; } 7158 if test "$supported" = "yes" ; then 7159 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7160 found="yes" 7161 fi 7162 fi 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178xorg_testset_save_CFLAGS="$CFLAGS" 7179 7180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7188/* end confdefs.h. */ 7189int i; 7190_ACEOF 7191if ac_fn_c_try_compile "$LINENO"; then : 7192 xorg_cv_cc_flag_unknown_warning_option=yes 7193else 7194 xorg_cv_cc_flag_unknown_warning_option=no 7195fi 7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7197fi 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7201 CFLAGS="$xorg_testset_save_CFLAGS" 7202fi 7203 7204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7207 fi 7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213else 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216int i; 7217_ACEOF 7218if ac_fn_c_try_compile "$LINENO"; then : 7219 xorg_cv_cc_flag_unused_command_line_argument=yes 7220else 7221 xorg_cv_cc_flag_unused_command_line_argument=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7224fi 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229fi 7230 7231found="no" 7232 7233 if test $found = "no" ; then 7234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7236 fi 7237 7238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7240 fi 7241 7242 CFLAGS="$CFLAGS -Werror=init-self" 7243 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7245$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7246 cacheid=xorg_cv_cc_flag__Werror_init_self 7247 if eval \${$cacheid+:} false; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252int i; 7253int 7254main () 7255{ 7256 7257 ; 7258 return 0; 7259} 7260_ACEOF 7261if ac_fn_c_try_link "$LINENO"; then : 7262 eval $cacheid=yes 7263else 7264 eval $cacheid=no 7265fi 7266rm -f core conftest.err conftest.$ac_objext \ 7267 conftest$ac_exeext conftest.$ac_ext 7268fi 7269 7270 7271 CFLAGS="$xorg_testset_save_CFLAGS" 7272 7273 eval supported=\$$cacheid 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7275$as_echo "$supported" >&6; } 7276 if test "$supported" = "yes" ; then 7277 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7278 found="yes" 7279 fi 7280 fi 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296xorg_testset_save_CFLAGS="$CFLAGS" 7297 7298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307int i; 7308_ACEOF 7309if ac_fn_c_try_compile "$LINENO"; then : 7310 xorg_cv_cc_flag_unknown_warning_option=yes 7311else 7312 xorg_cv_cc_flag_unknown_warning_option=no 7313fi 7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7319 CFLAGS="$xorg_testset_save_CFLAGS" 7320fi 7321 7322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7325 fi 7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335_ACEOF 7336if ac_fn_c_try_compile "$LINENO"; then : 7337 xorg_cv_cc_flag_unused_command_line_argument=yes 7338else 7339 xorg_cv_cc_flag_unused_command_line_argument=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347fi 7348 7349found="no" 7350 7351 if test $found = "no" ; then 7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 fi 7355 7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7358 fi 7359 7360 CFLAGS="$CFLAGS -Werror=main" 7361 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7363$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7364 cacheid=xorg_cv_cc_flag__Werror_main 7365 if eval \${$cacheid+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370int i; 7371int 7372main () 7373{ 7374 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379if ac_fn_c_try_link "$LINENO"; then : 7380 eval $cacheid=yes 7381else 7382 eval $cacheid=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext \ 7385 conftest$ac_exeext conftest.$ac_ext 7386fi 7387 7388 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390 7391 eval supported=\$$cacheid 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7393$as_echo "$supported" >&6; } 7394 if test "$supported" = "yes" ; then 7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7396 found="yes" 7397 fi 7398 fi 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414xorg_testset_save_CFLAGS="$CFLAGS" 7415 7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7421 $as_echo_n "(cached) " >&6 7422else 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7424/* end confdefs.h. */ 7425int i; 7426_ACEOF 7427if ac_fn_c_try_compile "$LINENO"; then : 7428 xorg_cv_cc_flag_unknown_warning_option=yes 7429else 7430 xorg_cv_cc_flag_unknown_warning_option=no 7431fi 7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433fi 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7437 CFLAGS="$xorg_testset_save_CFLAGS" 7438fi 7439 7440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443 fi 7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453_ACEOF 7454if ac_fn_c_try_compile "$LINENO"; then : 7455 xorg_cv_cc_flag_unused_command_line_argument=yes 7456else 7457 xorg_cv_cc_flag_unused_command_line_argument=no 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467found="no" 7468 7469 if test $found = "no" ; then 7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 fi 7473 7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7476 fi 7477 7478 CFLAGS="$CFLAGS -Werror=missing-braces" 7479 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7481$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7482 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7483 if eval \${$cacheid+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7487/* end confdefs.h. */ 7488int i; 7489int 7490main () 7491{ 7492 7493 ; 7494 return 0; 7495} 7496_ACEOF 7497if ac_fn_c_try_link "$LINENO"; then : 7498 eval $cacheid=yes 7499else 7500 eval $cacheid=no 7501fi 7502rm -f core conftest.err conftest.$ac_objext \ 7503 conftest$ac_exeext conftest.$ac_ext 7504fi 7505 7506 7507 CFLAGS="$xorg_testset_save_CFLAGS" 7508 7509 eval supported=\$$cacheid 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7511$as_echo "$supported" >&6; } 7512 if test "$supported" = "yes" ; then 7513 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7514 found="yes" 7515 fi 7516 fi 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532xorg_testset_save_CFLAGS="$CFLAGS" 7533 7534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7539 $as_echo_n "(cached) " >&6 7540else 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543int i; 7544_ACEOF 7545if ac_fn_c_try_compile "$LINENO"; then : 7546 xorg_cv_cc_flag_unknown_warning_option=yes 7547else 7548 xorg_cv_cc_flag_unknown_warning_option=no 7549fi 7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556fi 7557 7558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7561 fi 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570int i; 7571_ACEOF 7572if ac_fn_c_try_compile "$LINENO"; then : 7573 xorg_cv_cc_flag_unused_command_line_argument=yes 7574else 7575 xorg_cv_cc_flag_unused_command_line_argument=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7578fi 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7582 CFLAGS="$xorg_testset_save_CFLAGS" 7583fi 7584 7585found="no" 7586 7587 if test $found = "no" ; then 7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 fi 7591 7592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7594 fi 7595 7596 CFLAGS="$CFLAGS -Werror=sequence-point" 7597 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7599$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7600 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7601 if eval \${$cacheid+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606int i; 7607int 7608main () 7609{ 7610 7611 ; 7612 return 0; 7613} 7614_ACEOF 7615if ac_fn_c_try_link "$LINENO"; then : 7616 eval $cacheid=yes 7617else 7618 eval $cacheid=no 7619fi 7620rm -f core conftest.err conftest.$ac_objext \ 7621 conftest$ac_exeext conftest.$ac_ext 7622fi 7623 7624 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626 7627 eval supported=\$$cacheid 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7629$as_echo "$supported" >&6; } 7630 if test "$supported" = "yes" ; then 7631 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7632 found="yes" 7633 fi 7634 fi 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650xorg_testset_save_CFLAGS="$CFLAGS" 7651 7652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661int i; 7662_ACEOF 7663if ac_fn_c_try_compile "$LINENO"; then : 7664 xorg_cv_cc_flag_unknown_warning_option=yes 7665else 7666 xorg_cv_cc_flag_unknown_warning_option=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674fi 7675 7676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7679 fi 7680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688int i; 7689_ACEOF 7690if ac_fn_c_try_compile "$LINENO"; then : 7691 xorg_cv_cc_flag_unused_command_line_argument=yes 7692else 7693 xorg_cv_cc_flag_unused_command_line_argument=no 7694fi 7695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7696fi 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7700 CFLAGS="$xorg_testset_save_CFLAGS" 7701fi 7702 7703found="no" 7704 7705 if test $found = "no" ; then 7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 fi 7709 7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7712 fi 7713 7714 CFLAGS="$CFLAGS -Werror=return-type" 7715 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7717$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7718 cacheid=xorg_cv_cc_flag__Werror_return_type 7719 if eval \${$cacheid+:} false; then : 7720 $as_echo_n "(cached) " >&6 7721else 7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724int i; 7725int 7726main () 7727{ 7728 7729 ; 7730 return 0; 7731} 7732_ACEOF 7733if ac_fn_c_try_link "$LINENO"; then : 7734 eval $cacheid=yes 7735else 7736 eval $cacheid=no 7737fi 7738rm -f core conftest.err conftest.$ac_objext \ 7739 conftest$ac_exeext conftest.$ac_ext 7740fi 7741 7742 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744 7745 eval supported=\$$cacheid 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7747$as_echo "$supported" >&6; } 7748 if test "$supported" = "yes" ; then 7749 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7750 found="yes" 7751 fi 7752 fi 7753 7754 if test $found = "no" ; then 7755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7757 fi 7758 7759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7761 fi 7762 7763 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7764 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7766$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7767 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7768 if eval \${$cacheid+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772/* end confdefs.h. */ 7773int i; 7774int 7775main () 7776{ 7777 7778 ; 7779 return 0; 7780} 7781_ACEOF 7782if ac_fn_c_try_link "$LINENO"; then : 7783 eval $cacheid=yes 7784else 7785 eval $cacheid=no 7786fi 7787rm -f core conftest.err conftest.$ac_objext \ 7788 conftest$ac_exeext conftest.$ac_ext 7789fi 7790 7791 7792 CFLAGS="$xorg_testset_save_CFLAGS" 7793 7794 eval supported=\$$cacheid 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7796$as_echo "$supported" >&6; } 7797 if test "$supported" = "yes" ; then 7798 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7799 found="yes" 7800 fi 7801 fi 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817xorg_testset_save_CFLAGS="$CFLAGS" 7818 7819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828int i; 7829_ACEOF 7830if ac_fn_c_try_compile "$LINENO"; then : 7831 xorg_cv_cc_flag_unknown_warning_option=yes 7832else 7833 xorg_cv_cc_flag_unknown_warning_option=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836fi 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841fi 7842 7843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7846 fi 7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855int i; 7856_ACEOF 7857if ac_fn_c_try_compile "$LINENO"; then : 7858 xorg_cv_cc_flag_unused_command_line_argument=yes 7859else 7860 xorg_cv_cc_flag_unused_command_line_argument=no 7861fi 7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7863fi 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7867 CFLAGS="$xorg_testset_save_CFLAGS" 7868fi 7869 7870found="no" 7871 7872 if test $found = "no" ; then 7873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7875 fi 7876 7877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7879 fi 7880 7881 CFLAGS="$CFLAGS -Werror=trigraphs" 7882 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7884$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7885 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7886 if eval \${$cacheid+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892int 7893main () 7894{ 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900if ac_fn_c_try_link "$LINENO"; then : 7901 eval $cacheid=yes 7902else 7903 eval $cacheid=no 7904fi 7905rm -f core conftest.err conftest.$ac_objext \ 7906 conftest$ac_exeext conftest.$ac_ext 7907fi 7908 7909 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911 7912 eval supported=\$$cacheid 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7914$as_echo "$supported" >&6; } 7915 if test "$supported" = "yes" ; then 7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7917 found="yes" 7918 fi 7919 fi 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935xorg_testset_save_CFLAGS="$CFLAGS" 7936 7937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945/* end confdefs.h. */ 7946int i; 7947_ACEOF 7948if ac_fn_c_try_compile "$LINENO"; then : 7949 xorg_cv_cc_flag_unknown_warning_option=yes 7950else 7951 xorg_cv_cc_flag_unknown_warning_option=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7954fi 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO"; then : 7976 xorg_cv_cc_flag_unused_command_line_argument=yes 7977else 7978 xorg_cv_cc_flag_unused_command_line_argument=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988found="no" 7989 7990 if test $found = "no" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7997 fi 7998 7999 CFLAGS="$CFLAGS -Werror=array-bounds" 8000 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8002$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8003 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8004 if eval \${$cacheid+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010int 8011main () 8012{ 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018if ac_fn_c_try_link "$LINENO"; then : 8019 eval $cacheid=yes 8020else 8021 eval $cacheid=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext \ 8024 conftest$ac_exeext conftest.$ac_ext 8025fi 8026 8027 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029 8030 eval supported=\$$cacheid 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8032$as_echo "$supported" >&6; } 8033 if test "$supported" = "yes" ; then 8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8035 found="yes" 8036 fi 8037 fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053xorg_testset_save_CFLAGS="$CFLAGS" 8054 8055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064int i; 8065_ACEOF 8066if ac_fn_c_try_compile "$LINENO"; then : 8067 xorg_cv_cc_flag_unknown_warning_option=yes 8068else 8069 xorg_cv_cc_flag_unknown_warning_option=no 8070fi 8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8072fi 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8076 CFLAGS="$xorg_testset_save_CFLAGS" 8077fi 8078 8079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8082 fi 8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092_ACEOF 8093if ac_fn_c_try_compile "$LINENO"; then : 8094 xorg_cv_cc_flag_unused_command_line_argument=yes 8095else 8096 xorg_cv_cc_flag_unused_command_line_argument=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104fi 8105 8106found="no" 8107 8108 if test $found = "no" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8115 fi 8116 8117 CFLAGS="$CFLAGS -Werror=write-strings" 8118 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8120$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8121 cacheid=xorg_cv_cc_flag__Werror_write_strings 8122 if eval \${$cacheid+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127int i; 8128int 8129main () 8130{ 8131 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_link "$LINENO"; then : 8137 eval $cacheid=yes 8138else 8139 eval $cacheid=no 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143fi 8144 8145 8146 CFLAGS="$xorg_testset_save_CFLAGS" 8147 8148 eval supported=\$$cacheid 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8150$as_echo "$supported" >&6; } 8151 if test "$supported" = "yes" ; then 8152 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8153 found="yes" 8154 fi 8155 fi 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171xorg_testset_save_CFLAGS="$CFLAGS" 8172 8173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182int i; 8183_ACEOF 8184if ac_fn_c_try_compile "$LINENO"; then : 8185 xorg_cv_cc_flag_unknown_warning_option=yes 8186else 8187 xorg_cv_cc_flag_unknown_warning_option=no 8188fi 8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8190fi 8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8194 CFLAGS="$xorg_testset_save_CFLAGS" 8195fi 8196 8197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8200 fi 8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208/* end confdefs.h. */ 8209int i; 8210_ACEOF 8211if ac_fn_c_try_compile "$LINENO"; then : 8212 xorg_cv_cc_flag_unused_command_line_argument=yes 8213else 8214 xorg_cv_cc_flag_unused_command_line_argument=no 8215fi 8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8217fi 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8221 CFLAGS="$xorg_testset_save_CFLAGS" 8222fi 8223 8224found="no" 8225 8226 if test $found = "no" ; then 8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8229 fi 8230 8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8233 fi 8234 8235 CFLAGS="$CFLAGS -Werror=address" 8236 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8238$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8239 cacheid=xorg_cv_cc_flag__Werror_address 8240 if eval \${$cacheid+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244/* end confdefs.h. */ 8245int i; 8246int 8247main () 8248{ 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_link "$LINENO"; then : 8255 eval $cacheid=yes 8256else 8257 eval $cacheid=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext \ 8260 conftest$ac_exeext conftest.$ac_ext 8261fi 8262 8263 8264 CFLAGS="$xorg_testset_save_CFLAGS" 8265 8266 eval supported=\$$cacheid 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8268$as_echo "$supported" >&6; } 8269 if test "$supported" = "yes" ; then 8270 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8271 found="yes" 8272 fi 8273 fi 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289xorg_testset_save_CFLAGS="$CFLAGS" 8290 8291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO"; then : 8303 xorg_cv_cc_flag_unknown_warning_option=yes 8304else 8305 xorg_cv_cc_flag_unknown_warning_option=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8308fi 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313fi 8314 8315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8318 fi 8319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8323 $as_echo_n "(cached) " >&6 8324else 8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8326/* end confdefs.h. */ 8327int i; 8328_ACEOF 8329if ac_fn_c_try_compile "$LINENO"; then : 8330 xorg_cv_cc_flag_unused_command_line_argument=yes 8331else 8332 xorg_cv_cc_flag_unused_command_line_argument=no 8333fi 8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8335fi 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8339 CFLAGS="$xorg_testset_save_CFLAGS" 8340fi 8341 8342found="no" 8343 8344 if test $found = "no" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 8349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8351 fi 8352 8353 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8354 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8356$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8357 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8358 if eval \${$cacheid+:} false; then : 8359 $as_echo_n "(cached) " >&6 8360else 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363int i; 8364int 8365main () 8366{ 8367 8368 ; 8369 return 0; 8370} 8371_ACEOF 8372if ac_fn_c_try_link "$LINENO"; then : 8373 eval $cacheid=yes 8374else 8375 eval $cacheid=no 8376fi 8377rm -f core conftest.err conftest.$ac_objext \ 8378 conftest$ac_exeext conftest.$ac_ext 8379fi 8380 8381 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383 8384 eval supported=\$$cacheid 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8386$as_echo "$supported" >&6; } 8387 if test "$supported" = "yes" ; then 8388 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8389 found="yes" 8390 fi 8391 fi 8392 8393 if test $found = "no" ; then 8394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8396 fi 8397 8398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8400 fi 8401 8402 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8405$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8406 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8407 if eval \${$cacheid+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412int i; 8413int 8414main () 8415{ 8416 8417 ; 8418 return 0; 8419} 8420_ACEOF 8421if ac_fn_c_try_link "$LINENO"; then : 8422 eval $cacheid=yes 8423else 8424 eval $cacheid=no 8425fi 8426rm -f core conftest.err conftest.$ac_objext \ 8427 conftest$ac_exeext conftest.$ac_ext 8428fi 8429 8430 8431 CFLAGS="$xorg_testset_save_CFLAGS" 8432 8433 eval supported=\$$cacheid 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8435$as_echo "$supported" >&6; } 8436 if test "$supported" = "yes" ; then 8437 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8438 found="yes" 8439 fi 8440 fi 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456xorg_testset_save_CFLAGS="$CFLAGS" 8457 8458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8466/* end confdefs.h. */ 8467int i; 8468_ACEOF 8469if ac_fn_c_try_compile "$LINENO"; then : 8470 xorg_cv_cc_flag_unknown_warning_option=yes 8471else 8472 xorg_cv_cc_flag_unknown_warning_option=no 8473fi 8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8479 CFLAGS="$xorg_testset_save_CFLAGS" 8480fi 8481 8482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8485 fi 8486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO"; then : 8497 xorg_cv_cc_flag_unused_command_line_argument=yes 8498else 8499 xorg_cv_cc_flag_unused_command_line_argument=no 8500fi 8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8506 CFLAGS="$xorg_testset_save_CFLAGS" 8507fi 8508 8509found="no" 8510 8511 if test $found = "no" ; then 8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 fi 8515 8516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8518 fi 8519 8520 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8521 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8523$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8524 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8525 if eval \${$cacheid+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530int i; 8531int 8532main () 8533{ 8534 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539if ac_fn_c_try_link "$LINENO"; then : 8540 eval $cacheid=yes 8541else 8542 eval $cacheid=no 8543fi 8544rm -f core conftest.err conftest.$ac_objext \ 8545 conftest$ac_exeext conftest.$ac_ext 8546fi 8547 8548 8549 CFLAGS="$xorg_testset_save_CFLAGS" 8550 8551 eval supported=\$$cacheid 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8553$as_echo "$supported" >&6; } 8554 if test "$supported" = "yes" ; then 8555 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8556 found="yes" 8557 fi 8558 fi 8559 8560 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8561else 8562{ $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 8563$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;} 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577xorg_testset_save_CFLAGS="$CFLAGS" 8578 8579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8584 $as_echo_n "(cached) " >&6 8585else 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588int i; 8589_ACEOF 8590if ac_fn_c_try_compile "$LINENO"; then : 8591 xorg_cv_cc_flag_unknown_warning_option=yes 8592else 8593 xorg_cv_cc_flag_unknown_warning_option=no 8594fi 8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8596fi 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8600 CFLAGS="$xorg_testset_save_CFLAGS" 8601fi 8602 8603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8606 fi 8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO"; then : 8618 xorg_cv_cc_flag_unused_command_line_argument=yes 8619else 8620 xorg_cv_cc_flag_unused_command_line_argument=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8623fi 8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628fi 8629 8630found="no" 8631 8632 if test $found = "no" ; then 8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 fi 8636 8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8639 fi 8640 8641 CFLAGS="$CFLAGS -Wimplicit" 8642 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8644$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8645 cacheid=xorg_cv_cc_flag__Wimplicit 8646 if eval \${$cacheid+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650/* end confdefs.h. */ 8651int i; 8652int 8653main () 8654{ 8655 8656 ; 8657 return 0; 8658} 8659_ACEOF 8660if ac_fn_c_try_link "$LINENO"; then : 8661 eval $cacheid=yes 8662else 8663 eval $cacheid=no 8664fi 8665rm -f core conftest.err conftest.$ac_objext \ 8666 conftest$ac_exeext conftest.$ac_ext 8667fi 8668 8669 8670 CFLAGS="$xorg_testset_save_CFLAGS" 8671 8672 eval supported=\$$cacheid 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8674$as_echo "$supported" >&6; } 8675 if test "$supported" = "yes" ; then 8676 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8677 found="yes" 8678 fi 8679 fi 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695xorg_testset_save_CFLAGS="$CFLAGS" 8696 8697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8702 $as_echo_n "(cached) " >&6 8703else 8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705/* end confdefs.h. */ 8706int i; 8707_ACEOF 8708if ac_fn_c_try_compile "$LINENO"; then : 8709 xorg_cv_cc_flag_unknown_warning_option=yes 8710else 8711 xorg_cv_cc_flag_unknown_warning_option=no 8712fi 8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8714fi 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719fi 8720 8721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8724 fi 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8732/* end confdefs.h. */ 8733int i; 8734_ACEOF 8735if ac_fn_c_try_compile "$LINENO"; then : 8736 xorg_cv_cc_flag_unused_command_line_argument=yes 8737else 8738 xorg_cv_cc_flag_unused_command_line_argument=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8741fi 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746fi 8747 8748found="no" 8749 8750 if test $found = "no" ; then 8751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8753 fi 8754 8755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8757 fi 8758 8759 CFLAGS="$CFLAGS -Wnonnull" 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8762$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8763 cacheid=xorg_cv_cc_flag__Wnonnull 8764 if eval \${$cacheid+:} false; then : 8765 $as_echo_n "(cached) " >&6 8766else 8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768/* end confdefs.h. */ 8769int i; 8770int 8771main () 8772{ 8773 8774 ; 8775 return 0; 8776} 8777_ACEOF 8778if ac_fn_c_try_link "$LINENO"; then : 8779 eval $cacheid=yes 8780else 8781 eval $cacheid=no 8782fi 8783rm -f core conftest.err conftest.$ac_objext \ 8784 conftest$ac_exeext conftest.$ac_ext 8785fi 8786 8787 8788 CFLAGS="$xorg_testset_save_CFLAGS" 8789 8790 eval supported=\$$cacheid 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8792$as_echo "$supported" >&6; } 8793 if test "$supported" = "yes" ; then 8794 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8795 found="yes" 8796 fi 8797 fi 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813xorg_testset_save_CFLAGS="$CFLAGS" 8814 8815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8823/* end confdefs.h. */ 8824int i; 8825_ACEOF 8826if ac_fn_c_try_compile "$LINENO"; then : 8827 xorg_cv_cc_flag_unknown_warning_option=yes 8828else 8829 xorg_cv_cc_flag_unknown_warning_option=no 8830fi 8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8832fi 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8836 CFLAGS="$xorg_testset_save_CFLAGS" 8837fi 8838 8839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8842 fi 8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8850/* end confdefs.h. */ 8851int i; 8852_ACEOF 8853if ac_fn_c_try_compile "$LINENO"; then : 8854 xorg_cv_cc_flag_unused_command_line_argument=yes 8855else 8856 xorg_cv_cc_flag_unused_command_line_argument=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8863 CFLAGS="$xorg_testset_save_CFLAGS" 8864fi 8865 8866found="no" 8867 8868 if test $found = "no" ; then 8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 fi 8872 8873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8875 fi 8876 8877 CFLAGS="$CFLAGS -Winit-self" 8878 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8880$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8881 cacheid=xorg_cv_cc_flag__Winit_self 8882 if eval \${$cacheid+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886/* end confdefs.h. */ 8887int i; 8888int 8889main () 8890{ 8891 8892 ; 8893 return 0; 8894} 8895_ACEOF 8896if ac_fn_c_try_link "$LINENO"; then : 8897 eval $cacheid=yes 8898else 8899 eval $cacheid=no 8900fi 8901rm -f core conftest.err conftest.$ac_objext \ 8902 conftest$ac_exeext conftest.$ac_ext 8903fi 8904 8905 8906 CFLAGS="$xorg_testset_save_CFLAGS" 8907 8908 eval supported=\$$cacheid 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8910$as_echo "$supported" >&6; } 8911 if test "$supported" = "yes" ; then 8912 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8913 found="yes" 8914 fi 8915 fi 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931xorg_testset_save_CFLAGS="$CFLAGS" 8932 8933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8938 $as_echo_n "(cached) " >&6 8939else 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942int i; 8943_ACEOF 8944if ac_fn_c_try_compile "$LINENO"; then : 8945 xorg_cv_cc_flag_unknown_warning_option=yes 8946else 8947 xorg_cv_cc_flag_unknown_warning_option=no 8948fi 8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8950fi 8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8954 CFLAGS="$xorg_testset_save_CFLAGS" 8955fi 8956 8957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8960 fi 8961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8965 $as_echo_n "(cached) " >&6 8966else 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968/* end confdefs.h. */ 8969int i; 8970_ACEOF 8971if ac_fn_c_try_compile "$LINENO"; then : 8972 xorg_cv_cc_flag_unused_command_line_argument=yes 8973else 8974 xorg_cv_cc_flag_unused_command_line_argument=no 8975fi 8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8977fi 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982fi 8983 8984found="no" 8985 8986 if test $found = "no" ; then 8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 fi 8990 8991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8993 fi 8994 8995 CFLAGS="$CFLAGS -Wmain" 8996 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8998$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8999 cacheid=xorg_cv_cc_flag__Wmain 9000 if eval \${$cacheid+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005int i; 9006int 9007main () 9008{ 9009 9010 ; 9011 return 0; 9012} 9013_ACEOF 9014if ac_fn_c_try_link "$LINENO"; then : 9015 eval $cacheid=yes 9016else 9017 eval $cacheid=no 9018fi 9019rm -f core conftest.err conftest.$ac_objext \ 9020 conftest$ac_exeext conftest.$ac_ext 9021fi 9022 9023 9024 CFLAGS="$xorg_testset_save_CFLAGS" 9025 9026 eval supported=\$$cacheid 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9028$as_echo "$supported" >&6; } 9029 if test "$supported" = "yes" ; then 9030 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9031 found="yes" 9032 fi 9033 fi 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049xorg_testset_save_CFLAGS="$CFLAGS" 9050 9051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9059/* end confdefs.h. */ 9060int i; 9061_ACEOF 9062if ac_fn_c_try_compile "$LINENO"; then : 9063 xorg_cv_cc_flag_unknown_warning_option=yes 9064else 9065 xorg_cv_cc_flag_unknown_warning_option=no 9066fi 9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9068fi 9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9072 CFLAGS="$xorg_testset_save_CFLAGS" 9073fi 9074 9075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9078 fi 9079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087int i; 9088_ACEOF 9089if ac_fn_c_try_compile "$LINENO"; then : 9090 xorg_cv_cc_flag_unused_command_line_argument=yes 9091else 9092 xorg_cv_cc_flag_unused_command_line_argument=no 9093fi 9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9095fi 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9099 CFLAGS="$xorg_testset_save_CFLAGS" 9100fi 9101 9102found="no" 9103 9104 if test $found = "no" ; then 9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9107 fi 9108 9109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9111 fi 9112 9113 CFLAGS="$CFLAGS -Wmissing-braces" 9114 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9116$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9117 cacheid=xorg_cv_cc_flag__Wmissing_braces 9118 if eval \${$cacheid+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122/* end confdefs.h. */ 9123int i; 9124int 9125main () 9126{ 9127 9128 ; 9129 return 0; 9130} 9131_ACEOF 9132if ac_fn_c_try_link "$LINENO"; then : 9133 eval $cacheid=yes 9134else 9135 eval $cacheid=no 9136fi 9137rm -f core conftest.err conftest.$ac_objext \ 9138 conftest$ac_exeext conftest.$ac_ext 9139fi 9140 9141 9142 CFLAGS="$xorg_testset_save_CFLAGS" 9143 9144 eval supported=\$$cacheid 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9146$as_echo "$supported" >&6; } 9147 if test "$supported" = "yes" ; then 9148 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9149 found="yes" 9150 fi 9151 fi 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167xorg_testset_save_CFLAGS="$CFLAGS" 9168 9169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177/* end confdefs.h. */ 9178int i; 9179_ACEOF 9180if ac_fn_c_try_compile "$LINENO"; then : 9181 xorg_cv_cc_flag_unknown_warning_option=yes 9182else 9183 xorg_cv_cc_flag_unknown_warning_option=no 9184fi 9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9186fi 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9190 CFLAGS="$xorg_testset_save_CFLAGS" 9191fi 9192 9193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196 fi 9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206_ACEOF 9207if ac_fn_c_try_compile "$LINENO"; then : 9208 xorg_cv_cc_flag_unused_command_line_argument=yes 9209else 9210 xorg_cv_cc_flag_unused_command_line_argument=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9213fi 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218fi 9219 9220found="no" 9221 9222 if test $found = "no" ; then 9223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9225 fi 9226 9227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9229 fi 9230 9231 CFLAGS="$CFLAGS -Wsequence-point" 9232 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9234$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9235 cacheid=xorg_cv_cc_flag__Wsequence_point 9236 if eval \${$cacheid+:} false; then : 9237 $as_echo_n "(cached) " >&6 9238else 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240/* end confdefs.h. */ 9241int i; 9242int 9243main () 9244{ 9245 9246 ; 9247 return 0; 9248} 9249_ACEOF 9250if ac_fn_c_try_link "$LINENO"; then : 9251 eval $cacheid=yes 9252else 9253 eval $cacheid=no 9254fi 9255rm -f core conftest.err conftest.$ac_objext \ 9256 conftest$ac_exeext conftest.$ac_ext 9257fi 9258 9259 9260 CFLAGS="$xorg_testset_save_CFLAGS" 9261 9262 eval supported=\$$cacheid 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9264$as_echo "$supported" >&6; } 9265 if test "$supported" = "yes" ; then 9266 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9267 found="yes" 9268 fi 9269 fi 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285xorg_testset_save_CFLAGS="$CFLAGS" 9286 9287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9292 $as_echo_n "(cached) " >&6 9293else 9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9295/* end confdefs.h. */ 9296int i; 9297_ACEOF 9298if ac_fn_c_try_compile "$LINENO"; then : 9299 xorg_cv_cc_flag_unknown_warning_option=yes 9300else 9301 xorg_cv_cc_flag_unknown_warning_option=no 9302fi 9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9304fi 9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9308 CFLAGS="$xorg_testset_save_CFLAGS" 9309fi 9310 9311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9314 fi 9315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320else 9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322/* end confdefs.h. */ 9323int i; 9324_ACEOF 9325if ac_fn_c_try_compile "$LINENO"; then : 9326 xorg_cv_cc_flag_unused_command_line_argument=yes 9327else 9328 xorg_cv_cc_flag_unused_command_line_argument=no 9329fi 9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9331fi 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9335 CFLAGS="$xorg_testset_save_CFLAGS" 9336fi 9337 9338found="no" 9339 9340 if test $found = "no" ; then 9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 fi 9344 9345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9347 fi 9348 9349 CFLAGS="$CFLAGS -Wreturn-type" 9350 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9352$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9353 cacheid=xorg_cv_cc_flag__Wreturn_type 9354 if eval \${$cacheid+:} false; then : 9355 $as_echo_n "(cached) " >&6 9356else 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359int i; 9360int 9361main () 9362{ 9363 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368if ac_fn_c_try_link "$LINENO"; then : 9369 eval $cacheid=yes 9370else 9371 eval $cacheid=no 9372fi 9373rm -f core conftest.err conftest.$ac_objext \ 9374 conftest$ac_exeext conftest.$ac_ext 9375fi 9376 9377 9378 CFLAGS="$xorg_testset_save_CFLAGS" 9379 9380 eval supported=\$$cacheid 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9382$as_echo "$supported" >&6; } 9383 if test "$supported" = "yes" ; then 9384 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9385 found="yes" 9386 fi 9387 fi 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403xorg_testset_save_CFLAGS="$CFLAGS" 9404 9405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9410 $as_echo_n "(cached) " >&6 9411else 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414int i; 9415_ACEOF 9416if ac_fn_c_try_compile "$LINENO"; then : 9417 xorg_cv_cc_flag_unknown_warning_option=yes 9418else 9419 xorg_cv_cc_flag_unknown_warning_option=no 9420fi 9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9422fi 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9426 CFLAGS="$xorg_testset_save_CFLAGS" 9427fi 9428 9429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9432 fi 9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442_ACEOF 9443if ac_fn_c_try_compile "$LINENO"; then : 9444 xorg_cv_cc_flag_unused_command_line_argument=yes 9445else 9446 xorg_cv_cc_flag_unused_command_line_argument=no 9447fi 9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9449fi 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9453 CFLAGS="$xorg_testset_save_CFLAGS" 9454fi 9455 9456found="no" 9457 9458 if test $found = "no" ; then 9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 fi 9462 9463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9465 fi 9466 9467 CFLAGS="$CFLAGS -Wtrigraphs" 9468 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9470$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9471 cacheid=xorg_cv_cc_flag__Wtrigraphs 9472 if eval \${$cacheid+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477int i; 9478int 9479main () 9480{ 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO"; then : 9487 eval $cacheid=yes 9488else 9489 eval $cacheid=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext \ 9492 conftest$ac_exeext conftest.$ac_ext 9493fi 9494 9495 9496 CFLAGS="$xorg_testset_save_CFLAGS" 9497 9498 eval supported=\$$cacheid 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9500$as_echo "$supported" >&6; } 9501 if test "$supported" = "yes" ; then 9502 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9503 found="yes" 9504 fi 9505 fi 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521xorg_testset_save_CFLAGS="$CFLAGS" 9522 9523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529else 9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9531/* end confdefs.h. */ 9532int i; 9533_ACEOF 9534if ac_fn_c_try_compile "$LINENO"; then : 9535 xorg_cv_cc_flag_unknown_warning_option=yes 9536else 9537 xorg_cv_cc_flag_unknown_warning_option=no 9538fi 9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9540fi 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9544 CFLAGS="$xorg_testset_save_CFLAGS" 9545fi 9546 9547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9550 fi 9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560_ACEOF 9561if ac_fn_c_try_compile "$LINENO"; then : 9562 xorg_cv_cc_flag_unused_command_line_argument=yes 9563else 9564 xorg_cv_cc_flag_unused_command_line_argument=no 9565fi 9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9567fi 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9571 CFLAGS="$xorg_testset_save_CFLAGS" 9572fi 9573 9574found="no" 9575 9576 if test $found = "no" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 9581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9583 fi 9584 9585 CFLAGS="$CFLAGS -Warray-bounds" 9586 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9588$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9589 cacheid=xorg_cv_cc_flag__Warray_bounds 9590 if eval \${$cacheid+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595int i; 9596int 9597main () 9598{ 9599 9600 ; 9601 return 0; 9602} 9603_ACEOF 9604if ac_fn_c_try_link "$LINENO"; then : 9605 eval $cacheid=yes 9606else 9607 eval $cacheid=no 9608fi 9609rm -f core conftest.err conftest.$ac_objext \ 9610 conftest$ac_exeext conftest.$ac_ext 9611fi 9612 9613 9614 CFLAGS="$xorg_testset_save_CFLAGS" 9615 9616 eval supported=\$$cacheid 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9618$as_echo "$supported" >&6; } 9619 if test "$supported" = "yes" ; then 9620 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9621 found="yes" 9622 fi 9623 fi 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639xorg_testset_save_CFLAGS="$CFLAGS" 9640 9641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9646 $as_echo_n "(cached) " >&6 9647else 9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650int i; 9651_ACEOF 9652if ac_fn_c_try_compile "$LINENO"; then : 9653 xorg_cv_cc_flag_unknown_warning_option=yes 9654else 9655 xorg_cv_cc_flag_unknown_warning_option=no 9656fi 9657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9658fi 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9662 CFLAGS="$xorg_testset_save_CFLAGS" 9663fi 9664 9665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9668 fi 9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674else 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9676/* end confdefs.h. */ 9677int i; 9678_ACEOF 9679if ac_fn_c_try_compile "$LINENO"; then : 9680 xorg_cv_cc_flag_unused_command_line_argument=yes 9681else 9682 xorg_cv_cc_flag_unused_command_line_argument=no 9683fi 9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9685fi 9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690fi 9691 9692found="no" 9693 9694 if test $found = "no" ; then 9695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9697 fi 9698 9699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9701 fi 9702 9703 CFLAGS="$CFLAGS -Wwrite-strings" 9704 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9706$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9707 cacheid=xorg_cv_cc_flag__Wwrite_strings 9708 if eval \${$cacheid+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713int i; 9714int 9715main () 9716{ 9717 9718 ; 9719 return 0; 9720} 9721_ACEOF 9722if ac_fn_c_try_link "$LINENO"; then : 9723 eval $cacheid=yes 9724else 9725 eval $cacheid=no 9726fi 9727rm -f core conftest.err conftest.$ac_objext \ 9728 conftest$ac_exeext conftest.$ac_ext 9729fi 9730 9731 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733 9734 eval supported=\$$cacheid 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9736$as_echo "$supported" >&6; } 9737 if test "$supported" = "yes" ; then 9738 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9739 found="yes" 9740 fi 9741 fi 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757xorg_testset_save_CFLAGS="$CFLAGS" 9758 9759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9764 $as_echo_n "(cached) " >&6 9765else 9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9767/* end confdefs.h. */ 9768int i; 9769_ACEOF 9770if ac_fn_c_try_compile "$LINENO"; then : 9771 xorg_cv_cc_flag_unknown_warning_option=yes 9772else 9773 xorg_cv_cc_flag_unknown_warning_option=no 9774fi 9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9776fi 9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9780 CFLAGS="$xorg_testset_save_CFLAGS" 9781fi 9782 9783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9786 fi 9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int i; 9796_ACEOF 9797if ac_fn_c_try_compile "$LINENO"; then : 9798 xorg_cv_cc_flag_unused_command_line_argument=yes 9799else 9800 xorg_cv_cc_flag_unused_command_line_argument=no 9801fi 9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9807 CFLAGS="$xorg_testset_save_CFLAGS" 9808fi 9809 9810found="no" 9811 9812 if test $found = "no" ; then 9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 fi 9816 9817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9819 fi 9820 9821 CFLAGS="$CFLAGS -Waddress" 9822 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9824$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9825 cacheid=xorg_cv_cc_flag__Waddress 9826 if eval \${$cacheid+:} false; then : 9827 $as_echo_n "(cached) " >&6 9828else 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831int i; 9832int 9833main () 9834{ 9835 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840if ac_fn_c_try_link "$LINENO"; then : 9841 eval $cacheid=yes 9842else 9843 eval $cacheid=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext \ 9846 conftest$ac_exeext conftest.$ac_ext 9847fi 9848 9849 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851 9852 eval supported=\$$cacheid 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9854$as_echo "$supported" >&6; } 9855 if test "$supported" = "yes" ; then 9856 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9857 found="yes" 9858 fi 9859 fi 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875xorg_testset_save_CFLAGS="$CFLAGS" 9876 9877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9882 $as_echo_n "(cached) " >&6 9883else 9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9885/* end confdefs.h. */ 9886int i; 9887_ACEOF 9888if ac_fn_c_try_compile "$LINENO"; then : 9889 xorg_cv_cc_flag_unknown_warning_option=yes 9890else 9891 xorg_cv_cc_flag_unknown_warning_option=no 9892fi 9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9894fi 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9898 CFLAGS="$xorg_testset_save_CFLAGS" 9899fi 9900 9901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904 fi 9905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913int i; 9914_ACEOF 9915if ac_fn_c_try_compile "$LINENO"; then : 9916 xorg_cv_cc_flag_unused_command_line_argument=yes 9917else 9918 xorg_cv_cc_flag_unused_command_line_argument=no 9919fi 9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926fi 9927 9928found="no" 9929 9930 if test $found = "no" ; then 9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 fi 9934 9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9937 fi 9938 9939 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9940 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9942$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9943 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9944 if eval \${$cacheid+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949int i; 9950int 9951main () 9952{ 9953 9954 ; 9955 return 0; 9956} 9957_ACEOF 9958if ac_fn_c_try_link "$LINENO"; then : 9959 eval $cacheid=yes 9960else 9961 eval $cacheid=no 9962fi 9963rm -f core conftest.err conftest.$ac_objext \ 9964 conftest$ac_exeext conftest.$ac_ext 9965fi 9966 9967 9968 CFLAGS="$xorg_testset_save_CFLAGS" 9969 9970 eval supported=\$$cacheid 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9972$as_echo "$supported" >&6; } 9973 if test "$supported" = "yes" ; then 9974 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9975 found="yes" 9976 fi 9977 fi 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993xorg_testset_save_CFLAGS="$CFLAGS" 9994 9995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004int i; 10005_ACEOF 10006if ac_fn_c_try_compile "$LINENO"; then : 10007 xorg_cv_cc_flag_unknown_warning_option=yes 10008else 10009 xorg_cv_cc_flag_unknown_warning_option=no 10010fi 10011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10012fi 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10016 CFLAGS="$xorg_testset_save_CFLAGS" 10017fi 10018 10019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022 fi 10023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031int i; 10032_ACEOF 10033if ac_fn_c_try_compile "$LINENO"; then : 10034 xorg_cv_cc_flag_unused_command_line_argument=yes 10035else 10036 xorg_cv_cc_flag_unused_command_line_argument=no 10037fi 10038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044fi 10045 10046found="no" 10047 10048 if test $found = "no" ; then 10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 10053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10055 fi 10056 10057 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10058 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10060$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10061 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10062 if eval \${$cacheid+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064else 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067int i; 10068int 10069main () 10070{ 10071 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076if ac_fn_c_try_link "$LINENO"; then : 10077 eval $cacheid=yes 10078else 10079 eval $cacheid=no 10080fi 10081rm -f core conftest.err conftest.$ac_objext \ 10082 conftest$ac_exeext conftest.$ac_ext 10083fi 10084 10085 10086 CFLAGS="$xorg_testset_save_CFLAGS" 10087 10088 eval supported=\$$cacheid 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10090$as_echo "$supported" >&6; } 10091 if test "$supported" = "yes" ; then 10092 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10093 found="yes" 10094 fi 10095 fi 10096 10097 10098fi 10099 10100 10101 10102 10103 10104 10105 10106 CWARNFLAGS="$BASE_CFLAGS" 10107 if test "x$GCC" = xyes ; then 10108 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10109 fi 10110 10111 10112 10113 10114 10115 10116 10117 10118# Check whether --enable-strict-compilation was given. 10119if test "${enable_strict_compilation+set}" = set; then : 10120 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10121else 10122 STRICT_COMPILE=no 10123fi 10124 10125 10126 10127 10128 10129 10130STRICT_CFLAGS="" 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144xorg_testset_save_CFLAGS="$CFLAGS" 10145 10146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10151 $as_echo_n "(cached) " >&6 10152else 10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154/* end confdefs.h. */ 10155int i; 10156_ACEOF 10157if ac_fn_c_try_compile "$LINENO"; then : 10158 xorg_cv_cc_flag_unknown_warning_option=yes 10159else 10160 xorg_cv_cc_flag_unknown_warning_option=no 10161fi 10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10163fi 10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10167 CFLAGS="$xorg_testset_save_CFLAGS" 10168fi 10169 10170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10173 fi 10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182int i; 10183_ACEOF 10184if ac_fn_c_try_compile "$LINENO"; then : 10185 xorg_cv_cc_flag_unused_command_line_argument=yes 10186else 10187 xorg_cv_cc_flag_unused_command_line_argument=no 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10194 CFLAGS="$xorg_testset_save_CFLAGS" 10195fi 10196 10197found="no" 10198 10199 if test $found = "no" ; then 10200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10202 fi 10203 10204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10206 fi 10207 10208 CFLAGS="$CFLAGS -pedantic" 10209 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10211$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10212 cacheid=xorg_cv_cc_flag__pedantic 10213 if eval \${$cacheid+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215else 10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10217/* end confdefs.h. */ 10218int i; 10219int 10220main () 10221{ 10222 10223 ; 10224 return 0; 10225} 10226_ACEOF 10227if ac_fn_c_try_link "$LINENO"; then : 10228 eval $cacheid=yes 10229else 10230 eval $cacheid=no 10231fi 10232rm -f core conftest.err conftest.$ac_objext \ 10233 conftest$ac_exeext conftest.$ac_ext 10234fi 10235 10236 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238 10239 eval supported=\$$cacheid 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10241$as_echo "$supported" >&6; } 10242 if test "$supported" = "yes" ; then 10243 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10244 found="yes" 10245 fi 10246 fi 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262xorg_testset_save_CFLAGS="$CFLAGS" 10263 10264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273int i; 10274_ACEOF 10275if ac_fn_c_try_compile "$LINENO"; then : 10276 xorg_cv_cc_flag_unknown_warning_option=yes 10277else 10278 xorg_cv_cc_flag_unknown_warning_option=no 10279fi 10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10281fi 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10285 CFLAGS="$xorg_testset_save_CFLAGS" 10286fi 10287 10288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10291 fi 10292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297else 10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299/* end confdefs.h. */ 10300int i; 10301_ACEOF 10302if ac_fn_c_try_compile "$LINENO"; then : 10303 xorg_cv_cc_flag_unused_command_line_argument=yes 10304else 10305 xorg_cv_cc_flag_unused_command_line_argument=no 10306fi 10307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10308fi 10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10312 CFLAGS="$xorg_testset_save_CFLAGS" 10313fi 10314 10315found="no" 10316 10317 if test $found = "no" ; then 10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 fi 10321 10322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10324 fi 10325 10326 CFLAGS="$CFLAGS -Werror" 10327 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10329$as_echo_n "checking if $CC supports -Werror... " >&6; } 10330 cacheid=xorg_cv_cc_flag__Werror 10331 if eval \${$cacheid+:} false; then : 10332 $as_echo_n "(cached) " >&6 10333else 10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10335/* end confdefs.h. */ 10336int i; 10337int 10338main () 10339{ 10340 10341 ; 10342 return 0; 10343} 10344_ACEOF 10345if ac_fn_c_try_link "$LINENO"; then : 10346 eval $cacheid=yes 10347else 10348 eval $cacheid=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext \ 10351 conftest$ac_exeext conftest.$ac_ext 10352fi 10353 10354 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356 10357 eval supported=\$$cacheid 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10359$as_echo "$supported" >&6; } 10360 if test "$supported" = "yes" ; then 10361 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10362 found="yes" 10363 fi 10364 fi 10365 10366 if test $found = "no" ; then 10367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10369 fi 10370 10371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10373 fi 10374 10375 CFLAGS="$CFLAGS -errwarn" 10376 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10378$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10379 cacheid=xorg_cv_cc_flag__errwarn 10380 if eval \${$cacheid+:} false; then : 10381 $as_echo_n "(cached) " >&6 10382else 10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10384/* end confdefs.h. */ 10385int i; 10386int 10387main () 10388{ 10389 10390 ; 10391 return 0; 10392} 10393_ACEOF 10394if ac_fn_c_try_link "$LINENO"; then : 10395 eval $cacheid=yes 10396else 10397 eval $cacheid=no 10398fi 10399rm -f core conftest.err conftest.$ac_objext \ 10400 conftest$ac_exeext conftest.$ac_ext 10401fi 10402 10403 10404 CFLAGS="$xorg_testset_save_CFLAGS" 10405 10406 eval supported=\$$cacheid 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10408$as_echo "$supported" >&6; } 10409 if test "$supported" = "yes" ; then 10410 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10411 found="yes" 10412 fi 10413 fi 10414 10415 10416 10417# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10418# activate it with -Werror, so we add it here explicitly. 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432xorg_testset_save_CFLAGS="$CFLAGS" 10433 10434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440else 10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10442/* end confdefs.h. */ 10443int i; 10444_ACEOF 10445if ac_fn_c_try_compile "$LINENO"; then : 10446 xorg_cv_cc_flag_unknown_warning_option=yes 10447else 10448 xorg_cv_cc_flag_unknown_warning_option=no 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10451fi 10452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10455 CFLAGS="$xorg_testset_save_CFLAGS" 10456fi 10457 10458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10461 fi 10462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10466 $as_echo_n "(cached) " >&6 10467else 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469/* end confdefs.h. */ 10470int i; 10471_ACEOF 10472if ac_fn_c_try_compile "$LINENO"; then : 10473 xorg_cv_cc_flag_unused_command_line_argument=yes 10474else 10475 xorg_cv_cc_flag_unused_command_line_argument=no 10476fi 10477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10478fi 10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10482 CFLAGS="$xorg_testset_save_CFLAGS" 10483fi 10484 10485found="no" 10486 10487 if test $found = "no" ; then 10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10490 fi 10491 10492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10494 fi 10495 10496 CFLAGS="$CFLAGS -Werror=attributes" 10497 10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10499$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10500 cacheid=xorg_cv_cc_flag__Werror_attributes 10501 if eval \${$cacheid+:} false; then : 10502 $as_echo_n "(cached) " >&6 10503else 10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505/* end confdefs.h. */ 10506int i; 10507int 10508main () 10509{ 10510 10511 ; 10512 return 0; 10513} 10514_ACEOF 10515if ac_fn_c_try_link "$LINENO"; then : 10516 eval $cacheid=yes 10517else 10518 eval $cacheid=no 10519fi 10520rm -f core conftest.err conftest.$ac_objext \ 10521 conftest$ac_exeext conftest.$ac_ext 10522fi 10523 10524 10525 CFLAGS="$xorg_testset_save_CFLAGS" 10526 10527 eval supported=\$$cacheid 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10529$as_echo "$supported" >&6; } 10530 if test "$supported" = "yes" ; then 10531 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10532 found="yes" 10533 fi 10534 fi 10535 10536 10537 10538if test "x$STRICT_COMPILE" = "xyes"; then 10539 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10540 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10541fi 10542 10543 10544 10545 10546 10547 10548cat >>confdefs.h <<_ACEOF 10549#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10550_ACEOF 10551 10552 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10553 if test "x$PVM" = "x"; then 10554 PVM="0" 10555 fi 10556 10557cat >>confdefs.h <<_ACEOF 10558#define PACKAGE_VERSION_MINOR $PVM 10559_ACEOF 10560 10561 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10562 if test "x$PVP" = "x"; then 10563 PVP="0" 10564 fi 10565 10566cat >>confdefs.h <<_ACEOF 10567#define PACKAGE_VERSION_PATCHLEVEL $PVP 10568_ACEOF 10569 10570 10571 10572CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10573mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10574|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10575touch \$(top_srcdir)/ChangeLog; \ 10576echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10577 10578 10579 10580 10581macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10582INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10583mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10584|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10585touch \$(top_srcdir)/INSTALL; \ 10586echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10587 10588 10589 10590 10591 10592 10593case $host_os in 10594 solaris*) 10595 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10596 # check for a man page file found in later versions that use 10597 # traditional section numbers instead 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10599$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10600if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10601 $as_echo_n "(cached) " >&6 10602else 10603 test "$cross_compiling" = yes && 10604 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10605if test -r "/usr/share/man/man7/attributes.7"; then 10606 ac_cv_file__usr_share_man_man7_attributes_7=yes 10607else 10608 ac_cv_file__usr_share_man_man7_attributes_7=no 10609fi 10610fi 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10612$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10613if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10614 SYSV_MAN_SECTIONS=false 10615else 10616 SYSV_MAN_SECTIONS=true 10617fi 10618 10619 ;; 10620 *) SYSV_MAN_SECTIONS=false ;; 10621esac 10622 10623if test x$APP_MAN_SUFFIX = x ; then 10624 APP_MAN_SUFFIX=1 10625fi 10626if test x$APP_MAN_DIR = x ; then 10627 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10628fi 10629 10630if test x$LIB_MAN_SUFFIX = x ; then 10631 LIB_MAN_SUFFIX=3 10632fi 10633if test x$LIB_MAN_DIR = x ; then 10634 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10635fi 10636 10637if test x$FILE_MAN_SUFFIX = x ; then 10638 case $SYSV_MAN_SECTIONS in 10639 true) FILE_MAN_SUFFIX=4 ;; 10640 *) FILE_MAN_SUFFIX=5 ;; 10641 esac 10642fi 10643if test x$FILE_MAN_DIR = x ; then 10644 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10645fi 10646 10647if test x$MISC_MAN_SUFFIX = x ; then 10648 case $SYSV_MAN_SECTIONS in 10649 true) MISC_MAN_SUFFIX=5 ;; 10650 *) MISC_MAN_SUFFIX=7 ;; 10651 esac 10652fi 10653if test x$MISC_MAN_DIR = x ; then 10654 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10655fi 10656 10657if test x$DRIVER_MAN_SUFFIX = x ; then 10658 case $SYSV_MAN_SECTIONS in 10659 true) DRIVER_MAN_SUFFIX=7 ;; 10660 *) DRIVER_MAN_SUFFIX=4 ;; 10661 esac 10662fi 10663if test x$DRIVER_MAN_DIR = x ; then 10664 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10665fi 10666 10667if test x$ADMIN_MAN_SUFFIX = x ; then 10668 case $SYSV_MAN_SECTIONS in 10669 true) ADMIN_MAN_SUFFIX=1m ;; 10670 *) ADMIN_MAN_SUFFIX=8 ;; 10671 esac 10672fi 10673if test x$ADMIN_MAN_DIR = x ; then 10674 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10675fi 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691XORG_MAN_PAGE="X Version 11" 10692 10693MAN_SUBSTS="\ 10694 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10695 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10696 -e 's|__xservername__|Xorg|g' \ 10697 -e 's|__xconfigfile__|xorg.conf|g' \ 10698 -e 's|__projectroot__|\$(prefix)|g' \ 10699 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10700 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10701 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10702 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10703 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10704 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10705 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10706 10707 10708 10709# Check whether --enable-silent-rules was given. 10710if test "${enable_silent_rules+set}" = set; then : 10711 enableval=$enable_silent_rules; 10712fi 10713 10714case $enable_silent_rules in # ((( 10715 yes) AM_DEFAULT_VERBOSITY=0;; 10716 no) AM_DEFAULT_VERBOSITY=1;; 10717 *) AM_DEFAULT_VERBOSITY=0;; 10718esac 10719am_make=${MAKE-make} 10720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10721$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10722if ${am_cv_make_support_nested_variables+:} false; then : 10723 $as_echo_n "(cached) " >&6 10724else 10725 if $as_echo 'TRUE=$(BAR$(V)) 10726BAR0=false 10727BAR1=true 10728V=1 10729am__doit: 10730 @$(TRUE) 10731.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10732 am_cv_make_support_nested_variables=yes 10733else 10734 am_cv_make_support_nested_variables=no 10735fi 10736fi 10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10738$as_echo "$am_cv_make_support_nested_variables" >&6; } 10739if test $am_cv_make_support_nested_variables = yes; then 10740 AM_V='$(V)' 10741 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10742else 10743 AM_V=$AM_DEFAULT_VERBOSITY 10744 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10745fi 10746AM_BACKSLASH='\' 10747 10748 10749 10750for ac_header in wchar.h wctype.h langinfo.h 10751do : 10752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10753ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10755 cat >>confdefs.h <<_ACEOF 10756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10757_ACEOF 10758 10759fi 10760 10761done 10762 10763 10764# Checks for pkg-config packages 10765 10766pkg_failed=no 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5 10768$as_echo_n "checking for XPROP... " >&6; } 10769 10770if test -n "$XPROP_CFLAGS"; then 10771 pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS" 10772 elif test -n "$PKG_CONFIG"; then 10773 if test -n "$PKG_CONFIG" && \ 10774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 10775 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 10776 ac_status=$? 10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10778 test $ac_status = 0; }; then 10779 pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 10780 test "x$?" != "x0" && pkg_failed=yes 10781else 10782 pkg_failed=yes 10783fi 10784 else 10785 pkg_failed=untried 10786fi 10787if test -n "$XPROP_LIBS"; then 10788 pkg_cv_XPROP_LIBS="$XPROP_LIBS" 10789 elif test -n "$PKG_CONFIG"; then 10790 if test -n "$PKG_CONFIG" && \ 10791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 10792 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 10793 ac_status=$? 10794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10795 test $ac_status = 0; }; then 10796 pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 10797 test "x$?" != "x0" && pkg_failed=yes 10798else 10799 pkg_failed=yes 10800fi 10801 else 10802 pkg_failed=untried 10803fi 10804 10805 10806 10807if test $pkg_failed = yes; then 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10809$as_echo "no" >&6; } 10810 10811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10812 _pkg_short_errors_supported=yes 10813else 10814 _pkg_short_errors_supported=no 10815fi 10816 if test $_pkg_short_errors_supported = yes; then 10817 XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 10818 else 10819 XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 10820 fi 10821 # Put the nasty error message in config.log where it belongs 10822 echo "$XPROP_PKG_ERRORS" >&5 10823 10824 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 10825 10826$XPROP_PKG_ERRORS 10827 10828Consider adjusting the PKG_CONFIG_PATH environment variable if you 10829installed software in a non-standard prefix. 10830 10831Alternatively, you may set the environment variables XPROP_CFLAGS 10832and XPROP_LIBS to avoid the need to call pkg-config. 10833See the pkg-config man page for more details." "$LINENO" 5 10834elif test $pkg_failed = untried; then 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10836$as_echo "no" >&6; } 10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10839as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10840is in your PATH or set the PKG_CONFIG environment variable to the full 10841path to pkg-config. 10842 10843Alternatively, you may set the environment variables XPROP_CFLAGS 10844and XPROP_LIBS to avoid the need to call pkg-config. 10845See the pkg-config man page for more details. 10846 10847To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10848See \`config.log' for more details" "$LINENO" 5; } 10849else 10850 XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS 10851 XPROP_LIBS=$pkg_cv_XPROP_LIBS 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10853$as_echo "yes" >&6; } 10854 10855fi 10856 10857 10858 10859 10860 10861 10862# Check whether --with-lint was given. 10863if test "${with_lint+set}" = set; then : 10864 withval=$with_lint; use_lint=$withval 10865else 10866 use_lint=no 10867fi 10868 10869 10870# Obtain platform specific info like program name and options 10871# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10872case $host_os in 10873 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10874 lint_name=splint 10875 lint_options="-badflag" 10876 ;; 10877 *freebsd* | *netbsd*) 10878 lint_name=lint 10879 lint_options="-u -b" 10880 ;; 10881 *solaris*) 10882 lint_name=lint 10883 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10884 ;; 10885esac 10886 10887# Test for the presence of the program (either guessed by the code or spelled out by the user) 10888if test "x$use_lint" = x"yes" ; then 10889 # Extract the first word of "$lint_name", so it can be a program name with args. 10890set dummy $lint_name; ac_word=$2 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10892$as_echo_n "checking for $ac_word... " >&6; } 10893if ${ac_cv_path_LINT+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895else 10896 case $LINT in 10897 [\\/]* | ?:[\\/]*) 10898 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10899 ;; 10900 *) 10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10902for as_dir in $PATH 10903do 10904 IFS=$as_save_IFS 10905 test -z "$as_dir" && as_dir=. 10906 for ac_exec_ext in '' $ac_executable_extensions; do 10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10908 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10910 break 2 10911 fi 10912done 10913 done 10914IFS=$as_save_IFS 10915 10916 ;; 10917esac 10918fi 10919LINT=$ac_cv_path_LINT 10920if test -n "$LINT"; then 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10922$as_echo "$LINT" >&6; } 10923else 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10925$as_echo "no" >&6; } 10926fi 10927 10928 10929 if test "x$LINT" = "x"; then 10930 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10931 fi 10932elif test "x$use_lint" = x"no" ; then 10933 if test "x$LINT" != "x"; then 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10935$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10936 fi 10937else 10938 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10939fi 10940 10941# User supplied flags override default flags 10942if test "x$LINT_FLAGS" != "x"; then 10943 lint_options=$LINT_FLAGS 10944fi 10945 10946LINT_FLAGS=$lint_options 10947 10948 if test "x$LINT" != x; then 10949 LINT_TRUE= 10950 LINT_FALSE='#' 10951else 10952 LINT_TRUE='#' 10953 LINT_FALSE= 10954fi 10955 10956 10957 10958 10959ac_config_files="$ac_config_files Makefile man/Makefile" 10960 10961cat >confcache <<\_ACEOF 10962# This file is a shell script that caches the results of configure 10963# tests run on this system so they can be shared between configure 10964# scripts and configure runs, see configure's option --config-cache. 10965# It is not useful on other systems. If it contains results you don't 10966# want to keep, you may remove or edit it. 10967# 10968# config.status only pays attention to the cache file if you give it 10969# the --recheck option to rerun configure. 10970# 10971# `ac_cv_env_foo' variables (set or unset) will be overridden when 10972# loading this file, other *unset* `ac_cv_foo' will be assigned the 10973# following values. 10974 10975_ACEOF 10976 10977# The following way of writing the cache mishandles newlines in values, 10978# but we know of no workaround that is simple, portable, and efficient. 10979# So, we kill variables containing newlines. 10980# Ultrix sh set writes to stderr and can't be redirected directly, 10981# and sets the high bit in the cache file unless we assign to the vars. 10982( 10983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10984 eval ac_val=\$$ac_var 10985 case $ac_val in #( 10986 *${as_nl}*) 10987 case $ac_var in #( 10988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10989$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10990 esac 10991 case $ac_var in #( 10992 _ | IFS | as_nl) ;; #( 10993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10994 *) { eval $ac_var=; unset $ac_var;} ;; 10995 esac ;; 10996 esac 10997 done 10998 10999 (set) 2>&1 | 11000 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11001 *${as_nl}ac_space=\ *) 11002 # `set' does not quote correctly, so add quotes: double-quote 11003 # substitution turns \\\\ into \\, and sed turns \\ into \. 11004 sed -n \ 11005 "s/'/'\\\\''/g; 11006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11007 ;; #( 11008 *) 11009 # `set' quotes correctly as required by POSIX, so do not add quotes. 11010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11011 ;; 11012 esac | 11013 sort 11014) | 11015 sed ' 11016 /^ac_cv_env_/b end 11017 t clear 11018 :clear 11019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11020 t end 11021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11022 :end' >>confcache 11023if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11024 if test -w "$cache_file"; then 11025 if test "x$cache_file" != "x/dev/null"; then 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11027$as_echo "$as_me: updating cache $cache_file" >&6;} 11028 if test ! -f "$cache_file" || test -h "$cache_file"; then 11029 cat confcache >"$cache_file" 11030 else 11031 case $cache_file in #( 11032 */* | ?:*) 11033 mv -f confcache "$cache_file"$$ && 11034 mv -f "$cache_file"$$ "$cache_file" ;; #( 11035 *) 11036 mv -f confcache "$cache_file" ;; 11037 esac 11038 fi 11039 fi 11040 else 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11042$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11043 fi 11044fi 11045rm -f confcache 11046 11047test "x$prefix" = xNONE && prefix=$ac_default_prefix 11048# Let make expand exec_prefix. 11049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11050 11051DEFS=-DHAVE_CONFIG_H 11052 11053ac_libobjs= 11054ac_ltlibobjs= 11055U= 11056for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11057 # 1. Remove the extension, and $U if already installed. 11058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11061 # will be set to the directory where LIBOBJS objects are built. 11062 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11063 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11064done 11065LIBOBJS=$ac_libobjs 11066 11067LTLIBOBJS=$ac_ltlibobjs 11068 11069 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11071$as_echo_n "checking that generated files are newer than configure... " >&6; } 11072 if test -n "$am_sleep_pid"; then 11073 # Hide warnings about reused PIDs. 11074 wait $am_sleep_pid 2>/dev/null 11075 fi 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11077$as_echo "done" >&6; } 11078 if test -n "$EXEEXT"; then 11079 am__EXEEXT_TRUE= 11080 am__EXEEXT_FALSE='#' 11081else 11082 am__EXEEXT_TRUE='#' 11083 am__EXEEXT_FALSE= 11084fi 11085 11086if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11087 as_fn_error $? "conditional \"AMDEP\" was never defined. 11088Usually this means the macro was only invoked conditionally." "$LINENO" 5 11089fi 11090if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11091 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11092Usually this means the macro was only invoked conditionally." "$LINENO" 5 11093fi 11094if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11095 as_fn_error $? "conditional \"LINT\" was never defined. 11096Usually this means the macro was only invoked conditionally." "$LINENO" 5 11097fi 11098 11099: "${CONFIG_STATUS=./config.status}" 11100ac_write_fail=0 11101ac_clean_files_save=$ac_clean_files 11102ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11104$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11105as_write_fail=0 11106cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11107#! $SHELL 11108# Generated by $as_me. 11109# Run this file to recreate the current configuration. 11110# Compiler output produced by configure, useful for debugging 11111# configure, is in config.log if it exists. 11112 11113debug=false 11114ac_cs_recheck=false 11115ac_cs_silent=false 11116 11117SHELL=\${CONFIG_SHELL-$SHELL} 11118export SHELL 11119_ASEOF 11120cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11121## -------------------- ## 11122## M4sh Initialization. ## 11123## -------------------- ## 11124 11125# Be more Bourne compatible 11126DUALCASE=1; export DUALCASE # for MKS sh 11127if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11128 emulate sh 11129 NULLCMD=: 11130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11131 # is contrary to our usage. Disable this feature. 11132 alias -g '${1+"$@"}'='"$@"' 11133 setopt NO_GLOB_SUBST 11134else 11135 case `(set -o) 2>/dev/null` in #( 11136 *posix*) : 11137 set -o posix ;; #( 11138 *) : 11139 ;; 11140esac 11141fi 11142 11143 11144as_nl=' 11145' 11146export as_nl 11147# Printing a long string crashes Solaris 7 /usr/bin/printf. 11148as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11149as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11151# Prefer a ksh shell builtin over an external printf program on Solaris, 11152# but without wasting forks for bash or zsh. 11153if test -z "$BASH_VERSION$ZSH_VERSION" \ 11154 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11155 as_echo='print -r --' 11156 as_echo_n='print -rn --' 11157elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11158 as_echo='printf %s\n' 11159 as_echo_n='printf %s' 11160else 11161 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11162 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11163 as_echo_n='/usr/ucb/echo -n' 11164 else 11165 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11166 as_echo_n_body='eval 11167 arg=$1; 11168 case $arg in #( 11169 *"$as_nl"*) 11170 expr "X$arg" : "X\\(.*\\)$as_nl"; 11171 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11172 esac; 11173 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11174 ' 11175 export as_echo_n_body 11176 as_echo_n='sh -c $as_echo_n_body as_echo' 11177 fi 11178 export as_echo_body 11179 as_echo='sh -c $as_echo_body as_echo' 11180fi 11181 11182# The user is always right. 11183if test "${PATH_SEPARATOR+set}" != set; then 11184 PATH_SEPARATOR=: 11185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11187 PATH_SEPARATOR=';' 11188 } 11189fi 11190 11191 11192# IFS 11193# We need space, tab and new line, in precisely that order. Quoting is 11194# there to prevent editors from complaining about space-tab. 11195# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11196# splitting by setting IFS to empty value.) 11197IFS=" "" $as_nl" 11198 11199# Find who we are. Look in the path if we contain no directory separator. 11200as_myself= 11201case $0 in #(( 11202 *[\\/]* ) as_myself=$0 ;; 11203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11204for as_dir in $PATH 11205do 11206 IFS=$as_save_IFS 11207 test -z "$as_dir" && as_dir=. 11208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11209 done 11210IFS=$as_save_IFS 11211 11212 ;; 11213esac 11214# We did not find ourselves, most probably we were run as `sh COMMAND' 11215# in which case we are not to be found in the path. 11216if test "x$as_myself" = x; then 11217 as_myself=$0 11218fi 11219if test ! -f "$as_myself"; then 11220 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11221 exit 1 11222fi 11223 11224# Unset variables that we do not need and which cause bugs (e.g. in 11225# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11226# suppresses any "Segmentation fault" message there. '((' could 11227# trigger a bug in pdksh 5.2.14. 11228for as_var in BASH_ENV ENV MAIL MAILPATH 11229do eval test x\${$as_var+set} = xset \ 11230 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11231done 11232PS1='$ ' 11233PS2='> ' 11234PS4='+ ' 11235 11236# NLS nuisances. 11237LC_ALL=C 11238export LC_ALL 11239LANGUAGE=C 11240export LANGUAGE 11241 11242# CDPATH. 11243(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11244 11245 11246# as_fn_error STATUS ERROR [LINENO LOG_FD] 11247# ---------------------------------------- 11248# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11249# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11250# script with STATUS, using 1 if that was 0. 11251as_fn_error () 11252{ 11253 as_status=$1; test $as_status -eq 0 && as_status=1 11254 if test "$4"; then 11255 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11256 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11257 fi 11258 $as_echo "$as_me: error: $2" >&2 11259 as_fn_exit $as_status 11260} # as_fn_error 11261 11262 11263# as_fn_set_status STATUS 11264# ----------------------- 11265# Set $? to STATUS, without forking. 11266as_fn_set_status () 11267{ 11268 return $1 11269} # as_fn_set_status 11270 11271# as_fn_exit STATUS 11272# ----------------- 11273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11274as_fn_exit () 11275{ 11276 set +e 11277 as_fn_set_status $1 11278 exit $1 11279} # as_fn_exit 11280 11281# as_fn_unset VAR 11282# --------------- 11283# Portably unset VAR. 11284as_fn_unset () 11285{ 11286 { eval $1=; unset $1;} 11287} 11288as_unset=as_fn_unset 11289# as_fn_append VAR VALUE 11290# ---------------------- 11291# Append the text in VALUE to the end of the definition contained in VAR. Take 11292# advantage of any shell optimizations that allow amortized linear growth over 11293# repeated appends, instead of the typical quadratic growth present in naive 11294# implementations. 11295if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11296 eval 'as_fn_append () 11297 { 11298 eval $1+=\$2 11299 }' 11300else 11301 as_fn_append () 11302 { 11303 eval $1=\$$1\$2 11304 } 11305fi # as_fn_append 11306 11307# as_fn_arith ARG... 11308# ------------------ 11309# Perform arithmetic evaluation on the ARGs, and store the result in the 11310# global $as_val. Take advantage of shells that can avoid forks. The arguments 11311# must be portable across $(()) and expr. 11312if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11313 eval 'as_fn_arith () 11314 { 11315 as_val=$(( $* )) 11316 }' 11317else 11318 as_fn_arith () 11319 { 11320 as_val=`expr "$@" || test $? -eq 1` 11321 } 11322fi # as_fn_arith 11323 11324 11325if expr a : '\(a\)' >/dev/null 2>&1 && 11326 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11327 as_expr=expr 11328else 11329 as_expr=false 11330fi 11331 11332if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11333 as_basename=basename 11334else 11335 as_basename=false 11336fi 11337 11338if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11339 as_dirname=dirname 11340else 11341 as_dirname=false 11342fi 11343 11344as_me=`$as_basename -- "$0" || 11345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11346 X"$0" : 'X\(//\)$' \| \ 11347 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11348$as_echo X/"$0" | 11349 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11350 s//\1/ 11351 q 11352 } 11353 /^X\/\(\/\/\)$/{ 11354 s//\1/ 11355 q 11356 } 11357 /^X\/\(\/\).*/{ 11358 s//\1/ 11359 q 11360 } 11361 s/.*/./; q'` 11362 11363# Avoid depending upon Character Ranges. 11364as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11365as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11366as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11367as_cr_digits='0123456789' 11368as_cr_alnum=$as_cr_Letters$as_cr_digits 11369 11370ECHO_C= ECHO_N= ECHO_T= 11371case `echo -n x` in #((((( 11372-n*) 11373 case `echo 'xy\c'` in 11374 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11375 xy) ECHO_C='\c';; 11376 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11377 ECHO_T=' ';; 11378 esac;; 11379*) 11380 ECHO_N='-n';; 11381esac 11382 11383rm -f conf$$ conf$$.exe conf$$.file 11384if test -d conf$$.dir; then 11385 rm -f conf$$.dir/conf$$.file 11386else 11387 rm -f conf$$.dir 11388 mkdir conf$$.dir 2>/dev/null 11389fi 11390if (echo >conf$$.file) 2>/dev/null; then 11391 if ln -s conf$$.file conf$$ 2>/dev/null; then 11392 as_ln_s='ln -s' 11393 # ... but there are two gotchas: 11394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11396 # In both cases, we have to default to `cp -pR'. 11397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11398 as_ln_s='cp -pR' 11399 elif ln conf$$.file conf$$ 2>/dev/null; then 11400 as_ln_s=ln 11401 else 11402 as_ln_s='cp -pR' 11403 fi 11404else 11405 as_ln_s='cp -pR' 11406fi 11407rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11408rmdir conf$$.dir 2>/dev/null 11409 11410 11411# as_fn_mkdir_p 11412# ------------- 11413# Create "$as_dir" as a directory, including parents if necessary. 11414as_fn_mkdir_p () 11415{ 11416 11417 case $as_dir in #( 11418 -*) as_dir=./$as_dir;; 11419 esac 11420 test -d "$as_dir" || eval $as_mkdir_p || { 11421 as_dirs= 11422 while :; do 11423 case $as_dir in #( 11424 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11425 *) as_qdir=$as_dir;; 11426 esac 11427 as_dirs="'$as_qdir' $as_dirs" 11428 as_dir=`$as_dirname -- "$as_dir" || 11429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11430 X"$as_dir" : 'X\(//\)[^/]' \| \ 11431 X"$as_dir" : 'X\(//\)$' \| \ 11432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11433$as_echo X"$as_dir" | 11434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11435 s//\1/ 11436 q 11437 } 11438 /^X\(\/\/\)[^/].*/{ 11439 s//\1/ 11440 q 11441 } 11442 /^X\(\/\/\)$/{ 11443 s//\1/ 11444 q 11445 } 11446 /^X\(\/\).*/{ 11447 s//\1/ 11448 q 11449 } 11450 s/.*/./; q'` 11451 test -d "$as_dir" && break 11452 done 11453 test -z "$as_dirs" || eval "mkdir $as_dirs" 11454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11455 11456 11457} # as_fn_mkdir_p 11458if mkdir -p . 2>/dev/null; then 11459 as_mkdir_p='mkdir -p "$as_dir"' 11460else 11461 test -d ./-p && rmdir ./-p 11462 as_mkdir_p=false 11463fi 11464 11465 11466# as_fn_executable_p FILE 11467# ----------------------- 11468# Test if FILE is an executable regular file. 11469as_fn_executable_p () 11470{ 11471 test -f "$1" && test -x "$1" 11472} # as_fn_executable_p 11473as_test_x='test -x' 11474as_executable_p=as_fn_executable_p 11475 11476# Sed expression to map a string onto a valid CPP name. 11477as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11478 11479# Sed expression to map a string onto a valid variable name. 11480as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11481 11482 11483exec 6>&1 11484## ----------------------------------- ## 11485## Main body of $CONFIG_STATUS script. ## 11486## ----------------------------------- ## 11487_ASEOF 11488test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11489 11490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11491# Save the log message, to keep $0 and so on meaningful, and to 11492# report actual input values of CONFIG_FILES etc. instead of their 11493# values after options handling. 11494ac_log=" 11495This file was extended by xprop $as_me 1.2.5, which was 11496generated by GNU Autoconf 2.69. Invocation command line was 11497 11498 CONFIG_FILES = $CONFIG_FILES 11499 CONFIG_HEADERS = $CONFIG_HEADERS 11500 CONFIG_LINKS = $CONFIG_LINKS 11501 CONFIG_COMMANDS = $CONFIG_COMMANDS 11502 $ $0 $@ 11503 11504on `(hostname || uname -n) 2>/dev/null | sed 1q` 11505" 11506 11507_ACEOF 11508 11509case $ac_config_files in *" 11510"*) set x $ac_config_files; shift; ac_config_files=$*;; 11511esac 11512 11513case $ac_config_headers in *" 11514"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11515esac 11516 11517 11518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11519# Files that config.status was made for. 11520config_files="$ac_config_files" 11521config_headers="$ac_config_headers" 11522config_commands="$ac_config_commands" 11523 11524_ACEOF 11525 11526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11527ac_cs_usage="\ 11528\`$as_me' instantiates files and other configuration actions 11529from templates according to the current configuration. Unless the files 11530and actions are specified as TAGs, all are instantiated by default. 11531 11532Usage: $0 [OPTION]... [TAG]... 11533 11534 -h, --help print this help, then exit 11535 -V, --version print version number and configuration settings, then exit 11536 --config print configuration, then exit 11537 -q, --quiet, --silent 11538 do not print progress messages 11539 -d, --debug don't remove temporary files 11540 --recheck update $as_me by reconfiguring in the same conditions 11541 --file=FILE[:TEMPLATE] 11542 instantiate the configuration file FILE 11543 --header=FILE[:TEMPLATE] 11544 instantiate the configuration header FILE 11545 11546Configuration files: 11547$config_files 11548 11549Configuration headers: 11550$config_headers 11551 11552Configuration commands: 11553$config_commands 11554 11555Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>." 11556 11557_ACEOF 11558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11559ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11560ac_cs_version="\\ 11561xprop config.status 1.2.5 11562configured by $0, generated by GNU Autoconf 2.69, 11563 with options \\"\$ac_cs_config\\" 11564 11565Copyright (C) 2012 Free Software Foundation, Inc. 11566This config.status script is free software; the Free Software Foundation 11567gives unlimited permission to copy, distribute and modify it." 11568 11569ac_pwd='$ac_pwd' 11570srcdir='$srcdir' 11571INSTALL='$INSTALL' 11572MKDIR_P='$MKDIR_P' 11573AWK='$AWK' 11574test -n "\$AWK" || AWK=awk 11575_ACEOF 11576 11577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11578# The default lists apply if the user does not specify any file. 11579ac_need_defaults=: 11580while test $# != 0 11581do 11582 case $1 in 11583 --*=?*) 11584 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11586 ac_shift=: 11587 ;; 11588 --*=) 11589 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11590 ac_optarg= 11591 ac_shift=: 11592 ;; 11593 *) 11594 ac_option=$1 11595 ac_optarg=$2 11596 ac_shift=shift 11597 ;; 11598 esac 11599 11600 case $ac_option in 11601 # Handling of the options. 11602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11603 ac_cs_recheck=: ;; 11604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11605 $as_echo "$ac_cs_version"; exit ;; 11606 --config | --confi | --conf | --con | --co | --c ) 11607 $as_echo "$ac_cs_config"; exit ;; 11608 --debug | --debu | --deb | --de | --d | -d ) 11609 debug=: ;; 11610 --file | --fil | --fi | --f ) 11611 $ac_shift 11612 case $ac_optarg in 11613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11614 '') as_fn_error $? "missing file argument" ;; 11615 esac 11616 as_fn_append CONFIG_FILES " '$ac_optarg'" 11617 ac_need_defaults=false;; 11618 --header | --heade | --head | --hea ) 11619 $ac_shift 11620 case $ac_optarg in 11621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11622 esac 11623 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11624 ac_need_defaults=false;; 11625 --he | --h) 11626 # Conflict between --help and --header 11627 as_fn_error $? "ambiguous option: \`$1' 11628Try \`$0 --help' for more information.";; 11629 --help | --hel | -h ) 11630 $as_echo "$ac_cs_usage"; exit ;; 11631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11632 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11633 ac_cs_silent=: ;; 11634 11635 # This is an error. 11636 -*) as_fn_error $? "unrecognized option: \`$1' 11637Try \`$0 --help' for more information." ;; 11638 11639 *) as_fn_append ac_config_targets " $1" 11640 ac_need_defaults=false ;; 11641 11642 esac 11643 shift 11644done 11645 11646ac_configure_extra_args= 11647 11648if $ac_cs_silent; then 11649 exec 6>/dev/null 11650 ac_configure_extra_args="$ac_configure_extra_args --silent" 11651fi 11652 11653_ACEOF 11654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11655if \$ac_cs_recheck; then 11656 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11657 shift 11658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11659 CONFIG_SHELL='$SHELL' 11660 export CONFIG_SHELL 11661 exec "\$@" 11662fi 11663 11664_ACEOF 11665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11666exec 5>>config.log 11667{ 11668 echo 11669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11670## Running $as_me. ## 11671_ASBOX 11672 $as_echo "$ac_log" 11673} >&5 11674 11675_ACEOF 11676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11677# 11678# INIT-COMMANDS 11679# 11680AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11681 11682_ACEOF 11683 11684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11685 11686# Handling of arguments. 11687for ac_config_target in $ac_config_targets 11688do 11689 case $ac_config_target in 11690 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11691 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11692 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11693 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11694 11695 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11696 esac 11697done 11698 11699 11700# If the user did not use the arguments to specify the items to instantiate, 11701# then the envvar interface is used. Set only those that are not. 11702# We use the long form for the default assignment because of an extremely 11703# bizarre bug on SunOS 4.1.3. 11704if $ac_need_defaults; then 11705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11708fi 11709 11710# Have a temporary directory for convenience. Make it in the build tree 11711# simply because there is no reason against having it here, and in addition, 11712# creating and moving files from /tmp can sometimes cause problems. 11713# Hook for its removal unless debugging. 11714# Note that there is a small window in which the directory will not be cleaned: 11715# after its creation but before its name has been assigned to `$tmp'. 11716$debug || 11717{ 11718 tmp= ac_tmp= 11719 trap 'exit_status=$? 11720 : "${ac_tmp:=$tmp}" 11721 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11722' 0 11723 trap 'as_fn_exit 1' 1 2 13 15 11724} 11725# Create a (secure) tmp directory for tmp files. 11726 11727{ 11728 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11729 test -d "$tmp" 11730} || 11731{ 11732 tmp=./conf$$-$RANDOM 11733 (umask 077 && mkdir "$tmp") 11734} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11735ac_tmp=$tmp 11736 11737# Set up the scripts for CONFIG_FILES section. 11738# No need to generate them if there are no CONFIG_FILES. 11739# This happens for instance with `./config.status config.h'. 11740if test -n "$CONFIG_FILES"; then 11741 11742 11743ac_cr=`echo X | tr X '\015'` 11744# On cygwin, bash can eat \r inside `` if the user requested igncr. 11745# But we know of no other shell where ac_cr would be empty at this 11746# point, so we can use a bashism as a fallback. 11747if test "x$ac_cr" = x; then 11748 eval ac_cr=\$\'\\r\' 11749fi 11750ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11751if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11752 ac_cs_awk_cr='\\r' 11753else 11754 ac_cs_awk_cr=$ac_cr 11755fi 11756 11757echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11758_ACEOF 11759 11760 11761{ 11762 echo "cat >conf$$subs.awk <<_ACEOF" && 11763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11764 echo "_ACEOF" 11765} >conf$$subs.sh || 11766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11767ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11768ac_delim='%!_!# ' 11769for ac_last_try in false false false false false :; do 11770 . ./conf$$subs.sh || 11771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11772 11773 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11774 if test $ac_delim_n = $ac_delim_num; then 11775 break 11776 elif $ac_last_try; then 11777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11778 else 11779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11780 fi 11781done 11782rm -f conf$$subs.sh 11783 11784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11785cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11786_ACEOF 11787sed -n ' 11788h 11789s/^/S["/; s/!.*/"]=/ 11790p 11791g 11792s/^[^!]*!// 11793:repl 11794t repl 11795s/'"$ac_delim"'$// 11796t delim 11797:nl 11798h 11799s/\(.\{148\}\)..*/\1/ 11800t more1 11801s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11802p 11803n 11804b repl 11805:more1 11806s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11807p 11808g 11809s/.\{148\}// 11810t nl 11811:delim 11812h 11813s/\(.\{148\}\)..*/\1/ 11814t more2 11815s/["\\]/\\&/g; s/^/"/; s/$/"/ 11816p 11817b 11818:more2 11819s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11820p 11821g 11822s/.\{148\}// 11823t delim 11824' <conf$$subs.awk | sed ' 11825/^[^""]/{ 11826 N 11827 s/\n// 11828} 11829' >>$CONFIG_STATUS || ac_write_fail=1 11830rm -f conf$$subs.awk 11831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11832_ACAWK 11833cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11834 for (key in S) S_is_set[key] = 1 11835 FS = "" 11836 11837} 11838{ 11839 line = $ 0 11840 nfields = split(line, field, "@") 11841 substed = 0 11842 len = length(field[1]) 11843 for (i = 2; i < nfields; i++) { 11844 key = field[i] 11845 keylen = length(key) 11846 if (S_is_set[key]) { 11847 value = S[key] 11848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11849 len += length(value) + length(field[++i]) 11850 substed = 1 11851 } else 11852 len += 1 + keylen 11853 } 11854 11855 print line 11856} 11857 11858_ACAWK 11859_ACEOF 11860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11861if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11862 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11863else 11864 cat 11865fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11866 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11867_ACEOF 11868 11869# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11870# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11871# trailing colons and then remove the whole line if VPATH becomes empty 11872# (actually we leave an empty line to preserve line numbers). 11873if test "x$srcdir" = x.; then 11874 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11875h 11876s/// 11877s/^/:/ 11878s/[ ]*$/:/ 11879s/:\$(srcdir):/:/g 11880s/:\${srcdir}:/:/g 11881s/:@srcdir@:/:/g 11882s/^:*// 11883s/:*$// 11884x 11885s/\(=[ ]*\).*/\1/ 11886G 11887s/\n// 11888s/^[^=]*=[ ]*$// 11889}' 11890fi 11891 11892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11893fi # test -n "$CONFIG_FILES" 11894 11895# Set up the scripts for CONFIG_HEADERS section. 11896# No need to generate them if there are no CONFIG_HEADERS. 11897# This happens for instance with `./config.status Makefile'. 11898if test -n "$CONFIG_HEADERS"; then 11899cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11900BEGIN { 11901_ACEOF 11902 11903# Transform confdefs.h into an awk script `defines.awk', embedded as 11904# here-document in config.status, that substitutes the proper values into 11905# config.h.in to produce config.h. 11906 11907# Create a delimiter string that does not exist in confdefs.h, to ease 11908# handling of long lines. 11909ac_delim='%!_!# ' 11910for ac_last_try in false false :; do 11911 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11912 if test -z "$ac_tt"; then 11913 break 11914 elif $ac_last_try; then 11915 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11916 else 11917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11918 fi 11919done 11920 11921# For the awk script, D is an array of macro values keyed by name, 11922# likewise P contains macro parameters if any. Preserve backslash 11923# newline sequences. 11924 11925ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11926sed -n ' 11927s/.\{148\}/&'"$ac_delim"'/g 11928t rset 11929:rset 11930s/^[ ]*#[ ]*define[ ][ ]*/ / 11931t def 11932d 11933:def 11934s/\\$// 11935t bsnl 11936s/["\\]/\\&/g 11937s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11938D["\1"]=" \3"/p 11939s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11940d 11941:bsnl 11942s/["\\]/\\&/g 11943s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11944D["\1"]=" \3\\\\\\n"\\/p 11945t cont 11946s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11947t cont 11948d 11949:cont 11950n 11951s/.\{148\}/&'"$ac_delim"'/g 11952t clear 11953:clear 11954s/\\$// 11955t bsnlc 11956s/["\\]/\\&/g; s/^/"/; s/$/"/p 11957d 11958:bsnlc 11959s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11960b cont 11961' <confdefs.h | sed ' 11962s/'"$ac_delim"'/"\\\ 11963"/g' >>$CONFIG_STATUS || ac_write_fail=1 11964 11965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11966 for (key in D) D_is_set[key] = 1 11967 FS = "" 11968} 11969/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11970 line = \$ 0 11971 split(line, arg, " ") 11972 if (arg[1] == "#") { 11973 defundef = arg[2] 11974 mac1 = arg[3] 11975 } else { 11976 defundef = substr(arg[1], 2) 11977 mac1 = arg[2] 11978 } 11979 split(mac1, mac2, "(") #) 11980 macro = mac2[1] 11981 prefix = substr(line, 1, index(line, defundef) - 1) 11982 if (D_is_set[macro]) { 11983 # Preserve the white space surrounding the "#". 11984 print prefix "define", macro P[macro] D[macro] 11985 next 11986 } else { 11987 # Replace #undef with comments. This is necessary, for example, 11988 # in the case of _POSIX_SOURCE, which is predefined and required 11989 # on some systems where configure will not decide to define it. 11990 if (defundef == "undef") { 11991 print "/*", prefix defundef, macro, "*/" 11992 next 11993 } 11994 } 11995} 11996{ print } 11997_ACAWK 11998_ACEOF 11999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12000 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12001fi # test -n "$CONFIG_HEADERS" 12002 12003 12004eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12005shift 12006for ac_tag 12007do 12008 case $ac_tag in 12009 :[FHLC]) ac_mode=$ac_tag; continue;; 12010 esac 12011 case $ac_mode$ac_tag in 12012 :[FHL]*:*);; 12013 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12014 :[FH]-) ac_tag=-:-;; 12015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12016 esac 12017 ac_save_IFS=$IFS 12018 IFS=: 12019 set x $ac_tag 12020 IFS=$ac_save_IFS 12021 shift 12022 ac_file=$1 12023 shift 12024 12025 case $ac_mode in 12026 :L) ac_source=$1;; 12027 :[FH]) 12028 ac_file_inputs= 12029 for ac_f 12030 do 12031 case $ac_f in 12032 -) ac_f="$ac_tmp/stdin";; 12033 *) # Look for the file first in the build tree, then in the source tree 12034 # (if the path is not absolute). The absolute path cannot be DOS-style, 12035 # because $ac_f cannot contain `:'. 12036 test -f "$ac_f" || 12037 case $ac_f in 12038 [\\/$]*) false;; 12039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12040 esac || 12041 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12042 esac 12043 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12044 as_fn_append ac_file_inputs " '$ac_f'" 12045 done 12046 12047 # Let's still pretend it is `configure' which instantiates (i.e., don't 12048 # use $as_me), people would be surprised to read: 12049 # /* config.h. Generated by config.status. */ 12050 configure_input='Generated from '` 12051 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12052 `' by configure.' 12053 if test x"$ac_file" != x-; then 12054 configure_input="$ac_file. $configure_input" 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12056$as_echo "$as_me: creating $ac_file" >&6;} 12057 fi 12058 # Neutralize special characters interpreted by sed in replacement strings. 12059 case $configure_input in #( 12060 *\&* | *\|* | *\\* ) 12061 ac_sed_conf_input=`$as_echo "$configure_input" | 12062 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12063 *) ac_sed_conf_input=$configure_input;; 12064 esac 12065 12066 case $ac_tag in 12067 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12069 esac 12070 ;; 12071 esac 12072 12073 ac_dir=`$as_dirname -- "$ac_file" || 12074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12075 X"$ac_file" : 'X\(//\)[^/]' \| \ 12076 X"$ac_file" : 'X\(//\)$' \| \ 12077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12078$as_echo X"$ac_file" | 12079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\(\/\/\)[^/].*/{ 12084 s//\1/ 12085 q 12086 } 12087 /^X\(\/\/\)$/{ 12088 s//\1/ 12089 q 12090 } 12091 /^X\(\/\).*/{ 12092 s//\1/ 12093 q 12094 } 12095 s/.*/./; q'` 12096 as_dir="$ac_dir"; as_fn_mkdir_p 12097 ac_builddir=. 12098 12099case "$ac_dir" in 12100.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12101*) 12102 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12103 # A ".." for each directory in $ac_dir_suffix. 12104 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12105 case $ac_top_builddir_sub in 12106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12108 esac ;; 12109esac 12110ac_abs_top_builddir=$ac_pwd 12111ac_abs_builddir=$ac_pwd$ac_dir_suffix 12112# for backward compatibility: 12113ac_top_builddir=$ac_top_build_prefix 12114 12115case $srcdir in 12116 .) # We are building in place. 12117 ac_srcdir=. 12118 ac_top_srcdir=$ac_top_builddir_sub 12119 ac_abs_top_srcdir=$ac_pwd ;; 12120 [\\/]* | ?:[\\/]* ) # Absolute name. 12121 ac_srcdir=$srcdir$ac_dir_suffix; 12122 ac_top_srcdir=$srcdir 12123 ac_abs_top_srcdir=$srcdir ;; 12124 *) # Relative name. 12125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12126 ac_top_srcdir=$ac_top_build_prefix$srcdir 12127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12128esac 12129ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12130 12131 12132 case $ac_mode in 12133 :F) 12134 # 12135 # CONFIG_FILE 12136 # 12137 12138 case $INSTALL in 12139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12141 esac 12142 ac_MKDIR_P=$MKDIR_P 12143 case $MKDIR_P in 12144 [\\/$]* | ?:[\\/]* ) ;; 12145 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12146 esac 12147_ACEOF 12148 12149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12150# If the template does not know about datarootdir, expand it. 12151# FIXME: This hack should be removed a few years after 2.60. 12152ac_datarootdir_hack=; ac_datarootdir_seen= 12153ac_sed_dataroot=' 12154/datarootdir/ { 12155 p 12156 q 12157} 12158/@datadir@/p 12159/@docdir@/p 12160/@infodir@/p 12161/@localedir@/p 12162/@mandir@/p' 12163case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12164*datarootdir*) ac_datarootdir_seen=yes;; 12165*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12167$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12168_ACEOF 12169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12170 ac_datarootdir_hack=' 12171 s&@datadir@&$datadir&g 12172 s&@docdir@&$docdir&g 12173 s&@infodir@&$infodir&g 12174 s&@localedir@&$localedir&g 12175 s&@mandir@&$mandir&g 12176 s&\\\${datarootdir}&$datarootdir&g' ;; 12177esac 12178_ACEOF 12179 12180# Neutralize VPATH when `$srcdir' = `.'. 12181# Shell code in configure.ac might set extrasub. 12182# FIXME: do we really want to maintain this feature? 12183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12184ac_sed_extra="$ac_vpsub 12185$extrasub 12186_ACEOF 12187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12188:t 12189/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12190s|@configure_input@|$ac_sed_conf_input|;t t 12191s&@top_builddir@&$ac_top_builddir_sub&;t t 12192s&@top_build_prefix@&$ac_top_build_prefix&;t t 12193s&@srcdir@&$ac_srcdir&;t t 12194s&@abs_srcdir@&$ac_abs_srcdir&;t t 12195s&@top_srcdir@&$ac_top_srcdir&;t t 12196s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12197s&@builddir@&$ac_builddir&;t t 12198s&@abs_builddir@&$ac_abs_builddir&;t t 12199s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12200s&@INSTALL@&$ac_INSTALL&;t t 12201s&@MKDIR_P@&$ac_MKDIR_P&;t t 12202$ac_datarootdir_hack 12203" 12204eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12205 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12206 12207test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12208 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12210 "$ac_tmp/out"`; test -z "$ac_out"; } && 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12212which seems to be undefined. Please make sure it is defined" >&5 12213$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12214which seems to be undefined. Please make sure it is defined" >&2;} 12215 12216 rm -f "$ac_tmp/stdin" 12217 case $ac_file in 12218 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12219 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12220 esac \ 12221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12222 ;; 12223 :H) 12224 # 12225 # CONFIG_HEADER 12226 # 12227 if test x"$ac_file" != x-; then 12228 { 12229 $as_echo "/* $configure_input */" \ 12230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12231 } >"$ac_tmp/config.h" \ 12232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12233 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12235$as_echo "$as_me: $ac_file is unchanged" >&6;} 12236 else 12237 rm -f "$ac_file" 12238 mv "$ac_tmp/config.h" "$ac_file" \ 12239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12240 fi 12241 else 12242 $as_echo "/* $configure_input */" \ 12243 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12244 || as_fn_error $? "could not create -" "$LINENO" 5 12245 fi 12246# Compute "$ac_file"'s index in $config_headers. 12247_am_arg="$ac_file" 12248_am_stamp_count=1 12249for _am_header in $config_headers :; do 12250 case $_am_header in 12251 $_am_arg | $_am_arg:* ) 12252 break ;; 12253 * ) 12254 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12255 esac 12256done 12257echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12258$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12259 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12260 X"$_am_arg" : 'X\(//\)$' \| \ 12261 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12262$as_echo X"$_am_arg" | 12263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12264 s//\1/ 12265 q 12266 } 12267 /^X\(\/\/\)[^/].*/{ 12268 s//\1/ 12269 q 12270 } 12271 /^X\(\/\/\)$/{ 12272 s//\1/ 12273 q 12274 } 12275 /^X\(\/\).*/{ 12276 s//\1/ 12277 q 12278 } 12279 s/.*/./; q'`/stamp-h$_am_stamp_count 12280 ;; 12281 12282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12283$as_echo "$as_me: executing $ac_file commands" >&6;} 12284 ;; 12285 esac 12286 12287 12288 case $ac_file$ac_mode in 12289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12290 # Older Autoconf quotes --file arguments for eval, but not when files 12291 # are listed without --file. Let's play safe and only enable the eval 12292 # if we detect the quoting. 12293 # TODO: see whether this extra hack can be removed once we start 12294 # requiring Autoconf 2.70 or later. 12295 case $CONFIG_FILES in #( 12296 *\'*) : 12297 eval set x "$CONFIG_FILES" ;; #( 12298 *) : 12299 set x $CONFIG_FILES ;; #( 12300 *) : 12301 ;; 12302esac 12303 shift 12304 # Used to flag and report bootstrapping failures. 12305 am_rc=0 12306 for am_mf 12307 do 12308 # Strip MF so we end up with the name of the file. 12309 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 12310 # Check whether this is an Automake generated Makefile which includes 12311 # dependency-tracking related rules and includes. 12312 # Grep'ing the whole file directly is not great: AIX grep has a line 12313 # limit of 2048, but all sed's we know have understand at least 4000. 12314 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12315 || continue 12316 am_dirpart=`$as_dirname -- "$am_mf" || 12317$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12318 X"$am_mf" : 'X\(//\)[^/]' \| \ 12319 X"$am_mf" : 'X\(//\)$' \| \ 12320 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12321$as_echo X"$am_mf" | 12322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12323 s//\1/ 12324 q 12325 } 12326 /^X\(\/\/\)[^/].*/{ 12327 s//\1/ 12328 q 12329 } 12330 /^X\(\/\/\)$/{ 12331 s//\1/ 12332 q 12333 } 12334 /^X\(\/\).*/{ 12335 s//\1/ 12336 q 12337 } 12338 s/.*/./; q'` 12339 am_filepart=`$as_basename -- "$am_mf" || 12340$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12341 X"$am_mf" : 'X\(//\)$' \| \ 12342 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12343$as_echo X/"$am_mf" | 12344 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12345 s//\1/ 12346 q 12347 } 12348 /^X\/\(\/\/\)$/{ 12349 s//\1/ 12350 q 12351 } 12352 /^X\/\(\/\).*/{ 12353 s//\1/ 12354 q 12355 } 12356 s/.*/./; q'` 12357 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12358 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12359 | $MAKE -f - am--depfiles" >&5 12360 (cd "$am_dirpart" \ 12361 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12362 | $MAKE -f - am--depfiles) >&5 2>&5 12363 ac_status=$? 12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12365 (exit $ac_status); } || am_rc=$? 12366 done 12367 if test $am_rc -ne 0; then 12368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12370as_fn_error $? "Something went wrong bootstrapping makefile fragments 12371 for automatic dependency tracking. If GNU make was not used, consider 12372 re-running the configure script with MAKE=\"gmake\" (or whatever is 12373 necessary). You can also try re-running configure with the 12374 '--disable-dependency-tracking' option to at least be able to build 12375 the package (albeit without support for automatic dependency tracking). 12376See \`config.log' for more details" "$LINENO" 5; } 12377 fi 12378 { am_dirpart=; unset am_dirpart;} 12379 { am_filepart=; unset am_filepart;} 12380 { am_mf=; unset am_mf;} 12381 { am_rc=; unset am_rc;} 12382 rm -f conftest-deps.mk 12383} 12384 ;; 12385 12386 esac 12387done # for ac_tag 12388 12389 12390as_fn_exit 0 12391_ACEOF 12392ac_clean_files=$ac_clean_files_save 12393 12394test $ac_write_fail = 0 || 12395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12396 12397 12398# configure is writing to config.log, and then calls config.status. 12399# config.status does its own redirection, appending to config.log. 12400# Unfortunately, on DOS this fails, as config.log is still kept open 12401# by configure, so config.status won't be able to write to it; its 12402# output is simply discarded. So we exec the FD to /dev/null, 12403# effectively closing config.log, so it can be properly (re)opened and 12404# appended to by config.status. When coming back to configure, we 12405# need to make the FD available again. 12406if test "$no_create" != yes; then 12407 ac_cs_success=: 12408 ac_config_status_args= 12409 test "$silent" = yes && 12410 ac_config_status_args="$ac_config_status_args --quiet" 12411 exec 5>/dev/null 12412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12413 exec 5>>config.log 12414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12415 # would make configure fail if this is the last instruction. 12416 $ac_cs_success || as_fn_exit 1 12417fi 12418if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12420$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12421fi 12422 12423