configure revision fa120d7c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xrandr 1.4.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xrandr' 583PACKAGE_TARNAME='xrandr' 584PACKAGE_VERSION='1.4.2' 585PACKAGE_STRING='xrandr 1.4.2' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XRANDR_LIBS 631XRANDR_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646SED 647host_os 648host_vendor 649host_cpu 650host 651build_os 652build_vendor 653build_cpu 654build 655INSTALL_CMD 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659CHANGELOG_CMD 660STRICT_CFLAGS 661CWARNFLAGS 662BASE_CFLAGS 663EGREP 664GREP 665CPP 666am__fastdepCC_FALSE 667am__fastdepCC_TRUE 668CCDEPMODE 669am__nodep 670AMDEPBACKSLASH 671AMDEP_FALSE 672AMDEP_TRUE 673am__quote 674am__include 675DEPDIR 676OBJEXT 677EXEEXT 678ac_ct_CC 679CPPFLAGS 680LDFLAGS 681CFLAGS 682CC 683AM_BACKSLASH 684AM_DEFAULT_VERBOSITY 685AM_DEFAULT_V 686AM_V 687am__untar 688am__tar 689AMTAR 690am__leading_dot 691SET_MAKE 692AWK 693mkdir_p 694MKDIR_P 695INSTALL_STRIP_PROGRAM 696STRIP 697install_sh 698MAKEINFO 699AUTOHEADER 700AUTOMAKE 701AUTOCONF 702ACLOCAL 703VERSION 704PACKAGE 705CYGPATH_W 706am__isrc 707INSTALL_DATA 708INSTALL_SCRIPT 709INSTALL_PROGRAM 710target_alias 711host_alias 712build_alias 713LIBS 714ECHO_T 715ECHO_N 716ECHO_C 717DEFS 718mandir 719localedir 720libdir 721psdir 722pdfdir 723dvidir 724htmldir 725infodir 726docdir 727oldincludedir 728includedir 729localstatedir 730sharedstatedir 731sysconfdir 732datadir 733datarootdir 734libexecdir 735sbindir 736bindir 737program_transform_name 738prefix 739exec_prefix 740PACKAGE_URL 741PACKAGE_BUGREPORT 742PACKAGE_STRING 743PACKAGE_VERSION 744PACKAGE_TARNAME 745PACKAGE_NAME 746PATH_SEPARATOR 747SHELL' 748ac_subst_files='' 749ac_user_opts=' 750enable_option_checking 751enable_silent_rules 752enable_dependency_tracking 753enable_selective_werror 754enable_strict_compilation 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CPP 765PKG_CONFIG 766PKG_CONFIG_PATH 767PKG_CONFIG_LIBDIR 768XRANDR_CFLAGS 769XRANDR_LIBS' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *=) ac_optarg= ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error $? "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156Try \`$0 --help' for more information" 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1175 ;; 1176 1177 esac 1178done 1179 1180if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error $? "missing argument to $ac_option" 1183fi 1184 1185if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191fi 1192 1193# Check all directory arguments for consistency. 1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253$as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281fi 1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286# When building in place, set srcdir=. 1287if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289fi 1290# Remove unnecessary trailing slashes from srcdir. 1291# Double slashes in file names in object file debugging info 1292# mess up M-x gdb in Emacs. 1293case $srcdir in 1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295esac 1296for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301done 1302 1303# 1304# Report the --help message. 1305# 1306if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310\`configure' configures xrandr 1.4.2 to adapt to many kinds of systems. 1311 1312Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317Defaults for the options are specified in brackets. 1318 1319Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336By default, \`make install' will install all the files in 1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339for instance \`--prefix=\$HOME'. 1340 1341For better control, use the options below. 1342 1343Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/xrandr] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367Program names: 1368 --program-prefix=PREFIX prepend PREFIX to installed program names 1369 --program-suffix=SUFFIX append SUFFIX to installed program names 1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1371 1372System types: 1373 --build=BUILD configure for building on BUILD [guessed] 1374 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1375_ACEOF 1376fi 1377 1378if test -n "$ac_init_help"; then 1379 case $ac_init_help in 1380 short | recursive ) echo "Configuration of xrandr 1.4.2:";; 1381 esac 1382 cat <<\_ACEOF 1383 1384Optional Features: 1385 --disable-option-checking ignore unrecognized --enable/--with options 1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1388 --enable-silent-rules less verbose build output (undo: "make V=1") 1389 --disable-silent-rules verbose build output (undo: "make V=0") 1390 --enable-dependency-tracking 1391 do not reject slow dependency extractors 1392 --disable-dependency-tracking 1393 speeds up one-time build 1394 --disable-selective-werror 1395 Turn off selective compiler errors. (default: 1396 enabled) 1397 --enable-strict-compilation 1398 Enable all warnings from compiler and make them 1399 errors (default: disabled) 1400 1401Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CPP C preprocessor 1410 PKG_CONFIG path to pkg-config utility 1411 PKG_CONFIG_PATH 1412 directories to add to pkg-config's search path 1413 PKG_CONFIG_LIBDIR 1414 path overriding pkg-config's built-in search path 1415 XRANDR_CFLAGS 1416 C compiler flags for XRANDR, overriding pkg-config 1417 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config 1418 1419Use these variables to override the choices made by `configure' or to help 1420it to find libraries and programs with nonstandard names/locations. 1421 1422Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1423_ACEOF 1424ac_status=$? 1425fi 1426 1427if test "$ac_init_help" = "recursive"; then 1428 # If there are subdirs, report their specific --help. 1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1430 test -d "$ac_dir" || 1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1432 continue 1433 ac_builddir=. 1434 1435case "$ac_dir" in 1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1437*) 1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1439 # A ".." for each directory in $ac_dir_suffix. 1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1441 case $ac_top_builddir_sub in 1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1444 esac ;; 1445esac 1446ac_abs_top_builddir=$ac_pwd 1447ac_abs_builddir=$ac_pwd$ac_dir_suffix 1448# for backward compatibility: 1449ac_top_builddir=$ac_top_build_prefix 1450 1451case $srcdir in 1452 .) # We are building in place. 1453 ac_srcdir=. 1454 ac_top_srcdir=$ac_top_builddir_sub 1455 ac_abs_top_srcdir=$ac_pwd ;; 1456 [\\/]* | ?:[\\/]* ) # Absolute name. 1457 ac_srcdir=$srcdir$ac_dir_suffix; 1458 ac_top_srcdir=$srcdir 1459 ac_abs_top_srcdir=$srcdir ;; 1460 *) # Relative name. 1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1462 ac_top_srcdir=$ac_top_build_prefix$srcdir 1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1464esac 1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1466 1467 cd "$ac_dir" || { ac_status=$?; continue; } 1468 # Check for guested configure. 1469 if test -f "$ac_srcdir/configure.gnu"; then 1470 echo && 1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1472 elif test -f "$ac_srcdir/configure"; then 1473 echo && 1474 $SHELL "$ac_srcdir/configure" --help=recursive 1475 else 1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1477 fi || ac_status=$? 1478 cd "$ac_pwd" || { ac_status=$?; break; } 1479 done 1480fi 1481 1482test -n "$ac_init_help" && exit $ac_status 1483if $ac_init_version; then 1484 cat <<\_ACEOF 1485xrandr configure 1.4.2 1486generated by GNU Autoconf 2.69 1487 1488Copyright (C) 2012 Free Software Foundation, Inc. 1489This configure script is free software; the Free Software Foundation 1490gives unlimited permission to copy, distribute and modify it. 1491_ACEOF 1492 exit 1493fi 1494 1495## ------------------------ ## 1496## Autoconf initialization. ## 1497## ------------------------ ## 1498 1499# ac_fn_c_try_compile LINENO 1500# -------------------------- 1501# Try to compile conftest.$ac_ext, and return whether this succeeded. 1502ac_fn_c_try_compile () 1503{ 1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1505 rm -f conftest.$ac_objext 1506 if { { ac_try="$ac_compile" 1507case "(($ac_try" in 1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1509 *) ac_try_echo=$ac_try;; 1510esac 1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1512$as_echo "$ac_try_echo"; } >&5 1513 (eval "$ac_compile") 2>conftest.err 1514 ac_status=$? 1515 if test -s conftest.err; then 1516 grep -v '^ *+' conftest.err >conftest.er1 1517 cat conftest.er1 >&5 1518 mv -f conftest.er1 conftest.err 1519 fi 1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1521 test $ac_status = 0; } && { 1522 test -z "$ac_c_werror_flag" || 1523 test ! -s conftest.err 1524 } && test -s conftest.$ac_objext; then : 1525 ac_retval=0 1526else 1527 $as_echo "$as_me: failed program was:" >&5 1528sed 's/^/| /' conftest.$ac_ext >&5 1529 1530 ac_retval=1 1531fi 1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1533 as_fn_set_status $ac_retval 1534 1535} # ac_fn_c_try_compile 1536 1537# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1538# --------------------------------------------- 1539# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1540# accordingly. 1541ac_fn_c_check_decl () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 as_decl_name=`echo $2|sed 's/ *(.*//'` 1545 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1547$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1548if eval \${$3+:} false; then : 1549 $as_echo_n "(cached) " >&6 1550else 1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1552/* end confdefs.h. */ 1553$4 1554int 1555main () 1556{ 1557#ifndef $as_decl_name 1558#ifdef __cplusplus 1559 (void) $as_decl_use; 1560#else 1561 (void) $as_decl_name; 1562#endif 1563#endif 1564 1565 ; 1566 return 0; 1567} 1568_ACEOF 1569if ac_fn_c_try_compile "$LINENO"; then : 1570 eval "$3=yes" 1571else 1572 eval "$3=no" 1573fi 1574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1575fi 1576eval ac_res=\$$3 1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1578$as_echo "$ac_res" >&6; } 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 1581} # ac_fn_c_check_decl 1582 1583# ac_fn_c_try_cpp LINENO 1584# ---------------------- 1585# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1586ac_fn_c_try_cpp () 1587{ 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 if { { ac_try="$ac_cpp conftest.$ac_ext" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } > conftest.i && { 1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_c_try_cpp 1619 1620# ac_fn_c_try_run LINENO 1621# ---------------------- 1622# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1623# that executables *can* be run. 1624ac_fn_c_try_run () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 if { { ac_try="$ac_link" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_link") 2>&5 1635 ac_status=$? 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1638 { { case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_try") 2>&5 1645 ac_status=$? 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; }; }; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: program exited with status $ac_status" >&5 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=$ac_status 1655fi 1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_run 1661 1662# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1663# ------------------------------------------------------- 1664# Tests whether HEADER exists and can be compiled using the include files in 1665# INCLUDES, setting the cache variable VAR accordingly. 1666ac_fn_c_check_header_compile () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1670$as_echo_n "checking for $2... " >&6; } 1671if eval \${$3+:} false; then : 1672 $as_echo_n "(cached) " >&6 1673else 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO"; then : 1680 eval "$3=yes" 1681else 1682 eval "$3=no" 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685fi 1686eval ac_res=\$$3 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688$as_echo "$ac_res" >&6; } 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 1691} # ac_fn_c_check_header_compile 1692 1693# ac_fn_c_try_link LINENO 1694# ----------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_link () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 rm -f conftest.$ac_objext conftest$ac_exeext 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } && { 1716 test -z "$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 } && test -s conftest$ac_exeext && { 1719 test "$cross_compiling" = yes || 1720 test -x conftest$ac_exeext 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1731 # interfere with the next link command; also delete a directory that is 1732 # left behind by Apple's compiler. We do this before executing the actions. 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_link 1738cat >config.log <<_ACEOF 1739This file contains any messages produced by compilers while 1740running configure, to aid debugging if configure makes a mistake. 1741 1742It was created by xrandr $as_me 1.4.2, which was 1743generated by GNU Autoconf 2.69. Invocation command line was 1744 1745 $ $0 $@ 1746 1747_ACEOF 1748exec 5>>config.log 1749{ 1750cat <<_ASUNAME 1751## --------- ## 1752## Platform. ## 1753## --------- ## 1754 1755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1756uname -m = `(uname -m) 2>/dev/null || echo unknown` 1757uname -r = `(uname -r) 2>/dev/null || echo unknown` 1758uname -s = `(uname -s) 2>/dev/null || echo unknown` 1759uname -v = `(uname -v) 2>/dev/null || echo unknown` 1760 1761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1762/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1763 1764/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1765/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1767/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1768/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1769/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1770/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1771 1772_ASUNAME 1773 1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1775for as_dir in $PATH 1776do 1777 IFS=$as_save_IFS 1778 test -z "$as_dir" && as_dir=. 1779 $as_echo "PATH: $as_dir" 1780 done 1781IFS=$as_save_IFS 1782 1783} >&5 1784 1785cat >&5 <<_ACEOF 1786 1787 1788## ----------- ## 1789## Core tests. ## 1790## ----------- ## 1791 1792_ACEOF 1793 1794 1795# Keep a trace of the command line. 1796# Strip out --no-create and --no-recursion so they do not pile up. 1797# Strip out --silent because we don't want to record it for future runs. 1798# Also quote any args containing shell meta-characters. 1799# Make two passes to allow for proper duplicate-argument suppression. 1800ac_configure_args= 1801ac_configure_args0= 1802ac_configure_args1= 1803ac_must_keep_next=false 1804for ac_pass in 1 2 1805do 1806 for ac_arg 1807 do 1808 case $ac_arg in 1809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1811 | -silent | --silent | --silen | --sile | --sil) 1812 continue ;; 1813 *\'*) 1814 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1815 esac 1816 case $ac_pass in 1817 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1818 2) 1819 as_fn_append ac_configure_args1 " '$ac_arg'" 1820 if test $ac_must_keep_next = true; then 1821 ac_must_keep_next=false # Got value, back to normal. 1822 else 1823 case $ac_arg in 1824 *=* | --config-cache | -C | -disable-* | --disable-* \ 1825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1827 | -with-* | --with-* | -without-* | --without-* | --x) 1828 case "$ac_configure_args0 " in 1829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1830 esac 1831 ;; 1832 -* ) ac_must_keep_next=true ;; 1833 esac 1834 fi 1835 as_fn_append ac_configure_args " '$ac_arg'" 1836 ;; 1837 esac 1838 done 1839done 1840{ ac_configure_args0=; unset ac_configure_args0;} 1841{ ac_configure_args1=; unset ac_configure_args1;} 1842 1843# When interrupted or exit'd, cleanup temporary files, and complete 1844# config.log. We remove comments because anyway the quotes in there 1845# would cause problems or look ugly. 1846# WARNING: Use '\'' to represent an apostrophe within the trap. 1847# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1848trap 'exit_status=$? 1849 # Save into config.log some information that might help in debugging. 1850 { 1851 echo 1852 1853 $as_echo "## ---------------- ## 1854## Cache variables. ## 1855## ---------------- ##" 1856 echo 1857 # The following way of writing the cache mishandles newlines in values, 1858( 1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1860 eval ac_val=\$$ac_var 1861 case $ac_val in #( 1862 *${as_nl}*) 1863 case $ac_var in #( 1864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1866 esac 1867 case $ac_var in #( 1868 _ | IFS | as_nl) ;; #( 1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1870 *) { eval $ac_var=; unset $ac_var;} ;; 1871 esac ;; 1872 esac 1873 done 1874 (set) 2>&1 | 1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1876 *${as_nl}ac_space=\ *) 1877 sed -n \ 1878 "s/'\''/'\''\\\\'\'''\''/g; 1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1880 ;; #( 1881 *) 1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1883 ;; 1884 esac | 1885 sort 1886) 1887 echo 1888 1889 $as_echo "## ----------------- ## 1890## Output variables. ## 1891## ----------------- ##" 1892 echo 1893 for ac_var in $ac_subst_vars 1894 do 1895 eval ac_val=\$$ac_var 1896 case $ac_val in 1897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1898 esac 1899 $as_echo "$ac_var='\''$ac_val'\''" 1900 done | sort 1901 echo 1902 1903 if test -n "$ac_subst_files"; then 1904 $as_echo "## ------------------- ## 1905## File substitutions. ## 1906## ------------------- ##" 1907 echo 1908 for ac_var in $ac_subst_files 1909 do 1910 eval ac_val=\$$ac_var 1911 case $ac_val in 1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1913 esac 1914 $as_echo "$ac_var='\''$ac_val'\''" 1915 done | sort 1916 echo 1917 fi 1918 1919 if test -s confdefs.h; then 1920 $as_echo "## ----------- ## 1921## confdefs.h. ## 1922## ----------- ##" 1923 echo 1924 cat confdefs.h 1925 echo 1926 fi 1927 test "$ac_signal" != 0 && 1928 $as_echo "$as_me: caught signal $ac_signal" 1929 $as_echo "$as_me: exit $exit_status" 1930 } >&5 1931 rm -f core *.core core.conftest.* && 1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1933 exit $exit_status 1934' 0 1935for ac_signal in 1 2 13 15; do 1936 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1937done 1938ac_signal=0 1939 1940# confdefs.h avoids OS command line length limits that DEFS can exceed. 1941rm -f -r conftest* confdefs.h 1942 1943$as_echo "/* confdefs.h */" > confdefs.h 1944 1945# Predefined preprocessor variables. 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_NAME "$PACKAGE_NAME" 1949_ACEOF 1950 1951cat >>confdefs.h <<_ACEOF 1952#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1953_ACEOF 1954 1955cat >>confdefs.h <<_ACEOF 1956#define PACKAGE_VERSION "$PACKAGE_VERSION" 1957_ACEOF 1958 1959cat >>confdefs.h <<_ACEOF 1960#define PACKAGE_STRING "$PACKAGE_STRING" 1961_ACEOF 1962 1963cat >>confdefs.h <<_ACEOF 1964#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1965_ACEOF 1966 1967cat >>confdefs.h <<_ACEOF 1968#define PACKAGE_URL "$PACKAGE_URL" 1969_ACEOF 1970 1971 1972# Let the site file select an alternate cache file if it wants to. 1973# Prefer an explicitly selected file to automatically selected ones. 1974ac_site_file1=NONE 1975ac_site_file2=NONE 1976if test -n "$CONFIG_SITE"; then 1977 # We do not want a PATH search for config.site. 1978 case $CONFIG_SITE in #(( 1979 -*) ac_site_file1=./$CONFIG_SITE;; 1980 */*) ac_site_file1=$CONFIG_SITE;; 1981 *) ac_site_file1=./$CONFIG_SITE;; 1982 esac 1983elif test "x$prefix" != xNONE; then 1984 ac_site_file1=$prefix/share/config.site 1985 ac_site_file2=$prefix/etc/config.site 1986else 1987 ac_site_file1=$ac_default_prefix/share/config.site 1988 ac_site_file2=$ac_default_prefix/etc/config.site 1989fi 1990for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1991do 1992 test "x$ac_site_file" = xNONE && continue 1993 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1995$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1996 sed 's/^/| /' "$ac_site_file" >&5 1997 . "$ac_site_file" \ 1998 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2000as_fn_error $? "failed to load site script $ac_site_file 2001See \`config.log' for more details" "$LINENO" 5; } 2002 fi 2003done 2004 2005if test -r "$cache_file"; then 2006 # Some versions of bash will fail to source /dev/null (special files 2007 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2008 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2010$as_echo "$as_me: loading cache $cache_file" >&6;} 2011 case $cache_file in 2012 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2013 *) . "./$cache_file";; 2014 esac 2015 fi 2016else 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2018$as_echo "$as_me: creating cache $cache_file" >&6;} 2019 >$cache_file 2020fi 2021 2022# Check that the precious variables saved in the cache have kept the same 2023# value. 2024ac_cache_corrupted=false 2025for ac_var in $ac_precious_vars; do 2026 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2027 eval ac_new_set=\$ac_env_${ac_var}_set 2028 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2029 eval ac_new_val=\$ac_env_${ac_var}_value 2030 case $ac_old_set,$ac_new_set in 2031 set,) 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2033$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2034 ac_cache_corrupted=: ;; 2035 ,set) 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2037$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2038 ac_cache_corrupted=: ;; 2039 ,);; 2040 *) 2041 if test "x$ac_old_val" != "x$ac_new_val"; then 2042 # differences in whitespace do not lead to failure. 2043 ac_old_val_w=`echo x $ac_old_val` 2044 ac_new_val_w=`echo x $ac_new_val` 2045 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2047$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2048 ac_cache_corrupted=: 2049 else 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2051$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2052 eval $ac_var=\$ac_old_val 2053 fi 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2055$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2057$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2058 fi;; 2059 esac 2060 # Pass precious variables to config.status. 2061 if test "$ac_new_set" = set; then 2062 case $ac_new_val in 2063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2064 *) ac_arg=$ac_var=$ac_new_val ;; 2065 esac 2066 case " $ac_configure_args " in 2067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2068 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2069 esac 2070 fi 2071done 2072if $ac_cache_corrupted; then 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2076$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2077 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2078fi 2079## -------------------- ## 2080## Main body of script. ## 2081## -------------------- ## 2082 2083ac_ext=c 2084ac_cpp='$CPP $CPPFLAGS' 2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2087ac_compiler_gnu=$ac_cv_c_compiler_gnu 2088 2089 2090 2091ac_config_headers="$ac_config_headers config.h" 2092 2093 2094# Initialize Automake 2095am__api_version='1.14' 2096 2097ac_aux_dir= 2098for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2099 if test -f "$ac_dir/install-sh"; then 2100 ac_aux_dir=$ac_dir 2101 ac_install_sh="$ac_aux_dir/install-sh -c" 2102 break 2103 elif test -f "$ac_dir/install.sh"; then 2104 ac_aux_dir=$ac_dir 2105 ac_install_sh="$ac_aux_dir/install.sh -c" 2106 break 2107 elif test -f "$ac_dir/shtool"; then 2108 ac_aux_dir=$ac_dir 2109 ac_install_sh="$ac_aux_dir/shtool install -c" 2110 break 2111 fi 2112done 2113if test -z "$ac_aux_dir"; then 2114 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2115fi 2116 2117# These three variables are undocumented and unsupported, 2118# and are intended to be withdrawn in a future Autoconf release. 2119# They can cause serious problems if a builder's source tree is in a directory 2120# whose full name contains unusual characters. 2121ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2122ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2123ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2124 2125 2126# Find a good install program. We prefer a C program (faster), 2127# so one script is as good as another. But avoid the broken or 2128# incompatible versions: 2129# SysV /etc/install, /usr/sbin/install 2130# SunOS /usr/etc/install 2131# IRIX /sbin/install 2132# AIX /bin/install 2133# AmigaOS /C/install, which installs bootblocks on floppy discs 2134# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2135# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2136# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2137# OS/2's system install, which has a completely different semantic 2138# ./install, which can be erroneously created by make from ./install.sh. 2139# Reject install programs that cannot install multiple files. 2140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2141$as_echo_n "checking for a BSD-compatible install... " >&6; } 2142if test -z "$INSTALL"; then 2143if ${ac_cv_path_install+:} false; then : 2144 $as_echo_n "(cached) " >&6 2145else 2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2147for as_dir in $PATH 2148do 2149 IFS=$as_save_IFS 2150 test -z "$as_dir" && as_dir=. 2151 # Account for people who put trailing slashes in PATH elements. 2152case $as_dir/ in #(( 2153 ./ | .// | /[cC]/* | \ 2154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2155 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2156 /usr/ucb/* ) ;; 2157 *) 2158 # OSF1 and SCO ODT 3.0 have their own names for install. 2159 # Don't use installbsd from OSF since it installs stuff as root 2160 # by default. 2161 for ac_prog in ginstall scoinst install; do 2162 for ac_exec_ext in '' $ac_executable_extensions; do 2163 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2164 if test $ac_prog = install && 2165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2166 # AIX install. It has an incompatible calling convention. 2167 : 2168 elif test $ac_prog = install && 2169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2170 # program-specific install script used by HP pwplus--don't use. 2171 : 2172 else 2173 rm -rf conftest.one conftest.two conftest.dir 2174 echo one > conftest.one 2175 echo two > conftest.two 2176 mkdir conftest.dir 2177 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2178 test -s conftest.one && test -s conftest.two && 2179 test -s conftest.dir/conftest.one && 2180 test -s conftest.dir/conftest.two 2181 then 2182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2183 break 3 2184 fi 2185 fi 2186 fi 2187 done 2188 done 2189 ;; 2190esac 2191 2192 done 2193IFS=$as_save_IFS 2194 2195rm -rf conftest.one conftest.two conftest.dir 2196 2197fi 2198 if test "${ac_cv_path_install+set}" = set; then 2199 INSTALL=$ac_cv_path_install 2200 else 2201 # As a last resort, use the slow shell script. Don't cache a 2202 # value for INSTALL within a source directory, because that will 2203 # break other packages using the cache if that directory is 2204 # removed, or if the value is a relative name. 2205 INSTALL=$ac_install_sh 2206 fi 2207fi 2208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2209$as_echo "$INSTALL" >&6; } 2210 2211# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2212# It thinks the first close brace ends the variable substitution. 2213test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2214 2215test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2216 2217test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2218 2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2220$as_echo_n "checking whether build environment is sane... " >&6; } 2221# Reject unsafe characters in $srcdir or the absolute working directory 2222# name. Accept space and tab only in the latter. 2223am_lf=' 2224' 2225case `pwd` in 2226 *[\\\"\#\$\&\'\`$am_lf]*) 2227 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2228esac 2229case $srcdir in 2230 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2231 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2232esac 2233 2234# Do 'set' in a subshell so we don't clobber the current shell's 2235# arguments. Must try -L first in case configure is actually a 2236# symlink; some systems play weird games with the mod time of symlinks 2237# (eg FreeBSD returns the mod time of the symlink's containing 2238# directory). 2239if ( 2240 am_has_slept=no 2241 for am_try in 1 2; do 2242 echo "timestamp, slept: $am_has_slept" > conftest.file 2243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2244 if test "$*" = "X"; then 2245 # -L didn't work. 2246 set X `ls -t "$srcdir/configure" conftest.file` 2247 fi 2248 if test "$*" != "X $srcdir/configure conftest.file" \ 2249 && test "$*" != "X conftest.file $srcdir/configure"; then 2250 2251 # If neither matched, then we have a broken ls. This can happen 2252 # if, for instance, CONFIG_SHELL is bash and it inherits a 2253 # broken ls alias from the environment. This has actually 2254 # happened. Such a system could not be considered "sane". 2255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2256 alias in your environment" "$LINENO" 5 2257 fi 2258 if test "$2" = conftest.file || test $am_try -eq 2; then 2259 break 2260 fi 2261 # Just in case. 2262 sleep 1 2263 am_has_slept=yes 2264 done 2265 test "$2" = conftest.file 2266 ) 2267then 2268 # Ok. 2269 : 2270else 2271 as_fn_error $? "newly created file is older than distributed files! 2272Check your system clock" "$LINENO" 5 2273fi 2274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2275$as_echo "yes" >&6; } 2276# If we didn't sleep, we still need to ensure time stamps of config.status and 2277# generated files are strictly newer. 2278am_sleep_pid= 2279if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2280 ( sleep 1 ) & 2281 am_sleep_pid=$! 2282fi 2283 2284rm -f conftest.file 2285 2286test "$program_prefix" != NONE && 2287 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2288# Use a double $ so make ignores it. 2289test "$program_suffix" != NONE && 2290 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2291# Double any \ or $. 2292# By default was `s,x,x', remove it if useless. 2293ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2294program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2295 2296# expand $ac_aux_dir to an absolute path 2297am_aux_dir=`cd $ac_aux_dir && pwd` 2298 2299if test x"${MISSING+set}" != xset; then 2300 case $am_aux_dir in 2301 *\ * | *\ *) 2302 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2303 *) 2304 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2305 esac 2306fi 2307# Use eval to expand $SHELL 2308if eval "$MISSING --is-lightweight"; then 2309 am_missing_run="$MISSING " 2310else 2311 am_missing_run= 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2313$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2314fi 2315 2316if test x"${install_sh}" != xset; then 2317 case $am_aux_dir in 2318 *\ * | *\ *) 2319 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2320 *) 2321 install_sh="\${SHELL} $am_aux_dir/install-sh" 2322 esac 2323fi 2324 2325# Installed binaries are usually stripped using 'strip' when the user 2326# run "make install-strip". However 'strip' might not be the right 2327# tool to use in cross-compilation environments, therefore Automake 2328# will honor the 'STRIP' environment variable to overrule this program. 2329if test "$cross_compiling" != no; then 2330 if test -n "$ac_tool_prefix"; then 2331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2332set dummy ${ac_tool_prefix}strip; ac_word=$2 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2334$as_echo_n "checking for $ac_word... " >&6; } 2335if ${ac_cv_prog_STRIP+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 if test -n "$STRIP"; then 2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2348 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353 done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358STRIP=$ac_cv_prog_STRIP 2359if test -n "$STRIP"; then 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2361$as_echo "$STRIP" >&6; } 2362else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2364$as_echo "no" >&6; } 2365fi 2366 2367 2368fi 2369if test -z "$ac_cv_prog_STRIP"; then 2370 ac_ct_STRIP=$STRIP 2371 # Extract the first word of "strip", so it can be a program name with args. 2372set dummy strip; ac_word=$2 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2374$as_echo_n "checking for $ac_word... " >&6; } 2375if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2376 $as_echo_n "(cached) " >&6 2377else 2378 if test -n "$ac_ct_STRIP"; then 2379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2380else 2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 for ac_exec_ext in '' $ac_executable_extensions; do 2387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2388 ac_cv_prog_ac_ct_STRIP="strip" 2389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 break 2 2391 fi 2392done 2393 done 2394IFS=$as_save_IFS 2395 2396fi 2397fi 2398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2399if test -n "$ac_ct_STRIP"; then 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2401$as_echo "$ac_ct_STRIP" >&6; } 2402else 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2404$as_echo "no" >&6; } 2405fi 2406 2407 if test "x$ac_ct_STRIP" = x; then 2408 STRIP=":" 2409 else 2410 case $cross_compiling:$ac_tool_warned in 2411yes:) 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2414ac_tool_warned=yes ;; 2415esac 2416 STRIP=$ac_ct_STRIP 2417 fi 2418else 2419 STRIP="$ac_cv_prog_STRIP" 2420fi 2421 2422fi 2423INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2424 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2426$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2427if test -z "$MKDIR_P"; then 2428 if ${ac_cv_path_mkdir+:} false; then : 2429 $as_echo_n "(cached) " >&6 2430else 2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2432for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2433do 2434 IFS=$as_save_IFS 2435 test -z "$as_dir" && as_dir=. 2436 for ac_prog in mkdir gmkdir; do 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2440 'mkdir (GNU coreutils) '* | \ 2441 'mkdir (coreutils) '* | \ 2442 'mkdir (fileutils) '4.1*) 2443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2444 break 3;; 2445 esac 2446 done 2447 done 2448 done 2449IFS=$as_save_IFS 2450 2451fi 2452 2453 test -d ./--version && rmdir ./--version 2454 if test "${ac_cv_path_mkdir+set}" = set; then 2455 MKDIR_P="$ac_cv_path_mkdir -p" 2456 else 2457 # As a last resort, use the slow shell script. Don't cache a 2458 # value for MKDIR_P within a source directory, because that will 2459 # break other packages using the cache if that directory is 2460 # removed, or if the value is a relative name. 2461 MKDIR_P="$ac_install_sh -d" 2462 fi 2463fi 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2465$as_echo "$MKDIR_P" >&6; } 2466 2467for ac_prog in gawk mawk nawk awk 2468do 2469 # Extract the first word of "$ac_prog", so it can be a program name with args. 2470set dummy $ac_prog; ac_word=$2 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2472$as_echo_n "checking for $ac_word... " >&6; } 2473if ${ac_cv_prog_AWK+:} false; then : 2474 $as_echo_n "(cached) " >&6 2475else 2476 if test -n "$AWK"; then 2477 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2486 ac_cv_prog_AWK="$ac_prog" 2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491 done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496AWK=$ac_cv_prog_AWK 2497if test -n "$AWK"; then 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2499$as_echo "$AWK" >&6; } 2500else 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2502$as_echo "no" >&6; } 2503fi 2504 2505 2506 test -n "$AWK" && break 2507done 2508 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2510$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2511set x ${MAKE-make} 2512ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2513if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2514 $as_echo_n "(cached) " >&6 2515else 2516 cat >conftest.make <<\_ACEOF 2517SHELL = /bin/sh 2518all: 2519 @echo '@@@%%%=$(MAKE)=@@@%%%' 2520_ACEOF 2521# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2522case `${MAKE-make} -f conftest.make 2>/dev/null` in 2523 *@@@%%%=?*=@@@%%%*) 2524 eval ac_cv_prog_make_${ac_make}_set=yes;; 2525 *) 2526 eval ac_cv_prog_make_${ac_make}_set=no;; 2527esac 2528rm -f conftest.make 2529fi 2530if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2532$as_echo "yes" >&6; } 2533 SET_MAKE= 2534else 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2536$as_echo "no" >&6; } 2537 SET_MAKE="MAKE=${MAKE-make}" 2538fi 2539 2540rm -rf .tst 2>/dev/null 2541mkdir .tst 2>/dev/null 2542if test -d .tst; then 2543 am__leading_dot=. 2544else 2545 am__leading_dot=_ 2546fi 2547rmdir .tst 2>/dev/null 2548 2549# Check whether --enable-silent-rules was given. 2550if test "${enable_silent_rules+set}" = set; then : 2551 enableval=$enable_silent_rules; 2552fi 2553 2554case $enable_silent_rules in # ((( 2555 yes) AM_DEFAULT_VERBOSITY=0;; 2556 no) AM_DEFAULT_VERBOSITY=1;; 2557 *) AM_DEFAULT_VERBOSITY=1;; 2558esac 2559am_make=${MAKE-make} 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2561$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2562if ${am_cv_make_support_nested_variables+:} false; then : 2563 $as_echo_n "(cached) " >&6 2564else 2565 if $as_echo 'TRUE=$(BAR$(V)) 2566BAR0=false 2567BAR1=true 2568V=1 2569am__doit: 2570 @$(TRUE) 2571.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2572 am_cv_make_support_nested_variables=yes 2573else 2574 am_cv_make_support_nested_variables=no 2575fi 2576fi 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2578$as_echo "$am_cv_make_support_nested_variables" >&6; } 2579if test $am_cv_make_support_nested_variables = yes; then 2580 AM_V='$(V)' 2581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2582else 2583 AM_V=$AM_DEFAULT_VERBOSITY 2584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2585fi 2586AM_BACKSLASH='\' 2587 2588if test "`cd $srcdir && pwd`" != "`pwd`"; then 2589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2590 # is not polluted with repeated "-I." 2591 am__isrc=' -I$(srcdir)' 2592 # test to see if srcdir already configured 2593 if test -f $srcdir/config.status; then 2594 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2595 fi 2596fi 2597 2598# test whether we have cygpath 2599if test -z "$CYGPATH_W"; then 2600 if (cygpath --version) >/dev/null 2>/dev/null; then 2601 CYGPATH_W='cygpath -w' 2602 else 2603 CYGPATH_W=echo 2604 fi 2605fi 2606 2607 2608# Define the identity of the package. 2609 PACKAGE='xrandr' 2610 VERSION='1.4.2' 2611 2612 2613cat >>confdefs.h <<_ACEOF 2614#define PACKAGE "$PACKAGE" 2615_ACEOF 2616 2617 2618cat >>confdefs.h <<_ACEOF 2619#define VERSION "$VERSION" 2620_ACEOF 2621 2622# Some tools Automake needs. 2623 2624ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2625 2626 2627AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2628 2629 2630AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2631 2632 2633AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2634 2635 2636MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2637 2638# For better backward compatibility. To be removed once Automake 1.9.x 2639# dies out for good. For more background, see: 2640# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2641# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2642mkdir_p='$(MKDIR_P)' 2643 2644# We need awk for the "check" target. The system "awk" is bad on 2645# some platforms. 2646# Always define AMTAR for backward compatibility. Yes, it's still used 2647# in the wild :-( We should find a proper way to deprecate it ... 2648AMTAR='$${TAR-tar}' 2649 2650 2651# We'll loop over all known methods to create a tar archive until one works. 2652_am_tools='gnutar pax cpio none' 2653 2654am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2655 2656 2657 2658 2659 2660 2661# POSIX will say in a future version that running "rm -f" with no argument 2662# is OK; and we want to be able to make that assumption in our Makefile 2663# recipes. So use an aggressive probe to check that the usage we want is 2664# actually supported "in the wild" to an acceptable degree. 2665# See automake bug#10828. 2666# To make any issue more visible, cause the running configure to be aborted 2667# by default if the 'rm' program in use doesn't match our expectations; the 2668# user can still override this though. 2669if rm -f && rm -fr && rm -rf; then : OK; else 2670 cat >&2 <<'END' 2671Oops! 2672 2673Your 'rm' program seems unable to run without file operands specified 2674on the command line, even when the '-f' option is present. This is contrary 2675to the behaviour of most rm programs out there, and not conforming with 2676the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2677 2678Please tell bug-automake@gnu.org about your system, including the value 2679of your $PATH and any error possibly output before this message. This 2680can help us improve future automake versions. 2681 2682END 2683 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2684 echo 'Configuration will proceed anyway, since you have set the' >&2 2685 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2686 echo >&2 2687 else 2688 cat >&2 <<'END' 2689Aborting the configuration process, to ensure you take notice of the issue. 2690 2691You can download and install GNU coreutils to get an 'rm' implementation 2692that behaves properly: <http://www.gnu.org/software/coreutils/>. 2693 2694If you want to complete the configuration process using your problematic 2695'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2696to "yes", and re-run configure. 2697 2698END 2699 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2700 fi 2701fi 2702 2703# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715DEPDIR="${am__leading_dot}deps" 2716 2717ac_config_commands="$ac_config_commands depfiles" 2718 2719 2720am_make=${MAKE-make} 2721cat > confinc << 'END' 2722am__doit: 2723 @echo this is the am__doit target 2724.PHONY: am__doit 2725END 2726# If we don't find an include directive, just comment out the code. 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2728$as_echo_n "checking for style of include used by $am_make... " >&6; } 2729am__include="#" 2730am__quote= 2731_am_result=none 2732# First try GNU make style include. 2733echo "include confinc" > confmf 2734# Ignore all kinds of additional output from 'make'. 2735case `$am_make -s -f confmf 2> /dev/null` in #( 2736*the\ am__doit\ target*) 2737 am__include=include 2738 am__quote= 2739 _am_result=GNU 2740 ;; 2741esac 2742# Now try BSD make style include. 2743if test "$am__include" = "#"; then 2744 echo '.include "confinc"' > confmf 2745 case `$am_make -s -f confmf 2> /dev/null` in #( 2746 *the\ am__doit\ target*) 2747 am__include=.include 2748 am__quote="\"" 2749 _am_result=BSD 2750 ;; 2751 esac 2752fi 2753 2754 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2756$as_echo "$_am_result" >&6; } 2757rm -f confinc confmf 2758 2759# Check whether --enable-dependency-tracking was given. 2760if test "${enable_dependency_tracking+set}" = set; then : 2761 enableval=$enable_dependency_tracking; 2762fi 2763 2764if test "x$enable_dependency_tracking" != xno; then 2765 am_depcomp="$ac_aux_dir/depcomp" 2766 AMDEPBACKSLASH='\' 2767 am__nodep='_no' 2768fi 2769 if test "x$enable_dependency_tracking" != xno; then 2770 AMDEP_TRUE= 2771 AMDEP_FALSE='#' 2772else 2773 AMDEP_TRUE='#' 2774 AMDEP_FALSE= 2775fi 2776 2777 2778ac_ext=c 2779ac_cpp='$CPP $CPPFLAGS' 2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2782ac_compiler_gnu=$ac_cv_c_compiler_gnu 2783if test -n "$ac_tool_prefix"; then 2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2785set dummy ${ac_tool_prefix}gcc; ac_word=$2 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2787$as_echo_n "checking for $ac_word... " >&6; } 2788if ${ac_cv_prog_CC+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 if test -n "$CC"; then 2792 ac_cv_prog_CC="$CC" # Let the user override the test. 2793else 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811CC=$ac_cv_prog_CC 2812if test -n "$CC"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2814$as_echo "$CC" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 2821fi 2822if test -z "$ac_cv_prog_CC"; then 2823 ac_ct_CC=$CC 2824 # Extract the first word of "gcc", so it can be a program name with args. 2825set dummy gcc; ac_word=$2 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827$as_echo_n "checking for $ac_word... " >&6; } 2828if ${ac_cv_prog_ac_ct_CC+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test -n "$ac_ct_CC"; then 2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_ac_ct_CC="gcc" 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851ac_ct_CC=$ac_cv_prog_ac_ct_CC 2852if test -n "$ac_ct_CC"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2854$as_echo "$ac_ct_CC" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 if test "x$ac_ct_CC" = x; then 2861 CC="" 2862 else 2863 case $cross_compiling:$ac_tool_warned in 2864yes:) 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2867ac_tool_warned=yes ;; 2868esac 2869 CC=$ac_ct_CC 2870 fi 2871else 2872 CC="$ac_cv_prog_CC" 2873fi 2874 2875if test -z "$CC"; then 2876 if test -n "$ac_tool_prefix"; then 2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2878set dummy ${ac_tool_prefix}cc; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if ${ac_cv_prog_CC+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 if test -n "$CC"; then 2885 ac_cv_prog_CC="$CC" # Let the user override the test. 2886else 2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_CC="${ac_tool_prefix}cc" 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi 2903fi 2904CC=$ac_cv_prog_CC 2905if test -n "$CC"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2907$as_echo "$CC" >&6; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911fi 2912 2913 2914 fi 2915fi 2916if test -z "$CC"; then 2917 # Extract the first word of "cc", so it can be a program name with args. 2918set dummy cc; ac_word=$2 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920$as_echo_n "checking for $ac_word... " >&6; } 2921if ${ac_cv_prog_CC+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test -n "$CC"; then 2925 ac_cv_prog_CC="$CC" # Let the user override the test. 2926else 2927 ac_prog_rejected=no 2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2929for as_dir in $PATH 2930do 2931 IFS=$as_save_IFS 2932 test -z "$as_dir" && as_dir=. 2933 for ac_exec_ext in '' $ac_executable_extensions; do 2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2936 ac_prog_rejected=yes 2937 continue 2938 fi 2939 ac_cv_prog_CC="cc" 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2941 break 2 2942 fi 2943done 2944 done 2945IFS=$as_save_IFS 2946 2947if test $ac_prog_rejected = yes; then 2948 # We found a bogon in the path, so make sure we never use it. 2949 set dummy $ac_cv_prog_CC 2950 shift 2951 if test $# != 0; then 2952 # We chose a different compiler from the bogus one. 2953 # However, it has the same basename, so the bogon will be chosen 2954 # first if we set CC to just the basename; use the full file name. 2955 shift 2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2957 fi 2958fi 2959fi 2960fi 2961CC=$ac_cv_prog_CC 2962if test -n "$CC"; then 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2964$as_echo "$CC" >&6; } 2965else 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967$as_echo "no" >&6; } 2968fi 2969 2970 2971fi 2972if test -z "$CC"; then 2973 if test -n "$ac_tool_prefix"; then 2974 for ac_prog in cl.exe 2975 do 2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2977set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if ${ac_cv_prog_CC+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$CC"; then 2984 ac_cv_prog_CC="$CC" # Let the user override the test. 2985else 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998 done 2999IFS=$as_save_IFS 3000 3001fi 3002fi 3003CC=$ac_cv_prog_CC 3004if test -n "$CC"; then 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3006$as_echo "$CC" >&6; } 3007else 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3009$as_echo "no" >&6; } 3010fi 3011 3012 3013 test -n "$CC" && break 3014 done 3015fi 3016if test -z "$CC"; then 3017 ac_ct_CC=$CC 3018 for ac_prog in cl.exe 3019do 3020 # Extract the first word of "$ac_prog", so it can be a program name with args. 3021set dummy $ac_prog; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if ${ac_cv_prog_ac_ct_CC+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$ac_ct_CC"; then 3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_ac_ct_CC="$ac_prog" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047ac_ct_CC=$ac_cv_prog_ac_ct_CC 3048if test -n "$ac_ct_CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3050$as_echo "$ac_ct_CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 test -n "$ac_ct_CC" && break 3058done 3059 3060 if test "x$ac_ct_CC" = x; then 3061 CC="" 3062 else 3063 case $cross_compiling:$ac_tool_warned in 3064yes:) 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3067ac_tool_warned=yes ;; 3068esac 3069 CC=$ac_ct_CC 3070 fi 3071fi 3072 3073fi 3074 3075 3076test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3078as_fn_error $? "no acceptable C compiler found in \$PATH 3079See \`config.log' for more details" "$LINENO" 5; } 3080 3081# Provide some information about the compiler. 3082$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3083set X $ac_compile 3084ac_compiler=$2 3085for ac_option in --version -v -V -qversion; do 3086 { { ac_try="$ac_compiler $ac_option >&5" 3087case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090esac 3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3092$as_echo "$ac_try_echo"; } >&5 3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3094 ac_status=$? 3095 if test -s conftest.err; then 3096 sed '10a\ 3097... rest of stderr output deleted ... 3098 10q' conftest.err >conftest.er1 3099 cat conftest.er1 >&5 3100 fi 3101 rm -f conftest.er1 conftest.err 3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3103 test $ac_status = 0; } 3104done 3105 3106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117ac_clean_files_save=$ac_clean_files 3118ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3119# Try to create an executable without -o first, disregard a.out. 3120# It will help us diagnose broken compilers, and finding out an intuition 3121# of exeext. 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3123$as_echo_n "checking whether the C compiler works... " >&6; } 3124ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3125 3126# The possible output files: 3127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3128 3129ac_rmfiles= 3130for ac_file in $ac_files 3131do 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3135 esac 3136done 3137rm -f $ac_rmfiles 3138 3139if { { ac_try="$ac_link_default" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145$as_echo "$ac_try_echo"; } >&5 3146 (eval "$ac_link_default") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; }; then : 3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3151# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3152# in a Makefile. We should not override ac_cv_exeext if it was cached, 3153# so that the user can short-circuit this test for compilers unknown to 3154# Autoconf. 3155for ac_file in $ac_files '' 3156do 3157 test -f "$ac_file" || continue 3158 case $ac_file in 3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3160 ;; 3161 [ab].out ) 3162 # We found the default executable, but exeext='' is most 3163 # certainly right. 3164 break;; 3165 *.* ) 3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3167 then :; else 3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3169 fi 3170 # We set ac_cv_exeext here because the later test for it is not 3171 # safe: cross compilers may not add the suffix if given an `-o' 3172 # argument, so we may need to know it at that point already. 3173 # Even if this section looks crufty: it has the advantage of 3174 # actually working. 3175 break;; 3176 * ) 3177 break;; 3178 esac 3179done 3180test "$ac_cv_exeext" = no && ac_cv_exeext= 3181 3182else 3183 ac_file='' 3184fi 3185if test -z "$ac_file"; then : 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188$as_echo "$as_me: failed program was:" >&5 3189sed 's/^/| /' conftest.$ac_ext >&5 3190 3191{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3193as_fn_error 77 "C compiler cannot create executables 3194See \`config.log' for more details" "$LINENO" 5; } 3195else 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3197$as_echo "yes" >&6; } 3198fi 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3200$as_echo_n "checking for C compiler default output file name... " >&6; } 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3202$as_echo "$ac_file" >&6; } 3203ac_exeext=$ac_cv_exeext 3204 3205rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3206ac_clean_files=$ac_clean_files_save 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3208$as_echo_n "checking for suffix of executables... " >&6; } 3209if { { ac_try="$ac_link" 3210case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3215$as_echo "$ac_try_echo"; } >&5 3216 (eval "$ac_link") 2>&5 3217 ac_status=$? 3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219 test $ac_status = 0; }; then : 3220 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3222# work properly (i.e., refer to `conftest.exe'), while it won't with 3223# `rm'. 3224for ac_file in conftest.exe conftest conftest.*; do 3225 test -f "$ac_file" || continue 3226 case $ac_file in 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3229 break;; 3230 * ) break;; 3231 esac 3232done 3233else 3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3236as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3237See \`config.log' for more details" "$LINENO" 5; } 3238fi 3239rm -f conftest conftest$ac_cv_exeext 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3241$as_echo "$ac_cv_exeext" >&6; } 3242 3243rm -f conftest.$ac_ext 3244EXEEXT=$ac_cv_exeext 3245ac_exeext=$EXEEXT 3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3247/* end confdefs.h. */ 3248#include <stdio.h> 3249int 3250main () 3251{ 3252FILE *f = fopen ("conftest.out", "w"); 3253 return ferror (f) || fclose (f) != 0; 3254 3255 ; 3256 return 0; 3257} 3258_ACEOF 3259ac_clean_files="$ac_clean_files conftest.out" 3260# Check that the compiler produces executables we can run. If not, either 3261# the compiler is broken, or we cross compile. 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3263$as_echo_n "checking whether we are cross compiling... " >&6; } 3264if test "$cross_compiling" != yes; then 3265 { { ac_try="$ac_link" 3266case "(($ac_try" in 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3268 *) ac_try_echo=$ac_try;; 3269esac 3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3271$as_echo "$ac_try_echo"; } >&5 3272 (eval "$ac_link") 2>&5 3273 ac_status=$? 3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3275 test $ac_status = 0; } 3276 if { ac_try='./conftest$ac_cv_exeext' 3277 { { case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282$as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_try") 2>&5 3284 ac_status=$? 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; }; }; then 3287 cross_compiling=no 3288 else 3289 if test "$cross_compiling" = maybe; then 3290 cross_compiling=yes 3291 else 3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3294as_fn_error $? "cannot run C compiled programs. 3295If you meant to cross compile, use \`--host'. 3296See \`config.log' for more details" "$LINENO" 5; } 3297 fi 3298 fi 3299fi 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3301$as_echo "$cross_compiling" >&6; } 3302 3303rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3304ac_clean_files=$ac_clean_files_save 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3306$as_echo_n "checking for suffix of object files... " >&6; } 3307if ${ac_cv_objext+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313int 3314main () 3315{ 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321rm -f conftest.o conftest.obj 3322if { { ac_try="$ac_compile" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3328$as_echo "$ac_try_echo"; } >&5 3329 (eval "$ac_compile") 2>&5 3330 ac_status=$? 3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3332 test $ac_status = 0; }; then : 3333 for ac_file in conftest.o conftest.obj conftest.*; do 3334 test -f "$ac_file" || continue; 3335 case $ac_file in 3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3338 break;; 3339 esac 3340done 3341else 3342 $as_echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3347as_fn_error $? "cannot compute suffix of object files: cannot compile 3348See \`config.log' for more details" "$LINENO" 5; } 3349fi 3350rm -f conftest.$ac_cv_objext conftest.$ac_ext 3351fi 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3353$as_echo "$ac_cv_objext" >&6; } 3354OBJEXT=$ac_cv_objext 3355ac_objext=$OBJEXT 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3357$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3358if ${ac_cv_c_compiler_gnu+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367#ifndef __GNUC__ 3368 choke me 3369#endif 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375if ac_fn_c_try_compile "$LINENO"; then : 3376 ac_compiler_gnu=yes 3377else 3378 ac_compiler_gnu=no 3379fi 3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3381ac_cv_c_compiler_gnu=$ac_compiler_gnu 3382 3383fi 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3385$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3386if test $ac_compiler_gnu = yes; then 3387 GCC=yes 3388else 3389 GCC= 3390fi 3391ac_test_CFLAGS=${CFLAGS+set} 3392ac_save_CFLAGS=$CFLAGS 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3394$as_echo_n "checking whether $CC accepts -g... " >&6; } 3395if ${ac_cv_prog_cc_g+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 ac_save_c_werror_flag=$ac_c_werror_flag 3399 ac_c_werror_flag=yes 3400 ac_cv_prog_cc_g=no 3401 CFLAGS="-g" 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413if ac_fn_c_try_compile "$LINENO"; then : 3414 ac_cv_prog_cc_g=yes 3415else 3416 CFLAGS="" 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418/* end confdefs.h. */ 3419 3420int 3421main () 3422{ 3423 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428if ac_fn_c_try_compile "$LINENO"; then : 3429 3430else 3431 ac_c_werror_flag=$ac_save_c_werror_flag 3432 CFLAGS="-g" 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435 3436int 3437main () 3438{ 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_compile "$LINENO"; then : 3445 ac_cv_prog_cc_g=yes 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452 ac_c_werror_flag=$ac_save_c_werror_flag 3453fi 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3455$as_echo "$ac_cv_prog_cc_g" >&6; } 3456if test "$ac_test_CFLAGS" = set; then 3457 CFLAGS=$ac_save_CFLAGS 3458elif test $ac_cv_prog_cc_g = yes; then 3459 if test "$GCC" = yes; then 3460 CFLAGS="-g -O2" 3461 else 3462 CFLAGS="-g" 3463 fi 3464else 3465 if test "$GCC" = yes; then 3466 CFLAGS="-O2" 3467 else 3468 CFLAGS= 3469 fi 3470fi 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3472$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3473if ${ac_cv_prog_cc_c89+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 ac_cv_prog_cc_c89=no 3477ac_save_CC=$CC 3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480#include <stdarg.h> 3481#include <stdio.h> 3482struct stat; 3483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3484struct buf { int x; }; 3485FILE * (*rcsopen) (struct buf *, struct stat *, int); 3486static char *e (p, i) 3487 char **p; 3488 int i; 3489{ 3490 return p[i]; 3491} 3492static char *f (char * (*g) (char **, int), char **p, ...) 3493{ 3494 char *s; 3495 va_list v; 3496 va_start (v,p); 3497 s = g (p, va_arg (v,int)); 3498 va_end (v); 3499 return s; 3500} 3501 3502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3503 function prototypes and stuff, but not '\xHH' hex character constants. 3504 These don't provoke an error unfortunately, instead are silently treated 3505 as 'x'. The following induces an error, until -std is added to get 3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3507 array size at least. It's necessary to write '\x00'==0 to get something 3508 that's true only with -std. */ 3509int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3510 3511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3512 inside strings and character constants. */ 3513#define FOO(x) 'x' 3514int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3515 3516int test (int i, double x); 3517struct s1 {int (*f) (int a);}; 3518struct s2 {int (*f) (double a);}; 3519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3520int argc; 3521char **argv; 3522int 3523main () 3524{ 3525return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3532do 3533 CC="$ac_save_CC $ac_arg" 3534 if ac_fn_c_try_compile "$LINENO"; then : 3535 ac_cv_prog_cc_c89=$ac_arg 3536fi 3537rm -f core conftest.err conftest.$ac_objext 3538 test "x$ac_cv_prog_cc_c89" != "xno" && break 3539done 3540rm -f conftest.$ac_ext 3541CC=$ac_save_CC 3542 3543fi 3544# AC_CACHE_VAL 3545case "x$ac_cv_prog_cc_c89" in 3546 x) 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3548$as_echo "none needed" >&6; } ;; 3549 xno) 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3551$as_echo "unsupported" >&6; } ;; 3552 *) 3553 CC="$CC $ac_cv_prog_cc_c89" 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3555$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3556esac 3557if test "x$ac_cv_prog_cc_c89" != xno; then : 3558 3559fi 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 3567ac_ext=c 3568ac_cpp='$CPP $CPPFLAGS' 3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3571ac_compiler_gnu=$ac_cv_c_compiler_gnu 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3573$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3574if ${am_cv_prog_cc_c_o+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579 3580int 3581main () 3582{ 3583 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588 # Make sure it works both with $CC and with simple cc. 3589 # Following AC_PROG_CC_C_O, we do the test twice because some 3590 # compilers refuse to overwrite an existing .o file with -o, 3591 # though they will create one. 3592 am_cv_prog_cc_c_o=yes 3593 for am_i in 1 2; do 3594 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3595 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } \ 3599 && test -f conftest2.$ac_objext; then 3600 : OK 3601 else 3602 am_cv_prog_cc_c_o=no 3603 break 3604 fi 3605 done 3606 rm -f core conftest* 3607 unset am_i 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3610$as_echo "$am_cv_prog_cc_c_o" >&6; } 3611if test "$am_cv_prog_cc_c_o" != yes; then 3612 # Losing compiler, so override with the script. 3613 # FIXME: It is wrong to rewrite CC. 3614 # But if we don't then we get into trouble of one sort or another. 3615 # A longer-term fix would be to have automake use am__CC in this case, 3616 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3617 CC="$am_aux_dir/compile $CC" 3618fi 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624 3625 3626depcc="$CC" am_compiler_list= 3627 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3629$as_echo_n "checking dependency style of $depcc... " >&6; } 3630if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3631 $as_echo_n "(cached) " >&6 3632else 3633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3634 # We make a subdir and do the tests there. Otherwise we can end up 3635 # making bogus files that we don't know about and never remove. For 3636 # instance it was reported that on HP-UX the gcc test will end up 3637 # making a dummy file named 'D' -- because '-MD' means "put the output 3638 # in D". 3639 rm -rf conftest.dir 3640 mkdir conftest.dir 3641 # Copy depcomp to subdir because otherwise we won't find it if we're 3642 # using a relative directory. 3643 cp "$am_depcomp" conftest.dir 3644 cd conftest.dir 3645 # We will build objects and dependencies in a subdirectory because 3646 # it helps to detect inapplicable dependency modes. For instance 3647 # both Tru64's cc and ICC support -MD to output dependencies as a 3648 # side effect of compilation, but ICC will put the dependencies in 3649 # the current directory while Tru64 will put them in the object 3650 # directory. 3651 mkdir sub 3652 3653 am_cv_CC_dependencies_compiler_type=none 3654 if test "$am_compiler_list" = ""; then 3655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3656 fi 3657 am__universal=false 3658 case " $depcc " in #( 3659 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3660 esac 3661 3662 for depmode in $am_compiler_list; do 3663 # Setup a source with many dependencies, because some compilers 3664 # like to wrap large dependency lists on column 80 (with \), and 3665 # we should not choose a depcomp mode which is confused by this. 3666 # 3667 # We need to recreate these files for each test, as the compiler may 3668 # overwrite some of them when testing with obscure command lines. 3669 # This happens at least with the AIX C compiler. 3670 : > sub/conftest.c 3671 for i in 1 2 3 4 5 6; do 3672 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3673 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3674 # Solaris 10 /bin/sh. 3675 echo '/* dummy */' > sub/conftst$i.h 3676 done 3677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3678 3679 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3680 # mode. It turns out that the SunPro C++ compiler does not properly 3681 # handle '-M -o', and we need to detect this. Also, some Intel 3682 # versions had trouble with output in subdirs. 3683 am__obj=sub/conftest.${OBJEXT-o} 3684 am__minus_obj="-o $am__obj" 3685 case $depmode in 3686 gcc) 3687 # This depmode causes a compiler race in universal mode. 3688 test "$am__universal" = false || continue 3689 ;; 3690 nosideeffect) 3691 # After this tag, mechanisms are not by side-effect, so they'll 3692 # only be used when explicitly requested. 3693 if test "x$enable_dependency_tracking" = xyes; then 3694 continue 3695 else 3696 break 3697 fi 3698 ;; 3699 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3700 # This compiler won't grok '-c -o', but also, the minuso test has 3701 # not run yet. These depmodes are late enough in the game, and 3702 # so weak that their functioning should not be impacted. 3703 am__obj=conftest.${OBJEXT-o} 3704 am__minus_obj= 3705 ;; 3706 none) break ;; 3707 esac 3708 if depmode=$depmode \ 3709 source=sub/conftest.c object=$am__obj \ 3710 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3711 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3712 >/dev/null 2>conftest.err && 3713 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3715 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3717 # icc doesn't choke on unknown options, it will just issue warnings 3718 # or remarks (even with -Werror). So we grep stderr for any message 3719 # that says an option was ignored or not supported. 3720 # When given -MP, icc 7.0 and 7.1 complain thusly: 3721 # icc: Command line warning: ignoring option '-M'; no argument required 3722 # The diagnosis changed in icc 8.0: 3723 # icc: Command line remark: option '-MP' not supported 3724 if (grep 'ignoring option' conftest.err || 3725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3726 am_cv_CC_dependencies_compiler_type=$depmode 3727 break 3728 fi 3729 fi 3730 done 3731 3732 cd .. 3733 rm -rf conftest.dir 3734else 3735 am_cv_CC_dependencies_compiler_type=none 3736fi 3737 3738fi 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3740$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3741CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3742 3743 if 3744 test "x$enable_dependency_tracking" != xno \ 3745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3746 am__fastdepCC_TRUE= 3747 am__fastdepCC_FALSE='#' 3748else 3749 am__fastdepCC_TRUE='#' 3750 am__fastdepCC_FALSE= 3751fi 3752 3753 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3755$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3756if ${ac_cv_prog_cc_c99+:} false; then : 3757 $as_echo_n "(cached) " >&6 3758else 3759 ac_cv_prog_cc_c99=no 3760ac_save_CC=$CC 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763#include <stdarg.h> 3764#include <stdbool.h> 3765#include <stdlib.h> 3766#include <wchar.h> 3767#include <stdio.h> 3768 3769// Check varargs macros. These examples are taken from C99 6.10.3.5. 3770#define debug(...) fprintf (stderr, __VA_ARGS__) 3771#define showlist(...) puts (#__VA_ARGS__) 3772#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3773static void 3774test_varargs_macros (void) 3775{ 3776 int x = 1234; 3777 int y = 5678; 3778 debug ("Flag"); 3779 debug ("X = %d\n", x); 3780 showlist (The first, second, and third items.); 3781 report (x>y, "x is %d but y is %d", x, y); 3782} 3783 3784// Check long long types. 3785#define BIG64 18446744073709551615ull 3786#define BIG32 4294967295ul 3787#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3788#if !BIG_OK 3789 your preprocessor is broken; 3790#endif 3791#if BIG_OK 3792#else 3793 your preprocessor is broken; 3794#endif 3795static long long int bignum = -9223372036854775807LL; 3796static unsigned long long int ubignum = BIG64; 3797 3798struct incomplete_array 3799{ 3800 int datasize; 3801 double data[]; 3802}; 3803 3804struct named_init { 3805 int number; 3806 const wchar_t *name; 3807 double average; 3808}; 3809 3810typedef const char *ccp; 3811 3812static inline int 3813test_restrict (ccp restrict text) 3814{ 3815 // See if C++-style comments work. 3816 // Iterate through items via the restricted pointer. 3817 // Also check for declarations in for loops. 3818 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3819 continue; 3820 return 0; 3821} 3822 3823// Check varargs and va_copy. 3824static void 3825test_varargs (const char *format, ...) 3826{ 3827 va_list args; 3828 va_start (args, format); 3829 va_list args_copy; 3830 va_copy (args_copy, args); 3831 3832 const char *str; 3833 int number; 3834 float fnumber; 3835 3836 while (*format) 3837 { 3838 switch (*format++) 3839 { 3840 case 's': // string 3841 str = va_arg (args_copy, const char *); 3842 break; 3843 case 'd': // int 3844 number = va_arg (args_copy, int); 3845 break; 3846 case 'f': // float 3847 fnumber = va_arg (args_copy, double); 3848 break; 3849 default: 3850 break; 3851 } 3852 } 3853 va_end (args_copy); 3854 va_end (args); 3855} 3856 3857int 3858main () 3859{ 3860 3861 // Check bool. 3862 _Bool success = false; 3863 3864 // Check restrict. 3865 if (test_restrict ("String literal") == 0) 3866 success = true; 3867 char *restrict newvar = "Another string"; 3868 3869 // Check varargs. 3870 test_varargs ("s, d' f .", "string", 65, 34.234); 3871 test_varargs_macros (); 3872 3873 // Check flexible array members. 3874 struct incomplete_array *ia = 3875 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3876 ia->datasize = 10; 3877 for (int i = 0; i < ia->datasize; ++i) 3878 ia->data[i] = i * 1.234; 3879 3880 // Check named initializers. 3881 struct named_init ni = { 3882 .number = 34, 3883 .name = L"Test wide string", 3884 .average = 543.34343, 3885 }; 3886 3887 ni.number = 58; 3888 3889 int dynamic_array[ni.number]; 3890 dynamic_array[ni.number - 1] = 543; 3891 3892 // work around unused variable warnings 3893 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3894 || dynamic_array[ni.number - 1] != 543); 3895 3896 ; 3897 return 0; 3898} 3899_ACEOF 3900for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3901do 3902 CC="$ac_save_CC $ac_arg" 3903 if ac_fn_c_try_compile "$LINENO"; then : 3904 ac_cv_prog_cc_c99=$ac_arg 3905fi 3906rm -f core conftest.err conftest.$ac_objext 3907 test "x$ac_cv_prog_cc_c99" != "xno" && break 3908done 3909rm -f conftest.$ac_ext 3910CC=$ac_save_CC 3911 3912fi 3913# AC_CACHE_VAL 3914case "x$ac_cv_prog_cc_c99" in 3915 x) 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3917$as_echo "none needed" >&6; } ;; 3918 xno) 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3920$as_echo "unsupported" >&6; } ;; 3921 *) 3922 CC="$CC $ac_cv_prog_cc_c99" 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3924$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3925esac 3926if test "x$ac_cv_prog_cc_c99" != xno; then : 3927 3928fi 3929 3930 3931 3932ac_ext=c 3933ac_cpp='$CPP $CPPFLAGS' 3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3936ac_compiler_gnu=$ac_cv_c_compiler_gnu 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3938$as_echo_n "checking how to run the C preprocessor... " >&6; } 3939# On Suns, sometimes $CPP names a directory. 3940if test -n "$CPP" && test -d "$CPP"; then 3941 CPP= 3942fi 3943if test -z "$CPP"; then 3944 if ${ac_cv_prog_CPP+:} false; then : 3945 $as_echo_n "(cached) " >&6 3946else 3947 # Double quotes because CPP needs to be expanded 3948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3949 do 3950 ac_preproc_ok=false 3951for ac_c_preproc_warn_flag in '' yes 3952do 3953 # Use a header file that comes with gcc, so configuring glibc 3954 # with a fresh cross-compiler works. 3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3956 # <limits.h> exists even on freestanding compilers. 3957 # On the NeXT, cc -E runs the code through the compiler's parser, 3958 # not just through cpp. "Syntax error" is here to catch this case. 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960/* end confdefs.h. */ 3961#ifdef __STDC__ 3962# include <limits.h> 3963#else 3964# include <assert.h> 3965#endif 3966 Syntax error 3967_ACEOF 3968if ac_fn_c_try_cpp "$LINENO"; then : 3969 3970else 3971 # Broken: fails on valid input. 3972continue 3973fi 3974rm -f conftest.err conftest.i conftest.$ac_ext 3975 3976 # OK, works on sane cases. Now check whether nonexistent headers 3977 # can be detected and how. 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980#include <ac_nonexistent.h> 3981_ACEOF 3982if ac_fn_c_try_cpp "$LINENO"; then : 3983 # Broken: success on invalid input. 3984continue 3985else 3986 # Passes both tests. 3987ac_preproc_ok=: 3988break 3989fi 3990rm -f conftest.err conftest.i conftest.$ac_ext 3991 3992done 3993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3994rm -f conftest.i conftest.err conftest.$ac_ext 3995if $ac_preproc_ok; then : 3996 break 3997fi 3998 3999 done 4000 ac_cv_prog_CPP=$CPP 4001 4002fi 4003 CPP=$ac_cv_prog_CPP 4004else 4005 ac_cv_prog_CPP=$CPP 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4008$as_echo "$CPP" >&6; } 4009ac_preproc_ok=false 4010for ac_c_preproc_warn_flag in '' yes 4011do 4012 # Use a header file that comes with gcc, so configuring glibc 4013 # with a fresh cross-compiler works. 4014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4015 # <limits.h> exists even on freestanding compilers. 4016 # On the NeXT, cc -E runs the code through the compiler's parser, 4017 # not just through cpp. "Syntax error" is here to catch this case. 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020#ifdef __STDC__ 4021# include <limits.h> 4022#else 4023# include <assert.h> 4024#endif 4025 Syntax error 4026_ACEOF 4027if ac_fn_c_try_cpp "$LINENO"; then : 4028 4029else 4030 # Broken: fails on valid input. 4031continue 4032fi 4033rm -f conftest.err conftest.i conftest.$ac_ext 4034 4035 # OK, works on sane cases. Now check whether nonexistent headers 4036 # can be detected and how. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#include <ac_nonexistent.h> 4040_ACEOF 4041if ac_fn_c_try_cpp "$LINENO"; then : 4042 # Broken: success on invalid input. 4043continue 4044else 4045 # Passes both tests. 4046ac_preproc_ok=: 4047break 4048fi 4049rm -f conftest.err conftest.i conftest.$ac_ext 4050 4051done 4052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4053rm -f conftest.i conftest.err conftest.$ac_ext 4054if $ac_preproc_ok; then : 4055 4056else 4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4059as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4060See \`config.log' for more details" "$LINENO" 5; } 4061fi 4062 4063ac_ext=c 4064ac_cpp='$CPP $CPPFLAGS' 4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4067ac_compiler_gnu=$ac_cv_c_compiler_gnu 4068 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4071$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4072if ${ac_cv_path_GREP+:} false; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 if test -z "$GREP"; then 4076 ac_path_GREP_found=false 4077 # Loop through the user's path and test for each of PROGNAME-LIST 4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_prog in grep ggrep; do 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4086 as_fn_executable_p "$ac_path_GREP" || continue 4087# Check for GNU ac_path_GREP and select it if it is found. 4088 # Check for GNU $ac_path_GREP 4089case `"$ac_path_GREP" --version 2>&1` in 4090*GNU*) 4091 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4092*) 4093 ac_count=0 4094 $as_echo_n 0123456789 >"conftest.in" 4095 while : 4096 do 4097 cat "conftest.in" "conftest.in" >"conftest.tmp" 4098 mv "conftest.tmp" "conftest.in" 4099 cp "conftest.in" "conftest.nl" 4100 $as_echo 'GREP' >> "conftest.nl" 4101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4103 as_fn_arith $ac_count + 1 && ac_count=$as_val 4104 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4105 # Best one so far, save it but keep looking for a better one 4106 ac_cv_path_GREP="$ac_path_GREP" 4107 ac_path_GREP_max=$ac_count 4108 fi 4109 # 10*(2^10) chars as input seems more than enough 4110 test $ac_count -gt 10 && break 4111 done 4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4113esac 4114 4115 $ac_path_GREP_found && break 3 4116 done 4117 done 4118 done 4119IFS=$as_save_IFS 4120 if test -z "$ac_cv_path_GREP"; then 4121 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4122 fi 4123else 4124 ac_cv_path_GREP=$GREP 4125fi 4126 4127fi 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4129$as_echo "$ac_cv_path_GREP" >&6; } 4130 GREP="$ac_cv_path_GREP" 4131 4132 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4134$as_echo_n "checking for egrep... " >&6; } 4135if ${ac_cv_path_EGREP+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4139 then ac_cv_path_EGREP="$GREP -E" 4140 else 4141 if test -z "$EGREP"; then 4142 ac_path_EGREP_found=false 4143 # Loop through the user's path and test for each of PROGNAME-LIST 4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4146do 4147 IFS=$as_save_IFS 4148 test -z "$as_dir" && as_dir=. 4149 for ac_prog in egrep; do 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4152 as_fn_executable_p "$ac_path_EGREP" || continue 4153# Check for GNU ac_path_EGREP and select it if it is found. 4154 # Check for GNU $ac_path_EGREP 4155case `"$ac_path_EGREP" --version 2>&1` in 4156*GNU*) 4157 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4158*) 4159 ac_count=0 4160 $as_echo_n 0123456789 >"conftest.in" 4161 while : 4162 do 4163 cat "conftest.in" "conftest.in" >"conftest.tmp" 4164 mv "conftest.tmp" "conftest.in" 4165 cp "conftest.in" "conftest.nl" 4166 $as_echo 'EGREP' >> "conftest.nl" 4167 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4169 as_fn_arith $ac_count + 1 && ac_count=$as_val 4170 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4171 # Best one so far, save it but keep looking for a better one 4172 ac_cv_path_EGREP="$ac_path_EGREP" 4173 ac_path_EGREP_max=$ac_count 4174 fi 4175 # 10*(2^10) chars as input seems more than enough 4176 test $ac_count -gt 10 && break 4177 done 4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4179esac 4180 4181 $ac_path_EGREP_found && break 3 4182 done 4183 done 4184 done 4185IFS=$as_save_IFS 4186 if test -z "$ac_cv_path_EGREP"; then 4187 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4188 fi 4189else 4190 ac_cv_path_EGREP=$EGREP 4191fi 4192 4193 fi 4194fi 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4196$as_echo "$ac_cv_path_EGREP" >&6; } 4197 EGREP="$ac_cv_path_EGREP" 4198 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4201$as_echo_n "checking for ANSI C header files... " >&6; } 4202if ${ac_cv_header_stdc+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4206/* end confdefs.h. */ 4207#include <stdlib.h> 4208#include <stdarg.h> 4209#include <string.h> 4210#include <float.h> 4211 4212int 4213main () 4214{ 4215 4216 ; 4217 return 0; 4218} 4219_ACEOF 4220if ac_fn_c_try_compile "$LINENO"; then : 4221 ac_cv_header_stdc=yes 4222else 4223 ac_cv_header_stdc=no 4224fi 4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226 4227if test $ac_cv_header_stdc = yes; then 4228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#include <string.h> 4232 4233_ACEOF 4234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4235 $EGREP "memchr" >/dev/null 2>&1; then : 4236 4237else 4238 ac_cv_header_stdc=no 4239fi 4240rm -f conftest* 4241 4242fi 4243 4244if test $ac_cv_header_stdc = yes; then 4245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248#include <stdlib.h> 4249 4250_ACEOF 4251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4252 $EGREP "free" >/dev/null 2>&1; then : 4253 4254else 4255 ac_cv_header_stdc=no 4256fi 4257rm -f conftest* 4258 4259fi 4260 4261if test $ac_cv_header_stdc = yes; then 4262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4263 if test "$cross_compiling" = yes; then : 4264 : 4265else 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268#include <ctype.h> 4269#include <stdlib.h> 4270#if ((' ' & 0x0FF) == 0x020) 4271# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4272# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4273#else 4274# define ISLOWER(c) \ 4275 (('a' <= (c) && (c) <= 'i') \ 4276 || ('j' <= (c) && (c) <= 'r') \ 4277 || ('s' <= (c) && (c) <= 'z')) 4278# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4279#endif 4280 4281#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4282int 4283main () 4284{ 4285 int i; 4286 for (i = 0; i < 256; i++) 4287 if (XOR (islower (i), ISLOWER (i)) 4288 || toupper (i) != TOUPPER (i)) 4289 return 2; 4290 return 0; 4291} 4292_ACEOF 4293if ac_fn_c_try_run "$LINENO"; then : 4294 4295else 4296 ac_cv_header_stdc=no 4297fi 4298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4299 conftest.$ac_objext conftest.beam conftest.$ac_ext 4300fi 4301 4302fi 4303fi 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4305$as_echo "$ac_cv_header_stdc" >&6; } 4306if test $ac_cv_header_stdc = yes; then 4307 4308$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4309 4310fi 4311 4312# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4313for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4314 inttypes.h stdint.h unistd.h 4315do : 4316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4317ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4318" 4319if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4320 cat >>confdefs.h <<_ACEOF 4321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4322_ACEOF 4323 4324fi 4325 4326done 4327 4328 4329 4330 4331 4332 4333ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4334if test "x$ac_cv_have_decl___clang__" = xyes; then : 4335 CLANGCC="yes" 4336else 4337 CLANGCC="no" 4338fi 4339 4340ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4341if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4342 INTELCC="yes" 4343else 4344 INTELCC="no" 4345fi 4346 4347ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4348if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4349 SUNCC="yes" 4350else 4351 SUNCC="no" 4352fi 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4363 if test -n "$ac_tool_prefix"; then 4364 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4365set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4367$as_echo_n "checking for $ac_word... " >&6; } 4368if ${ac_cv_path_PKG_CONFIG+:} false; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 case $PKG_CONFIG in 4372 [\\/]* | ?:[\\/]*) 4373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4374 ;; 4375 *) 4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4377for as_dir in $PATH 4378do 4379 IFS=$as_save_IFS 4380 test -z "$as_dir" && as_dir=. 4381 for ac_exec_ext in '' $ac_executable_extensions; do 4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4385 break 2 4386 fi 4387done 4388 done 4389IFS=$as_save_IFS 4390 4391 ;; 4392esac 4393fi 4394PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4395if test -n "$PKG_CONFIG"; then 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4397$as_echo "$PKG_CONFIG" >&6; } 4398else 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4400$as_echo "no" >&6; } 4401fi 4402 4403 4404fi 4405if test -z "$ac_cv_path_PKG_CONFIG"; then 4406 ac_pt_PKG_CONFIG=$PKG_CONFIG 4407 # Extract the first word of "pkg-config", so it can be a program name with args. 4408set dummy pkg-config; ac_word=$2 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4410$as_echo_n "checking for $ac_word... " >&6; } 4411if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 case $ac_pt_PKG_CONFIG in 4415 [\\/]* | ?:[\\/]*) 4416 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4417 ;; 4418 *) 4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4426 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4428 break 2 4429 fi 4430done 4431 done 4432IFS=$as_save_IFS 4433 4434 ;; 4435esac 4436fi 4437ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4438if test -n "$ac_pt_PKG_CONFIG"; then 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4440$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4441else 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4443$as_echo "no" >&6; } 4444fi 4445 4446 if test "x$ac_pt_PKG_CONFIG" = x; then 4447 PKG_CONFIG="" 4448 else 4449 case $cross_compiling:$ac_tool_warned in 4450yes:) 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4453ac_tool_warned=yes ;; 4454esac 4455 PKG_CONFIG=$ac_pt_PKG_CONFIG 4456 fi 4457else 4458 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4459fi 4460 4461fi 4462if test -n "$PKG_CONFIG"; then 4463 _pkg_min_version=0.9.0 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4465$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4466 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4468$as_echo "yes" >&6; } 4469 else 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4471$as_echo "no" >&6; } 4472 PKG_CONFIG="" 4473 fi 4474fi 4475# Make sure we can run config.sub. 4476$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4480$as_echo_n "checking build system type... " >&6; } 4481if ${ac_cv_build+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 ac_build_alias=$build_alias 4485test "x$ac_build_alias" = x && 4486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4487test "x$ac_build_alias" = x && 4488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4489ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4491 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4494$as_echo "$ac_cv_build" >&6; } 4495case $ac_cv_build in 4496*-*-*) ;; 4497*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4498esac 4499build=$ac_cv_build 4500ac_save_IFS=$IFS; IFS='-' 4501set x $ac_cv_build 4502shift 4503build_cpu=$1 4504build_vendor=$2 4505shift; shift 4506# Remember, the first character of IFS is used to create $*, 4507# except with old shells: 4508build_os=$* 4509IFS=$ac_save_IFS 4510case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4511 4512 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4514$as_echo_n "checking host system type... " >&6; } 4515if ${ac_cv_host+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test "x$host_alias" = x; then 4519 ac_cv_host=$ac_cv_build 4520else 4521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4523fi 4524 4525fi 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4527$as_echo "$ac_cv_host" >&6; } 4528case $ac_cv_host in 4529*-*-*) ;; 4530*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4531esac 4532host=$ac_cv_host 4533ac_save_IFS=$IFS; IFS='-' 4534set x $ac_cv_host 4535shift 4536host_cpu=$1 4537host_vendor=$2 4538shift; shift 4539# Remember, the first character of IFS is used to create $*, 4540# except with old shells: 4541host_os=$* 4542IFS=$ac_save_IFS 4543case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4544 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4547$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4548if ${ac_cv_path_SED+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4552 for ac_i in 1 2 3 4 5 6 7; do 4553 ac_script="$ac_script$as_nl$ac_script" 4554 done 4555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4556 { ac_script=; unset ac_script;} 4557 if test -z "$SED"; then 4558 ac_path_SED_found=false 4559 # Loop through the user's path and test for each of PROGNAME-LIST 4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_prog in sed gsed; do 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4568 as_fn_executable_p "$ac_path_SED" || continue 4569# Check for GNU ac_path_SED and select it if it is found. 4570 # Check for GNU $ac_path_SED 4571case `"$ac_path_SED" --version 2>&1` in 4572*GNU*) 4573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4574*) 4575 ac_count=0 4576 $as_echo_n 0123456789 >"conftest.in" 4577 while : 4578 do 4579 cat "conftest.in" "conftest.in" >"conftest.tmp" 4580 mv "conftest.tmp" "conftest.in" 4581 cp "conftest.in" "conftest.nl" 4582 $as_echo '' >> "conftest.nl" 4583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4585 as_fn_arith $ac_count + 1 && ac_count=$as_val 4586 if test $ac_count -gt ${ac_path_SED_max-0}; then 4587 # Best one so far, save it but keep looking for a better one 4588 ac_cv_path_SED="$ac_path_SED" 4589 ac_path_SED_max=$ac_count 4590 fi 4591 # 10*(2^10) chars as input seems more than enough 4592 test $ac_count -gt 10 && break 4593 done 4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4595esac 4596 4597 $ac_path_SED_found && break 3 4598 done 4599 done 4600 done 4601IFS=$as_save_IFS 4602 if test -z "$ac_cv_path_SED"; then 4603 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4604 fi 4605else 4606 ac_cv_path_SED=$SED 4607fi 4608 4609fi 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4611$as_echo "$ac_cv_path_SED" >&6; } 4612 SED="$ac_cv_path_SED" 4613 rm -f conftest.sed 4614 4615 4616 4617 4618 4619 4620# Check whether --enable-selective-werror was given. 4621if test "${enable_selective_werror+set}" = set; then : 4622 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4623else 4624 SELECTIVE_WERROR=yes 4625fi 4626 4627 4628 4629 4630 4631# -v is too short to test reliably with XORG_TESTSET_CFLAG 4632if test "x$SUNCC" = "xyes"; then 4633 BASE_CFLAGS="-v" 4634else 4635 BASE_CFLAGS="" 4636fi 4637 4638# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652xorg_testset_save_CFLAGS="$CFLAGS" 4653 4654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663int i; 4664_ACEOF 4665if ac_fn_c_try_compile "$LINENO"; then : 4666 xorg_cv_cc_flag_unknown_warning_option=yes 4667else 4668 xorg_cv_cc_flag_unknown_warning_option=no 4669fi 4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4671fi 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4675 CFLAGS="$xorg_testset_save_CFLAGS" 4676fi 4677 4678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4681 fi 4682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4689/* end confdefs.h. */ 4690int i; 4691_ACEOF 4692if ac_fn_c_try_compile "$LINENO"; then : 4693 xorg_cv_cc_flag_unused_command_line_argument=yes 4694else 4695 xorg_cv_cc_flag_unused_command_line_argument=no 4696fi 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4702 CFLAGS="$xorg_testset_save_CFLAGS" 4703fi 4704 4705found="no" 4706 4707 if test $found = "no" ; then 4708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4710 fi 4711 4712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4714 fi 4715 4716 CFLAGS="$CFLAGS -Wall" 4717 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4719$as_echo_n "checking if $CC supports -Wall... " >&6; } 4720 cacheid=xorg_cv_cc_flag__Wall 4721 if eval \${$cacheid+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4725/* end confdefs.h. */ 4726int i; 4727int 4728main () 4729{ 4730 4731 ; 4732 return 0; 4733} 4734_ACEOF 4735if ac_fn_c_try_link "$LINENO"; then : 4736 eval $cacheid=yes 4737else 4738 eval $cacheid=no 4739fi 4740rm -f core conftest.err conftest.$ac_objext \ 4741 conftest$ac_exeext conftest.$ac_ext 4742fi 4743 4744 4745 CFLAGS="$xorg_testset_save_CFLAGS" 4746 4747 eval supported=\$$cacheid 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4749$as_echo "$supported" >&6; } 4750 if test "$supported" = "yes" ; then 4751 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4752 found="yes" 4753 fi 4754 fi 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770xorg_testset_save_CFLAGS="$CFLAGS" 4771 4772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781int i; 4782_ACEOF 4783if ac_fn_c_try_compile "$LINENO"; then : 4784 xorg_cv_cc_flag_unknown_warning_option=yes 4785else 4786 xorg_cv_cc_flag_unknown_warning_option=no 4787fi 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789fi 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4793 CFLAGS="$xorg_testset_save_CFLAGS" 4794fi 4795 4796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4799 fi 4800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808int i; 4809_ACEOF 4810if ac_fn_c_try_compile "$LINENO"; then : 4811 xorg_cv_cc_flag_unused_command_line_argument=yes 4812else 4813 xorg_cv_cc_flag_unused_command_line_argument=no 4814fi 4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4816fi 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4820 CFLAGS="$xorg_testset_save_CFLAGS" 4821fi 4822 4823found="no" 4824 4825 if test $found = "no" ; then 4826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4828 fi 4829 4830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4832 fi 4833 4834 CFLAGS="$CFLAGS -Wpointer-arith" 4835 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4837$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4838 cacheid=xorg_cv_cc_flag__Wpointer_arith 4839 if eval \${$cacheid+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844int i; 4845int 4846main () 4847{ 4848 4849 ; 4850 return 0; 4851} 4852_ACEOF 4853if ac_fn_c_try_link "$LINENO"; then : 4854 eval $cacheid=yes 4855else 4856 eval $cacheid=no 4857fi 4858rm -f core conftest.err conftest.$ac_objext \ 4859 conftest$ac_exeext conftest.$ac_ext 4860fi 4861 4862 4863 CFLAGS="$xorg_testset_save_CFLAGS" 4864 4865 eval supported=\$$cacheid 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4867$as_echo "$supported" >&6; } 4868 if test "$supported" = "yes" ; then 4869 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4870 found="yes" 4871 fi 4872 fi 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888xorg_testset_save_CFLAGS="$CFLAGS" 4889 4890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898/* end confdefs.h. */ 4899int i; 4900_ACEOF 4901if ac_fn_c_try_compile "$LINENO"; then : 4902 xorg_cv_cc_flag_unknown_warning_option=yes 4903else 4904 xorg_cv_cc_flag_unknown_warning_option=no 4905fi 4906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4911 CFLAGS="$xorg_testset_save_CFLAGS" 4912fi 4913 4914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4917 fi 4918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926int i; 4927_ACEOF 4928if ac_fn_c_try_compile "$LINENO"; then : 4929 xorg_cv_cc_flag_unused_command_line_argument=yes 4930else 4931 xorg_cv_cc_flag_unused_command_line_argument=no 4932fi 4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4938 CFLAGS="$xorg_testset_save_CFLAGS" 4939fi 4940 4941found="no" 4942 4943 if test $found = "no" ; then 4944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4946 fi 4947 4948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4950 fi 4951 4952 CFLAGS="$CFLAGS -Wmissing-declarations" 4953 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4955$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4956 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4957 if eval \${$cacheid+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962int i; 4963int 4964main () 4965{ 4966 4967 ; 4968 return 0; 4969} 4970_ACEOF 4971if ac_fn_c_try_link "$LINENO"; then : 4972 eval $cacheid=yes 4973else 4974 eval $cacheid=no 4975fi 4976rm -f core conftest.err conftest.$ac_objext \ 4977 conftest$ac_exeext conftest.$ac_ext 4978fi 4979 4980 4981 CFLAGS="$xorg_testset_save_CFLAGS" 4982 4983 eval supported=\$$cacheid 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4985$as_echo "$supported" >&6; } 4986 if test "$supported" = "yes" ; then 4987 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4988 found="yes" 4989 fi 4990 fi 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006xorg_testset_save_CFLAGS="$CFLAGS" 5007 5008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017int i; 5018_ACEOF 5019if ac_fn_c_try_compile "$LINENO"; then : 5020 xorg_cv_cc_flag_unknown_warning_option=yes 5021else 5022 xorg_cv_cc_flag_unknown_warning_option=no 5023fi 5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5025fi 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5029 CFLAGS="$xorg_testset_save_CFLAGS" 5030fi 5031 5032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5035 fi 5036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5040 $as_echo_n "(cached) " >&6 5041else 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044int i; 5045_ACEOF 5046if ac_fn_c_try_compile "$LINENO"; then : 5047 xorg_cv_cc_flag_unused_command_line_argument=yes 5048else 5049 xorg_cv_cc_flag_unused_command_line_argument=no 5050fi 5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5052fi 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5056 CFLAGS="$xorg_testset_save_CFLAGS" 5057fi 5058 5059found="no" 5060 5061 if test $found = "no" ; then 5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 fi 5065 5066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5068 fi 5069 5070 CFLAGS="$CFLAGS -Wformat=2" 5071 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5073$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5074 cacheid=xorg_cv_cc_flag__Wformat_2 5075 if eval \${$cacheid+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5079/* end confdefs.h. */ 5080int i; 5081int 5082main () 5083{ 5084 5085 ; 5086 return 0; 5087} 5088_ACEOF 5089if ac_fn_c_try_link "$LINENO"; then : 5090 eval $cacheid=yes 5091else 5092 eval $cacheid=no 5093fi 5094rm -f core conftest.err conftest.$ac_objext \ 5095 conftest$ac_exeext conftest.$ac_ext 5096fi 5097 5098 5099 CFLAGS="$xorg_testset_save_CFLAGS" 5100 5101 eval supported=\$$cacheid 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5103$as_echo "$supported" >&6; } 5104 if test "$supported" = "yes" ; then 5105 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5106 found="yes" 5107 fi 5108 fi 5109 5110 if test $found = "no" ; then 5111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 fi 5114 5115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5117 fi 5118 5119 CFLAGS="$CFLAGS -Wformat" 5120 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5122$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5123 cacheid=xorg_cv_cc_flag__Wformat 5124 if eval \${$cacheid+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129int i; 5130int 5131main () 5132{ 5133 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138if ac_fn_c_try_link "$LINENO"; then : 5139 eval $cacheid=yes 5140else 5141 eval $cacheid=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext \ 5144 conftest$ac_exeext conftest.$ac_ext 5145fi 5146 5147 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149 5150 eval supported=\$$cacheid 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5152$as_echo "$supported" >&6; } 5153 if test "$supported" = "yes" ; then 5154 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5155 found="yes" 5156 fi 5157 fi 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175xorg_testset_save_CFLAGS="$CFLAGS" 5176 5177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5185/* end confdefs.h. */ 5186int i; 5187_ACEOF 5188if ac_fn_c_try_compile "$LINENO"; then : 5189 xorg_cv_cc_flag_unknown_warning_option=yes 5190else 5191 xorg_cv_cc_flag_unknown_warning_option=no 5192fi 5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5194fi 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5198 CFLAGS="$xorg_testset_save_CFLAGS" 5199fi 5200 5201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 fi 5205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213int i; 5214_ACEOF 5215if ac_fn_c_try_compile "$LINENO"; then : 5216 xorg_cv_cc_flag_unused_command_line_argument=yes 5217else 5218 xorg_cv_cc_flag_unused_command_line_argument=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5221fi 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226fi 5227 5228found="no" 5229 5230 if test $found = "no" ; then 5231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5233 fi 5234 5235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5237 fi 5238 5239 CFLAGS="$CFLAGS -Wstrict-prototypes" 5240 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5242$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5243 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5244 if eval \${$cacheid+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249int i; 5250int 5251main () 5252{ 5253 5254 ; 5255 return 0; 5256} 5257_ACEOF 5258if ac_fn_c_try_link "$LINENO"; then : 5259 eval $cacheid=yes 5260else 5261 eval $cacheid=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext \ 5264 conftest$ac_exeext conftest.$ac_ext 5265fi 5266 5267 5268 CFLAGS="$xorg_testset_save_CFLAGS" 5269 5270 eval supported=\$$cacheid 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5272$as_echo "$supported" >&6; } 5273 if test "$supported" = "yes" ; then 5274 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5275 found="yes" 5276 fi 5277 fi 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293xorg_testset_save_CFLAGS="$CFLAGS" 5294 5295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5300 $as_echo_n "(cached) " >&6 5301else 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5303/* end confdefs.h. */ 5304int i; 5305_ACEOF 5306if ac_fn_c_try_compile "$LINENO"; then : 5307 xorg_cv_cc_flag_unknown_warning_option=yes 5308else 5309 xorg_cv_cc_flag_unknown_warning_option=no 5310fi 5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5312fi 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5316 CFLAGS="$xorg_testset_save_CFLAGS" 5317fi 5318 5319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5322 fi 5323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331int i; 5332_ACEOF 5333if ac_fn_c_try_compile "$LINENO"; then : 5334 xorg_cv_cc_flag_unused_command_line_argument=yes 5335else 5336 xorg_cv_cc_flag_unused_command_line_argument=no 5337fi 5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5343 CFLAGS="$xorg_testset_save_CFLAGS" 5344fi 5345 5346found="no" 5347 5348 if test $found = "no" ; then 5349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5351 fi 5352 5353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5355 fi 5356 5357 CFLAGS="$CFLAGS -Wmissing-prototypes" 5358 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5360$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5361 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5362 if eval \${$cacheid+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367int i; 5368int 5369main () 5370{ 5371 5372 ; 5373 return 0; 5374} 5375_ACEOF 5376if ac_fn_c_try_link "$LINENO"; then : 5377 eval $cacheid=yes 5378else 5379 eval $cacheid=no 5380fi 5381rm -f core conftest.err conftest.$ac_objext \ 5382 conftest$ac_exeext conftest.$ac_ext 5383fi 5384 5385 5386 CFLAGS="$xorg_testset_save_CFLAGS" 5387 5388 eval supported=\$$cacheid 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5390$as_echo "$supported" >&6; } 5391 if test "$supported" = "yes" ; then 5392 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5393 found="yes" 5394 fi 5395 fi 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411xorg_testset_save_CFLAGS="$CFLAGS" 5412 5413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422int i; 5423_ACEOF 5424if ac_fn_c_try_compile "$LINENO"; then : 5425 xorg_cv_cc_flag_unknown_warning_option=yes 5426else 5427 xorg_cv_cc_flag_unknown_warning_option=no 5428fi 5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5434 CFLAGS="$xorg_testset_save_CFLAGS" 5435fi 5436 5437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5445 $as_echo_n "(cached) " >&6 5446else 5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448/* end confdefs.h. */ 5449int i; 5450_ACEOF 5451if ac_fn_c_try_compile "$LINENO"; then : 5452 xorg_cv_cc_flag_unused_command_line_argument=yes 5453else 5454 xorg_cv_cc_flag_unused_command_line_argument=no 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457fi 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5461 CFLAGS="$xorg_testset_save_CFLAGS" 5462fi 5463 5464found="no" 5465 5466 if test $found = "no" ; then 5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5469 fi 5470 5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5473 fi 5474 5475 CFLAGS="$CFLAGS -Wnested-externs" 5476 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5478$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5479 cacheid=xorg_cv_cc_flag__Wnested_externs 5480 if eval \${$cacheid+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485int i; 5486int 5487main () 5488{ 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494if ac_fn_c_try_link "$LINENO"; then : 5495 eval $cacheid=yes 5496else 5497 eval $cacheid=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext \ 5500 conftest$ac_exeext conftest.$ac_ext 5501fi 5502 5503 5504 CFLAGS="$xorg_testset_save_CFLAGS" 5505 5506 eval supported=\$$cacheid 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5508$as_echo "$supported" >&6; } 5509 if test "$supported" = "yes" ; then 5510 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5511 found="yes" 5512 fi 5513 fi 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529xorg_testset_save_CFLAGS="$CFLAGS" 5530 5531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540int i; 5541_ACEOF 5542if ac_fn_c_try_compile "$LINENO"; then : 5543 xorg_cv_cc_flag_unknown_warning_option=yes 5544else 5545 xorg_cv_cc_flag_unknown_warning_option=no 5546fi 5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5548fi 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5552 CFLAGS="$xorg_testset_save_CFLAGS" 5553fi 5554 5555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5566/* end confdefs.h. */ 5567int i; 5568_ACEOF 5569if ac_fn_c_try_compile "$LINENO"; then : 5570 xorg_cv_cc_flag_unused_command_line_argument=yes 5571else 5572 xorg_cv_cc_flag_unused_command_line_argument=no 5573fi 5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5575fi 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5579 CFLAGS="$xorg_testset_save_CFLAGS" 5580fi 5581 5582found="no" 5583 5584 if test $found = "no" ; then 5585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5587 fi 5588 5589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5591 fi 5592 5593 CFLAGS="$CFLAGS -Wbad-function-cast" 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5596$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5597 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5598 if eval \${$cacheid+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603int i; 5604int 5605main () 5606{ 5607 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612if ac_fn_c_try_link "$LINENO"; then : 5613 eval $cacheid=yes 5614else 5615 eval $cacheid=no 5616fi 5617rm -f core conftest.err conftest.$ac_objext \ 5618 conftest$ac_exeext conftest.$ac_ext 5619fi 5620 5621 5622 CFLAGS="$xorg_testset_save_CFLAGS" 5623 5624 eval supported=\$$cacheid 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5626$as_echo "$supported" >&6; } 5627 if test "$supported" = "yes" ; then 5628 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5629 found="yes" 5630 fi 5631 fi 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647xorg_testset_save_CFLAGS="$CFLAGS" 5648 5649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658int i; 5659_ACEOF 5660if ac_fn_c_try_compile "$LINENO"; then : 5661 xorg_cv_cc_flag_unknown_warning_option=yes 5662else 5663 xorg_cv_cc_flag_unknown_warning_option=no 5664fi 5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5666fi 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671fi 5672 5673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 fi 5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5684/* end confdefs.h. */ 5685int i; 5686_ACEOF 5687if ac_fn_c_try_compile "$LINENO"; then : 5688 xorg_cv_cc_flag_unused_command_line_argument=yes 5689else 5690 xorg_cv_cc_flag_unused_command_line_argument=no 5691fi 5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5697 CFLAGS="$xorg_testset_save_CFLAGS" 5698fi 5699 5700found="no" 5701 5702 if test $found = "no" ; then 5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5705 fi 5706 5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 fi 5710 5711 CFLAGS="$CFLAGS -Wold-style-definition" 5712 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5714$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5715 cacheid=xorg_cv_cc_flag__Wold_style_definition 5716 if eval \${$cacheid+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721int i; 5722int 5723main () 5724{ 5725 5726 ; 5727 return 0; 5728} 5729_ACEOF 5730if ac_fn_c_try_link "$LINENO"; then : 5731 eval $cacheid=yes 5732else 5733 eval $cacheid=no 5734fi 5735rm -f core conftest.err conftest.$ac_objext \ 5736 conftest$ac_exeext conftest.$ac_ext 5737fi 5738 5739 5740 CFLAGS="$xorg_testset_save_CFLAGS" 5741 5742 eval supported=\$$cacheid 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5744$as_echo "$supported" >&6; } 5745 if test "$supported" = "yes" ; then 5746 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5747 found="yes" 5748 fi 5749 fi 5750 5751 if test $found = "no" ; then 5752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 5756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5758 fi 5759 5760 CFLAGS="$CFLAGS -fd" 5761 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5763$as_echo_n "checking if $CC supports -fd... " >&6; } 5764 cacheid=xorg_cv_cc_flag__fd 5765 if eval \${$cacheid+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771int 5772main () 5773{ 5774 5775 ; 5776 return 0; 5777} 5778_ACEOF 5779if ac_fn_c_try_link "$LINENO"; then : 5780 eval $cacheid=yes 5781else 5782 eval $cacheid=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext \ 5785 conftest$ac_exeext conftest.$ac_ext 5786fi 5787 5788 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790 5791 eval supported=\$$cacheid 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5793$as_echo "$supported" >&6; } 5794 if test "$supported" = "yes" ; then 5795 BASE_CFLAGS="$BASE_CFLAGS -fd" 5796 found="yes" 5797 fi 5798 fi 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 xorg_cv_cc_flag_unknown_warning_option=yes 5829else 5830 xorg_cv_cc_flag_unknown_warning_option=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838fi 5839 5840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5843 fi 5844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 xorg_cv_cc_flag_unused_command_line_argument=yes 5856else 5857 xorg_cv_cc_flag_unused_command_line_argument=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5879 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5881$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5883 if eval \${$cacheid+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888int i; 5889int 5890main () 5891{ 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897if ac_fn_c_try_link "$LINENO"; then : 5898 eval $cacheid=yes 5899else 5900 eval $cacheid=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext \ 5903 conftest$ac_exeext conftest.$ac_ext 5904fi 5905 5906 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908 5909 eval supported=\$$cacheid 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911$as_echo "$supported" >&6; } 5912 if test "$supported" = "yes" ; then 5913 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5914 found="yes" 5915 fi 5916 fi 5917 5918 5919 5920 5921 5922# This chunk adds additional warnings that could catch undesired effects. 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936xorg_testset_save_CFLAGS="$CFLAGS" 5937 5938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5943 $as_echo_n "(cached) " >&6 5944else 5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5946/* end confdefs.h. */ 5947int i; 5948_ACEOF 5949if ac_fn_c_try_compile "$LINENO"; then : 5950 xorg_cv_cc_flag_unknown_warning_option=yes 5951else 5952 xorg_cv_cc_flag_unknown_warning_option=no 5953fi 5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5955fi 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5959 CFLAGS="$xorg_testset_save_CFLAGS" 5960fi 5961 5962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5965 fi 5966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5973/* end confdefs.h. */ 5974int i; 5975_ACEOF 5976if ac_fn_c_try_compile "$LINENO"; then : 5977 xorg_cv_cc_flag_unused_command_line_argument=yes 5978else 5979 xorg_cv_cc_flag_unused_command_line_argument=no 5980fi 5981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5982fi 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987fi 5988 5989found="no" 5990 5991 if test $found = "no" ; then 5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5994 fi 5995 5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5998 fi 5999 6000 CFLAGS="$CFLAGS -Wunused" 6001 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6003$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6004 cacheid=xorg_cv_cc_flag__Wunused 6005 if eval \${$cacheid+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010int i; 6011int 6012main () 6013{ 6014 6015 ; 6016 return 0; 6017} 6018_ACEOF 6019if ac_fn_c_try_link "$LINENO"; then : 6020 eval $cacheid=yes 6021else 6022 eval $cacheid=no 6023fi 6024rm -f core conftest.err conftest.$ac_objext \ 6025 conftest$ac_exeext conftest.$ac_ext 6026fi 6027 6028 6029 CFLAGS="$xorg_testset_save_CFLAGS" 6030 6031 eval supported=\$$cacheid 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6033$as_echo "$supported" >&6; } 6034 if test "$supported" = "yes" ; then 6035 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6036 found="yes" 6037 fi 6038 fi 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054xorg_testset_save_CFLAGS="$CFLAGS" 6055 6056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6064/* end confdefs.h. */ 6065int i; 6066_ACEOF 6067if ac_fn_c_try_compile "$LINENO"; then : 6068 xorg_cv_cc_flag_unknown_warning_option=yes 6069else 6070 xorg_cv_cc_flag_unknown_warning_option=no 6071fi 6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6077 CFLAGS="$xorg_testset_save_CFLAGS" 6078fi 6079 6080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 fi 6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091/* end confdefs.h. */ 6092int i; 6093_ACEOF 6094if ac_fn_c_try_compile "$LINENO"; then : 6095 xorg_cv_cc_flag_unused_command_line_argument=yes 6096else 6097 xorg_cv_cc_flag_unused_command_line_argument=no 6098fi 6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6100fi 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105fi 6106 6107found="no" 6108 6109 if test $found = "no" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6116 fi 6117 6118 CFLAGS="$CFLAGS -Wuninitialized" 6119 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6121$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6122 cacheid=xorg_cv_cc_flag__Wuninitialized 6123 if eval \${$cacheid+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129int 6130main () 6131{ 6132 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137if ac_fn_c_try_link "$LINENO"; then : 6138 eval $cacheid=yes 6139else 6140 eval $cacheid=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext \ 6143 conftest$ac_exeext conftest.$ac_ext 6144fi 6145 6146 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148 6149 eval supported=\$$cacheid 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6151$as_echo "$supported" >&6; } 6152 if test "$supported" = "yes" ; then 6153 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6154 found="yes" 6155 fi 6156 fi 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172xorg_testset_save_CFLAGS="$CFLAGS" 6173 6174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO"; then : 6186 xorg_cv_cc_flag_unknown_warning_option=yes 6187else 6188 xorg_cv_cc_flag_unknown_warning_option=no 6189fi 6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6191fi 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6195 CFLAGS="$xorg_testset_save_CFLAGS" 6196fi 6197 6198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6201 fi 6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 xorg_cv_cc_flag_unused_command_line_argument=yes 6214else 6215 xorg_cv_cc_flag_unused_command_line_argument=no 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6222 CFLAGS="$xorg_testset_save_CFLAGS" 6223fi 6224 6225found="no" 6226 6227 if test $found = "no" ; then 6228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 6232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 fi 6235 6236 CFLAGS="$CFLAGS -Wshadow" 6237 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6239$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6240 cacheid=xorg_cv_cc_flag__Wshadow 6241 if eval \${$cacheid+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245/* end confdefs.h. */ 6246int i; 6247int 6248main () 6249{ 6250 6251 ; 6252 return 0; 6253} 6254_ACEOF 6255if ac_fn_c_try_link "$LINENO"; then : 6256 eval $cacheid=yes 6257else 6258 eval $cacheid=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext \ 6261 conftest$ac_exeext conftest.$ac_ext 6262fi 6263 6264 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266 6267 eval supported=\$$cacheid 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6269$as_echo "$supported" >&6; } 6270 if test "$supported" = "yes" ; then 6271 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6272 found="yes" 6273 fi 6274 fi 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290xorg_testset_save_CFLAGS="$CFLAGS" 6291 6292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301int i; 6302_ACEOF 6303if ac_fn_c_try_compile "$LINENO"; then : 6304 xorg_cv_cc_flag_unknown_warning_option=yes 6305else 6306 xorg_cv_cc_flag_unknown_warning_option=no 6307fi 6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6309fi 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6313 CFLAGS="$xorg_testset_save_CFLAGS" 6314fi 6315 6316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6319 fi 6320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO"; then : 6331 xorg_cv_cc_flag_unused_command_line_argument=yes 6332else 6333 xorg_cv_cc_flag_unused_command_line_argument=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343found="no" 6344 6345 if test $found = "no" ; then 6346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 fi 6349 6350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6352 fi 6353 6354 CFLAGS="$CFLAGS -Wmissing-noreturn" 6355 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6357$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6358 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6359 if eval \${$cacheid+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365int 6366main () 6367{ 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_link "$LINENO"; then : 6374 eval $cacheid=yes 6375else 6376 eval $cacheid=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext \ 6379 conftest$ac_exeext conftest.$ac_ext 6380fi 6381 6382 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384 6385 eval supported=\$$cacheid 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6387$as_echo "$supported" >&6; } 6388 if test "$supported" = "yes" ; then 6389 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6390 found="yes" 6391 fi 6392 fi 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408xorg_testset_save_CFLAGS="$CFLAGS" 6409 6410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419int i; 6420_ACEOF 6421if ac_fn_c_try_compile "$LINENO"; then : 6422 xorg_cv_cc_flag_unknown_warning_option=yes 6423else 6424 xorg_cv_cc_flag_unknown_warning_option=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6427fi 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432fi 6433 6434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6437 fi 6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446int i; 6447_ACEOF 6448if ac_fn_c_try_compile "$LINENO"; then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450else 6451 xorg_cv_cc_flag_unused_command_line_argument=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459fi 6460 6461found="no" 6462 6463 if test $found = "no" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 6468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 fi 6471 6472 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6473 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6475$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6476 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6477 if eval \${$cacheid+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482int i; 6483int 6484main () 6485{ 6486 6487 ; 6488 return 0; 6489} 6490_ACEOF 6491if ac_fn_c_try_link "$LINENO"; then : 6492 eval $cacheid=yes 6493else 6494 eval $cacheid=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext conftest.$ac_ext 6498fi 6499 6500 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502 6503 eval supported=\$$cacheid 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6505$as_echo "$supported" >&6; } 6506 if test "$supported" = "yes" ; then 6507 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6508 found="yes" 6509 fi 6510 fi 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526xorg_testset_save_CFLAGS="$CFLAGS" 6527 6528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537int i; 6538_ACEOF 6539if ac_fn_c_try_compile "$LINENO"; then : 6540 xorg_cv_cc_flag_unknown_warning_option=yes 6541else 6542 xorg_cv_cc_flag_unknown_warning_option=no 6543fi 6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6545fi 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6549 CFLAGS="$xorg_testset_save_CFLAGS" 6550fi 6551 6552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6555 fi 6556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564int i; 6565_ACEOF 6566if ac_fn_c_try_compile "$LINENO"; then : 6567 xorg_cv_cc_flag_unused_command_line_argument=yes 6568else 6569 xorg_cv_cc_flag_unused_command_line_argument=no 6570fi 6571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577fi 6578 6579found="no" 6580 6581 if test $found = "no" ; then 6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 6586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 fi 6589 6590 CFLAGS="$CFLAGS -Wredundant-decls" 6591 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6593$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6594 cacheid=xorg_cv_cc_flag__Wredundant_decls 6595 if eval \${$cacheid+:} false; then : 6596 $as_echo_n "(cached) " >&6 6597else 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599/* end confdefs.h. */ 6600int i; 6601int 6602main () 6603{ 6604 6605 ; 6606 return 0; 6607} 6608_ACEOF 6609if ac_fn_c_try_link "$LINENO"; then : 6610 eval $cacheid=yes 6611else 6612 eval $cacheid=no 6613fi 6614rm -f core conftest.err conftest.$ac_objext \ 6615 conftest$ac_exeext conftest.$ac_ext 6616fi 6617 6618 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620 6621 eval supported=\$$cacheid 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6623$as_echo "$supported" >&6; } 6624 if test "$supported" = "yes" ; then 6625 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6626 found="yes" 6627 fi 6628 fi 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644xorg_testset_save_CFLAGS="$CFLAGS" 6645 6646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655int i; 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO"; then : 6658 xorg_cv_cc_flag_unknown_warning_option=yes 6659else 6660 xorg_cv_cc_flag_unknown_warning_option=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6663fi 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668fi 6669 6670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6673 fi 6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683_ACEOF 6684if ac_fn_c_try_compile "$LINENO"; then : 6685 xorg_cv_cc_flag_unused_command_line_argument=yes 6686else 6687 xorg_cv_cc_flag_unused_command_line_argument=no 6688fi 6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6694 CFLAGS="$xorg_testset_save_CFLAGS" 6695fi 6696 6697found="no" 6698 6699 if test $found = "no" ; then 6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 6704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 fi 6707 6708 CFLAGS="$CFLAGS -Wlogical-op" 6709 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6711$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6712 cacheid=xorg_cv_cc_flag__Wlogical_op 6713 if eval \${$cacheid+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718int i; 6719int 6720main () 6721{ 6722 6723 ; 6724 return 0; 6725} 6726_ACEOF 6727if ac_fn_c_try_link "$LINENO"; then : 6728 eval $cacheid=yes 6729else 6730 eval $cacheid=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext \ 6733 conftest$ac_exeext conftest.$ac_ext 6734fi 6735 6736 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738 6739 eval supported=\$$cacheid 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6741$as_echo "$supported" >&6; } 6742 if test "$supported" = "yes" ; then 6743 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6744 found="yes" 6745 fi 6746 fi 6747 6748 6749 6750# These are currently disabled because they are noisy. They will be enabled 6751# in the future once the codebase is sufficiently modernized to silence 6752# them. For now, I don't want them to drown out the other warnings. 6753# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6754# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6755# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6756 6757# Turn some warnings into errors, so we don't accidently get successful builds 6758# when there are problems that should be fixed. 6759 6760if test "x$SELECTIVE_WERROR" = "xyes" ; then 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774xorg_testset_save_CFLAGS="$CFLAGS" 6775 6776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785int i; 6786_ACEOF 6787if ac_fn_c_try_compile "$LINENO"; then : 6788 xorg_cv_cc_flag_unknown_warning_option=yes 6789else 6790 xorg_cv_cc_flag_unknown_warning_option=no 6791fi 6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6793fi 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6797 CFLAGS="$xorg_testset_save_CFLAGS" 6798fi 6799 6800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6803 fi 6804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811/* end confdefs.h. */ 6812int i; 6813_ACEOF 6814if ac_fn_c_try_compile "$LINENO"; then : 6815 xorg_cv_cc_flag_unused_command_line_argument=yes 6816else 6817 xorg_cv_cc_flag_unused_command_line_argument=no 6818fi 6819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6820fi 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825fi 6826 6827found="no" 6828 6829 if test $found = "no" ; then 6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6832 fi 6833 6834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6836 fi 6837 6838 CFLAGS="$CFLAGS -Werror=implicit" 6839 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6841$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6842 cacheid=xorg_cv_cc_flag__Werror_implicit 6843 if eval \${$cacheid+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848int i; 6849int 6850main () 6851{ 6852 6853 ; 6854 return 0; 6855} 6856_ACEOF 6857if ac_fn_c_try_link "$LINENO"; then : 6858 eval $cacheid=yes 6859else 6860 eval $cacheid=no 6861fi 6862rm -f core conftest.err conftest.$ac_objext \ 6863 conftest$ac_exeext conftest.$ac_ext 6864fi 6865 6866 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868 6869 eval supported=\$$cacheid 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6871$as_echo "$supported" >&6; } 6872 if test "$supported" = "yes" ; then 6873 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6874 found="yes" 6875 fi 6876 fi 6877 6878 if test $found = "no" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6885 fi 6886 6887 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6888 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6890$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6891 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6892 if eval \${$cacheid+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897int i; 6898int 6899main () 6900{ 6901 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906if ac_fn_c_try_link "$LINENO"; then : 6907 eval $cacheid=yes 6908else 6909 eval $cacheid=no 6910fi 6911rm -f core conftest.err conftest.$ac_objext \ 6912 conftest$ac_exeext conftest.$ac_ext 6913fi 6914 6915 6916 CFLAGS="$xorg_testset_save_CFLAGS" 6917 6918 eval supported=\$$cacheid 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6920$as_echo "$supported" >&6; } 6921 if test "$supported" = "yes" ; then 6922 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6923 found="yes" 6924 fi 6925 fi 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941xorg_testset_save_CFLAGS="$CFLAGS" 6942 6943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952int i; 6953_ACEOF 6954if ac_fn_c_try_compile "$LINENO"; then : 6955 xorg_cv_cc_flag_unknown_warning_option=yes 6956else 6957 xorg_cv_cc_flag_unknown_warning_option=no 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6960fi 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6964 CFLAGS="$xorg_testset_save_CFLAGS" 6965fi 6966 6967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6970 fi 6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6975 $as_echo_n "(cached) " >&6 6976else 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978/* end confdefs.h. */ 6979int i; 6980_ACEOF 6981if ac_fn_c_try_compile "$LINENO"; then : 6982 xorg_cv_cc_flag_unused_command_line_argument=yes 6983else 6984 xorg_cv_cc_flag_unused_command_line_argument=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6987fi 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6991 CFLAGS="$xorg_testset_save_CFLAGS" 6992fi 6993 6994found="no" 6995 6996 if test $found = "no" ; then 6997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6999 fi 7000 7001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7003 fi 7004 7005 CFLAGS="$CFLAGS -Werror=nonnull" 7006 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7008$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7009 cacheid=xorg_cv_cc_flag__Werror_nonnull 7010 if eval \${$cacheid+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015int i; 7016int 7017main () 7018{ 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024if ac_fn_c_try_link "$LINENO"; then : 7025 eval $cacheid=yes 7026else 7027 eval $cacheid=no 7028fi 7029rm -f core conftest.err conftest.$ac_objext \ 7030 conftest$ac_exeext conftest.$ac_ext 7031fi 7032 7033 7034 CFLAGS="$xorg_testset_save_CFLAGS" 7035 7036 eval supported=\$$cacheid 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7038$as_echo "$supported" >&6; } 7039 if test "$supported" = "yes" ; then 7040 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7041 found="yes" 7042 fi 7043 fi 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059xorg_testset_save_CFLAGS="$CFLAGS" 7060 7061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071_ACEOF 7072if ac_fn_c_try_compile "$LINENO"; then : 7073 xorg_cv_cc_flag_unknown_warning_option=yes 7074else 7075 xorg_cv_cc_flag_unknown_warning_option=no 7076fi 7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7078fi 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7082 CFLAGS="$xorg_testset_save_CFLAGS" 7083fi 7084 7085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 fi 7089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097int i; 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO"; then : 7100 xorg_cv_cc_flag_unused_command_line_argument=yes 7101else 7102 xorg_cv_cc_flag_unused_command_line_argument=no 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7105fi 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7109 CFLAGS="$xorg_testset_save_CFLAGS" 7110fi 7111 7112found="no" 7113 7114 if test $found = "no" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 fi 7122 7123 CFLAGS="$CFLAGS -Werror=init-self" 7124 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7126$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7127 cacheid=xorg_cv_cc_flag__Werror_init_self 7128 if eval \${$cacheid+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134int 7135main () 7136{ 7137 7138 ; 7139 return 0; 7140} 7141_ACEOF 7142if ac_fn_c_try_link "$LINENO"; then : 7143 eval $cacheid=yes 7144else 7145 eval $cacheid=no 7146fi 7147rm -f core conftest.err conftest.$ac_objext \ 7148 conftest$ac_exeext conftest.$ac_ext 7149fi 7150 7151 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153 7154 eval supported=\$$cacheid 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7156$as_echo "$supported" >&6; } 7157 if test "$supported" = "yes" ; then 7158 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7159 found="yes" 7160 fi 7161 fi 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177xorg_testset_save_CFLAGS="$CFLAGS" 7178 7179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189_ACEOF 7190if ac_fn_c_try_compile "$LINENO"; then : 7191 xorg_cv_cc_flag_unknown_warning_option=yes 7192else 7193 xorg_cv_cc_flag_unknown_warning_option=no 7194fi 7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7200 CFLAGS="$xorg_testset_save_CFLAGS" 7201fi 7202 7203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7206 fi 7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 xorg_cv_cc_flag_unused_command_line_argument=yes 7219else 7220 xorg_cv_cc_flag_unused_command_line_argument=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228fi 7229 7230found="no" 7231 7232 if test $found = "no" ; then 7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 fi 7236 7237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7239 fi 7240 7241 CFLAGS="$CFLAGS -Werror=main" 7242 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7244$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7245 cacheid=xorg_cv_cc_flag__Werror_main 7246 if eval \${$cacheid+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252int 7253main () 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO"; then : 7261 eval $cacheid=yes 7262else 7263 eval $cacheid=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext \ 7266 conftest$ac_exeext conftest.$ac_ext 7267fi 7268 7269 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271 7272 eval supported=\$$cacheid 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7274$as_echo "$supported" >&6; } 7275 if test "$supported" = "yes" ; then 7276 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7277 found="yes" 7278 fi 7279 fi 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295xorg_testset_save_CFLAGS="$CFLAGS" 7296 7297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307_ACEOF 7308if ac_fn_c_try_compile "$LINENO"; then : 7309 xorg_cv_cc_flag_unknown_warning_option=yes 7310else 7311 xorg_cv_cc_flag_unknown_warning_option=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7314fi 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319fi 7320 7321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 fi 7325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333int i; 7334_ACEOF 7335if ac_fn_c_try_compile "$LINENO"; then : 7336 xorg_cv_cc_flag_unused_command_line_argument=yes 7337else 7338 xorg_cv_cc_flag_unused_command_line_argument=no 7339fi 7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7341fi 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7345 CFLAGS="$xorg_testset_save_CFLAGS" 7346fi 7347 7348found="no" 7349 7350 if test $found = "no" ; then 7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7353 fi 7354 7355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7357 fi 7358 7359 CFLAGS="$CFLAGS -Werror=missing-braces" 7360 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7362$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7363 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7364 if eval \${$cacheid+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370int 7371main () 7372{ 7373 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_link "$LINENO"; then : 7379 eval $cacheid=yes 7380else 7381 eval $cacheid=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext \ 7384 conftest$ac_exeext conftest.$ac_ext 7385fi 7386 7387 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389 7390 eval supported=\$$cacheid 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7392$as_echo "$supported" >&6; } 7393 if test "$supported" = "yes" ; then 7394 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7395 found="yes" 7396 fi 7397 fi 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413xorg_testset_save_CFLAGS="$CFLAGS" 7414 7415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424int i; 7425_ACEOF 7426if ac_fn_c_try_compile "$LINENO"; then : 7427 xorg_cv_cc_flag_unknown_warning_option=yes 7428else 7429 xorg_cv_cc_flag_unknown_warning_option=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437fi 7438 7439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 fi 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO"; then : 7454 xorg_cv_cc_flag_unused_command_line_argument=yes 7455else 7456 xorg_cv_cc_flag_unused_command_line_argument=no 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7459fi 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464fi 7465 7466found="no" 7467 7468 if test $found = "no" ; then 7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 fi 7472 7473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7475 fi 7476 7477 CFLAGS="$CFLAGS -Werror=sequence-point" 7478 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7480$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7481 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7482 if eval \${$cacheid+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484else 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487int i; 7488int 7489main () 7490{ 7491 7492 ; 7493 return 0; 7494} 7495_ACEOF 7496if ac_fn_c_try_link "$LINENO"; then : 7497 eval $cacheid=yes 7498else 7499 eval $cacheid=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext \ 7502 conftest$ac_exeext conftest.$ac_ext 7503fi 7504 7505 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507 7508 eval supported=\$$cacheid 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7510$as_echo "$supported" >&6; } 7511 if test "$supported" = "yes" ; then 7512 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7513 found="yes" 7514 fi 7515 fi 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531xorg_testset_save_CFLAGS="$CFLAGS" 7532 7533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7541/* end confdefs.h. */ 7542int i; 7543_ACEOF 7544if ac_fn_c_try_compile "$LINENO"; then : 7545 xorg_cv_cc_flag_unknown_warning_option=yes 7546else 7547 xorg_cv_cc_flag_unknown_warning_option=no 7548fi 7549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7550fi 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7554 CFLAGS="$xorg_testset_save_CFLAGS" 7555fi 7556 7557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 fi 7561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569int i; 7570_ACEOF 7571if ac_fn_c_try_compile "$LINENO"; then : 7572 xorg_cv_cc_flag_unused_command_line_argument=yes 7573else 7574 xorg_cv_cc_flag_unused_command_line_argument=no 7575fi 7576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7577fi 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7581 CFLAGS="$xorg_testset_save_CFLAGS" 7582fi 7583 7584found="no" 7585 7586 if test $found = "no" ; then 7587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7589 fi 7590 7591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 fi 7594 7595 CFLAGS="$CFLAGS -Werror=return-type" 7596 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7598$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7599 cacheid=xorg_cv_cc_flag__Werror_return_type 7600 if eval \${$cacheid+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7604/* end confdefs.h. */ 7605int i; 7606int 7607main () 7608{ 7609 7610 ; 7611 return 0; 7612} 7613_ACEOF 7614if ac_fn_c_try_link "$LINENO"; then : 7615 eval $cacheid=yes 7616else 7617 eval $cacheid=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext \ 7620 conftest$ac_exeext conftest.$ac_ext 7621fi 7622 7623 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625 7626 eval supported=\$$cacheid 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7628$as_echo "$supported" >&6; } 7629 if test "$supported" = "yes" ; then 7630 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7631 found="yes" 7632 fi 7633 fi 7634 7635 if test $found = "no" ; then 7636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 fi 7639 7640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7642 fi 7643 7644 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7645 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7647$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7648 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7649 if eval \${$cacheid+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654int i; 7655int 7656main () 7657{ 7658 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663if ac_fn_c_try_link "$LINENO"; then : 7664 eval $cacheid=yes 7665else 7666 eval $cacheid=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext \ 7669 conftest$ac_exeext conftest.$ac_ext 7670fi 7671 7672 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674 7675 eval supported=\$$cacheid 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7677$as_echo "$supported" >&6; } 7678 if test "$supported" = "yes" ; then 7679 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7680 found="yes" 7681 fi 7682 fi 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698xorg_testset_save_CFLAGS="$CFLAGS" 7699 7700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO"; then : 7712 xorg_cv_cc_flag_unknown_warning_option=yes 7713else 7714 xorg_cv_cc_flag_unknown_warning_option=no 7715fi 7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7717fi 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7721 CFLAGS="$xorg_testset_save_CFLAGS" 7722fi 7723 7724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7727 fi 7728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733else 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736int i; 7737_ACEOF 7738if ac_fn_c_try_compile "$LINENO"; then : 7739 xorg_cv_cc_flag_unused_command_line_argument=yes 7740else 7741 xorg_cv_cc_flag_unused_command_line_argument=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7748 CFLAGS="$xorg_testset_save_CFLAGS" 7749fi 7750 7751found="no" 7752 7753 if test $found = "no" ; then 7754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7756 fi 7757 7758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7760 fi 7761 7762 CFLAGS="$CFLAGS -Werror=trigraphs" 7763 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7765$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7766 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7767 if eval \${$cacheid+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772int i; 7773int 7774main () 7775{ 7776 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781if ac_fn_c_try_link "$LINENO"; then : 7782 eval $cacheid=yes 7783else 7784 eval $cacheid=no 7785fi 7786rm -f core conftest.err conftest.$ac_objext \ 7787 conftest$ac_exeext conftest.$ac_ext 7788fi 7789 7790 7791 CFLAGS="$xorg_testset_save_CFLAGS" 7792 7793 eval supported=\$$cacheid 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7795$as_echo "$supported" >&6; } 7796 if test "$supported" = "yes" ; then 7797 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7798 found="yes" 7799 fi 7800 fi 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816xorg_testset_save_CFLAGS="$CFLAGS" 7817 7818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827int i; 7828_ACEOF 7829if ac_fn_c_try_compile "$LINENO"; then : 7830 xorg_cv_cc_flag_unknown_warning_option=yes 7831else 7832 xorg_cv_cc_flag_unknown_warning_option=no 7833fi 7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7835fi 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7839 CFLAGS="$xorg_testset_save_CFLAGS" 7840fi 7841 7842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7845 fi 7846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7853/* end confdefs.h. */ 7854int i; 7855_ACEOF 7856if ac_fn_c_try_compile "$LINENO"; then : 7857 xorg_cv_cc_flag_unused_command_line_argument=yes 7858else 7859 xorg_cv_cc_flag_unused_command_line_argument=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869found="no" 7870 7871 if test $found = "no" ; then 7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 fi 7879 7880 CFLAGS="$CFLAGS -Werror=array-bounds" 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7883$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7884 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7885 if eval \${$cacheid+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891int 7892main () 7893{ 7894 7895 ; 7896 return 0; 7897} 7898_ACEOF 7899if ac_fn_c_try_link "$LINENO"; then : 7900 eval $cacheid=yes 7901else 7902 eval $cacheid=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext \ 7905 conftest$ac_exeext conftest.$ac_ext 7906fi 7907 7908 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910 7911 eval supported=\$$cacheid 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7913$as_echo "$supported" >&6; } 7914 if test "$supported" = "yes" ; then 7915 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7916 found="yes" 7917 fi 7918 fi 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934xorg_testset_save_CFLAGS="$CFLAGS" 7935 7936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO"; then : 7948 xorg_cv_cc_flag_unknown_warning_option=yes 7949else 7950 xorg_cv_cc_flag_unknown_warning_option=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7953fi 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958fi 7959 7960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO"; then : 7975 xorg_cv_cc_flag_unused_command_line_argument=yes 7976else 7977 xorg_cv_cc_flag_unused_command_line_argument=no 7978fi 7979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987found="no" 7988 7989 if test $found = "no" ; then 7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 fi 7993 7994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7996 fi 7997 7998 CFLAGS="$CFLAGS -Werror=write-strings" 7999 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8001$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8002 cacheid=xorg_cv_cc_flag__Werror_write_strings 8003 if eval \${$cacheid+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009int 8010main () 8011{ 8012 8013 ; 8014 return 0; 8015} 8016_ACEOF 8017if ac_fn_c_try_link "$LINENO"; then : 8018 eval $cacheid=yes 8019else 8020 eval $cacheid=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext \ 8023 conftest$ac_exeext conftest.$ac_ext 8024fi 8025 8026 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028 8029 eval supported=\$$cacheid 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8031$as_echo "$supported" >&6; } 8032 if test "$supported" = "yes" ; then 8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8034 found="yes" 8035 fi 8036 fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052xorg_testset_save_CFLAGS="$CFLAGS" 8053 8054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064_ACEOF 8065if ac_fn_c_try_compile "$LINENO"; then : 8066 xorg_cv_cc_flag_unknown_warning_option=yes 8067else 8068 xorg_cv_cc_flag_unknown_warning_option=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076fi 8077 8078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8081 fi 8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090int i; 8091_ACEOF 8092if ac_fn_c_try_compile "$LINENO"; then : 8093 xorg_cv_cc_flag_unused_command_line_argument=yes 8094else 8095 xorg_cv_cc_flag_unused_command_line_argument=no 8096fi 8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8098fi 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8102 CFLAGS="$xorg_testset_save_CFLAGS" 8103fi 8104 8105found="no" 8106 8107 if test $found = "no" ; then 8108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 fi 8111 8112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8114 fi 8115 8116 CFLAGS="$CFLAGS -Werror=address" 8117 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8119$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8120 cacheid=xorg_cv_cc_flag__Werror_address 8121 if eval \${$cacheid+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127int 8128main () 8129{ 8130 8131 ; 8132 return 0; 8133} 8134_ACEOF 8135if ac_fn_c_try_link "$LINENO"; then : 8136 eval $cacheid=yes 8137else 8138 eval $cacheid=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext conftest.$ac_ext 8142fi 8143 8144 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146 8147 eval supported=\$$cacheid 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8149$as_echo "$supported" >&6; } 8150 if test "$supported" = "yes" ; then 8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8152 found="yes" 8153 fi 8154 fi 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170xorg_testset_save_CFLAGS="$CFLAGS" 8171 8172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182_ACEOF 8183if ac_fn_c_try_compile "$LINENO"; then : 8184 xorg_cv_cc_flag_unknown_warning_option=yes 8185else 8186 xorg_cv_cc_flag_unknown_warning_option=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8189fi 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194fi 8195 8196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 fi 8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208int i; 8209_ACEOF 8210if ac_fn_c_try_compile "$LINENO"; then : 8211 xorg_cv_cc_flag_unused_command_line_argument=yes 8212else 8213 xorg_cv_cc_flag_unused_command_line_argument=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8216fi 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223found="no" 8224 8225 if test $found = "no" ; then 8226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8228 fi 8229 8230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 fi 8233 8234 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8235 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8237$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8238 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8239 if eval \${$cacheid+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245int 8246main () 8247{ 8248 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253if ac_fn_c_try_link "$LINENO"; then : 8254 eval $cacheid=yes 8255else 8256 eval $cacheid=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext \ 8259 conftest$ac_exeext conftest.$ac_ext 8260fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267$as_echo "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8270 found="yes" 8271 fi 8272 fi 8273 8274 if test $found = "no" ; then 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 fi 8278 8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8281 fi 8282 8283 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8284 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8286$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8287 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8288 if eval \${$cacheid+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293int i; 8294int 8295main () 8296{ 8297 8298 ; 8299 return 0; 8300} 8301_ACEOF 8302if ac_fn_c_try_link "$LINENO"; then : 8303 eval $cacheid=yes 8304else 8305 eval $cacheid=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext \ 8308 conftest$ac_exeext conftest.$ac_ext 8309fi 8310 8311 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313 8314 eval supported=\$$cacheid 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8316$as_echo "$supported" >&6; } 8317 if test "$supported" = "yes" ; then 8318 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8319 found="yes" 8320 fi 8321 fi 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337xorg_testset_save_CFLAGS="$CFLAGS" 8338 8339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345else 8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349_ACEOF 8350if ac_fn_c_try_compile "$LINENO"; then : 8351 xorg_cv_cc_flag_unknown_warning_option=yes 8352else 8353 xorg_cv_cc_flag_unknown_warning_option=no 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361fi 8362 8363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8366 fi 8367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8374/* end confdefs.h. */ 8375int i; 8376_ACEOF 8377if ac_fn_c_try_compile "$LINENO"; then : 8378 xorg_cv_cc_flag_unused_command_line_argument=yes 8379else 8380 xorg_cv_cc_flag_unused_command_line_argument=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8383fi 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388fi 8389 8390found="no" 8391 8392 if test $found = "no" ; then 8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8395 fi 8396 8397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8399 fi 8400 8401 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8402 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8404$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8405 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8406 if eval \${$cacheid+:} false; then : 8407 $as_echo_n "(cached) " >&6 8408else 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411int i; 8412int 8413main () 8414{ 8415 8416 ; 8417 return 0; 8418} 8419_ACEOF 8420if ac_fn_c_try_link "$LINENO"; then : 8421 eval $cacheid=yes 8422else 8423 eval $cacheid=no 8424fi 8425rm -f core conftest.err conftest.$ac_objext \ 8426 conftest$ac_exeext conftest.$ac_ext 8427fi 8428 8429 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431 8432 eval supported=\$$cacheid 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8434$as_echo "$supported" >&6; } 8435 if test "$supported" = "yes" ; then 8436 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8437 found="yes" 8438 fi 8439 fi 8440 8441 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8442else 8443{ $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 8444$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;} 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458xorg_testset_save_CFLAGS="$CFLAGS" 8459 8460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468/* end confdefs.h. */ 8469int i; 8470_ACEOF 8471if ac_fn_c_try_compile "$LINENO"; then : 8472 xorg_cv_cc_flag_unknown_warning_option=yes 8473else 8474 xorg_cv_cc_flag_unknown_warning_option=no 8475fi 8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8477fi 8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8481 CFLAGS="$xorg_testset_save_CFLAGS" 8482fi 8483 8484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 fi 8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8492 $as_echo_n "(cached) " >&6 8493else 8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495/* end confdefs.h. */ 8496int i; 8497_ACEOF 8498if ac_fn_c_try_compile "$LINENO"; then : 8499 xorg_cv_cc_flag_unused_command_line_argument=yes 8500else 8501 xorg_cv_cc_flag_unused_command_line_argument=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509fi 8510 8511found="no" 8512 8513 if test $found = "no" ; then 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 fi 8517 8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8520 fi 8521 8522 CFLAGS="$CFLAGS -Wimplicit" 8523 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8525$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8526 cacheid=xorg_cv_cc_flag__Wimplicit 8527 if eval \${$cacheid+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531/* end confdefs.h. */ 8532int i; 8533int 8534main () 8535{ 8536 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541if ac_fn_c_try_link "$LINENO"; then : 8542 eval $cacheid=yes 8543else 8544 eval $cacheid=no 8545fi 8546rm -f core conftest.err conftest.$ac_objext \ 8547 conftest$ac_exeext conftest.$ac_ext 8548fi 8549 8550 8551 CFLAGS="$xorg_testset_save_CFLAGS" 8552 8553 eval supported=\$$cacheid 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8555$as_echo "$supported" >&6; } 8556 if test "$supported" = "yes" ; then 8557 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8558 found="yes" 8559 fi 8560 fi 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576xorg_testset_save_CFLAGS="$CFLAGS" 8577 8578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587int i; 8588_ACEOF 8589if ac_fn_c_try_compile "$LINENO"; then : 8590 xorg_cv_cc_flag_unknown_warning_option=yes 8591else 8592 xorg_cv_cc_flag_unknown_warning_option=no 8593fi 8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8599 CFLAGS="$xorg_testset_save_CFLAGS" 8600fi 8601 8602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 fi 8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unused_command_line_argument=yes 8618else 8619 xorg_cv_cc_flag_unused_command_line_argument=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629found="no" 8630 8631 if test $found = "no" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8638 fi 8639 8640 CFLAGS="$CFLAGS -Wnonnull" 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8643$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8644 cacheid=xorg_cv_cc_flag__Wnonnull 8645 if eval \${$cacheid+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8649/* end confdefs.h. */ 8650int i; 8651int 8652main () 8653{ 8654 8655 ; 8656 return 0; 8657} 8658_ACEOF 8659if ac_fn_c_try_link "$LINENO"; then : 8660 eval $cacheid=yes 8661else 8662 eval $cacheid=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext \ 8665 conftest$ac_exeext conftest.$ac_ext 8666fi 8667 8668 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670 8671 eval supported=\$$cacheid 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8673$as_echo "$supported" >&6; } 8674 if test "$supported" = "yes" ; then 8675 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8676 found="yes" 8677 fi 8678 fi 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694xorg_testset_save_CFLAGS="$CFLAGS" 8695 8696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8701 $as_echo_n "(cached) " >&6 8702else 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706_ACEOF 8707if ac_fn_c_try_compile "$LINENO"; then : 8708 xorg_cv_cc_flag_unknown_warning_option=yes 8709else 8710 xorg_cv_cc_flag_unknown_warning_option=no 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8713fi 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718fi 8719 8720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 fi 8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732int i; 8733_ACEOF 8734if ac_fn_c_try_compile "$LINENO"; then : 8735 xorg_cv_cc_flag_unused_command_line_argument=yes 8736else 8737 xorg_cv_cc_flag_unused_command_line_argument=no 8738fi 8739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8740fi 8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8744 CFLAGS="$xorg_testset_save_CFLAGS" 8745fi 8746 8747found="no" 8748 8749 if test $found = "no" ; then 8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 fi 8753 8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 fi 8757 8758 CFLAGS="$CFLAGS -Winit-self" 8759 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8761$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8762 cacheid=xorg_cv_cc_flag__Winit_self 8763 if eval \${$cacheid+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768int i; 8769int 8770main () 8771{ 8772 8773 ; 8774 return 0; 8775} 8776_ACEOF 8777if ac_fn_c_try_link "$LINENO"; then : 8778 eval $cacheid=yes 8779else 8780 eval $cacheid=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext \ 8783 conftest$ac_exeext conftest.$ac_ext 8784fi 8785 8786 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788 8789 eval supported=\$$cacheid 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8791$as_echo "$supported" >&6; } 8792 if test "$supported" = "yes" ; then 8793 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8794 found="yes" 8795 fi 8796 fi 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812xorg_testset_save_CFLAGS="$CFLAGS" 8813 8814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823int i; 8824_ACEOF 8825if ac_fn_c_try_compile "$LINENO"; then : 8826 xorg_cv_cc_flag_unknown_warning_option=yes 8827else 8828 xorg_cv_cc_flag_unknown_warning_option=no 8829fi 8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8831fi 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836fi 8837 8838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 fi 8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850int i; 8851_ACEOF 8852if ac_fn_c_try_compile "$LINENO"; then : 8853 xorg_cv_cc_flag_unused_command_line_argument=yes 8854else 8855 xorg_cv_cc_flag_unused_command_line_argument=no 8856fi 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8862 CFLAGS="$xorg_testset_save_CFLAGS" 8863fi 8864 8865found="no" 8866 8867 if test $found = "no" ; then 8868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 fi 8871 8872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8874 fi 8875 8876 CFLAGS="$CFLAGS -Wmain" 8877 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8879$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8880 cacheid=xorg_cv_cc_flag__Wmain 8881 if eval \${$cacheid+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886int i; 8887int 8888main () 8889{ 8890 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895if ac_fn_c_try_link "$LINENO"; then : 8896 eval $cacheid=yes 8897else 8898 eval $cacheid=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext \ 8901 conftest$ac_exeext conftest.$ac_ext 8902fi 8903 8904 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 8907 eval supported=\$$cacheid 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8909$as_echo "$supported" >&6; } 8910 if test "$supported" = "yes" ; then 8911 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8912 found="yes" 8913 fi 8914 fi 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930xorg_testset_save_CFLAGS="$CFLAGS" 8931 8932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941int i; 8942_ACEOF 8943if ac_fn_c_try_compile "$LINENO"; then : 8944 xorg_cv_cc_flag_unknown_warning_option=yes 8945else 8946 xorg_cv_cc_flag_unknown_warning_option=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8949fi 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954fi 8955 8956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 fi 8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968int i; 8969_ACEOF 8970if ac_fn_c_try_compile "$LINENO"; then : 8971 xorg_cv_cc_flag_unused_command_line_argument=yes 8972else 8973 xorg_cv_cc_flag_unused_command_line_argument=no 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8976fi 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8980 CFLAGS="$xorg_testset_save_CFLAGS" 8981fi 8982 8983found="no" 8984 8985 if test $found = "no" ; then 8986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8988 fi 8989 8990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 fi 8993 8994 CFLAGS="$CFLAGS -Wmissing-braces" 8995 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8997$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8998 cacheid=xorg_cv_cc_flag__Wmissing_braces 8999 if eval \${$cacheid+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004int i; 9005int 9006main () 9007{ 9008 9009 ; 9010 return 0; 9011} 9012_ACEOF 9013if ac_fn_c_try_link "$LINENO"; then : 9014 eval $cacheid=yes 9015else 9016 eval $cacheid=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext \ 9019 conftest$ac_exeext conftest.$ac_ext 9020fi 9021 9022 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024 9025 eval supported=\$$cacheid 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9027$as_echo "$supported" >&6; } 9028 if test "$supported" = "yes" ; then 9029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9030 found="yes" 9031 fi 9032 fi 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048xorg_testset_save_CFLAGS="$CFLAGS" 9049 9050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059int i; 9060_ACEOF 9061if ac_fn_c_try_compile "$LINENO"; then : 9062 xorg_cv_cc_flag_unknown_warning_option=yes 9063else 9064 xorg_cv_cc_flag_unknown_warning_option=no 9065fi 9066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9067fi 9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072fi 9073 9074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 fi 9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9082 $as_echo_n "(cached) " >&6 9083else 9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087_ACEOF 9088if ac_fn_c_try_compile "$LINENO"; then : 9089 xorg_cv_cc_flag_unused_command_line_argument=yes 9090else 9091 xorg_cv_cc_flag_unused_command_line_argument=no 9092fi 9093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9094fi 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9098 CFLAGS="$xorg_testset_save_CFLAGS" 9099fi 9100 9101found="no" 9102 9103 if test $found = "no" ; then 9104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106 fi 9107 9108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110 fi 9111 9112 CFLAGS="$CFLAGS -Wsequence-point" 9113 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9115$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9116 cacheid=xorg_cv_cc_flag__Wsequence_point 9117 if eval \${$cacheid+:} false; then : 9118 $as_echo_n "(cached) " >&6 9119else 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122int i; 9123int 9124main () 9125{ 9126 9127 ; 9128 return 0; 9129} 9130_ACEOF 9131if ac_fn_c_try_link "$LINENO"; then : 9132 eval $cacheid=yes 9133else 9134 eval $cacheid=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext \ 9137 conftest$ac_exeext conftest.$ac_ext 9138fi 9139 9140 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142 9143 eval supported=\$$cacheid 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9145$as_echo "$supported" >&6; } 9146 if test "$supported" = "yes" ; then 9147 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9148 found="yes" 9149 fi 9150 fi 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166xorg_testset_save_CFLAGS="$CFLAGS" 9167 9168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177int i; 9178_ACEOF 9179if ac_fn_c_try_compile "$LINENO"; then : 9180 xorg_cv_cc_flag_unknown_warning_option=yes 9181else 9182 xorg_cv_cc_flag_unknown_warning_option=no 9183fi 9184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9185fi 9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190fi 9191 9192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 fi 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204int i; 9205_ACEOF 9206if ac_fn_c_try_compile "$LINENO"; then : 9207 xorg_cv_cc_flag_unused_command_line_argument=yes 9208else 9209 xorg_cv_cc_flag_unused_command_line_argument=no 9210fi 9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9212fi 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9216 CFLAGS="$xorg_testset_save_CFLAGS" 9217fi 9218 9219found="no" 9220 9221 if test $found = "no" ; then 9222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9224 fi 9225 9226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9228 fi 9229 9230 CFLAGS="$CFLAGS -Wreturn-type" 9231 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9233$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9234 cacheid=xorg_cv_cc_flag__Wreturn_type 9235 if eval \${$cacheid+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241int 9242main () 9243{ 9244 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_c_try_link "$LINENO"; then : 9250 eval $cacheid=yes 9251else 9252 eval $cacheid=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext \ 9255 conftest$ac_exeext conftest.$ac_ext 9256fi 9257 9258 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260 9261 eval supported=\$$cacheid 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9263$as_echo "$supported" >&6; } 9264 if test "$supported" = "yes" ; then 9265 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9266 found="yes" 9267 fi 9268 fi 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284xorg_testset_save_CFLAGS="$CFLAGS" 9285 9286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295int i; 9296_ACEOF 9297if ac_fn_c_try_compile "$LINENO"; then : 9298 xorg_cv_cc_flag_unknown_warning_option=yes 9299else 9300 xorg_cv_cc_flag_unknown_warning_option=no 9301fi 9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9303fi 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9307 CFLAGS="$xorg_testset_save_CFLAGS" 9308fi 9309 9310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 fi 9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319else 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9321/* end confdefs.h. */ 9322int i; 9323_ACEOF 9324if ac_fn_c_try_compile "$LINENO"; then : 9325 xorg_cv_cc_flag_unused_command_line_argument=yes 9326else 9327 xorg_cv_cc_flag_unused_command_line_argument=no 9328fi 9329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9330fi 9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335fi 9336 9337found="no" 9338 9339 if test $found = "no" ; then 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 9344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 fi 9347 9348 CFLAGS="$CFLAGS -Wtrigraphs" 9349 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9351$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9352 cacheid=xorg_cv_cc_flag__Wtrigraphs 9353 if eval \${$cacheid+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358int i; 9359int 9360main () 9361{ 9362 9363 ; 9364 return 0; 9365} 9366_ACEOF 9367if ac_fn_c_try_link "$LINENO"; then : 9368 eval $cacheid=yes 9369else 9370 eval $cacheid=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext \ 9373 conftest$ac_exeext conftest.$ac_ext 9374fi 9375 9376 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378 9379 eval supported=\$$cacheid 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9381$as_echo "$supported" >&6; } 9382 if test "$supported" = "yes" ; then 9383 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9384 found="yes" 9385 fi 9386 fi 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402xorg_testset_save_CFLAGS="$CFLAGS" 9403 9404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9412/* end confdefs.h. */ 9413int i; 9414_ACEOF 9415if ac_fn_c_try_compile "$LINENO"; then : 9416 xorg_cv_cc_flag_unknown_warning_option=yes 9417else 9418 xorg_cv_cc_flag_unknown_warning_option=no 9419fi 9420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9421fi 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426fi 9427 9428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440int i; 9441_ACEOF 9442if ac_fn_c_try_compile "$LINENO"; then : 9443 xorg_cv_cc_flag_unused_command_line_argument=yes 9444else 9445 xorg_cv_cc_flag_unused_command_line_argument=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9448fi 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9452 CFLAGS="$xorg_testset_save_CFLAGS" 9453fi 9454 9455found="no" 9456 9457 if test $found = "no" ; then 9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9460 fi 9461 9462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 fi 9465 9466 CFLAGS="$CFLAGS -Warray-bounds" 9467 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9469$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9470 cacheid=xorg_cv_cc_flag__Warray_bounds 9471 if eval \${$cacheid+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473else 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477int 9478main () 9479{ 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO"; then : 9486 eval $cacheid=yes 9487else 9488 eval $cacheid=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext \ 9491 conftest$ac_exeext conftest.$ac_ext 9492fi 9493 9494 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496 9497 eval supported=\$$cacheid 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9499$as_echo "$supported" >&6; } 9500 if test "$supported" = "yes" ; then 9501 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9502 found="yes" 9503 fi 9504 fi 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520xorg_testset_save_CFLAGS="$CFLAGS" 9521 9522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9527 $as_echo_n "(cached) " >&6 9528else 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531int i; 9532_ACEOF 9533if ac_fn_c_try_compile "$LINENO"; then : 9534 xorg_cv_cc_flag_unknown_warning_option=yes 9535else 9536 xorg_cv_cc_flag_unknown_warning_option=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9539fi 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544fi 9545 9546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9549 fi 9550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9554 $as_echo_n "(cached) " >&6 9555else 9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557/* end confdefs.h. */ 9558int i; 9559_ACEOF 9560if ac_fn_c_try_compile "$LINENO"; then : 9561 xorg_cv_cc_flag_unused_command_line_argument=yes 9562else 9563 xorg_cv_cc_flag_unused_command_line_argument=no 9564fi 9565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9566fi 9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9570 CFLAGS="$xorg_testset_save_CFLAGS" 9571fi 9572 9573found="no" 9574 9575 if test $found = "no" ; then 9576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9578 fi 9579 9580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 fi 9583 9584 CFLAGS="$CFLAGS -Wwrite-strings" 9585 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9587$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9588 cacheid=xorg_cv_cc_flag__Wwrite_strings 9589 if eval \${$cacheid+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591else 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int i; 9595int 9596main () 9597{ 9598 9599 ; 9600 return 0; 9601} 9602_ACEOF 9603if ac_fn_c_try_link "$LINENO"; then : 9604 eval $cacheid=yes 9605else 9606 eval $cacheid=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext \ 9609 conftest$ac_exeext conftest.$ac_ext 9610fi 9611 9612 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614 9615 eval supported=\$$cacheid 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9617$as_echo "$supported" >&6; } 9618 if test "$supported" = "yes" ; then 9619 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9620 found="yes" 9621 fi 9622 fi 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638xorg_testset_save_CFLAGS="$CFLAGS" 9639 9640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650_ACEOF 9651if ac_fn_c_try_compile "$LINENO"; then : 9652 xorg_cv_cc_flag_unknown_warning_option=yes 9653else 9654 xorg_cv_cc_flag_unknown_warning_option=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9657fi 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662fi 9663 9664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9667 fi 9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676int i; 9677_ACEOF 9678if ac_fn_c_try_compile "$LINENO"; then : 9679 xorg_cv_cc_flag_unused_command_line_argument=yes 9680else 9681 xorg_cv_cc_flag_unused_command_line_argument=no 9682fi 9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9688 CFLAGS="$xorg_testset_save_CFLAGS" 9689fi 9690 9691found="no" 9692 9693 if test $found = "no" ; then 9694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 fi 9697 9698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9700 fi 9701 9702 CFLAGS="$CFLAGS -Waddress" 9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9705$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9706 cacheid=xorg_cv_cc_flag__Waddress 9707 if eval \${$cacheid+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713int 9714main () 9715{ 9716 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO"; then : 9722 eval $cacheid=yes 9723else 9724 eval $cacheid=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext \ 9727 conftest$ac_exeext conftest.$ac_ext 9728fi 9729 9730 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732 9733 eval supported=\$$cacheid 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9735$as_echo "$supported" >&6; } 9736 if test "$supported" = "yes" ; then 9737 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9738 found="yes" 9739 fi 9740 fi 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756xorg_testset_save_CFLAGS="$CFLAGS" 9757 9758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9763 $as_echo_n "(cached) " >&6 9764else 9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767int i; 9768_ACEOF 9769if ac_fn_c_try_compile "$LINENO"; then : 9770 xorg_cv_cc_flag_unknown_warning_option=yes 9771else 9772 xorg_cv_cc_flag_unknown_warning_option=no 9773fi 9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9775fi 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780fi 9781 9782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794int i; 9795_ACEOF 9796if ac_fn_c_try_compile "$LINENO"; then : 9797 xorg_cv_cc_flag_unused_command_line_argument=yes 9798else 9799 xorg_cv_cc_flag_unused_command_line_argument=no 9800fi 9801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9802fi 9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9806 CFLAGS="$xorg_testset_save_CFLAGS" 9807fi 9808 9809found="no" 9810 9811 if test $found = "no" ; then 9812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 fi 9815 9816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9818 fi 9819 9820 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9821 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9823$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9824 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9825 if eval \${$cacheid+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830int i; 9831int 9832main () 9833{ 9834 9835 ; 9836 return 0; 9837} 9838_ACEOF 9839if ac_fn_c_try_link "$LINENO"; then : 9840 eval $cacheid=yes 9841else 9842 eval $cacheid=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext \ 9845 conftest$ac_exeext conftest.$ac_ext 9846fi 9847 9848 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850 9851 eval supported=\$$cacheid 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9853$as_echo "$supported" >&6; } 9854 if test "$supported" = "yes" ; then 9855 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9856 found="yes" 9857 fi 9858 fi 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874xorg_testset_save_CFLAGS="$CFLAGS" 9875 9876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9881 $as_echo_n "(cached) " >&6 9882else 9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884/* end confdefs.h. */ 9885int i; 9886_ACEOF 9887if ac_fn_c_try_compile "$LINENO"; then : 9888 xorg_cv_cc_flag_unknown_warning_option=yes 9889else 9890 xorg_cv_cc_flag_unknown_warning_option=no 9891fi 9892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9893fi 9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9897 CFLAGS="$xorg_testset_save_CFLAGS" 9898fi 9899 9900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9903 fi 9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913_ACEOF 9914if ac_fn_c_try_compile "$LINENO"; then : 9915 xorg_cv_cc_flag_unused_command_line_argument=yes 9916else 9917 xorg_cv_cc_flag_unused_command_line_argument=no 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9920fi 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9924 CFLAGS="$xorg_testset_save_CFLAGS" 9925fi 9926 9927found="no" 9928 9929 if test $found = "no" ; then 9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 9934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9936 fi 9937 9938 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9939 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9941$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9942 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9943 if eval \${$cacheid+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int i; 9949int 9950main () 9951{ 9952 9953 ; 9954 return 0; 9955} 9956_ACEOF 9957if ac_fn_c_try_link "$LINENO"; then : 9958 eval $cacheid=yes 9959else 9960 eval $cacheid=no 9961fi 9962rm -f core conftest.err conftest.$ac_objext \ 9963 conftest$ac_exeext conftest.$ac_ext 9964fi 9965 9966 9967 CFLAGS="$xorg_testset_save_CFLAGS" 9968 9969 eval supported=\$$cacheid 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9971$as_echo "$supported" >&6; } 9972 if test "$supported" = "yes" ; then 9973 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9974 found="yes" 9975 fi 9976 fi 9977 9978 9979fi 9980 9981 9982 9983 9984 9985 9986 9987 CWARNFLAGS="$BASE_CFLAGS" 9988 if test "x$GCC" = xyes ; then 9989 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9990 fi 9991 9992 9993 9994 9995 9996 9997 9998 9999# Check whether --enable-strict-compilation was given. 10000if test "${enable_strict_compilation+set}" = set; then : 10001 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10002else 10003 STRICT_COMPILE=no 10004fi 10005 10006 10007 10008 10009 10010 10011STRICT_CFLAGS="" 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025xorg_testset_save_CFLAGS="$CFLAGS" 10026 10027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036int i; 10037_ACEOF 10038if ac_fn_c_try_compile "$LINENO"; then : 10039 xorg_cv_cc_flag_unknown_warning_option=yes 10040else 10041 xorg_cv_cc_flag_unknown_warning_option=no 10042fi 10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10044fi 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10048 CFLAGS="$xorg_testset_save_CFLAGS" 10049fi 10050 10051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10054 fi 10055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO"; then : 10066 xorg_cv_cc_flag_unused_command_line_argument=yes 10067else 10068 xorg_cv_cc_flag_unused_command_line_argument=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076fi 10077 10078found="no" 10079 10080 if test $found = "no" ; then 10081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10083 fi 10084 10085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10087 fi 10088 10089 CFLAGS="$CFLAGS -pedantic" 10090 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10092$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10093 cacheid=xorg_cv_cc_flag__pedantic 10094 if eval \${$cacheid+:} false; then : 10095 $as_echo_n "(cached) " >&6 10096else 10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099int i; 10100int 10101main () 10102{ 10103 10104 ; 10105 return 0; 10106} 10107_ACEOF 10108if ac_fn_c_try_link "$LINENO"; then : 10109 eval $cacheid=yes 10110else 10111 eval $cacheid=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext \ 10114 conftest$ac_exeext conftest.$ac_ext 10115fi 10116 10117 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119 10120 eval supported=\$$cacheid 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10122$as_echo "$supported" >&6; } 10123 if test "$supported" = "yes" ; then 10124 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10125 found="yes" 10126 fi 10127 fi 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143xorg_testset_save_CFLAGS="$CFLAGS" 10144 10145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10150 $as_echo_n "(cached) " >&6 10151else 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153/* end confdefs.h. */ 10154int i; 10155_ACEOF 10156if ac_fn_c_try_compile "$LINENO"; then : 10157 xorg_cv_cc_flag_unknown_warning_option=yes 10158else 10159 xorg_cv_cc_flag_unknown_warning_option=no 10160fi 10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10162fi 10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10166 CFLAGS="$xorg_testset_save_CFLAGS" 10167fi 10168 10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10172 fi 10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181int i; 10182_ACEOF 10183if ac_fn_c_try_compile "$LINENO"; then : 10184 xorg_cv_cc_flag_unused_command_line_argument=yes 10185else 10186 xorg_cv_cc_flag_unused_command_line_argument=no 10187fi 10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189fi 10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10193 CFLAGS="$xorg_testset_save_CFLAGS" 10194fi 10195 10196found="no" 10197 10198 if test $found = "no" ; then 10199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10201 fi 10202 10203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10205 fi 10206 10207 CFLAGS="$CFLAGS -Werror" 10208 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10210$as_echo_n "checking if $CC supports -Werror... " >&6; } 10211 cacheid=xorg_cv_cc_flag__Werror 10212 if eval \${$cacheid+:} false; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10216/* end confdefs.h. */ 10217int i; 10218int 10219main () 10220{ 10221 10222 ; 10223 return 0; 10224} 10225_ACEOF 10226if ac_fn_c_try_link "$LINENO"; then : 10227 eval $cacheid=yes 10228else 10229 eval $cacheid=no 10230fi 10231rm -f core conftest.err conftest.$ac_objext \ 10232 conftest$ac_exeext conftest.$ac_ext 10233fi 10234 10235 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237 10238 eval supported=\$$cacheid 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10240$as_echo "$supported" >&6; } 10241 if test "$supported" = "yes" ; then 10242 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10243 found="yes" 10244 fi 10245 fi 10246 10247 if test $found = "no" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10254 fi 10255 10256 CFLAGS="$CFLAGS -errwarn" 10257 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10259$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10260 cacheid=xorg_cv_cc_flag__errwarn 10261 if eval \${$cacheid+:} false; then : 10262 $as_echo_n "(cached) " >&6 10263else 10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10265/* end confdefs.h. */ 10266int i; 10267int 10268main () 10269{ 10270 10271 ; 10272 return 0; 10273} 10274_ACEOF 10275if ac_fn_c_try_link "$LINENO"; then : 10276 eval $cacheid=yes 10277else 10278 eval $cacheid=no 10279fi 10280rm -f core conftest.err conftest.$ac_objext \ 10281 conftest$ac_exeext conftest.$ac_ext 10282fi 10283 10284 10285 CFLAGS="$xorg_testset_save_CFLAGS" 10286 10287 eval supported=\$$cacheid 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10289$as_echo "$supported" >&6; } 10290 if test "$supported" = "yes" ; then 10291 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10292 found="yes" 10293 fi 10294 fi 10295 10296 10297 10298# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10299# activate it with -Werror, so we add it here explicitly. 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313xorg_testset_save_CFLAGS="$CFLAGS" 10314 10315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10320 $as_echo_n "(cached) " >&6 10321else 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323/* end confdefs.h. */ 10324int i; 10325_ACEOF 10326if ac_fn_c_try_compile "$LINENO"; then : 10327 xorg_cv_cc_flag_unknown_warning_option=yes 10328else 10329 xorg_cv_cc_flag_unknown_warning_option=no 10330fi 10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10332fi 10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10336 CFLAGS="$xorg_testset_save_CFLAGS" 10337fi 10338 10339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10342 fi 10343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351int i; 10352_ACEOF 10353if ac_fn_c_try_compile "$LINENO"; then : 10354 xorg_cv_cc_flag_unused_command_line_argument=yes 10355else 10356 xorg_cv_cc_flag_unused_command_line_argument=no 10357fi 10358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10359fi 10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10363 CFLAGS="$xorg_testset_save_CFLAGS" 10364fi 10365 10366found="no" 10367 10368 if test $found = "no" ; then 10369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10371 fi 10372 10373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10375 fi 10376 10377 CFLAGS="$CFLAGS -Werror=attributes" 10378 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10380$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10381 cacheid=xorg_cv_cc_flag__Werror_attributes 10382 if eval \${$cacheid+:} false; then : 10383 $as_echo_n "(cached) " >&6 10384else 10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10386/* end confdefs.h. */ 10387int i; 10388int 10389main () 10390{ 10391 10392 ; 10393 return 0; 10394} 10395_ACEOF 10396if ac_fn_c_try_link "$LINENO"; then : 10397 eval $cacheid=yes 10398else 10399 eval $cacheid=no 10400fi 10401rm -f core conftest.err conftest.$ac_objext \ 10402 conftest$ac_exeext conftest.$ac_ext 10403fi 10404 10405 10406 CFLAGS="$xorg_testset_save_CFLAGS" 10407 10408 eval supported=\$$cacheid 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10410$as_echo "$supported" >&6; } 10411 if test "$supported" = "yes" ; then 10412 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10413 found="yes" 10414 fi 10415 fi 10416 10417 10418 10419if test "x$STRICT_COMPILE" = "xyes"; then 10420 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10421 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10422fi 10423 10424 10425 10426 10427 10428 10429cat >>confdefs.h <<_ACEOF 10430#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10431_ACEOF 10432 10433 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10434 if test "x$PVM" = "x"; then 10435 PVM="0" 10436 fi 10437 10438cat >>confdefs.h <<_ACEOF 10439#define PACKAGE_VERSION_MINOR $PVM 10440_ACEOF 10441 10442 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10443 if test "x$PVP" = "x"; then 10444 PVP="0" 10445 fi 10446 10447cat >>confdefs.h <<_ACEOF 10448#define PACKAGE_VERSION_PATCHLEVEL $PVP 10449_ACEOF 10450 10451 10452 10453CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10454mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10455|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10456echo 'git directory not found: installing possibly empty changelog.' >&2)" 10457 10458 10459 10460 10461macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10462INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10463mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10464|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10465echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10466 10467 10468 10469 10470 10471 10472if test x$APP_MAN_SUFFIX = x ; then 10473 APP_MAN_SUFFIX=1 10474fi 10475if test x$APP_MAN_DIR = x ; then 10476 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10477fi 10478 10479if test x$LIB_MAN_SUFFIX = x ; then 10480 LIB_MAN_SUFFIX=3 10481fi 10482if test x$LIB_MAN_DIR = x ; then 10483 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10484fi 10485 10486if test x$FILE_MAN_SUFFIX = x ; then 10487 case $host_os in 10488 solaris*) FILE_MAN_SUFFIX=4 ;; 10489 *) FILE_MAN_SUFFIX=5 ;; 10490 esac 10491fi 10492if test x$FILE_MAN_DIR = x ; then 10493 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10494fi 10495 10496if test x$MISC_MAN_SUFFIX = x ; then 10497 case $host_os in 10498 solaris*) MISC_MAN_SUFFIX=5 ;; 10499 *) MISC_MAN_SUFFIX=7 ;; 10500 esac 10501fi 10502if test x$MISC_MAN_DIR = x ; then 10503 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10504fi 10505 10506if test x$DRIVER_MAN_SUFFIX = x ; then 10507 case $host_os in 10508 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10509 *) DRIVER_MAN_SUFFIX=4 ;; 10510 esac 10511fi 10512if test x$DRIVER_MAN_DIR = x ; then 10513 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10514fi 10515 10516if test x$ADMIN_MAN_SUFFIX = x ; then 10517 case $host_os in 10518 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10519 *) ADMIN_MAN_SUFFIX=8 ;; 10520 esac 10521fi 10522if test x$ADMIN_MAN_DIR = x ; then 10523 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10524fi 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540XORG_MAN_PAGE="X Version 11" 10541 10542MAN_SUBSTS="\ 10543 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10544 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10545 -e 's|__xservername__|Xorg|g' \ 10546 -e 's|__xconfigfile__|xorg.conf|g' \ 10547 -e 's|__projectroot__|\$(prefix)|g' \ 10548 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10549 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10550 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10551 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10552 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10553 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10554 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10555 10556 10557 10558# Check whether --enable-silent-rules was given. 10559if test "${enable_silent_rules+set}" = set; then : 10560 enableval=$enable_silent_rules; 10561fi 10562 10563case $enable_silent_rules in # ((( 10564 yes) AM_DEFAULT_VERBOSITY=0;; 10565 no) AM_DEFAULT_VERBOSITY=1;; 10566 *) AM_DEFAULT_VERBOSITY=0;; 10567esac 10568am_make=${MAKE-make} 10569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10570$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10571if ${am_cv_make_support_nested_variables+:} false; then : 10572 $as_echo_n "(cached) " >&6 10573else 10574 if $as_echo 'TRUE=$(BAR$(V)) 10575BAR0=false 10576BAR1=true 10577V=1 10578am__doit: 10579 @$(TRUE) 10580.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10581 am_cv_make_support_nested_variables=yes 10582else 10583 am_cv_make_support_nested_variables=no 10584fi 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10587$as_echo "$am_cv_make_support_nested_variables" >&6; } 10588if test $am_cv_make_support_nested_variables = yes; then 10589 AM_V='$(V)' 10590 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10591else 10592 AM_V=$AM_DEFAULT_VERBOSITY 10593 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10594fi 10595AM_BACKSLASH='\' 10596 10597 10598 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 10600$as_echo_n "checking for floor in -lm... " >&6; } 10601if ${ac_cv_lib_m_floor+:} false; then : 10602 $as_echo_n "(cached) " >&6 10603else 10604 ac_check_lib_save_LIBS=$LIBS 10605LIBS="-lm $LIBS" 10606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608 10609/* Override any GCC internal prototype to avoid an error. 10610 Use char because int might match the return type of a GCC 10611 builtin and then its argument prototype would still apply. */ 10612#ifdef __cplusplus 10613extern "C" 10614#endif 10615char floor (); 10616int 10617main () 10618{ 10619return floor (); 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624if ac_fn_c_try_link "$LINENO"; then : 10625 ac_cv_lib_m_floor=yes 10626else 10627 ac_cv_lib_m_floor=no 10628fi 10629rm -f core conftest.err conftest.$ac_objext \ 10630 conftest$ac_exeext conftest.$ac_ext 10631LIBS=$ac_check_lib_save_LIBS 10632fi 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 10634$as_echo "$ac_cv_lib_m_floor" >&6; } 10635if test "x$ac_cv_lib_m_floor" = xyes; then : 10636 cat >>confdefs.h <<_ACEOF 10637#define HAVE_LIBM 1 10638_ACEOF 10639 10640 LIBS="-lm $LIBS" 10641 10642fi 10643 10644 10645# Checks for pkg-config packages 10646 10647pkg_failed=no 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5 10649$as_echo_n "checking for XRANDR... " >&6; } 10650 10651if test -n "$XRANDR_CFLAGS"; then 10652 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS" 10653 elif test -n "$PKG_CONFIG"; then 10654 if test -n "$PKG_CONFIG" && \ 10655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.4 xrender x11 xproto >= 7.0.17\""; } >&5 10656 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17") 2>&5 10657 ac_status=$? 10658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10659 test $ac_status = 0; }; then 10660 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>/dev/null` 10661 test "x$?" != "x0" && pkg_failed=yes 10662else 10663 pkg_failed=yes 10664fi 10665 else 10666 pkg_failed=untried 10667fi 10668if test -n "$XRANDR_LIBS"; then 10669 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS" 10670 elif test -n "$PKG_CONFIG"; then 10671 if test -n "$PKG_CONFIG" && \ 10672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.4 xrender x11 xproto >= 7.0.17\""; } >&5 10673 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17") 2>&5 10674 ac_status=$? 10675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10676 test $ac_status = 0; }; then 10677 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>/dev/null` 10678 test "x$?" != "x0" && pkg_failed=yes 10679else 10680 pkg_failed=yes 10681fi 10682 else 10683 pkg_failed=untried 10684fi 10685 10686 10687 10688if test $pkg_failed = yes; then 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10690$as_echo "no" >&6; } 10691 10692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10693 _pkg_short_errors_supported=yes 10694else 10695 _pkg_short_errors_supported=no 10696fi 10697 if test $_pkg_short_errors_supported = yes; then 10698 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>&1` 10699 else 10700 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>&1` 10701 fi 10702 # Put the nasty error message in config.log where it belongs 10703 echo "$XRANDR_PKG_ERRORS" >&5 10704 10705 as_fn_error $? "Package requirements (xrandr >= 1.4 xrender x11 xproto >= 7.0.17) were not met: 10706 10707$XRANDR_PKG_ERRORS 10708 10709Consider adjusting the PKG_CONFIG_PATH environment variable if you 10710installed software in a non-standard prefix. 10711 10712Alternatively, you may set the environment variables XRANDR_CFLAGS 10713and XRANDR_LIBS to avoid the need to call pkg-config. 10714See the pkg-config man page for more details." "$LINENO" 5 10715elif test $pkg_failed = untried; then 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10717$as_echo "no" >&6; } 10718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10720as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10721is in your PATH or set the PKG_CONFIG environment variable to the full 10722path to pkg-config. 10723 10724Alternatively, you may set the environment variables XRANDR_CFLAGS 10725and XRANDR_LIBS to avoid the need to call pkg-config. 10726See the pkg-config man page for more details. 10727 10728To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10729See \`config.log' for more details" "$LINENO" 5; } 10730else 10731 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS 10732 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10734$as_echo "yes" >&6; } 10735 10736fi 10737 10738ac_config_files="$ac_config_files Makefile man/Makefile" 10739 10740cat >confcache <<\_ACEOF 10741# This file is a shell script that caches the results of configure 10742# tests run on this system so they can be shared between configure 10743# scripts and configure runs, see configure's option --config-cache. 10744# It is not useful on other systems. If it contains results you don't 10745# want to keep, you may remove or edit it. 10746# 10747# config.status only pays attention to the cache file if you give it 10748# the --recheck option to rerun configure. 10749# 10750# `ac_cv_env_foo' variables (set or unset) will be overridden when 10751# loading this file, other *unset* `ac_cv_foo' will be assigned the 10752# following values. 10753 10754_ACEOF 10755 10756# The following way of writing the cache mishandles newlines in values, 10757# but we know of no workaround that is simple, portable, and efficient. 10758# So, we kill variables containing newlines. 10759# Ultrix sh set writes to stderr and can't be redirected directly, 10760# and sets the high bit in the cache file unless we assign to the vars. 10761( 10762 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10763 eval ac_val=\$$ac_var 10764 case $ac_val in #( 10765 *${as_nl}*) 10766 case $ac_var in #( 10767 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10768$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10769 esac 10770 case $ac_var in #( 10771 _ | IFS | as_nl) ;; #( 10772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10773 *) { eval $ac_var=; unset $ac_var;} ;; 10774 esac ;; 10775 esac 10776 done 10777 10778 (set) 2>&1 | 10779 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10780 *${as_nl}ac_space=\ *) 10781 # `set' does not quote correctly, so add quotes: double-quote 10782 # substitution turns \\\\ into \\, and sed turns \\ into \. 10783 sed -n \ 10784 "s/'/'\\\\''/g; 10785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10786 ;; #( 10787 *) 10788 # `set' quotes correctly as required by POSIX, so do not add quotes. 10789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10790 ;; 10791 esac | 10792 sort 10793) | 10794 sed ' 10795 /^ac_cv_env_/b end 10796 t clear 10797 :clear 10798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10799 t end 10800 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10801 :end' >>confcache 10802if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10803 if test -w "$cache_file"; then 10804 if test "x$cache_file" != "x/dev/null"; then 10805 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10806$as_echo "$as_me: updating cache $cache_file" >&6;} 10807 if test ! -f "$cache_file" || test -h "$cache_file"; then 10808 cat confcache >"$cache_file" 10809 else 10810 case $cache_file in #( 10811 */* | ?:*) 10812 mv -f confcache "$cache_file"$$ && 10813 mv -f "$cache_file"$$ "$cache_file" ;; #( 10814 *) 10815 mv -f confcache "$cache_file" ;; 10816 esac 10817 fi 10818 fi 10819 else 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10821$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10822 fi 10823fi 10824rm -f confcache 10825 10826test "x$prefix" = xNONE && prefix=$ac_default_prefix 10827# Let make expand exec_prefix. 10828test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10829 10830DEFS=-DHAVE_CONFIG_H 10831 10832ac_libobjs= 10833ac_ltlibobjs= 10834U= 10835for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10836 # 1. Remove the extension, and $U if already installed. 10837 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10838 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10839 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10840 # will be set to the directory where LIBOBJS objects are built. 10841 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10842 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10843done 10844LIBOBJS=$ac_libobjs 10845 10846LTLIBOBJS=$ac_ltlibobjs 10847 10848 10849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10850$as_echo_n "checking that generated files are newer than configure... " >&6; } 10851 if test -n "$am_sleep_pid"; then 10852 # Hide warnings about reused PIDs. 10853 wait $am_sleep_pid 2>/dev/null 10854 fi 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10856$as_echo "done" >&6; } 10857 if test -n "$EXEEXT"; then 10858 am__EXEEXT_TRUE= 10859 am__EXEEXT_FALSE='#' 10860else 10861 am__EXEEXT_TRUE='#' 10862 am__EXEEXT_FALSE= 10863fi 10864 10865if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10866 as_fn_error $? "conditional \"AMDEP\" was never defined. 10867Usually this means the macro was only invoked conditionally." "$LINENO" 5 10868fi 10869if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10870 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10871Usually this means the macro was only invoked conditionally." "$LINENO" 5 10872fi 10873 10874: "${CONFIG_STATUS=./config.status}" 10875ac_write_fail=0 10876ac_clean_files_save=$ac_clean_files 10877ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10878{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10879$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10880as_write_fail=0 10881cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10882#! $SHELL 10883# Generated by $as_me. 10884# Run this file to recreate the current configuration. 10885# Compiler output produced by configure, useful for debugging 10886# configure, is in config.log if it exists. 10887 10888debug=false 10889ac_cs_recheck=false 10890ac_cs_silent=false 10891 10892SHELL=\${CONFIG_SHELL-$SHELL} 10893export SHELL 10894_ASEOF 10895cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10896## -------------------- ## 10897## M4sh Initialization. ## 10898## -------------------- ## 10899 10900# Be more Bourne compatible 10901DUALCASE=1; export DUALCASE # for MKS sh 10902if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10903 emulate sh 10904 NULLCMD=: 10905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10906 # is contrary to our usage. Disable this feature. 10907 alias -g '${1+"$@"}'='"$@"' 10908 setopt NO_GLOB_SUBST 10909else 10910 case `(set -o) 2>/dev/null` in #( 10911 *posix*) : 10912 set -o posix ;; #( 10913 *) : 10914 ;; 10915esac 10916fi 10917 10918 10919as_nl=' 10920' 10921export as_nl 10922# Printing a long string crashes Solaris 7 /usr/bin/printf. 10923as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10924as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10926# Prefer a ksh shell builtin over an external printf program on Solaris, 10927# but without wasting forks for bash or zsh. 10928if test -z "$BASH_VERSION$ZSH_VERSION" \ 10929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10930 as_echo='print -r --' 10931 as_echo_n='print -rn --' 10932elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10933 as_echo='printf %s\n' 10934 as_echo_n='printf %s' 10935else 10936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10938 as_echo_n='/usr/ucb/echo -n' 10939 else 10940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10941 as_echo_n_body='eval 10942 arg=$1; 10943 case $arg in #( 10944 *"$as_nl"*) 10945 expr "X$arg" : "X\\(.*\\)$as_nl"; 10946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10947 esac; 10948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10949 ' 10950 export as_echo_n_body 10951 as_echo_n='sh -c $as_echo_n_body as_echo' 10952 fi 10953 export as_echo_body 10954 as_echo='sh -c $as_echo_body as_echo' 10955fi 10956 10957# The user is always right. 10958if test "${PATH_SEPARATOR+set}" != set; then 10959 PATH_SEPARATOR=: 10960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10962 PATH_SEPARATOR=';' 10963 } 10964fi 10965 10966 10967# IFS 10968# We need space, tab and new line, in precisely that order. Quoting is 10969# there to prevent editors from complaining about space-tab. 10970# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10971# splitting by setting IFS to empty value.) 10972IFS=" "" $as_nl" 10973 10974# Find who we are. Look in the path if we contain no directory separator. 10975as_myself= 10976case $0 in #(( 10977 *[\\/]* ) as_myself=$0 ;; 10978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10979for as_dir in $PATH 10980do 10981 IFS=$as_save_IFS 10982 test -z "$as_dir" && as_dir=. 10983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10984 done 10985IFS=$as_save_IFS 10986 10987 ;; 10988esac 10989# We did not find ourselves, most probably we were run as `sh COMMAND' 10990# in which case we are not to be found in the path. 10991if test "x$as_myself" = x; then 10992 as_myself=$0 10993fi 10994if test ! -f "$as_myself"; then 10995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10996 exit 1 10997fi 10998 10999# Unset variables that we do not need and which cause bugs (e.g. in 11000# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11001# suppresses any "Segmentation fault" message there. '((' could 11002# trigger a bug in pdksh 5.2.14. 11003for as_var in BASH_ENV ENV MAIL MAILPATH 11004do eval test x\${$as_var+set} = xset \ 11005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11006done 11007PS1='$ ' 11008PS2='> ' 11009PS4='+ ' 11010 11011# NLS nuisances. 11012LC_ALL=C 11013export LC_ALL 11014LANGUAGE=C 11015export LANGUAGE 11016 11017# CDPATH. 11018(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11019 11020 11021# as_fn_error STATUS ERROR [LINENO LOG_FD] 11022# ---------------------------------------- 11023# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11024# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11025# script with STATUS, using 1 if that was 0. 11026as_fn_error () 11027{ 11028 as_status=$1; test $as_status -eq 0 && as_status=1 11029 if test "$4"; then 11030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11032 fi 11033 $as_echo "$as_me: error: $2" >&2 11034 as_fn_exit $as_status 11035} # as_fn_error 11036 11037 11038# as_fn_set_status STATUS 11039# ----------------------- 11040# Set $? to STATUS, without forking. 11041as_fn_set_status () 11042{ 11043 return $1 11044} # as_fn_set_status 11045 11046# as_fn_exit STATUS 11047# ----------------- 11048# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11049as_fn_exit () 11050{ 11051 set +e 11052 as_fn_set_status $1 11053 exit $1 11054} # as_fn_exit 11055 11056# as_fn_unset VAR 11057# --------------- 11058# Portably unset VAR. 11059as_fn_unset () 11060{ 11061 { eval $1=; unset $1;} 11062} 11063as_unset=as_fn_unset 11064# as_fn_append VAR VALUE 11065# ---------------------- 11066# Append the text in VALUE to the end of the definition contained in VAR. Take 11067# advantage of any shell optimizations that allow amortized linear growth over 11068# repeated appends, instead of the typical quadratic growth present in naive 11069# implementations. 11070if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11071 eval 'as_fn_append () 11072 { 11073 eval $1+=\$2 11074 }' 11075else 11076 as_fn_append () 11077 { 11078 eval $1=\$$1\$2 11079 } 11080fi # as_fn_append 11081 11082# as_fn_arith ARG... 11083# ------------------ 11084# Perform arithmetic evaluation on the ARGs, and store the result in the 11085# global $as_val. Take advantage of shells that can avoid forks. The arguments 11086# must be portable across $(()) and expr. 11087if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11088 eval 'as_fn_arith () 11089 { 11090 as_val=$(( $* )) 11091 }' 11092else 11093 as_fn_arith () 11094 { 11095 as_val=`expr "$@" || test $? -eq 1` 11096 } 11097fi # as_fn_arith 11098 11099 11100if expr a : '\(a\)' >/dev/null 2>&1 && 11101 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11102 as_expr=expr 11103else 11104 as_expr=false 11105fi 11106 11107if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11108 as_basename=basename 11109else 11110 as_basename=false 11111fi 11112 11113if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11114 as_dirname=dirname 11115else 11116 as_dirname=false 11117fi 11118 11119as_me=`$as_basename -- "$0" || 11120$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11121 X"$0" : 'X\(//\)$' \| \ 11122 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11123$as_echo X/"$0" | 11124 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11125 s//\1/ 11126 q 11127 } 11128 /^X\/\(\/\/\)$/{ 11129 s//\1/ 11130 q 11131 } 11132 /^X\/\(\/\).*/{ 11133 s//\1/ 11134 q 11135 } 11136 s/.*/./; q'` 11137 11138# Avoid depending upon Character Ranges. 11139as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11140as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11141as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11142as_cr_digits='0123456789' 11143as_cr_alnum=$as_cr_Letters$as_cr_digits 11144 11145ECHO_C= ECHO_N= ECHO_T= 11146case `echo -n x` in #((((( 11147-n*) 11148 case `echo 'xy\c'` in 11149 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11150 xy) ECHO_C='\c';; 11151 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11152 ECHO_T=' ';; 11153 esac;; 11154*) 11155 ECHO_N='-n';; 11156esac 11157 11158rm -f conf$$ conf$$.exe conf$$.file 11159if test -d conf$$.dir; then 11160 rm -f conf$$.dir/conf$$.file 11161else 11162 rm -f conf$$.dir 11163 mkdir conf$$.dir 2>/dev/null 11164fi 11165if (echo >conf$$.file) 2>/dev/null; then 11166 if ln -s conf$$.file conf$$ 2>/dev/null; then 11167 as_ln_s='ln -s' 11168 # ... but there are two gotchas: 11169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11171 # In both cases, we have to default to `cp -pR'. 11172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11173 as_ln_s='cp -pR' 11174 elif ln conf$$.file conf$$ 2>/dev/null; then 11175 as_ln_s=ln 11176 else 11177 as_ln_s='cp -pR' 11178 fi 11179else 11180 as_ln_s='cp -pR' 11181fi 11182rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11183rmdir conf$$.dir 2>/dev/null 11184 11185 11186# as_fn_mkdir_p 11187# ------------- 11188# Create "$as_dir" as a directory, including parents if necessary. 11189as_fn_mkdir_p () 11190{ 11191 11192 case $as_dir in #( 11193 -*) as_dir=./$as_dir;; 11194 esac 11195 test -d "$as_dir" || eval $as_mkdir_p || { 11196 as_dirs= 11197 while :; do 11198 case $as_dir in #( 11199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11200 *) as_qdir=$as_dir;; 11201 esac 11202 as_dirs="'$as_qdir' $as_dirs" 11203 as_dir=`$as_dirname -- "$as_dir" || 11204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11205 X"$as_dir" : 'X\(//\)[^/]' \| \ 11206 X"$as_dir" : 'X\(//\)$' \| \ 11207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11208$as_echo X"$as_dir" | 11209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11210 s//\1/ 11211 q 11212 } 11213 /^X\(\/\/\)[^/].*/{ 11214 s//\1/ 11215 q 11216 } 11217 /^X\(\/\/\)$/{ 11218 s//\1/ 11219 q 11220 } 11221 /^X\(\/\).*/{ 11222 s//\1/ 11223 q 11224 } 11225 s/.*/./; q'` 11226 test -d "$as_dir" && break 11227 done 11228 test -z "$as_dirs" || eval "mkdir $as_dirs" 11229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11230 11231 11232} # as_fn_mkdir_p 11233if mkdir -p . 2>/dev/null; then 11234 as_mkdir_p='mkdir -p "$as_dir"' 11235else 11236 test -d ./-p && rmdir ./-p 11237 as_mkdir_p=false 11238fi 11239 11240 11241# as_fn_executable_p FILE 11242# ----------------------- 11243# Test if FILE is an executable regular file. 11244as_fn_executable_p () 11245{ 11246 test -f "$1" && test -x "$1" 11247} # as_fn_executable_p 11248as_test_x='test -x' 11249as_executable_p=as_fn_executable_p 11250 11251# Sed expression to map a string onto a valid CPP name. 11252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11253 11254# Sed expression to map a string onto a valid variable name. 11255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11256 11257 11258exec 6>&1 11259## ----------------------------------- ## 11260## Main body of $CONFIG_STATUS script. ## 11261## ----------------------------------- ## 11262_ASEOF 11263test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11264 11265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11266# Save the log message, to keep $0 and so on meaningful, and to 11267# report actual input values of CONFIG_FILES etc. instead of their 11268# values after options handling. 11269ac_log=" 11270This file was extended by xrandr $as_me 1.4.2, which was 11271generated by GNU Autoconf 2.69. Invocation command line was 11272 11273 CONFIG_FILES = $CONFIG_FILES 11274 CONFIG_HEADERS = $CONFIG_HEADERS 11275 CONFIG_LINKS = $CONFIG_LINKS 11276 CONFIG_COMMANDS = $CONFIG_COMMANDS 11277 $ $0 $@ 11278 11279on `(hostname || uname -n) 2>/dev/null | sed 1q` 11280" 11281 11282_ACEOF 11283 11284case $ac_config_files in *" 11285"*) set x $ac_config_files; shift; ac_config_files=$*;; 11286esac 11287 11288case $ac_config_headers in *" 11289"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11290esac 11291 11292 11293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11294# Files that config.status was made for. 11295config_files="$ac_config_files" 11296config_headers="$ac_config_headers" 11297config_commands="$ac_config_commands" 11298 11299_ACEOF 11300 11301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11302ac_cs_usage="\ 11303\`$as_me' instantiates files and other configuration actions 11304from templates according to the current configuration. Unless the files 11305and actions are specified as TAGs, all are instantiated by default. 11306 11307Usage: $0 [OPTION]... [TAG]... 11308 11309 -h, --help print this help, then exit 11310 -V, --version print version number and configuration settings, then exit 11311 --config print configuration, then exit 11312 -q, --quiet, --silent 11313 do not print progress messages 11314 -d, --debug don't remove temporary files 11315 --recheck update $as_me by reconfiguring in the same conditions 11316 --file=FILE[:TEMPLATE] 11317 instantiate the configuration file FILE 11318 --header=FILE[:TEMPLATE] 11319 instantiate the configuration header FILE 11320 11321Configuration files: 11322$config_files 11323 11324Configuration headers: 11325$config_headers 11326 11327Configuration commands: 11328$config_commands 11329 11330Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11331 11332_ACEOF 11333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11334ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11335ac_cs_version="\\ 11336xrandr config.status 1.4.2 11337configured by $0, generated by GNU Autoconf 2.69, 11338 with options \\"\$ac_cs_config\\" 11339 11340Copyright (C) 2012 Free Software Foundation, Inc. 11341This config.status script is free software; the Free Software Foundation 11342gives unlimited permission to copy, distribute and modify it." 11343 11344ac_pwd='$ac_pwd' 11345srcdir='$srcdir' 11346INSTALL='$INSTALL' 11347MKDIR_P='$MKDIR_P' 11348AWK='$AWK' 11349test -n "\$AWK" || AWK=awk 11350_ACEOF 11351 11352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11353# The default lists apply if the user does not specify any file. 11354ac_need_defaults=: 11355while test $# != 0 11356do 11357 case $1 in 11358 --*=?*) 11359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11361 ac_shift=: 11362 ;; 11363 --*=) 11364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11365 ac_optarg= 11366 ac_shift=: 11367 ;; 11368 *) 11369 ac_option=$1 11370 ac_optarg=$2 11371 ac_shift=shift 11372 ;; 11373 esac 11374 11375 case $ac_option in 11376 # Handling of the options. 11377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11378 ac_cs_recheck=: ;; 11379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11380 $as_echo "$ac_cs_version"; exit ;; 11381 --config | --confi | --conf | --con | --co | --c ) 11382 $as_echo "$ac_cs_config"; exit ;; 11383 --debug | --debu | --deb | --de | --d | -d ) 11384 debug=: ;; 11385 --file | --fil | --fi | --f ) 11386 $ac_shift 11387 case $ac_optarg in 11388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11389 '') as_fn_error $? "missing file argument" ;; 11390 esac 11391 as_fn_append CONFIG_FILES " '$ac_optarg'" 11392 ac_need_defaults=false;; 11393 --header | --heade | --head | --hea ) 11394 $ac_shift 11395 case $ac_optarg in 11396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11397 esac 11398 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11399 ac_need_defaults=false;; 11400 --he | --h) 11401 # Conflict between --help and --header 11402 as_fn_error $? "ambiguous option: \`$1' 11403Try \`$0 --help' for more information.";; 11404 --help | --hel | -h ) 11405 $as_echo "$ac_cs_usage"; exit ;; 11406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11407 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11408 ac_cs_silent=: ;; 11409 11410 # This is an error. 11411 -*) as_fn_error $? "unrecognized option: \`$1' 11412Try \`$0 --help' for more information." ;; 11413 11414 *) as_fn_append ac_config_targets " $1" 11415 ac_need_defaults=false ;; 11416 11417 esac 11418 shift 11419done 11420 11421ac_configure_extra_args= 11422 11423if $ac_cs_silent; then 11424 exec 6>/dev/null 11425 ac_configure_extra_args="$ac_configure_extra_args --silent" 11426fi 11427 11428_ACEOF 11429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11430if \$ac_cs_recheck; then 11431 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11432 shift 11433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11434 CONFIG_SHELL='$SHELL' 11435 export CONFIG_SHELL 11436 exec "\$@" 11437fi 11438 11439_ACEOF 11440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11441exec 5>>config.log 11442{ 11443 echo 11444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11445## Running $as_me. ## 11446_ASBOX 11447 $as_echo "$ac_log" 11448} >&5 11449 11450_ACEOF 11451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11452# 11453# INIT-COMMANDS 11454# 11455AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11456 11457_ACEOF 11458 11459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11460 11461# Handling of arguments. 11462for ac_config_target in $ac_config_targets 11463do 11464 case $ac_config_target in 11465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11466 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11468 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11469 11470 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11471 esac 11472done 11473 11474 11475# If the user did not use the arguments to specify the items to instantiate, 11476# then the envvar interface is used. Set only those that are not. 11477# We use the long form for the default assignment because of an extremely 11478# bizarre bug on SunOS 4.1.3. 11479if $ac_need_defaults; then 11480 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11481 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11482 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11483fi 11484 11485# Have a temporary directory for convenience. Make it in the build tree 11486# simply because there is no reason against having it here, and in addition, 11487# creating and moving files from /tmp can sometimes cause problems. 11488# Hook for its removal unless debugging. 11489# Note that there is a small window in which the directory will not be cleaned: 11490# after its creation but before its name has been assigned to `$tmp'. 11491$debug || 11492{ 11493 tmp= ac_tmp= 11494 trap 'exit_status=$? 11495 : "${ac_tmp:=$tmp}" 11496 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11497' 0 11498 trap 'as_fn_exit 1' 1 2 13 15 11499} 11500# Create a (secure) tmp directory for tmp files. 11501 11502{ 11503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11504 test -d "$tmp" 11505} || 11506{ 11507 tmp=./conf$$-$RANDOM 11508 (umask 077 && mkdir "$tmp") 11509} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11510ac_tmp=$tmp 11511 11512# Set up the scripts for CONFIG_FILES section. 11513# No need to generate them if there are no CONFIG_FILES. 11514# This happens for instance with `./config.status config.h'. 11515if test -n "$CONFIG_FILES"; then 11516 11517 11518ac_cr=`echo X | tr X '\015'` 11519# On cygwin, bash can eat \r inside `` if the user requested igncr. 11520# But we know of no other shell where ac_cr would be empty at this 11521# point, so we can use a bashism as a fallback. 11522if test "x$ac_cr" = x; then 11523 eval ac_cr=\$\'\\r\' 11524fi 11525ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11526if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11527 ac_cs_awk_cr='\\r' 11528else 11529 ac_cs_awk_cr=$ac_cr 11530fi 11531 11532echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11533_ACEOF 11534 11535 11536{ 11537 echo "cat >conf$$subs.awk <<_ACEOF" && 11538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11539 echo "_ACEOF" 11540} >conf$$subs.sh || 11541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11542ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11543ac_delim='%!_!# ' 11544for ac_last_try in false false false false false :; do 11545 . ./conf$$subs.sh || 11546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11547 11548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11549 if test $ac_delim_n = $ac_delim_num; then 11550 break 11551 elif $ac_last_try; then 11552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11553 else 11554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11555 fi 11556done 11557rm -f conf$$subs.sh 11558 11559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11560cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11561_ACEOF 11562sed -n ' 11563h 11564s/^/S["/; s/!.*/"]=/ 11565p 11566g 11567s/^[^!]*!// 11568:repl 11569t repl 11570s/'"$ac_delim"'$// 11571t delim 11572:nl 11573h 11574s/\(.\{148\}\)..*/\1/ 11575t more1 11576s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11577p 11578n 11579b repl 11580:more1 11581s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11582p 11583g 11584s/.\{148\}// 11585t nl 11586:delim 11587h 11588s/\(.\{148\}\)..*/\1/ 11589t more2 11590s/["\\]/\\&/g; s/^/"/; s/$/"/ 11591p 11592b 11593:more2 11594s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11595p 11596g 11597s/.\{148\}// 11598t delim 11599' <conf$$subs.awk | sed ' 11600/^[^""]/{ 11601 N 11602 s/\n// 11603} 11604' >>$CONFIG_STATUS || ac_write_fail=1 11605rm -f conf$$subs.awk 11606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11607_ACAWK 11608cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11609 for (key in S) S_is_set[key] = 1 11610 FS = "" 11611 11612} 11613{ 11614 line = $ 0 11615 nfields = split(line, field, "@") 11616 substed = 0 11617 len = length(field[1]) 11618 for (i = 2; i < nfields; i++) { 11619 key = field[i] 11620 keylen = length(key) 11621 if (S_is_set[key]) { 11622 value = S[key] 11623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11624 len += length(value) + length(field[++i]) 11625 substed = 1 11626 } else 11627 len += 1 + keylen 11628 } 11629 11630 print line 11631} 11632 11633_ACAWK 11634_ACEOF 11635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11636if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11638else 11639 cat 11640fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11641 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11642_ACEOF 11643 11644# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11645# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11646# trailing colons and then remove the whole line if VPATH becomes empty 11647# (actually we leave an empty line to preserve line numbers). 11648if test "x$srcdir" = x.; then 11649 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11650h 11651s/// 11652s/^/:/ 11653s/[ ]*$/:/ 11654s/:\$(srcdir):/:/g 11655s/:\${srcdir}:/:/g 11656s/:@srcdir@:/:/g 11657s/^:*// 11658s/:*$// 11659x 11660s/\(=[ ]*\).*/\1/ 11661G 11662s/\n// 11663s/^[^=]*=[ ]*$// 11664}' 11665fi 11666 11667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11668fi # test -n "$CONFIG_FILES" 11669 11670# Set up the scripts for CONFIG_HEADERS section. 11671# No need to generate them if there are no CONFIG_HEADERS. 11672# This happens for instance with `./config.status Makefile'. 11673if test -n "$CONFIG_HEADERS"; then 11674cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11675BEGIN { 11676_ACEOF 11677 11678# Transform confdefs.h into an awk script `defines.awk', embedded as 11679# here-document in config.status, that substitutes the proper values into 11680# config.h.in to produce config.h. 11681 11682# Create a delimiter string that does not exist in confdefs.h, to ease 11683# handling of long lines. 11684ac_delim='%!_!# ' 11685for ac_last_try in false false :; do 11686 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11687 if test -z "$ac_tt"; then 11688 break 11689 elif $ac_last_try; then 11690 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11691 else 11692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11693 fi 11694done 11695 11696# For the awk script, D is an array of macro values keyed by name, 11697# likewise P contains macro parameters if any. Preserve backslash 11698# newline sequences. 11699 11700ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11701sed -n ' 11702s/.\{148\}/&'"$ac_delim"'/g 11703t rset 11704:rset 11705s/^[ ]*#[ ]*define[ ][ ]*/ / 11706t def 11707d 11708:def 11709s/\\$// 11710t bsnl 11711s/["\\]/\\&/g 11712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11713D["\1"]=" \3"/p 11714s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11715d 11716:bsnl 11717s/["\\]/\\&/g 11718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11719D["\1"]=" \3\\\\\\n"\\/p 11720t cont 11721s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11722t cont 11723d 11724:cont 11725n 11726s/.\{148\}/&'"$ac_delim"'/g 11727t clear 11728:clear 11729s/\\$// 11730t bsnlc 11731s/["\\]/\\&/g; s/^/"/; s/$/"/p 11732d 11733:bsnlc 11734s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11735b cont 11736' <confdefs.h | sed ' 11737s/'"$ac_delim"'/"\\\ 11738"/g' >>$CONFIG_STATUS || ac_write_fail=1 11739 11740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11741 for (key in D) D_is_set[key] = 1 11742 FS = "" 11743} 11744/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11745 line = \$ 0 11746 split(line, arg, " ") 11747 if (arg[1] == "#") { 11748 defundef = arg[2] 11749 mac1 = arg[3] 11750 } else { 11751 defundef = substr(arg[1], 2) 11752 mac1 = arg[2] 11753 } 11754 split(mac1, mac2, "(") #) 11755 macro = mac2[1] 11756 prefix = substr(line, 1, index(line, defundef) - 1) 11757 if (D_is_set[macro]) { 11758 # Preserve the white space surrounding the "#". 11759 print prefix "define", macro P[macro] D[macro] 11760 next 11761 } else { 11762 # Replace #undef with comments. This is necessary, for example, 11763 # in the case of _POSIX_SOURCE, which is predefined and required 11764 # on some systems where configure will not decide to define it. 11765 if (defundef == "undef") { 11766 print "/*", prefix defundef, macro, "*/" 11767 next 11768 } 11769 } 11770} 11771{ print } 11772_ACAWK 11773_ACEOF 11774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11775 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11776fi # test -n "$CONFIG_HEADERS" 11777 11778 11779eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11780shift 11781for ac_tag 11782do 11783 case $ac_tag in 11784 :[FHLC]) ac_mode=$ac_tag; continue;; 11785 esac 11786 case $ac_mode$ac_tag in 11787 :[FHL]*:*);; 11788 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11789 :[FH]-) ac_tag=-:-;; 11790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11791 esac 11792 ac_save_IFS=$IFS 11793 IFS=: 11794 set x $ac_tag 11795 IFS=$ac_save_IFS 11796 shift 11797 ac_file=$1 11798 shift 11799 11800 case $ac_mode in 11801 :L) ac_source=$1;; 11802 :[FH]) 11803 ac_file_inputs= 11804 for ac_f 11805 do 11806 case $ac_f in 11807 -) ac_f="$ac_tmp/stdin";; 11808 *) # Look for the file first in the build tree, then in the source tree 11809 # (if the path is not absolute). The absolute path cannot be DOS-style, 11810 # because $ac_f cannot contain `:'. 11811 test -f "$ac_f" || 11812 case $ac_f in 11813 [\\/$]*) false;; 11814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11815 esac || 11816 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11817 esac 11818 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11819 as_fn_append ac_file_inputs " '$ac_f'" 11820 done 11821 11822 # Let's still pretend it is `configure' which instantiates (i.e., don't 11823 # use $as_me), people would be surprised to read: 11824 # /* config.h. Generated by config.status. */ 11825 configure_input='Generated from '` 11826 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11827 `' by configure.' 11828 if test x"$ac_file" != x-; then 11829 configure_input="$ac_file. $configure_input" 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11831$as_echo "$as_me: creating $ac_file" >&6;} 11832 fi 11833 # Neutralize special characters interpreted by sed in replacement strings. 11834 case $configure_input in #( 11835 *\&* | *\|* | *\\* ) 11836 ac_sed_conf_input=`$as_echo "$configure_input" | 11837 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11838 *) ac_sed_conf_input=$configure_input;; 11839 esac 11840 11841 case $ac_tag in 11842 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11844 esac 11845 ;; 11846 esac 11847 11848 ac_dir=`$as_dirname -- "$ac_file" || 11849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11850 X"$ac_file" : 'X\(//\)[^/]' \| \ 11851 X"$ac_file" : 'X\(//\)$' \| \ 11852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11853$as_echo X"$ac_file" | 11854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11855 s//\1/ 11856 q 11857 } 11858 /^X\(\/\/\)[^/].*/{ 11859 s//\1/ 11860 q 11861 } 11862 /^X\(\/\/\)$/{ 11863 s//\1/ 11864 q 11865 } 11866 /^X\(\/\).*/{ 11867 s//\1/ 11868 q 11869 } 11870 s/.*/./; q'` 11871 as_dir="$ac_dir"; as_fn_mkdir_p 11872 ac_builddir=. 11873 11874case "$ac_dir" in 11875.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11876*) 11877 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11878 # A ".." for each directory in $ac_dir_suffix. 11879 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11880 case $ac_top_builddir_sub in 11881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11883 esac ;; 11884esac 11885ac_abs_top_builddir=$ac_pwd 11886ac_abs_builddir=$ac_pwd$ac_dir_suffix 11887# for backward compatibility: 11888ac_top_builddir=$ac_top_build_prefix 11889 11890case $srcdir in 11891 .) # We are building in place. 11892 ac_srcdir=. 11893 ac_top_srcdir=$ac_top_builddir_sub 11894 ac_abs_top_srcdir=$ac_pwd ;; 11895 [\\/]* | ?:[\\/]* ) # Absolute name. 11896 ac_srcdir=$srcdir$ac_dir_suffix; 11897 ac_top_srcdir=$srcdir 11898 ac_abs_top_srcdir=$srcdir ;; 11899 *) # Relative name. 11900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11901 ac_top_srcdir=$ac_top_build_prefix$srcdir 11902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11903esac 11904ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11905 11906 11907 case $ac_mode in 11908 :F) 11909 # 11910 # CONFIG_FILE 11911 # 11912 11913 case $INSTALL in 11914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11915 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11916 esac 11917 ac_MKDIR_P=$MKDIR_P 11918 case $MKDIR_P in 11919 [\\/$]* | ?:[\\/]* ) ;; 11920 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11921 esac 11922_ACEOF 11923 11924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11925# If the template does not know about datarootdir, expand it. 11926# FIXME: This hack should be removed a few years after 2.60. 11927ac_datarootdir_hack=; ac_datarootdir_seen= 11928ac_sed_dataroot=' 11929/datarootdir/ { 11930 p 11931 q 11932} 11933/@datadir@/p 11934/@docdir@/p 11935/@infodir@/p 11936/@localedir@/p 11937/@mandir@/p' 11938case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11939*datarootdir*) ac_datarootdir_seen=yes;; 11940*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11942$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11943_ACEOF 11944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11945 ac_datarootdir_hack=' 11946 s&@datadir@&$datadir&g 11947 s&@docdir@&$docdir&g 11948 s&@infodir@&$infodir&g 11949 s&@localedir@&$localedir&g 11950 s&@mandir@&$mandir&g 11951 s&\\\${datarootdir}&$datarootdir&g' ;; 11952esac 11953_ACEOF 11954 11955# Neutralize VPATH when `$srcdir' = `.'. 11956# Shell code in configure.ac might set extrasub. 11957# FIXME: do we really want to maintain this feature? 11958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11959ac_sed_extra="$ac_vpsub 11960$extrasub 11961_ACEOF 11962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11963:t 11964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11965s|@configure_input@|$ac_sed_conf_input|;t t 11966s&@top_builddir@&$ac_top_builddir_sub&;t t 11967s&@top_build_prefix@&$ac_top_build_prefix&;t t 11968s&@srcdir@&$ac_srcdir&;t t 11969s&@abs_srcdir@&$ac_abs_srcdir&;t t 11970s&@top_srcdir@&$ac_top_srcdir&;t t 11971s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11972s&@builddir@&$ac_builddir&;t t 11973s&@abs_builddir@&$ac_abs_builddir&;t t 11974s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11975s&@INSTALL@&$ac_INSTALL&;t t 11976s&@MKDIR_P@&$ac_MKDIR_P&;t t 11977$ac_datarootdir_hack 11978" 11979eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11980 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11981 11982test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11983 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11984 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11985 "$ac_tmp/out"`; test -z "$ac_out"; } && 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11987which seems to be undefined. Please make sure it is defined" >&5 11988$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11989which seems to be undefined. Please make sure it is defined" >&2;} 11990 11991 rm -f "$ac_tmp/stdin" 11992 case $ac_file in 11993 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11994 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11995 esac \ 11996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11997 ;; 11998 :H) 11999 # 12000 # CONFIG_HEADER 12001 # 12002 if test x"$ac_file" != x-; then 12003 { 12004 $as_echo "/* $configure_input */" \ 12005 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12006 } >"$ac_tmp/config.h" \ 12007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12008 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12010$as_echo "$as_me: $ac_file is unchanged" >&6;} 12011 else 12012 rm -f "$ac_file" 12013 mv "$ac_tmp/config.h" "$ac_file" \ 12014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12015 fi 12016 else 12017 $as_echo "/* $configure_input */" \ 12018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12019 || as_fn_error $? "could not create -" "$LINENO" 5 12020 fi 12021# Compute "$ac_file"'s index in $config_headers. 12022_am_arg="$ac_file" 12023_am_stamp_count=1 12024for _am_header in $config_headers :; do 12025 case $_am_header in 12026 $_am_arg | $_am_arg:* ) 12027 break ;; 12028 * ) 12029 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12030 esac 12031done 12032echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12033$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12034 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12035 X"$_am_arg" : 'X\(//\)$' \| \ 12036 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12037$as_echo X"$_am_arg" | 12038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12039 s//\1/ 12040 q 12041 } 12042 /^X\(\/\/\)[^/].*/{ 12043 s//\1/ 12044 q 12045 } 12046 /^X\(\/\/\)$/{ 12047 s//\1/ 12048 q 12049 } 12050 /^X\(\/\).*/{ 12051 s//\1/ 12052 q 12053 } 12054 s/.*/./; q'`/stamp-h$_am_stamp_count 12055 ;; 12056 12057 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12058$as_echo "$as_me: executing $ac_file commands" >&6;} 12059 ;; 12060 esac 12061 12062 12063 case $ac_file$ac_mode in 12064 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12065 # Older Autoconf quotes --file arguments for eval, but not when files 12066 # are listed without --file. Let's play safe and only enable the eval 12067 # if we detect the quoting. 12068 case $CONFIG_FILES in 12069 *\'*) eval set x "$CONFIG_FILES" ;; 12070 *) set x $CONFIG_FILES ;; 12071 esac 12072 shift 12073 for mf 12074 do 12075 # Strip MF so we end up with the name of the file. 12076 mf=`echo "$mf" | sed -e 's/:.*$//'` 12077 # Check whether this is an Automake generated Makefile or not. 12078 # We used to match only the files named 'Makefile.in', but 12079 # some people rename them; so instead we look at the file content. 12080 # Grep'ing the first line is not enough: some people post-process 12081 # each Makefile.in and add a new line on top of each file to say so. 12082 # Grep'ing the whole file is not good either: AIX grep has a line 12083 # limit of 2048, but all sed's we know have understand at least 4000. 12084 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12085 dirpart=`$as_dirname -- "$mf" || 12086$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12087 X"$mf" : 'X\(//\)[^/]' \| \ 12088 X"$mf" : 'X\(//\)$' \| \ 12089 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12090$as_echo X"$mf" | 12091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12092 s//\1/ 12093 q 12094 } 12095 /^X\(\/\/\)[^/].*/{ 12096 s//\1/ 12097 q 12098 } 12099 /^X\(\/\/\)$/{ 12100 s//\1/ 12101 q 12102 } 12103 /^X\(\/\).*/{ 12104 s//\1/ 12105 q 12106 } 12107 s/.*/./; q'` 12108 else 12109 continue 12110 fi 12111 # Extract the definition of DEPDIR, am__include, and am__quote 12112 # from the Makefile without running 'make'. 12113 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12114 test -z "$DEPDIR" && continue 12115 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12116 test -z "$am__include" && continue 12117 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12118 # Find all dependency output files, they are included files with 12119 # $(DEPDIR) in their names. We invoke sed twice because it is the 12120 # simplest approach to changing $(DEPDIR) to its actual value in the 12121 # expansion. 12122 for file in `sed -n " 12123 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12124 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12125 # Make sure the directory exists. 12126 test -f "$dirpart/$file" && continue 12127 fdir=`$as_dirname -- "$file" || 12128$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12129 X"$file" : 'X\(//\)[^/]' \| \ 12130 X"$file" : 'X\(//\)$' \| \ 12131 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12132$as_echo X"$file" | 12133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12134 s//\1/ 12135 q 12136 } 12137 /^X\(\/\/\)[^/].*/{ 12138 s//\1/ 12139 q 12140 } 12141 /^X\(\/\/\)$/{ 12142 s//\1/ 12143 q 12144 } 12145 /^X\(\/\).*/{ 12146 s//\1/ 12147 q 12148 } 12149 s/.*/./; q'` 12150 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12151 # echo "creating $dirpart/$file" 12152 echo '# dummy' > "$dirpart/$file" 12153 done 12154 done 12155} 12156 ;; 12157 12158 esac 12159done # for ac_tag 12160 12161 12162as_fn_exit 0 12163_ACEOF 12164ac_clean_files=$ac_clean_files_save 12165 12166test $ac_write_fail = 0 || 12167 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12168 12169 12170# configure is writing to config.log, and then calls config.status. 12171# config.status does its own redirection, appending to config.log. 12172# Unfortunately, on DOS this fails, as config.log is still kept open 12173# by configure, so config.status won't be able to write to it; its 12174# output is simply discarded. So we exec the FD to /dev/null, 12175# effectively closing config.log, so it can be properly (re)opened and 12176# appended to by config.status. When coming back to configure, we 12177# need to make the FD available again. 12178if test "$no_create" != yes; then 12179 ac_cs_success=: 12180 ac_config_status_args= 12181 test "$silent" = yes && 12182 ac_config_status_args="$ac_config_status_args --quiet" 12183 exec 5>/dev/null 12184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12185 exec 5>>config.log 12186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12187 # would make configure fail if this is the last instruction. 12188 $ac_cs_success || as_fn_exit 1 12189fi 12190if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12192$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12193fi 12194 12195