configure revision 966b534a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xrandr 1.4.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xrandr' 563PACKAGE_TARNAME='xrandr' 564PACKAGE_VERSION='1.4.0' 565PACKAGE_STRING='xrandr 1.4.0' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XRANDR_LIBS 611XRANDR_CFLAGS 612AM_BACKSLASH 613AM_DEFAULT_VERBOSITY 614AM_DEFAULT_V 615AM_V 616MAN_SUBSTS 617XORG_MAN_PAGE 618ADMIN_MAN_DIR 619DRIVER_MAN_DIR 620MISC_MAN_DIR 621FILE_MAN_DIR 622LIB_MAN_DIR 623APP_MAN_DIR 624ADMIN_MAN_SUFFIX 625DRIVER_MAN_SUFFIX 626MISC_MAN_SUFFIX 627FILE_MAN_SUFFIX 628LIB_MAN_SUFFIX 629APP_MAN_SUFFIX 630SED 631host_os 632host_vendor 633host_cpu 634host 635build_os 636build_vendor 637build_cpu 638build 639INSTALL_CMD 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643CHANGELOG_CMD 644STRICT_CFLAGS 645CWARNFLAGS 646BASE_CFLAGS 647EGREP 648GREP 649CPP 650am__fastdepCC_FALSE 651am__fastdepCC_TRUE 652CCDEPMODE 653am__nodep 654AMDEPBACKSLASH 655AMDEP_FALSE 656AMDEP_TRUE 657am__quote 658am__include 659DEPDIR 660OBJEXT 661EXEEXT 662ac_ct_CC 663CPPFLAGS 664LDFLAGS 665CFLAGS 666CC 667am__untar 668am__tar 669AMTAR 670am__leading_dot 671SET_MAKE 672AWK 673mkdir_p 674MKDIR_P 675INSTALL_STRIP_PROGRAM 676STRIP 677install_sh 678MAKEINFO 679AUTOHEADER 680AUTOMAKE 681AUTOCONF 682ACLOCAL 683VERSION 684PACKAGE 685CYGPATH_W 686am__isrc 687INSTALL_DATA 688INSTALL_SCRIPT 689INSTALL_PROGRAM 690target_alias 691host_alias 692build_alias 693LIBS 694ECHO_T 695ECHO_N 696ECHO_C 697DEFS 698mandir 699localedir 700libdir 701psdir 702pdfdir 703dvidir 704htmldir 705infodir 706docdir 707oldincludedir 708includedir 709localstatedir 710sharedstatedir 711sysconfdir 712datadir 713datarootdir 714libexecdir 715sbindir 716bindir 717program_transform_name 718prefix 719exec_prefix 720PACKAGE_URL 721PACKAGE_BUGREPORT 722PACKAGE_STRING 723PACKAGE_VERSION 724PACKAGE_TARNAME 725PACKAGE_NAME 726PATH_SEPARATOR 727SHELL' 728ac_subst_files='' 729ac_user_opts=' 730enable_option_checking 731enable_dependency_tracking 732enable_selective_werror 733enable_strict_compilation 734enable_silent_rules 735' 736 ac_precious_vars='build_alias 737host_alias 738target_alias 739CC 740CFLAGS 741LDFLAGS 742LIBS 743CPPFLAGS 744CPP 745PKG_CONFIG 746PKG_CONFIG_PATH 747PKG_CONFIG_LIBDIR 748XRANDR_CFLAGS 749XRANDR_LIBS' 750 751 752# Initialize some variables set by options. 753ac_init_help= 754ac_init_version=false 755ac_unrecognized_opts= 756ac_unrecognized_sep= 757# The variables have the same names as the options, with 758# dashes changed to underlines. 759cache_file=/dev/null 760exec_prefix=NONE 761no_create= 762no_recursion= 763prefix=NONE 764program_prefix=NONE 765program_suffix=NONE 766program_transform_name=s,x,x, 767silent= 768site= 769srcdir= 770verbose= 771x_includes=NONE 772x_libraries=NONE 773 774# Installation directory options. 775# These are left unexpanded so users can "make install exec_prefix=/foo" 776# and all the variables that are supposed to be based on exec_prefix 777# by default will actually change. 778# Use braces instead of parens because sh, perl, etc. also accept them. 779# (The list follows the same order as the GNU Coding Standards.) 780bindir='${exec_prefix}/bin' 781sbindir='${exec_prefix}/sbin' 782libexecdir='${exec_prefix}/libexec' 783datarootdir='${prefix}/share' 784datadir='${datarootdir}' 785sysconfdir='${prefix}/etc' 786sharedstatedir='${prefix}/com' 787localstatedir='${prefix}/var' 788includedir='${prefix}/include' 789oldincludedir='/usr/include' 790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 791infodir='${datarootdir}/info' 792htmldir='${docdir}' 793dvidir='${docdir}' 794pdfdir='${docdir}' 795psdir='${docdir}' 796libdir='${exec_prefix}/lib' 797localedir='${datarootdir}/locale' 798mandir='${datarootdir}/man' 799 800ac_prev= 801ac_dashdash= 802for ac_option 803do 804 # If the previous option needs an argument, assign it. 805 if test -n "$ac_prev"; then 806 eval $ac_prev=\$ac_option 807 ac_prev= 808 continue 809 fi 810 811 case $ac_option in 812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 813 *=) ac_optarg= ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=\$ac_optarg ;; 896 897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899 | --exec | --exe | --ex) 900 ac_prev=exec_prefix ;; 901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903 | --exec=* | --exe=* | --ex=*) 904 exec_prefix=$ac_optarg ;; 905 906 -gas | --gas | --ga | --g) 907 # Obsolete; use --with-gas. 908 with_gas=yes ;; 909 910 -help | --help | --hel | --he | -h) 911 ac_init_help=long ;; 912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913 ac_init_help=recursive ;; 914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915 ac_init_help=short ;; 916 917 -host | --host | --hos | --ho) 918 ac_prev=host_alias ;; 919 -host=* | --host=* | --hos=* | --ho=*) 920 host_alias=$ac_optarg ;; 921 922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 923 ac_prev=htmldir ;; 924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 925 | --ht=*) 926 htmldir=$ac_optarg ;; 927 928 -includedir | --includedir | --includedi | --included | --include \ 929 | --includ | --inclu | --incl | --inc) 930 ac_prev=includedir ;; 931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932 | --includ=* | --inclu=* | --incl=* | --inc=*) 933 includedir=$ac_optarg ;; 934 935 -infodir | --infodir | --infodi | --infod | --info | --inf) 936 ac_prev=infodir ;; 937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938 infodir=$ac_optarg ;; 939 940 -libdir | --libdir | --libdi | --libd) 941 ac_prev=libdir ;; 942 -libdir=* | --libdir=* | --libdi=* | --libd=*) 943 libdir=$ac_optarg ;; 944 945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946 | --libexe | --libex | --libe) 947 ac_prev=libexecdir ;; 948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949 | --libexe=* | --libex=* | --libe=*) 950 libexecdir=$ac_optarg ;; 951 952 -localedir | --localedir | --localedi | --localed | --locale) 953 ac_prev=localedir ;; 954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 955 localedir=$ac_optarg ;; 956 957 -localstatedir | --localstatedir | --localstatedi | --localstated \ 958 | --localstate | --localstat | --localsta | --localst | --locals) 959 ac_prev=localstatedir ;; 960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962 localstatedir=$ac_optarg ;; 963 964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965 ac_prev=mandir ;; 966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967 mandir=$ac_optarg ;; 968 969 -nfp | --nfp | --nf) 970 # Obsolete; use --without-fp. 971 with_fp=no ;; 972 973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974 | --no-cr | --no-c | -n) 975 no_create=yes ;; 976 977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979 no_recursion=yes ;; 980 981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983 | --oldin | --oldi | --old | --ol | --o) 984 ac_prev=oldincludedir ;; 985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988 oldincludedir=$ac_optarg ;; 989 990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991 ac_prev=prefix ;; 992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993 prefix=$ac_optarg ;; 994 995 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996 | --program-pre | --program-pr | --program-p) 997 ac_prev=program_prefix ;; 998 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000 program_prefix=$ac_optarg ;; 1001 1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003 | --program-suf | --program-su | --program-s) 1004 ac_prev=program_suffix ;; 1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007 program_suffix=$ac_optarg ;; 1008 1009 -program-transform-name | --program-transform-name \ 1010 | --program-transform-nam | --program-transform-na \ 1011 | --program-transform-n | --program-transform- \ 1012 | --program-transform | --program-transfor \ 1013 | --program-transfo | --program-transf \ 1014 | --program-trans | --program-tran \ 1015 | --progr-tra | --program-tr | --program-t) 1016 ac_prev=program_transform_name ;; 1017 -program-transform-name=* | --program-transform-name=* \ 1018 | --program-transform-nam=* | --program-transform-na=* \ 1019 | --program-transform-n=* | --program-transform-=* \ 1020 | --program-transform=* | --program-transfor=* \ 1021 | --program-transfo=* | --program-transf=* \ 1022 | --program-trans=* | --program-tran=* \ 1023 | --progr-tra=* | --program-tr=* | --program-t=*) 1024 program_transform_name=$ac_optarg ;; 1025 1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1027 ac_prev=pdfdir ;; 1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1029 pdfdir=$ac_optarg ;; 1030 1031 -psdir | --psdir | --psdi | --psd | --ps) 1032 ac_prev=psdir ;; 1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1034 psdir=$ac_optarg ;; 1035 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 silent=yes ;; 1039 1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041 ac_prev=sbindir ;; 1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043 | --sbi=* | --sb=*) 1044 sbindir=$ac_optarg ;; 1045 1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048 | --sharedst | --shareds | --shared | --share | --shar \ 1049 | --sha | --sh) 1050 ac_prev=sharedstatedir ;; 1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054 | --sha=* | --sh=*) 1055 sharedstatedir=$ac_optarg ;; 1056 1057 -site | --site | --sit) 1058 ac_prev=site ;; 1059 -site=* | --site=* | --sit=*) 1060 site=$ac_optarg ;; 1061 1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063 ac_prev=srcdir ;; 1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065 srcdir=$ac_optarg ;; 1066 1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068 | --syscon | --sysco | --sysc | --sys | --sy) 1069 ac_prev=sysconfdir ;; 1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072 sysconfdir=$ac_optarg ;; 1073 1074 -target | --target | --targe | --targ | --tar | --ta | --t) 1075 ac_prev=target_alias ;; 1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077 target_alias=$ac_optarg ;; 1078 1079 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080 verbose=yes ;; 1081 1082 -version | --version | --versio | --versi | --vers | -V) 1083 ac_init_version=: ;; 1084 1085 -with-* | --with-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"with_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=\$ac_optarg ;; 1100 1101 -without-* | --without-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=no ;; 1116 1117 --x) 1118 # Obsolete; use --with-x. 1119 with_x=yes ;; 1120 1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122 | --x-incl | --x-inc | --x-in | --x-i) 1123 ac_prev=x_includes ;; 1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126 x_includes=$ac_optarg ;; 1127 1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130 ac_prev=x_libraries ;; 1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133 x_libraries=$ac_optarg ;; 1134 1135 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1136Try \`$0 --help' for more information" 1137 ;; 1138 1139 *=*) 1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141 # Reject names that are not valid shell variable names. 1142 case $ac_envvar in #( 1143 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1145 esac 1146 eval $ac_envvar=\$ac_optarg 1147 export $ac_envvar ;; 1148 1149 *) 1150 # FIXME: should be removed in autoconf 3.0. 1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155 ;; 1156 1157 esac 1158done 1159 1160if test -n "$ac_prev"; then 1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1162 as_fn_error $? "missing argument to $ac_option" 1163fi 1164 1165if test -n "$ac_unrecognized_opts"; then 1166 case $enable_option_checking in 1167 no) ;; 1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170 esac 1171fi 1172 1173# Check all directory arguments for consistency. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 # Remove trailing slashes. 1181 case $ac_val in 1182 */ ) 1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1184 eval $ac_var=\$ac_val;; 1185 esac 1186 # Be sure to have absolute directory names. 1187 case $ac_val in 1188 [\\/$]* | ?:[\\/]* ) continue;; 1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190 esac 1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192done 1193 1194# There might be people who depend on the old broken behavior: `$host' 1195# used to hold the argument of --host etc. 1196# FIXME: To remove some day. 1197build=$build_alias 1198host=$host_alias 1199target=$target_alias 1200 1201# FIXME: To remove some day. 1202if test "x$host_alias" != x; then 1203 if test "x$build_alias" = x; then 1204 cross_compiling=maybe 1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1206 If a cross compiler is detected then cross compile mode will be used" >&2 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures xrandr 1.4.0 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xrandr] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349Program names: 1350 --program-prefix=PREFIX prepend PREFIX to installed program names 1351 --program-suffix=SUFFIX append SUFFIX to installed program names 1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353 1354System types: 1355 --build=BUILD configure for building on BUILD [guessed] 1356 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1357_ACEOF 1358fi 1359 1360if test -n "$ac_init_help"; then 1361 case $ac_init_help in 1362 short | recursive ) echo "Configuration of xrandr 1.4.0:";; 1363 esac 1364 cat <<\_ACEOF 1365 1366Optional Features: 1367 --disable-option-checking ignore unrecognized --enable/--with options 1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --disable-dependency-tracking speeds up one-time build 1371 --enable-dependency-tracking do not reject slow dependency extractors 1372 --disable-selective-werror 1373 Turn off selective compiler errors. (default: 1374 enabled) 1375 --enable-strict-compilation 1376 Enable all warnings from compiler and make them 1377 errors (default: disabled) 1378 --enable-silent-rules less verbose build output (undo: `make V=1') 1379 --disable-silent-rules verbose build output (undo: `make V=0') 1380 1381Some influential environment variables: 1382 CC C compiler command 1383 CFLAGS C compiler flags 1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1385 nonstandard directory <lib dir> 1386 LIBS libraries to pass to the linker, e.g. -l<library> 1387 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1388 you have headers in a nonstandard directory <include dir> 1389 CPP C preprocessor 1390 PKG_CONFIG path to pkg-config utility 1391 PKG_CONFIG_PATH 1392 directories to add to pkg-config's search path 1393 PKG_CONFIG_LIBDIR 1394 path overriding pkg-config's built-in search path 1395 XRANDR_CFLAGS 1396 C compiler flags for XRANDR, overriding pkg-config 1397 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config 1398 1399Use these variables to override the choices made by `configure' or to help 1400it to find libraries and programs with nonstandard names/locations. 1401 1402Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1403_ACEOF 1404ac_status=$? 1405fi 1406 1407if test "$ac_init_help" = "recursive"; then 1408 # If there are subdirs, report their specific --help. 1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1410 test -d "$ac_dir" || 1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1412 continue 1413 ac_builddir=. 1414 1415case "$ac_dir" in 1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417*) 1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1419 # A ".." for each directory in $ac_dir_suffix. 1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1421 case $ac_top_builddir_sub in 1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1424 esac ;; 1425esac 1426ac_abs_top_builddir=$ac_pwd 1427ac_abs_builddir=$ac_pwd$ac_dir_suffix 1428# for backward compatibility: 1429ac_top_builddir=$ac_top_build_prefix 1430 1431case $srcdir in 1432 .) # We are building in place. 1433 ac_srcdir=. 1434 ac_top_srcdir=$ac_top_builddir_sub 1435 ac_abs_top_srcdir=$ac_pwd ;; 1436 [\\/]* | ?:[\\/]* ) # Absolute name. 1437 ac_srcdir=$srcdir$ac_dir_suffix; 1438 ac_top_srcdir=$srcdir 1439 ac_abs_top_srcdir=$srcdir ;; 1440 *) # Relative name. 1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1442 ac_top_srcdir=$ac_top_build_prefix$srcdir 1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1444esac 1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1446 1447 cd "$ac_dir" || { ac_status=$?; continue; } 1448 # Check for guested configure. 1449 if test -f "$ac_srcdir/configure.gnu"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1452 elif test -f "$ac_srcdir/configure"; then 1453 echo && 1454 $SHELL "$ac_srcdir/configure" --help=recursive 1455 else 1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1457 fi || ac_status=$? 1458 cd "$ac_pwd" || { ac_status=$?; break; } 1459 done 1460fi 1461 1462test -n "$ac_init_help" && exit $ac_status 1463if $ac_init_version; then 1464 cat <<\_ACEOF 1465xrandr configure 1.4.0 1466generated by GNU Autoconf 2.68 1467 1468Copyright (C) 2010 Free Software Foundation, Inc. 1469This configure script is free software; the Free Software Foundation 1470gives unlimited permission to copy, distribute and modify it. 1471_ACEOF 1472 exit 1473fi 1474 1475## ------------------------ ## 1476## Autoconf initialization. ## 1477## ------------------------ ## 1478 1479# ac_fn_c_try_compile LINENO 1480# -------------------------- 1481# Try to compile conftest.$ac_ext, and return whether this succeeded. 1482ac_fn_c_try_compile () 1483{ 1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1485 rm -f conftest.$ac_objext 1486 if { { ac_try="$ac_compile" 1487case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490esac 1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492$as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_compile") 2>conftest.err 1494 ac_status=$? 1495 if test -s conftest.err; then 1496 grep -v '^ *+' conftest.err >conftest.er1 1497 cat conftest.er1 >&5 1498 mv -f conftest.er1 conftest.err 1499 fi 1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1501 test $ac_status = 0; } && { 1502 test -z "$ac_c_werror_flag" || 1503 test ! -s conftest.err 1504 } && test -s conftest.$ac_objext; then : 1505 ac_retval=0 1506else 1507 $as_echo "$as_me: failed program was:" >&5 1508sed 's/^/| /' conftest.$ac_ext >&5 1509 1510 ac_retval=1 1511fi 1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1513 as_fn_set_status $ac_retval 1514 1515} # ac_fn_c_try_compile 1516 1517# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1518# --------------------------------------------- 1519# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1520# accordingly. 1521ac_fn_c_check_decl () 1522{ 1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1524 as_decl_name=`echo $2|sed 's/ *(.*//'` 1525 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1527$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1528if eval \${$3+:} false; then : 1529 $as_echo_n "(cached) " >&6 1530else 1531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1532/* end confdefs.h. */ 1533$4 1534int 1535main () 1536{ 1537#ifndef $as_decl_name 1538#ifdef __cplusplus 1539 (void) $as_decl_use; 1540#else 1541 (void) $as_decl_name; 1542#endif 1543#endif 1544 1545 ; 1546 return 0; 1547} 1548_ACEOF 1549if ac_fn_c_try_compile "$LINENO"; then : 1550 eval "$3=yes" 1551else 1552 eval "$3=no" 1553fi 1554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1555fi 1556eval ac_res=\$$3 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1558$as_echo "$ac_res" >&6; } 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1560 1561} # ac_fn_c_check_decl 1562 1563# ac_fn_c_try_cpp LINENO 1564# ---------------------- 1565# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1566ac_fn_c_try_cpp () 1567{ 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1569 if { { ac_try="$ac_cpp conftest.$ac_ext" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } > conftest.i && { 1585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 }; then : 1588 ac_retval=0 1589else 1590 $as_echo "$as_me: failed program was:" >&5 1591sed 's/^/| /' conftest.$ac_ext >&5 1592 1593 ac_retval=1 1594fi 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1596 as_fn_set_status $ac_retval 1597 1598} # ac_fn_c_try_cpp 1599 1600# ac_fn_c_try_run LINENO 1601# ---------------------- 1602# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1603# that executables *can* be run. 1604ac_fn_c_try_run () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 if { { ac_try="$ac_link" 1608case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611esac 1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613$as_echo "$ac_try_echo"; } >&5 1614 (eval "$ac_link") 2>&5 1615 ac_status=$? 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1618 { { case "(($ac_try" in 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1620 *) ac_try_echo=$ac_try;; 1621esac 1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1623$as_echo "$ac_try_echo"; } >&5 1624 (eval "$ac_try") 2>&5 1625 ac_status=$? 1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; }; }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: program exited with status $ac_status" >&5 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=$ac_status 1635fi 1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1638 as_fn_set_status $ac_retval 1639 1640} # ac_fn_c_try_run 1641 1642# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1643# ------------------------------------------------------- 1644# Tests whether HEADER exists and can be compiled using the include files in 1645# INCLUDES, setting the cache variable VAR accordingly. 1646ac_fn_c_check_header_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1650$as_echo_n "checking for $2... " >&6; } 1651if eval \${$3+:} false; then : 1652 $as_echo_n "(cached) " >&6 1653else 1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1655/* end confdefs.h. */ 1656$4 1657#include <$2> 1658_ACEOF 1659if ac_fn_c_try_compile "$LINENO"; then : 1660 eval "$3=yes" 1661else 1662 eval "$3=no" 1663fi 1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1665fi 1666eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668$as_echo "$ac_res" >&6; } 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 1671} # ac_fn_c_check_header_compile 1672 1673# ac_fn_c_try_link LINENO 1674# ----------------------- 1675# Try to link conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_link () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext conftest$ac_exeext 1680 if { { ac_try="$ac_link" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686$as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_link") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest$ac_exeext && { 1699 test "$cross_compiling" = yes || 1700 $as_test_x conftest$ac_exeext 1701 }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: failed program was:" >&5 1705sed 's/^/| /' conftest.$ac_ext >&5 1706 1707 ac_retval=1 1708fi 1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1711 # interfere with the next link command; also delete a directory that is 1712 # left behind by Apple's compiler. We do this before executing the actions. 1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_link 1718cat >config.log <<_ACEOF 1719This file contains any messages produced by compilers while 1720running configure, to aid debugging if configure makes a mistake. 1721 1722It was created by xrandr $as_me 1.4.0, which was 1723generated by GNU Autoconf 2.68. Invocation command line was 1724 1725 $ $0 $@ 1726 1727_ACEOF 1728exec 5>>config.log 1729{ 1730cat <<_ASUNAME 1731## --------- ## 1732## Platform. ## 1733## --------- ## 1734 1735hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1736uname -m = `(uname -m) 2>/dev/null || echo unknown` 1737uname -r = `(uname -r) 2>/dev/null || echo unknown` 1738uname -s = `(uname -s) 2>/dev/null || echo unknown` 1739uname -v = `(uname -v) 2>/dev/null || echo unknown` 1740 1741/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1742/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1743 1744/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1745/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1746/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1747/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1748/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1749/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1750/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1751 1752_ASUNAME 1753 1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1755for as_dir in $PATH 1756do 1757 IFS=$as_save_IFS 1758 test -z "$as_dir" && as_dir=. 1759 $as_echo "PATH: $as_dir" 1760 done 1761IFS=$as_save_IFS 1762 1763} >&5 1764 1765cat >&5 <<_ACEOF 1766 1767 1768## ----------- ## 1769## Core tests. ## 1770## ----------- ## 1771 1772_ACEOF 1773 1774 1775# Keep a trace of the command line. 1776# Strip out --no-create and --no-recursion so they do not pile up. 1777# Strip out --silent because we don't want to record it for future runs. 1778# Also quote any args containing shell meta-characters. 1779# Make two passes to allow for proper duplicate-argument suppression. 1780ac_configure_args= 1781ac_configure_args0= 1782ac_configure_args1= 1783ac_must_keep_next=false 1784for ac_pass in 1 2 1785do 1786 for ac_arg 1787 do 1788 case $ac_arg in 1789 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1791 | -silent | --silent | --silen | --sile | --sil) 1792 continue ;; 1793 *\'*) 1794 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1795 esac 1796 case $ac_pass in 1797 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1798 2) 1799 as_fn_append ac_configure_args1 " '$ac_arg'" 1800 if test $ac_must_keep_next = true; then 1801 ac_must_keep_next=false # Got value, back to normal. 1802 else 1803 case $ac_arg in 1804 *=* | --config-cache | -C | -disable-* | --disable-* \ 1805 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1806 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1807 | -with-* | --with-* | -without-* | --without-* | --x) 1808 case "$ac_configure_args0 " in 1809 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1810 esac 1811 ;; 1812 -* ) ac_must_keep_next=true ;; 1813 esac 1814 fi 1815 as_fn_append ac_configure_args " '$ac_arg'" 1816 ;; 1817 esac 1818 done 1819done 1820{ ac_configure_args0=; unset ac_configure_args0;} 1821{ ac_configure_args1=; unset ac_configure_args1;} 1822 1823# When interrupted or exit'd, cleanup temporary files, and complete 1824# config.log. We remove comments because anyway the quotes in there 1825# would cause problems or look ugly. 1826# WARNING: Use '\'' to represent an apostrophe within the trap. 1827# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1828trap 'exit_status=$? 1829 # Save into config.log some information that might help in debugging. 1830 { 1831 echo 1832 1833 $as_echo "## ---------------- ## 1834## Cache variables. ## 1835## ---------------- ##" 1836 echo 1837 # The following way of writing the cache mishandles newlines in values, 1838( 1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1840 eval ac_val=\$$ac_var 1841 case $ac_val in #( 1842 *${as_nl}*) 1843 case $ac_var in #( 1844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1846 esac 1847 case $ac_var in #( 1848 _ | IFS | as_nl) ;; #( 1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1850 *) { eval $ac_var=; unset $ac_var;} ;; 1851 esac ;; 1852 esac 1853 done 1854 (set) 2>&1 | 1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1856 *${as_nl}ac_space=\ *) 1857 sed -n \ 1858 "s/'\''/'\''\\\\'\'''\''/g; 1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1860 ;; #( 1861 *) 1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1863 ;; 1864 esac | 1865 sort 1866) 1867 echo 1868 1869 $as_echo "## ----------------- ## 1870## Output variables. ## 1871## ----------------- ##" 1872 echo 1873 for ac_var in $ac_subst_vars 1874 do 1875 eval ac_val=\$$ac_var 1876 case $ac_val in 1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1878 esac 1879 $as_echo "$ac_var='\''$ac_val'\''" 1880 done | sort 1881 echo 1882 1883 if test -n "$ac_subst_files"; then 1884 $as_echo "## ------------------- ## 1885## File substitutions. ## 1886## ------------------- ##" 1887 echo 1888 for ac_var in $ac_subst_files 1889 do 1890 eval ac_val=\$$ac_var 1891 case $ac_val in 1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1893 esac 1894 $as_echo "$ac_var='\''$ac_val'\''" 1895 done | sort 1896 echo 1897 fi 1898 1899 if test -s confdefs.h; then 1900 $as_echo "## ----------- ## 1901## confdefs.h. ## 1902## ----------- ##" 1903 echo 1904 cat confdefs.h 1905 echo 1906 fi 1907 test "$ac_signal" != 0 && 1908 $as_echo "$as_me: caught signal $ac_signal" 1909 $as_echo "$as_me: exit $exit_status" 1910 } >&5 1911 rm -f core *.core core.conftest.* && 1912 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1913 exit $exit_status 1914' 0 1915for ac_signal in 1 2 13 15; do 1916 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1917done 1918ac_signal=0 1919 1920# confdefs.h avoids OS command line length limits that DEFS can exceed. 1921rm -f -r conftest* confdefs.h 1922 1923$as_echo "/* confdefs.h */" > confdefs.h 1924 1925# Predefined preprocessor variables. 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_NAME "$PACKAGE_NAME" 1929_ACEOF 1930 1931cat >>confdefs.h <<_ACEOF 1932#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1933_ACEOF 1934 1935cat >>confdefs.h <<_ACEOF 1936#define PACKAGE_VERSION "$PACKAGE_VERSION" 1937_ACEOF 1938 1939cat >>confdefs.h <<_ACEOF 1940#define PACKAGE_STRING "$PACKAGE_STRING" 1941_ACEOF 1942 1943cat >>confdefs.h <<_ACEOF 1944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1945_ACEOF 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_URL "$PACKAGE_URL" 1949_ACEOF 1950 1951 1952# Let the site file select an alternate cache file if it wants to. 1953# Prefer an explicitly selected file to automatically selected ones. 1954ac_site_file1=NONE 1955ac_site_file2=NONE 1956if test -n "$CONFIG_SITE"; then 1957 # We do not want a PATH search for config.site. 1958 case $CONFIG_SITE in #(( 1959 -*) ac_site_file1=./$CONFIG_SITE;; 1960 */*) ac_site_file1=$CONFIG_SITE;; 1961 *) ac_site_file1=./$CONFIG_SITE;; 1962 esac 1963elif test "x$prefix" != xNONE; then 1964 ac_site_file1=$prefix/share/config.site 1965 ac_site_file2=$prefix/etc/config.site 1966else 1967 ac_site_file1=$ac_default_prefix/share/config.site 1968 ac_site_file2=$ac_default_prefix/etc/config.site 1969fi 1970for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1971do 1972 test "x$ac_site_file" = xNONE && continue 1973 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1975$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1976 sed 's/^/| /' "$ac_site_file" >&5 1977 . "$ac_site_file" \ 1978 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1980as_fn_error $? "failed to load site script $ac_site_file 1981See \`config.log' for more details" "$LINENO" 5; } 1982 fi 1983done 1984 1985if test -r "$cache_file"; then 1986 # Some versions of bash will fail to source /dev/null (special files 1987 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1988 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1990$as_echo "$as_me: loading cache $cache_file" >&6;} 1991 case $cache_file in 1992 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1993 *) . "./$cache_file";; 1994 esac 1995 fi 1996else 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1998$as_echo "$as_me: creating cache $cache_file" >&6;} 1999 >$cache_file 2000fi 2001 2002# Check that the precious variables saved in the cache have kept the same 2003# value. 2004ac_cache_corrupted=false 2005for ac_var in $ac_precious_vars; do 2006 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2007 eval ac_new_set=\$ac_env_${ac_var}_set 2008 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2009 eval ac_new_val=\$ac_env_${ac_var}_value 2010 case $ac_old_set,$ac_new_set in 2011 set,) 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2013$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2014 ac_cache_corrupted=: ;; 2015 ,set) 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2017$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2018 ac_cache_corrupted=: ;; 2019 ,);; 2020 *) 2021 if test "x$ac_old_val" != "x$ac_new_val"; then 2022 # differences in whitespace do not lead to failure. 2023 ac_old_val_w=`echo x $ac_old_val` 2024 ac_new_val_w=`echo x $ac_new_val` 2025 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2027$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2028 ac_cache_corrupted=: 2029 else 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2031$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2032 eval $ac_var=\$ac_old_val 2033 fi 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2035$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2037$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2038 fi;; 2039 esac 2040 # Pass precious variables to config.status. 2041 if test "$ac_new_set" = set; then 2042 case $ac_new_val in 2043 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2044 *) ac_arg=$ac_var=$ac_new_val ;; 2045 esac 2046 case " $ac_configure_args " in 2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2048 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2049 esac 2050 fi 2051done 2052if $ac_cache_corrupted; then 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2056$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2057 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2058fi 2059## -------------------- ## 2060## Main body of script. ## 2061## -------------------- ## 2062 2063ac_ext=c 2064ac_cpp='$CPP $CPPFLAGS' 2065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2067ac_compiler_gnu=$ac_cv_c_compiler_gnu 2068 2069 2070 2071ac_config_headers="$ac_config_headers config.h" 2072 2073 2074# Initialize Automake 2075am__api_version='1.11' 2076 2077ac_aux_dir= 2078for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2079 if test -f "$ac_dir/install-sh"; then 2080 ac_aux_dir=$ac_dir 2081 ac_install_sh="$ac_aux_dir/install-sh -c" 2082 break 2083 elif test -f "$ac_dir/install.sh"; then 2084 ac_aux_dir=$ac_dir 2085 ac_install_sh="$ac_aux_dir/install.sh -c" 2086 break 2087 elif test -f "$ac_dir/shtool"; then 2088 ac_aux_dir=$ac_dir 2089 ac_install_sh="$ac_aux_dir/shtool install -c" 2090 break 2091 fi 2092done 2093if test -z "$ac_aux_dir"; then 2094 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2095fi 2096 2097# These three variables are undocumented and unsupported, 2098# and are intended to be withdrawn in a future Autoconf release. 2099# They can cause serious problems if a builder's source tree is in a directory 2100# whose full name contains unusual characters. 2101ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2102ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2103ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2104 2105 2106# Find a good install program. We prefer a C program (faster), 2107# so one script is as good as another. But avoid the broken or 2108# incompatible versions: 2109# SysV /etc/install, /usr/sbin/install 2110# SunOS /usr/etc/install 2111# IRIX /sbin/install 2112# AIX /bin/install 2113# AmigaOS /C/install, which installs bootblocks on floppy discs 2114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2115# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2117# OS/2's system install, which has a completely different semantic 2118# ./install, which can be erroneously created by make from ./install.sh. 2119# Reject install programs that cannot install multiple files. 2120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2121$as_echo_n "checking for a BSD-compatible install... " >&6; } 2122if test -z "$INSTALL"; then 2123if ${ac_cv_path_install+:} false; then : 2124 $as_echo_n "(cached) " >&6 2125else 2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2127for as_dir in $PATH 2128do 2129 IFS=$as_save_IFS 2130 test -z "$as_dir" && as_dir=. 2131 # Account for people who put trailing slashes in PATH elements. 2132case $as_dir/ in #(( 2133 ./ | .// | /[cC]/* | \ 2134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2135 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2136 /usr/ucb/* ) ;; 2137 *) 2138 # OSF1 and SCO ODT 3.0 have their own names for install. 2139 # Don't use installbsd from OSF since it installs stuff as root 2140 # by default. 2141 for ac_prog in ginstall scoinst install; do 2142 for ac_exec_ext in '' $ac_executable_extensions; do 2143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2144 if test $ac_prog = install && 2145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2146 # AIX install. It has an incompatible calling convention. 2147 : 2148 elif test $ac_prog = install && 2149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2150 # program-specific install script used by HP pwplus--don't use. 2151 : 2152 else 2153 rm -rf conftest.one conftest.two conftest.dir 2154 echo one > conftest.one 2155 echo two > conftest.two 2156 mkdir conftest.dir 2157 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2158 test -s conftest.one && test -s conftest.two && 2159 test -s conftest.dir/conftest.one && 2160 test -s conftest.dir/conftest.two 2161 then 2162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2163 break 3 2164 fi 2165 fi 2166 fi 2167 done 2168 done 2169 ;; 2170esac 2171 2172 done 2173IFS=$as_save_IFS 2174 2175rm -rf conftest.one conftest.two conftest.dir 2176 2177fi 2178 if test "${ac_cv_path_install+set}" = set; then 2179 INSTALL=$ac_cv_path_install 2180 else 2181 # As a last resort, use the slow shell script. Don't cache a 2182 # value for INSTALL within a source directory, because that will 2183 # break other packages using the cache if that directory is 2184 # removed, or if the value is a relative name. 2185 INSTALL=$ac_install_sh 2186 fi 2187fi 2188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2189$as_echo "$INSTALL" >&6; } 2190 2191# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2192# It thinks the first close brace ends the variable substitution. 2193test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2194 2195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2196 2197test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2198 2199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2200$as_echo_n "checking whether build environment is sane... " >&6; } 2201# Just in case 2202sleep 1 2203echo timestamp > conftest.file 2204# Reject unsafe characters in $srcdir or the absolute working directory 2205# name. Accept space and tab only in the latter. 2206am_lf=' 2207' 2208case `pwd` in 2209 *[\\\"\#\$\&\'\`$am_lf]*) 2210 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2211esac 2212case $srcdir in 2213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2214 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2215esac 2216 2217# Do `set' in a subshell so we don't clobber the current shell's 2218# arguments. Must try -L first in case configure is actually a 2219# symlink; some systems play weird games with the mod time of symlinks 2220# (eg FreeBSD returns the mod time of the symlink's containing 2221# directory). 2222if ( 2223 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2224 if test "$*" = "X"; then 2225 # -L didn't work. 2226 set X `ls -t "$srcdir/configure" conftest.file` 2227 fi 2228 rm -f conftest.file 2229 if test "$*" != "X $srcdir/configure conftest.file" \ 2230 && test "$*" != "X conftest.file $srcdir/configure"; then 2231 2232 # If neither matched, then we have a broken ls. This can happen 2233 # if, for instance, CONFIG_SHELL is bash and it inherits a 2234 # broken ls alias from the environment. This has actually 2235 # happened. Such a system could not be considered "sane". 2236 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2237alias in your environment" "$LINENO" 5 2238 fi 2239 2240 test "$2" = conftest.file 2241 ) 2242then 2243 # Ok. 2244 : 2245else 2246 as_fn_error $? "newly created file is older than distributed files! 2247Check your system clock" "$LINENO" 5 2248fi 2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2250$as_echo "yes" >&6; } 2251test "$program_prefix" != NONE && 2252 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2253# Use a double $ so make ignores it. 2254test "$program_suffix" != NONE && 2255 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2256# Double any \ or $. 2257# By default was `s,x,x', remove it if useless. 2258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2259program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2260 2261# expand $ac_aux_dir to an absolute path 2262am_aux_dir=`cd $ac_aux_dir && pwd` 2263 2264if test x"${MISSING+set}" != xset; then 2265 case $am_aux_dir in 2266 *\ * | *\ *) 2267 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2268 *) 2269 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2270 esac 2271fi 2272# Use eval to expand $SHELL 2273if eval "$MISSING --run true"; then 2274 am_missing_run="$MISSING --run " 2275else 2276 am_missing_run= 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2278$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2279fi 2280 2281if test x"${install_sh}" != xset; then 2282 case $am_aux_dir in 2283 *\ * | *\ *) 2284 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2285 *) 2286 install_sh="\${SHELL} $am_aux_dir/install-sh" 2287 esac 2288fi 2289 2290# Installed binaries are usually stripped using `strip' when the user 2291# run `make install-strip'. However `strip' might not be the right 2292# tool to use in cross-compilation environments, therefore Automake 2293# will honor the `STRIP' environment variable to overrule this program. 2294if test "$cross_compiling" != no; then 2295 if test -n "$ac_tool_prefix"; then 2296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2297set dummy ${ac_tool_prefix}strip; ac_word=$2 2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2299$as_echo_n "checking for $ac_word... " >&6; } 2300if ${ac_cv_prog_STRIP+:} false; then : 2301 $as_echo_n "(cached) " >&6 2302else 2303 if test -n "$STRIP"; then 2304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2305else 2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2307for as_dir in $PATH 2308do 2309 IFS=$as_save_IFS 2310 test -z "$as_dir" && as_dir=. 2311 for ac_exec_ext in '' $ac_executable_extensions; do 2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2313 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2315 break 2 2316 fi 2317done 2318 done 2319IFS=$as_save_IFS 2320 2321fi 2322fi 2323STRIP=$ac_cv_prog_STRIP 2324if test -n "$STRIP"; then 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2326$as_echo "$STRIP" >&6; } 2327else 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2329$as_echo "no" >&6; } 2330fi 2331 2332 2333fi 2334if test -z "$ac_cv_prog_STRIP"; then 2335 ac_ct_STRIP=$STRIP 2336 # Extract the first word of "strip", so it can be a program name with args. 2337set dummy strip; ac_word=$2 2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2339$as_echo_n "checking for $ac_word... " >&6; } 2340if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2341 $as_echo_n "(cached) " >&6 2342else 2343 if test -n "$ac_ct_STRIP"; then 2344 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2345else 2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2347for as_dir in $PATH 2348do 2349 IFS=$as_save_IFS 2350 test -z "$as_dir" && as_dir=. 2351 for ac_exec_ext in '' $ac_executable_extensions; do 2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2353 ac_cv_prog_ac_ct_STRIP="strip" 2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2355 break 2 2356 fi 2357done 2358 done 2359IFS=$as_save_IFS 2360 2361fi 2362fi 2363ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2364if test -n "$ac_ct_STRIP"; then 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2366$as_echo "$ac_ct_STRIP" >&6; } 2367else 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2369$as_echo "no" >&6; } 2370fi 2371 2372 if test "x$ac_ct_STRIP" = x; then 2373 STRIP=":" 2374 else 2375 case $cross_compiling:$ac_tool_warned in 2376yes:) 2377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2379ac_tool_warned=yes ;; 2380esac 2381 STRIP=$ac_ct_STRIP 2382 fi 2383else 2384 STRIP="$ac_cv_prog_STRIP" 2385fi 2386 2387fi 2388INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2389 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2391$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2392if test -z "$MKDIR_P"; then 2393 if ${ac_cv_path_mkdir+:} false; then : 2394 $as_echo_n "(cached) " >&6 2395else 2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2398do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_prog in mkdir gmkdir; do 2402 for ac_exec_ext in '' $ac_executable_extensions; do 2403 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2404 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2405 'mkdir (GNU coreutils) '* | \ 2406 'mkdir (coreutils) '* | \ 2407 'mkdir (fileutils) '4.1*) 2408 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2409 break 3;; 2410 esac 2411 done 2412 done 2413 done 2414IFS=$as_save_IFS 2415 2416fi 2417 2418 test -d ./--version && rmdir ./--version 2419 if test "${ac_cv_path_mkdir+set}" = set; then 2420 MKDIR_P="$ac_cv_path_mkdir -p" 2421 else 2422 # As a last resort, use the slow shell script. Don't cache a 2423 # value for MKDIR_P within a source directory, because that will 2424 # break other packages using the cache if that directory is 2425 # removed, or if the value is a relative name. 2426 MKDIR_P="$ac_install_sh -d" 2427 fi 2428fi 2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2430$as_echo "$MKDIR_P" >&6; } 2431 2432mkdir_p="$MKDIR_P" 2433case $mkdir_p in 2434 [\\/$]* | ?:[\\/]*) ;; 2435 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2436esac 2437 2438for ac_prog in gawk mawk nawk awk 2439do 2440 # Extract the first word of "$ac_prog", so it can be a program name with args. 2441set dummy $ac_prog; ac_word=$2 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2443$as_echo_n "checking for $ac_word... " >&6; } 2444if ${ac_cv_prog_AWK+:} false; then : 2445 $as_echo_n "(cached) " >&6 2446else 2447 if test -n "$AWK"; then 2448 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2457 ac_cv_prog_AWK="$ac_prog" 2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462 done 2463IFS=$as_save_IFS 2464 2465fi 2466fi 2467AWK=$ac_cv_prog_AWK 2468if test -n "$AWK"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2470$as_echo "$AWK" >&6; } 2471else 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2473$as_echo "no" >&6; } 2474fi 2475 2476 2477 test -n "$AWK" && break 2478done 2479 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2481$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2482set x ${MAKE-make} 2483ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2484if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2485 $as_echo_n "(cached) " >&6 2486else 2487 cat >conftest.make <<\_ACEOF 2488SHELL = /bin/sh 2489all: 2490 @echo '@@@%%%=$(MAKE)=@@@%%%' 2491_ACEOF 2492# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2493case `${MAKE-make} -f conftest.make 2>/dev/null` in 2494 *@@@%%%=?*=@@@%%%*) 2495 eval ac_cv_prog_make_${ac_make}_set=yes;; 2496 *) 2497 eval ac_cv_prog_make_${ac_make}_set=no;; 2498esac 2499rm -f conftest.make 2500fi 2501if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2503$as_echo "yes" >&6; } 2504 SET_MAKE= 2505else 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2507$as_echo "no" >&6; } 2508 SET_MAKE="MAKE=${MAKE-make}" 2509fi 2510 2511rm -rf .tst 2>/dev/null 2512mkdir .tst 2>/dev/null 2513if test -d .tst; then 2514 am__leading_dot=. 2515else 2516 am__leading_dot=_ 2517fi 2518rmdir .tst 2>/dev/null 2519 2520if test "`cd $srcdir && pwd`" != "`pwd`"; then 2521 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2522 # is not polluted with repeated "-I." 2523 am__isrc=' -I$(srcdir)' 2524 # test to see if srcdir already configured 2525 if test -f $srcdir/config.status; then 2526 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2527 fi 2528fi 2529 2530# test whether we have cygpath 2531if test -z "$CYGPATH_W"; then 2532 if (cygpath --version) >/dev/null 2>/dev/null; then 2533 CYGPATH_W='cygpath -w' 2534 else 2535 CYGPATH_W=echo 2536 fi 2537fi 2538 2539 2540# Define the identity of the package. 2541 PACKAGE='xrandr' 2542 VERSION='1.4.0' 2543 2544 2545cat >>confdefs.h <<_ACEOF 2546#define PACKAGE "$PACKAGE" 2547_ACEOF 2548 2549 2550cat >>confdefs.h <<_ACEOF 2551#define VERSION "$VERSION" 2552_ACEOF 2553 2554# Some tools Automake needs. 2555 2556ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2557 2558 2559AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2560 2561 2562AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2563 2564 2565AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2566 2567 2568MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2569 2570# We need awk for the "check" target. The system "awk" is bad on 2571# some platforms. 2572# Always define AMTAR for backward compatibility. Yes, it's still used 2573# in the wild :-( We should find a proper way to deprecate it ... 2574AMTAR='$${TAR-tar}' 2575 2576am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2577 2578 2579 2580 2581 2582 2583# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595DEPDIR="${am__leading_dot}deps" 2596 2597ac_config_commands="$ac_config_commands depfiles" 2598 2599 2600am_make=${MAKE-make} 2601cat > confinc << 'END' 2602am__doit: 2603 @echo this is the am__doit target 2604.PHONY: am__doit 2605END 2606# If we don't find an include directive, just comment out the code. 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2608$as_echo_n "checking for style of include used by $am_make... " >&6; } 2609am__include="#" 2610am__quote= 2611_am_result=none 2612# First try GNU make style include. 2613echo "include confinc" > confmf 2614# Ignore all kinds of additional output from `make'. 2615case `$am_make -s -f confmf 2> /dev/null` in #( 2616*the\ am__doit\ target*) 2617 am__include=include 2618 am__quote= 2619 _am_result=GNU 2620 ;; 2621esac 2622# Now try BSD make style include. 2623if test "$am__include" = "#"; then 2624 echo '.include "confinc"' > confmf 2625 case `$am_make -s -f confmf 2> /dev/null` in #( 2626 *the\ am__doit\ target*) 2627 am__include=.include 2628 am__quote="\"" 2629 _am_result=BSD 2630 ;; 2631 esac 2632fi 2633 2634 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2636$as_echo "$_am_result" >&6; } 2637rm -f confinc confmf 2638 2639# Check whether --enable-dependency-tracking was given. 2640if test "${enable_dependency_tracking+set}" = set; then : 2641 enableval=$enable_dependency_tracking; 2642fi 2643 2644if test "x$enable_dependency_tracking" != xno; then 2645 am_depcomp="$ac_aux_dir/depcomp" 2646 AMDEPBACKSLASH='\' 2647 am__nodep='_no' 2648fi 2649 if test "x$enable_dependency_tracking" != xno; then 2650 AMDEP_TRUE= 2651 AMDEP_FALSE='#' 2652else 2653 AMDEP_TRUE='#' 2654 AMDEP_FALSE= 2655fi 2656 2657 2658ac_ext=c 2659ac_cpp='$CPP $CPPFLAGS' 2660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2662ac_compiler_gnu=$ac_cv_c_compiler_gnu 2663if test -n "$ac_tool_prefix"; then 2664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2665set dummy ${ac_tool_prefix}gcc; ac_word=$2 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2667$as_echo_n "checking for $ac_word... " >&6; } 2668if ${ac_cv_prog_CC+:} false; then : 2669 $as_echo_n "(cached) " >&6 2670else 2671 if test -n "$CC"; then 2672 ac_cv_prog_CC="$CC" # Let the user override the test. 2673else 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2681 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2683 break 2 2684 fi 2685done 2686 done 2687IFS=$as_save_IFS 2688 2689fi 2690fi 2691CC=$ac_cv_prog_CC 2692if test -n "$CC"; then 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2694$as_echo "$CC" >&6; } 2695else 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2697$as_echo "no" >&6; } 2698fi 2699 2700 2701fi 2702if test -z "$ac_cv_prog_CC"; then 2703 ac_ct_CC=$CC 2704 # Extract the first word of "gcc", so it can be a program name with args. 2705set dummy gcc; ac_word=$2 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2707$as_echo_n "checking for $ac_word... " >&6; } 2708if ${ac_cv_prog_ac_ct_CC+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 if test -n "$ac_ct_CC"; then 2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2721 ac_cv_prog_ac_ct_CC="gcc" 2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726 done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731ac_ct_CC=$ac_cv_prog_ac_ct_CC 2732if test -n "$ac_ct_CC"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2734$as_echo "$ac_ct_CC" >&6; } 2735else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737$as_echo "no" >&6; } 2738fi 2739 2740 if test "x$ac_ct_CC" = x; then 2741 CC="" 2742 else 2743 case $cross_compiling:$ac_tool_warned in 2744yes:) 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2747ac_tool_warned=yes ;; 2748esac 2749 CC=$ac_ct_CC 2750 fi 2751else 2752 CC="$ac_cv_prog_CC" 2753fi 2754 2755if test -z "$CC"; then 2756 if test -n "$ac_tool_prefix"; then 2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2758set dummy ${ac_tool_prefix}cc; ac_word=$2 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2760$as_echo_n "checking for $ac_word... " >&6; } 2761if ${ac_cv_prog_CC+:} false; then : 2762 $as_echo_n "(cached) " >&6 2763else 2764 if test -n "$CC"; then 2765 ac_cv_prog_CC="$CC" # Let the user override the test. 2766else 2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2768for as_dir in $PATH 2769do 2770 IFS=$as_save_IFS 2771 test -z "$as_dir" && as_dir=. 2772 for ac_exec_ext in '' $ac_executable_extensions; do 2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2774 ac_cv_prog_CC="${ac_tool_prefix}cc" 2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2776 break 2 2777 fi 2778done 2779 done 2780IFS=$as_save_IFS 2781 2782fi 2783fi 2784CC=$ac_cv_prog_CC 2785if test -n "$CC"; then 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2787$as_echo "$CC" >&6; } 2788else 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2790$as_echo "no" >&6; } 2791fi 2792 2793 2794 fi 2795fi 2796if test -z "$CC"; then 2797 # Extract the first word of "cc", so it can be a program name with args. 2798set dummy cc; ac_word=$2 2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2800$as_echo_n "checking for $ac_word... " >&6; } 2801if ${ac_cv_prog_CC+:} false; then : 2802 $as_echo_n "(cached) " >&6 2803else 2804 if test -n "$CC"; then 2805 ac_cv_prog_CC="$CC" # Let the user override the test. 2806else 2807 ac_prog_rejected=no 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2809for as_dir in $PATH 2810do 2811 IFS=$as_save_IFS 2812 test -z "$as_dir" && as_dir=. 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2816 ac_prog_rejected=yes 2817 continue 2818 fi 2819 ac_cv_prog_CC="cc" 2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827if test $ac_prog_rejected = yes; then 2828 # We found a bogon in the path, so make sure we never use it. 2829 set dummy $ac_cv_prog_CC 2830 shift 2831 if test $# != 0; then 2832 # We chose a different compiler from the bogus one. 2833 # However, it has the same basename, so the bogon will be chosen 2834 # first if we set CC to just the basename; use the full file name. 2835 shift 2836 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2837 fi 2838fi 2839fi 2840fi 2841CC=$ac_cv_prog_CC 2842if test -n "$CC"; then 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2844$as_echo "$CC" >&6; } 2845else 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2847$as_echo "no" >&6; } 2848fi 2849 2850 2851fi 2852if test -z "$CC"; then 2853 if test -n "$ac_tool_prefix"; then 2854 for ac_prog in cl.exe 2855 do 2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2857set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2859$as_echo_n "checking for $ac_word... " >&6; } 2860if ${ac_cv_prog_CC+:} false; then : 2861 $as_echo_n "(cached) " >&6 2862else 2863 if test -n "$CC"; then 2864 ac_cv_prog_CC="$CC" # Let the user override the test. 2865else 2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867for as_dir in $PATH 2868do 2869 IFS=$as_save_IFS 2870 test -z "$as_dir" && as_dir=. 2871 for ac_exec_ext in '' $ac_executable_extensions; do 2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2873 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2875 break 2 2876 fi 2877done 2878 done 2879IFS=$as_save_IFS 2880 2881fi 2882fi 2883CC=$ac_cv_prog_CC 2884if test -n "$CC"; then 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2886$as_echo "$CC" >&6; } 2887else 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2889$as_echo "no" >&6; } 2890fi 2891 2892 2893 test -n "$CC" && break 2894 done 2895fi 2896if test -z "$CC"; then 2897 ac_ct_CC=$CC 2898 for ac_prog in cl.exe 2899do 2900 # Extract the first word of "$ac_prog", so it can be a program name with args. 2901set dummy $ac_prog; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if ${ac_cv_prog_ac_ct_CC+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$ac_ct_CC"; then 2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2917 ac_cv_prog_ac_ct_CC="$ac_prog" 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927ac_ct_CC=$ac_cv_prog_ac_ct_CC 2928if test -n "$ac_ct_CC"; then 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2930$as_echo "$ac_ct_CC" >&6; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 2937 test -n "$ac_ct_CC" && break 2938done 2939 2940 if test "x$ac_ct_CC" = x; then 2941 CC="" 2942 else 2943 case $cross_compiling:$ac_tool_warned in 2944yes:) 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2947ac_tool_warned=yes ;; 2948esac 2949 CC=$ac_ct_CC 2950 fi 2951fi 2952 2953fi 2954 2955 2956test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2958as_fn_error $? "no acceptable C compiler found in \$PATH 2959See \`config.log' for more details" "$LINENO" 5; } 2960 2961# Provide some information about the compiler. 2962$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2963set X $ac_compile 2964ac_compiler=$2 2965for ac_option in --version -v -V -qversion; do 2966 { { ac_try="$ac_compiler $ac_option >&5" 2967case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970esac 2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2972$as_echo "$ac_try_echo"; } >&5 2973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2974 ac_status=$? 2975 if test -s conftest.err; then 2976 sed '10a\ 2977... rest of stderr output deleted ... 2978 10q' conftest.err >conftest.er1 2979 cat conftest.er1 >&5 2980 fi 2981 rm -f conftest.er1 conftest.err 2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2983 test $ac_status = 0; } 2984done 2985 2986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2987/* end confdefs.h. */ 2988 2989int 2990main () 2991{ 2992 2993 ; 2994 return 0; 2995} 2996_ACEOF 2997ac_clean_files_save=$ac_clean_files 2998ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2999# Try to create an executable without -o first, disregard a.out. 3000# It will help us diagnose broken compilers, and finding out an intuition 3001# of exeext. 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3003$as_echo_n "checking whether the C compiler works... " >&6; } 3004ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3005 3006# The possible output files: 3007ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3008 3009ac_rmfiles= 3010for ac_file in $ac_files 3011do 3012 case $ac_file in 3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3014 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3015 esac 3016done 3017rm -f $ac_rmfiles 3018 3019if { { ac_try="$ac_link_default" 3020case "(($ac_try" in 3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3022 *) ac_try_echo=$ac_try;; 3023esac 3024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3025$as_echo "$ac_try_echo"; } >&5 3026 (eval "$ac_link_default") 2>&5 3027 ac_status=$? 3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3029 test $ac_status = 0; }; then : 3030 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3031# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3032# in a Makefile. We should not override ac_cv_exeext if it was cached, 3033# so that the user can short-circuit this test for compilers unknown to 3034# Autoconf. 3035for ac_file in $ac_files '' 3036do 3037 test -f "$ac_file" || continue 3038 case $ac_file in 3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3040 ;; 3041 [ab].out ) 3042 # We found the default executable, but exeext='' is most 3043 # certainly right. 3044 break;; 3045 *.* ) 3046 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3047 then :; else 3048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3049 fi 3050 # We set ac_cv_exeext here because the later test for it is not 3051 # safe: cross compilers may not add the suffix if given an `-o' 3052 # argument, so we may need to know it at that point already. 3053 # Even if this section looks crufty: it has the advantage of 3054 # actually working. 3055 break;; 3056 * ) 3057 break;; 3058 esac 3059done 3060test "$ac_cv_exeext" = no && ac_cv_exeext= 3061 3062else 3063 ac_file='' 3064fi 3065if test -z "$ac_file"; then : 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067$as_echo "no" >&6; } 3068$as_echo "$as_me: failed program was:" >&5 3069sed 's/^/| /' conftest.$ac_ext >&5 3070 3071{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3073as_fn_error 77 "C compiler cannot create executables 3074See \`config.log' for more details" "$LINENO" 5; } 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3077$as_echo "yes" >&6; } 3078fi 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3080$as_echo_n "checking for C compiler default output file name... " >&6; } 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3082$as_echo "$ac_file" >&6; } 3083ac_exeext=$ac_cv_exeext 3084 3085rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3086ac_clean_files=$ac_clean_files_save 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3088$as_echo_n "checking for suffix of executables... " >&6; } 3089if { { ac_try="$ac_link" 3090case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3095$as_echo "$ac_try_echo"; } >&5 3096 (eval "$ac_link") 2>&5 3097 ac_status=$? 3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3099 test $ac_status = 0; }; then : 3100 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3101# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3102# work properly (i.e., refer to `conftest.exe'), while it won't with 3103# `rm'. 3104for ac_file in conftest.exe conftest conftest.*; do 3105 test -f "$ac_file" || continue 3106 case $ac_file in 3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3108 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3109 break;; 3110 * ) break;; 3111 esac 3112done 3113else 3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3116as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3117See \`config.log' for more details" "$LINENO" 5; } 3118fi 3119rm -f conftest conftest$ac_cv_exeext 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3121$as_echo "$ac_cv_exeext" >&6; } 3122 3123rm -f conftest.$ac_ext 3124EXEEXT=$ac_cv_exeext 3125ac_exeext=$EXEEXT 3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3127/* end confdefs.h. */ 3128#include <stdio.h> 3129int 3130main () 3131{ 3132FILE *f = fopen ("conftest.out", "w"); 3133 return ferror (f) || fclose (f) != 0; 3134 3135 ; 3136 return 0; 3137} 3138_ACEOF 3139ac_clean_files="$ac_clean_files conftest.out" 3140# Check that the compiler produces executables we can run. If not, either 3141# the compiler is broken, or we cross compile. 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3143$as_echo_n "checking whether we are cross compiling... " >&6; } 3144if test "$cross_compiling" != yes; then 3145 { { ac_try="$ac_link" 3146case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149esac 3150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3151$as_echo "$ac_try_echo"; } >&5 3152 (eval "$ac_link") 2>&5 3153 ac_status=$? 3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3155 test $ac_status = 0; } 3156 if { ac_try='./conftest$ac_cv_exeext' 3157 { { case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162$as_echo "$ac_try_echo"; } >&5 3163 (eval "$ac_try") 2>&5 3164 ac_status=$? 3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3166 test $ac_status = 0; }; }; then 3167 cross_compiling=no 3168 else 3169 if test "$cross_compiling" = maybe; then 3170 cross_compiling=yes 3171 else 3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3174as_fn_error $? "cannot run C compiled programs. 3175If you meant to cross compile, use \`--host'. 3176See \`config.log' for more details" "$LINENO" 5; } 3177 fi 3178 fi 3179fi 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3181$as_echo "$cross_compiling" >&6; } 3182 3183rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3184ac_clean_files=$ac_clean_files_save 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3186$as_echo_n "checking for suffix of object files... " >&6; } 3187if ${ac_cv_objext+:} false; then : 3188 $as_echo_n "(cached) " >&6 3189else 3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3191/* end confdefs.h. */ 3192 3193int 3194main () 3195{ 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201rm -f conftest.o conftest.obj 3202if { { ac_try="$ac_compile" 3203case "(($ac_try" in 3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3205 *) ac_try_echo=$ac_try;; 3206esac 3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3208$as_echo "$ac_try_echo"; } >&5 3209 (eval "$ac_compile") 2>&5 3210 ac_status=$? 3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3212 test $ac_status = 0; }; then : 3213 for ac_file in conftest.o conftest.obj conftest.*; do 3214 test -f "$ac_file" || continue; 3215 case $ac_file in 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3218 break;; 3219 esac 3220done 3221else 3222 $as_echo "$as_me: failed program was:" >&5 3223sed 's/^/| /' conftest.$ac_ext >&5 3224 3225{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3227as_fn_error $? "cannot compute suffix of object files: cannot compile 3228See \`config.log' for more details" "$LINENO" 5; } 3229fi 3230rm -f conftest.$ac_cv_objext conftest.$ac_ext 3231fi 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3233$as_echo "$ac_cv_objext" >&6; } 3234OBJEXT=$ac_cv_objext 3235ac_objext=$OBJEXT 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3237$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3238if ${ac_cv_c_compiler_gnu+:} false; then : 3239 $as_echo_n "(cached) " >&6 3240else 3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3242/* end confdefs.h. */ 3243 3244int 3245main () 3246{ 3247#ifndef __GNUC__ 3248 choke me 3249#endif 3250 3251 ; 3252 return 0; 3253} 3254_ACEOF 3255if ac_fn_c_try_compile "$LINENO"; then : 3256 ac_compiler_gnu=yes 3257else 3258 ac_compiler_gnu=no 3259fi 3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3261ac_cv_c_compiler_gnu=$ac_compiler_gnu 3262 3263fi 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3265$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3266if test $ac_compiler_gnu = yes; then 3267 GCC=yes 3268else 3269 GCC= 3270fi 3271ac_test_CFLAGS=${CFLAGS+set} 3272ac_save_CFLAGS=$CFLAGS 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3274$as_echo_n "checking whether $CC accepts -g... " >&6; } 3275if ${ac_cv_prog_cc_g+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 ac_save_c_werror_flag=$ac_c_werror_flag 3279 ac_c_werror_flag=yes 3280 ac_cv_prog_cc_g=no 3281 CFLAGS="-g" 3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283/* end confdefs.h. */ 3284 3285int 3286main () 3287{ 3288 3289 ; 3290 return 0; 3291} 3292_ACEOF 3293if ac_fn_c_try_compile "$LINENO"; then : 3294 ac_cv_prog_cc_g=yes 3295else 3296 CFLAGS="" 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main () 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308if ac_fn_c_try_compile "$LINENO"; then : 3309 3310else 3311 ac_c_werror_flag=$ac_save_c_werror_flag 3312 CFLAGS="-g" 3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3314/* end confdefs.h. */ 3315 3316int 3317main () 3318{ 3319 3320 ; 3321 return 0; 3322} 3323_ACEOF 3324if ac_fn_c_try_compile "$LINENO"; then : 3325 ac_cv_prog_cc_g=yes 3326fi 3327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3328fi 3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3330fi 3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3332 ac_c_werror_flag=$ac_save_c_werror_flag 3333fi 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3335$as_echo "$ac_cv_prog_cc_g" >&6; } 3336if test "$ac_test_CFLAGS" = set; then 3337 CFLAGS=$ac_save_CFLAGS 3338elif test $ac_cv_prog_cc_g = yes; then 3339 if test "$GCC" = yes; then 3340 CFLAGS="-g -O2" 3341 else 3342 CFLAGS="-g" 3343 fi 3344else 3345 if test "$GCC" = yes; then 3346 CFLAGS="-O2" 3347 else 3348 CFLAGS= 3349 fi 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3352$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3353if ${ac_cv_prog_cc_c89+:} false; then : 3354 $as_echo_n "(cached) " >&6 3355else 3356 ac_cv_prog_cc_c89=no 3357ac_save_CC=$CC 3358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360#include <stdarg.h> 3361#include <stdio.h> 3362#include <sys/types.h> 3363#include <sys/stat.h> 3364/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3365struct buf { int x; }; 3366FILE * (*rcsopen) (struct buf *, struct stat *, int); 3367static char *e (p, i) 3368 char **p; 3369 int i; 3370{ 3371 return p[i]; 3372} 3373static char *f (char * (*g) (char **, int), char **p, ...) 3374{ 3375 char *s; 3376 va_list v; 3377 va_start (v,p); 3378 s = g (p, va_arg (v,int)); 3379 va_end (v); 3380 return s; 3381} 3382 3383/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3384 function prototypes and stuff, but not '\xHH' hex character constants. 3385 These don't provoke an error unfortunately, instead are silently treated 3386 as 'x'. The following induces an error, until -std is added to get 3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3388 array size at least. It's necessary to write '\x00'==0 to get something 3389 that's true only with -std. */ 3390int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3391 3392/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3393 inside strings and character constants. */ 3394#define FOO(x) 'x' 3395int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3396 3397int test (int i, double x); 3398struct s1 {int (*f) (int a);}; 3399struct s2 {int (*f) (double a);}; 3400int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3401int argc; 3402char **argv; 3403int 3404main () 3405{ 3406return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3413do 3414 CC="$ac_save_CC $ac_arg" 3415 if ac_fn_c_try_compile "$LINENO"; then : 3416 ac_cv_prog_cc_c89=$ac_arg 3417fi 3418rm -f core conftest.err conftest.$ac_objext 3419 test "x$ac_cv_prog_cc_c89" != "xno" && break 3420done 3421rm -f conftest.$ac_ext 3422CC=$ac_save_CC 3423 3424fi 3425# AC_CACHE_VAL 3426case "x$ac_cv_prog_cc_c89" in 3427 x) 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3429$as_echo "none needed" >&6; } ;; 3430 xno) 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3432$as_echo "unsupported" >&6; } ;; 3433 *) 3434 CC="$CC $ac_cv_prog_cc_c89" 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3436$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3437esac 3438if test "x$ac_cv_prog_cc_c89" != xno; then : 3439 3440fi 3441 3442ac_ext=c 3443ac_cpp='$CPP $CPPFLAGS' 3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3446ac_compiler_gnu=$ac_cv_c_compiler_gnu 3447 3448depcc="$CC" am_compiler_list= 3449 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3451$as_echo_n "checking dependency style of $depcc... " >&6; } 3452if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3456 # We make a subdir and do the tests there. Otherwise we can end up 3457 # making bogus files that we don't know about and never remove. For 3458 # instance it was reported that on HP-UX the gcc test will end up 3459 # making a dummy file named `D' -- because `-MD' means `put the output 3460 # in D'. 3461 rm -rf conftest.dir 3462 mkdir conftest.dir 3463 # Copy depcomp to subdir because otherwise we won't find it if we're 3464 # using a relative directory. 3465 cp "$am_depcomp" conftest.dir 3466 cd conftest.dir 3467 # We will build objects and dependencies in a subdirectory because 3468 # it helps to detect inapplicable dependency modes. For instance 3469 # both Tru64's cc and ICC support -MD to output dependencies as a 3470 # side effect of compilation, but ICC will put the dependencies in 3471 # the current directory while Tru64 will put them in the object 3472 # directory. 3473 mkdir sub 3474 3475 am_cv_CC_dependencies_compiler_type=none 3476 if test "$am_compiler_list" = ""; then 3477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3478 fi 3479 am__universal=false 3480 case " $depcc " in #( 3481 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3482 esac 3483 3484 for depmode in $am_compiler_list; do 3485 # Setup a source with many dependencies, because some compilers 3486 # like to wrap large dependency lists on column 80 (with \), and 3487 # we should not choose a depcomp mode which is confused by this. 3488 # 3489 # We need to recreate these files for each test, as the compiler may 3490 # overwrite some of them when testing with obscure command lines. 3491 # This happens at least with the AIX C compiler. 3492 : > sub/conftest.c 3493 for i in 1 2 3 4 5 6; do 3494 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3496 # Solaris 8's {/usr,}/bin/sh. 3497 touch sub/conftst$i.h 3498 done 3499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3500 3501 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3502 # mode. It turns out that the SunPro C++ compiler does not properly 3503 # handle `-M -o', and we need to detect this. Also, some Intel 3504 # versions had trouble with output in subdirs 3505 am__obj=sub/conftest.${OBJEXT-o} 3506 am__minus_obj="-o $am__obj" 3507 case $depmode in 3508 gcc) 3509 # This depmode causes a compiler race in universal mode. 3510 test "$am__universal" = false || continue 3511 ;; 3512 nosideeffect) 3513 # after this tag, mechanisms are not by side-effect, so they'll 3514 # only be used when explicitly requested 3515 if test "x$enable_dependency_tracking" = xyes; then 3516 continue 3517 else 3518 break 3519 fi 3520 ;; 3521 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3522 # This compiler won't grok `-c -o', but also, the minuso test has 3523 # not run yet. These depmodes are late enough in the game, and 3524 # so weak that their functioning should not be impacted. 3525 am__obj=conftest.${OBJEXT-o} 3526 am__minus_obj= 3527 ;; 3528 none) break ;; 3529 esac 3530 if depmode=$depmode \ 3531 source=sub/conftest.c object=$am__obj \ 3532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3534 >/dev/null 2>conftest.err && 3535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3539 # icc doesn't choke on unknown options, it will just issue warnings 3540 # or remarks (even with -Werror). So we grep stderr for any message 3541 # that says an option was ignored or not supported. 3542 # When given -MP, icc 7.0 and 7.1 complain thusly: 3543 # icc: Command line warning: ignoring option '-M'; no argument required 3544 # The diagnosis changed in icc 8.0: 3545 # icc: Command line remark: option '-MP' not supported 3546 if (grep 'ignoring option' conftest.err || 3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3548 am_cv_CC_dependencies_compiler_type=$depmode 3549 break 3550 fi 3551 fi 3552 done 3553 3554 cd .. 3555 rm -rf conftest.dir 3556else 3557 am_cv_CC_dependencies_compiler_type=none 3558fi 3559 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3562$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3563CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3564 3565 if 3566 test "x$enable_dependency_tracking" != xno \ 3567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3568 am__fastdepCC_TRUE= 3569 am__fastdepCC_FALSE='#' 3570else 3571 am__fastdepCC_TRUE='#' 3572 am__fastdepCC_FALSE= 3573fi 3574 3575 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3577$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3578if ${ac_cv_prog_cc_c99+:} false; then : 3579 $as_echo_n "(cached) " >&6 3580else 3581 ac_cv_prog_cc_c99=no 3582ac_save_CC=$CC 3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584/* end confdefs.h. */ 3585#include <stdarg.h> 3586#include <stdbool.h> 3587#include <stdlib.h> 3588#include <wchar.h> 3589#include <stdio.h> 3590 3591// Check varargs macros. These examples are taken from C99 6.10.3.5. 3592#define debug(...) fprintf (stderr, __VA_ARGS__) 3593#define showlist(...) puts (#__VA_ARGS__) 3594#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3595static void 3596test_varargs_macros (void) 3597{ 3598 int x = 1234; 3599 int y = 5678; 3600 debug ("Flag"); 3601 debug ("X = %d\n", x); 3602 showlist (The first, second, and third items.); 3603 report (x>y, "x is %d but y is %d", x, y); 3604} 3605 3606// Check long long types. 3607#define BIG64 18446744073709551615ull 3608#define BIG32 4294967295ul 3609#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3610#if !BIG_OK 3611 your preprocessor is broken; 3612#endif 3613#if BIG_OK 3614#else 3615 your preprocessor is broken; 3616#endif 3617static long long int bignum = -9223372036854775807LL; 3618static unsigned long long int ubignum = BIG64; 3619 3620struct incomplete_array 3621{ 3622 int datasize; 3623 double data[]; 3624}; 3625 3626struct named_init { 3627 int number; 3628 const wchar_t *name; 3629 double average; 3630}; 3631 3632typedef const char *ccp; 3633 3634static inline int 3635test_restrict (ccp restrict text) 3636{ 3637 // See if C++-style comments work. 3638 // Iterate through items via the restricted pointer. 3639 // Also check for declarations in for loops. 3640 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3641 continue; 3642 return 0; 3643} 3644 3645// Check varargs and va_copy. 3646static void 3647test_varargs (const char *format, ...) 3648{ 3649 va_list args; 3650 va_start (args, format); 3651 va_list args_copy; 3652 va_copy (args_copy, args); 3653 3654 const char *str; 3655 int number; 3656 float fnumber; 3657 3658 while (*format) 3659 { 3660 switch (*format++) 3661 { 3662 case 's': // string 3663 str = va_arg (args_copy, const char *); 3664 break; 3665 case 'd': // int 3666 number = va_arg (args_copy, int); 3667 break; 3668 case 'f': // float 3669 fnumber = va_arg (args_copy, double); 3670 break; 3671 default: 3672 break; 3673 } 3674 } 3675 va_end (args_copy); 3676 va_end (args); 3677} 3678 3679int 3680main () 3681{ 3682 3683 // Check bool. 3684 _Bool success = false; 3685 3686 // Check restrict. 3687 if (test_restrict ("String literal") == 0) 3688 success = true; 3689 char *restrict newvar = "Another string"; 3690 3691 // Check varargs. 3692 test_varargs ("s, d' f .", "string", 65, 34.234); 3693 test_varargs_macros (); 3694 3695 // Check flexible array members. 3696 struct incomplete_array *ia = 3697 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3698 ia->datasize = 10; 3699 for (int i = 0; i < ia->datasize; ++i) 3700 ia->data[i] = i * 1.234; 3701 3702 // Check named initializers. 3703 struct named_init ni = { 3704 .number = 34, 3705 .name = L"Test wide string", 3706 .average = 543.34343, 3707 }; 3708 3709 ni.number = 58; 3710 3711 int dynamic_array[ni.number]; 3712 dynamic_array[ni.number - 1] = 543; 3713 3714 // work around unused variable warnings 3715 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3716 || dynamic_array[ni.number - 1] != 543); 3717 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3723do 3724 CC="$ac_save_CC $ac_arg" 3725 if ac_fn_c_try_compile "$LINENO"; then : 3726 ac_cv_prog_cc_c99=$ac_arg 3727fi 3728rm -f core conftest.err conftest.$ac_objext 3729 test "x$ac_cv_prog_cc_c99" != "xno" && break 3730done 3731rm -f conftest.$ac_ext 3732CC=$ac_save_CC 3733 3734fi 3735# AC_CACHE_VAL 3736case "x$ac_cv_prog_cc_c99" in 3737 x) 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3739$as_echo "none needed" >&6; } ;; 3740 xno) 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3742$as_echo "unsupported" >&6; } ;; 3743 *) 3744 CC="$CC $ac_cv_prog_cc_c99" 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3746$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3747esac 3748if test "x$ac_cv_prog_cc_c99" != xno; then : 3749 3750fi 3751 3752 3753 3754ac_ext=c 3755ac_cpp='$CPP $CPPFLAGS' 3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3758ac_compiler_gnu=$ac_cv_c_compiler_gnu 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3760$as_echo_n "checking how to run the C preprocessor... " >&6; } 3761# On Suns, sometimes $CPP names a directory. 3762if test -n "$CPP" && test -d "$CPP"; then 3763 CPP= 3764fi 3765if test -z "$CPP"; then 3766 if ${ac_cv_prog_CPP+:} false; then : 3767 $as_echo_n "(cached) " >&6 3768else 3769 # Double quotes because CPP needs to be expanded 3770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3771 do 3772 ac_preproc_ok=false 3773for ac_c_preproc_warn_flag in '' yes 3774do 3775 # Use a header file that comes with gcc, so configuring glibc 3776 # with a fresh cross-compiler works. 3777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3778 # <limits.h> exists even on freestanding compilers. 3779 # On the NeXT, cc -E runs the code through the compiler's parser, 3780 # not just through cpp. "Syntax error" is here to catch this case. 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783#ifdef __STDC__ 3784# include <limits.h> 3785#else 3786# include <assert.h> 3787#endif 3788 Syntax error 3789_ACEOF 3790if ac_fn_c_try_cpp "$LINENO"; then : 3791 3792else 3793 # Broken: fails on valid input. 3794continue 3795fi 3796rm -f conftest.err conftest.i conftest.$ac_ext 3797 3798 # OK, works on sane cases. Now check whether nonexistent headers 3799 # can be detected and how. 3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802#include <ac_nonexistent.h> 3803_ACEOF 3804if ac_fn_c_try_cpp "$LINENO"; then : 3805 # Broken: success on invalid input. 3806continue 3807else 3808 # Passes both tests. 3809ac_preproc_ok=: 3810break 3811fi 3812rm -f conftest.err conftest.i conftest.$ac_ext 3813 3814done 3815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3816rm -f conftest.i conftest.err conftest.$ac_ext 3817if $ac_preproc_ok; then : 3818 break 3819fi 3820 3821 done 3822 ac_cv_prog_CPP=$CPP 3823 3824fi 3825 CPP=$ac_cv_prog_CPP 3826else 3827 ac_cv_prog_CPP=$CPP 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3830$as_echo "$CPP" >&6; } 3831ac_preproc_ok=false 3832for ac_c_preproc_warn_flag in '' yes 3833do 3834 # Use a header file that comes with gcc, so configuring glibc 3835 # with a fresh cross-compiler works. 3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3837 # <limits.h> exists even on freestanding compilers. 3838 # On the NeXT, cc -E runs the code through the compiler's parser, 3839 # not just through cpp. "Syntax error" is here to catch this case. 3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842#ifdef __STDC__ 3843# include <limits.h> 3844#else 3845# include <assert.h> 3846#endif 3847 Syntax error 3848_ACEOF 3849if ac_fn_c_try_cpp "$LINENO"; then : 3850 3851else 3852 # Broken: fails on valid input. 3853continue 3854fi 3855rm -f conftest.err conftest.i conftest.$ac_ext 3856 3857 # OK, works on sane cases. Now check whether nonexistent headers 3858 # can be detected and how. 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3860/* end confdefs.h. */ 3861#include <ac_nonexistent.h> 3862_ACEOF 3863if ac_fn_c_try_cpp "$LINENO"; then : 3864 # Broken: success on invalid input. 3865continue 3866else 3867 # Passes both tests. 3868ac_preproc_ok=: 3869break 3870fi 3871rm -f conftest.err conftest.i conftest.$ac_ext 3872 3873done 3874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3875rm -f conftest.i conftest.err conftest.$ac_ext 3876if $ac_preproc_ok; then : 3877 3878else 3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3881as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3882See \`config.log' for more details" "$LINENO" 5; } 3883fi 3884 3885ac_ext=c 3886ac_cpp='$CPP $CPPFLAGS' 3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3889ac_compiler_gnu=$ac_cv_c_compiler_gnu 3890 3891 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3893$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3894if ${ac_cv_path_GREP+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 if test -z "$GREP"; then 3898 ac_path_GREP_found=false 3899 # Loop through the user's path and test for each of PROGNAME-LIST 3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3901for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3902do 3903 IFS=$as_save_IFS 3904 test -z "$as_dir" && as_dir=. 3905 for ac_prog in grep ggrep; do 3906 for ac_exec_ext in '' $ac_executable_extensions; do 3907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3909# Check for GNU ac_path_GREP and select it if it is found. 3910 # Check for GNU $ac_path_GREP 3911case `"$ac_path_GREP" --version 2>&1` in 3912*GNU*) 3913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3914*) 3915 ac_count=0 3916 $as_echo_n 0123456789 >"conftest.in" 3917 while : 3918 do 3919 cat "conftest.in" "conftest.in" >"conftest.tmp" 3920 mv "conftest.tmp" "conftest.in" 3921 cp "conftest.in" "conftest.nl" 3922 $as_echo 'GREP' >> "conftest.nl" 3923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3925 as_fn_arith $ac_count + 1 && ac_count=$as_val 3926 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3927 # Best one so far, save it but keep looking for a better one 3928 ac_cv_path_GREP="$ac_path_GREP" 3929 ac_path_GREP_max=$ac_count 3930 fi 3931 # 10*(2^10) chars as input seems more than enough 3932 test $ac_count -gt 10 && break 3933 done 3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3935esac 3936 3937 $ac_path_GREP_found && break 3 3938 done 3939 done 3940 done 3941IFS=$as_save_IFS 3942 if test -z "$ac_cv_path_GREP"; then 3943 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3944 fi 3945else 3946 ac_cv_path_GREP=$GREP 3947fi 3948 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3951$as_echo "$ac_cv_path_GREP" >&6; } 3952 GREP="$ac_cv_path_GREP" 3953 3954 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3956$as_echo_n "checking for egrep... " >&6; } 3957if ${ac_cv_path_EGREP+:} false; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3961 then ac_cv_path_EGREP="$GREP -E" 3962 else 3963 if test -z "$EGREP"; then 3964 ac_path_EGREP_found=false 3965 # Loop through the user's path and test for each of PROGNAME-LIST 3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3967for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3968do 3969 IFS=$as_save_IFS 3970 test -z "$as_dir" && as_dir=. 3971 for ac_prog in egrep; do 3972 for ac_exec_ext in '' $ac_executable_extensions; do 3973 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3975# Check for GNU ac_path_EGREP and select it if it is found. 3976 # Check for GNU $ac_path_EGREP 3977case `"$ac_path_EGREP" --version 2>&1` in 3978*GNU*) 3979 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3980*) 3981 ac_count=0 3982 $as_echo_n 0123456789 >"conftest.in" 3983 while : 3984 do 3985 cat "conftest.in" "conftest.in" >"conftest.tmp" 3986 mv "conftest.tmp" "conftest.in" 3987 cp "conftest.in" "conftest.nl" 3988 $as_echo 'EGREP' >> "conftest.nl" 3989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3991 as_fn_arith $ac_count + 1 && ac_count=$as_val 3992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3993 # Best one so far, save it but keep looking for a better one 3994 ac_cv_path_EGREP="$ac_path_EGREP" 3995 ac_path_EGREP_max=$ac_count 3996 fi 3997 # 10*(2^10) chars as input seems more than enough 3998 test $ac_count -gt 10 && break 3999 done 4000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4001esac 4002 4003 $ac_path_EGREP_found && break 3 4004 done 4005 done 4006 done 4007IFS=$as_save_IFS 4008 if test -z "$ac_cv_path_EGREP"; then 4009 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4010 fi 4011else 4012 ac_cv_path_EGREP=$EGREP 4013fi 4014 4015 fi 4016fi 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4018$as_echo "$ac_cv_path_EGREP" >&6; } 4019 EGREP="$ac_cv_path_EGREP" 4020 4021 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4023$as_echo_n "checking for ANSI C header files... " >&6; } 4024if ${ac_cv_header_stdc+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#include <stdlib.h> 4030#include <stdarg.h> 4031#include <string.h> 4032#include <float.h> 4033 4034int 4035main () 4036{ 4037 4038 ; 4039 return 0; 4040} 4041_ACEOF 4042if ac_fn_c_try_compile "$LINENO"; then : 4043 ac_cv_header_stdc=yes 4044else 4045 ac_cv_header_stdc=no 4046fi 4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4048 4049if test $ac_cv_header_stdc = yes; then 4050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4052/* end confdefs.h. */ 4053#include <string.h> 4054 4055_ACEOF 4056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4057 $EGREP "memchr" >/dev/null 2>&1; then : 4058 4059else 4060 ac_cv_header_stdc=no 4061fi 4062rm -f conftest* 4063 4064fi 4065 4066if test $ac_cv_header_stdc = yes; then 4067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070#include <stdlib.h> 4071 4072_ACEOF 4073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4074 $EGREP "free" >/dev/null 2>&1; then : 4075 4076else 4077 ac_cv_header_stdc=no 4078fi 4079rm -f conftest* 4080 4081fi 4082 4083if test $ac_cv_header_stdc = yes; then 4084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4085 if test "$cross_compiling" = yes; then : 4086 : 4087else 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089/* end confdefs.h. */ 4090#include <ctype.h> 4091#include <stdlib.h> 4092#if ((' ' & 0x0FF) == 0x020) 4093# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4094# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4095#else 4096# define ISLOWER(c) \ 4097 (('a' <= (c) && (c) <= 'i') \ 4098 || ('j' <= (c) && (c) <= 'r') \ 4099 || ('s' <= (c) && (c) <= 'z')) 4100# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4101#endif 4102 4103#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4104int 4105main () 4106{ 4107 int i; 4108 for (i = 0; i < 256; i++) 4109 if (XOR (islower (i), ISLOWER (i)) 4110 || toupper (i) != TOUPPER (i)) 4111 return 2; 4112 return 0; 4113} 4114_ACEOF 4115if ac_fn_c_try_run "$LINENO"; then : 4116 4117else 4118 ac_cv_header_stdc=no 4119fi 4120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4121 conftest.$ac_objext conftest.beam conftest.$ac_ext 4122fi 4123 4124fi 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4127$as_echo "$ac_cv_header_stdc" >&6; } 4128if test $ac_cv_header_stdc = yes; then 4129 4130$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4131 4132fi 4133 4134# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4135for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4136 inttypes.h stdint.h unistd.h 4137do : 4138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4139ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4140" 4141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4142 cat >>confdefs.h <<_ACEOF 4143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4144_ACEOF 4145 4146fi 4147 4148done 4149 4150 4151 4152 4153 4154 4155ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4156if test "x$ac_cv_have_decl___clang__" = xyes; then : 4157 CLANGCC="yes" 4158else 4159 CLANGCC="no" 4160fi 4161 4162ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4163if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4164 INTELCC="yes" 4165else 4166 INTELCC="no" 4167fi 4168 4169ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4170if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4171 SUNCC="yes" 4172else 4173 SUNCC="no" 4174fi 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4185 if test -n "$ac_tool_prefix"; then 4186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4187set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4189$as_echo_n "checking for $ac_word... " >&6; } 4190if ${ac_cv_path_PKG_CONFIG+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 case $PKG_CONFIG in 4194 [\\/]* | ?:[\\/]*) 4195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4196 ;; 4197 *) 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199for as_dir in $PATH 4200do 4201 IFS=$as_save_IFS 4202 test -z "$as_dir" && as_dir=. 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4207 break 2 4208 fi 4209done 4210 done 4211IFS=$as_save_IFS 4212 4213 ;; 4214esac 4215fi 4216PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4217if test -n "$PKG_CONFIG"; then 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4219$as_echo "$PKG_CONFIG" >&6; } 4220else 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4222$as_echo "no" >&6; } 4223fi 4224 4225 4226fi 4227if test -z "$ac_cv_path_PKG_CONFIG"; then 4228 ac_pt_PKG_CONFIG=$PKG_CONFIG 4229 # Extract the first word of "pkg-config", so it can be a program name with args. 4230set dummy pkg-config; ac_word=$2 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4232$as_echo_n "checking for $ac_word... " >&6; } 4233if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 case $ac_pt_PKG_CONFIG in 4237 [\\/]* | ?:[\\/]*) 4238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4239 ;; 4240 *) 4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4250 break 2 4251 fi 4252done 4253 done 4254IFS=$as_save_IFS 4255 4256 ;; 4257esac 4258fi 4259ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4260if test -n "$ac_pt_PKG_CONFIG"; then 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4262$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4263else 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4265$as_echo "no" >&6; } 4266fi 4267 4268 if test "x$ac_pt_PKG_CONFIG" = x; then 4269 PKG_CONFIG="" 4270 else 4271 case $cross_compiling:$ac_tool_warned in 4272yes:) 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4275ac_tool_warned=yes ;; 4276esac 4277 PKG_CONFIG=$ac_pt_PKG_CONFIG 4278 fi 4279else 4280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4281fi 4282 4283fi 4284if test -n "$PKG_CONFIG"; then 4285 _pkg_min_version=0.9.0 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4287$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4290$as_echo "yes" >&6; } 4291 else 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4293$as_echo "no" >&6; } 4294 PKG_CONFIG="" 4295 fi 4296fi 4297# Make sure we can run config.sub. 4298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4300 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4302$as_echo_n "checking build system type... " >&6; } 4303if ${ac_cv_build+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 ac_build_alias=$build_alias 4307test "x$ac_build_alias" = x && 4308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4309test "x$ac_build_alias" = x && 4310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4313 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4316$as_echo "$ac_cv_build" >&6; } 4317case $ac_cv_build in 4318*-*-*) ;; 4319*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4320esac 4321build=$ac_cv_build 4322ac_save_IFS=$IFS; IFS='-' 4323set x $ac_cv_build 4324shift 4325build_cpu=$1 4326build_vendor=$2 4327shift; shift 4328# Remember, the first character of IFS is used to create $*, 4329# except with old shells: 4330build_os=$* 4331IFS=$ac_save_IFS 4332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4333 4334 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4336$as_echo_n "checking host system type... " >&6; } 4337if ${ac_cv_host+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 if test "x$host_alias" = x; then 4341 ac_cv_host=$ac_cv_build 4342else 4343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4345fi 4346 4347fi 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4349$as_echo "$ac_cv_host" >&6; } 4350case $ac_cv_host in 4351*-*-*) ;; 4352*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4353esac 4354host=$ac_cv_host 4355ac_save_IFS=$IFS; IFS='-' 4356set x $ac_cv_host 4357shift 4358host_cpu=$1 4359host_vendor=$2 4360shift; shift 4361# Remember, the first character of IFS is used to create $*, 4362# except with old shells: 4363host_os=$* 4364IFS=$ac_save_IFS 4365case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4366 4367 4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4369$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4370if ${ac_cv_path_SED+:} false; then : 4371 $as_echo_n "(cached) " >&6 4372else 4373 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4374 for ac_i in 1 2 3 4 5 6 7; do 4375 ac_script="$ac_script$as_nl$ac_script" 4376 done 4377 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4378 { ac_script=; unset ac_script;} 4379 if test -z "$SED"; then 4380 ac_path_SED_found=false 4381 # Loop through the user's path and test for each of PROGNAME-LIST 4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4383for as_dir in $PATH 4384do 4385 IFS=$as_save_IFS 4386 test -z "$as_dir" && as_dir=. 4387 for ac_prog in sed gsed; do 4388 for ac_exec_ext in '' $ac_executable_extensions; do 4389 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4390 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4391# Check for GNU ac_path_SED and select it if it is found. 4392 # Check for GNU $ac_path_SED 4393case `"$ac_path_SED" --version 2>&1` in 4394*GNU*) 4395 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4396*) 4397 ac_count=0 4398 $as_echo_n 0123456789 >"conftest.in" 4399 while : 4400 do 4401 cat "conftest.in" "conftest.in" >"conftest.tmp" 4402 mv "conftest.tmp" "conftest.in" 4403 cp "conftest.in" "conftest.nl" 4404 $as_echo '' >> "conftest.nl" 4405 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4407 as_fn_arith $ac_count + 1 && ac_count=$as_val 4408 if test $ac_count -gt ${ac_path_SED_max-0}; then 4409 # Best one so far, save it but keep looking for a better one 4410 ac_cv_path_SED="$ac_path_SED" 4411 ac_path_SED_max=$ac_count 4412 fi 4413 # 10*(2^10) chars as input seems more than enough 4414 test $ac_count -gt 10 && break 4415 done 4416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4417esac 4418 4419 $ac_path_SED_found && break 3 4420 done 4421 done 4422 done 4423IFS=$as_save_IFS 4424 if test -z "$ac_cv_path_SED"; then 4425 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4426 fi 4427else 4428 ac_cv_path_SED=$SED 4429fi 4430 4431fi 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4433$as_echo "$ac_cv_path_SED" >&6; } 4434 SED="$ac_cv_path_SED" 4435 rm -f conftest.sed 4436 4437 4438 4439 4440 4441 4442# Check whether --enable-selective-werror was given. 4443if test "${enable_selective_werror+set}" = set; then : 4444 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4445else 4446 SELECTIVE_WERROR=yes 4447fi 4448 4449 4450 4451 4452 4453# -v is too short to test reliably with XORG_TESTSET_CFLAG 4454if test "x$SUNCC" = "xyes"; then 4455 BASE_CFLAGS="-v" 4456else 4457 BASE_CFLAGS="" 4458fi 4459 4460# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474xorg_testset_save_CFLAGS="$CFLAGS" 4475 4476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4484/* end confdefs.h. */ 4485int i; 4486_ACEOF 4487if ac_fn_c_try_compile "$LINENO"; then : 4488 xorg_cv_cc_flag_unknown_warning_option=yes 4489else 4490 xorg_cv_cc_flag_unknown_warning_option=no 4491fi 4492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493fi 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4497 CFLAGS="$xorg_testset_save_CFLAGS" 4498fi 4499 4500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4503 fi 4504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512int i; 4513_ACEOF 4514if ac_fn_c_try_compile "$LINENO"; then : 4515 xorg_cv_cc_flag_unused_command_line_argument=yes 4516else 4517 xorg_cv_cc_flag_unused_command_line_argument=no 4518fi 4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4520fi 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4524 CFLAGS="$xorg_testset_save_CFLAGS" 4525fi 4526 4527found="no" 4528 4529 if test $found = "no" ; then 4530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4532 fi 4533 4534 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4536 fi 4537 4538 CFLAGS="$CFLAGS -Wall" 4539 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4541$as_echo_n "checking if $CC supports -Wall... " >&6; } 4542 cacheid=xorg_cv_cc_flag__Wall 4543 if eval \${$cacheid+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548int i; 4549int 4550main () 4551{ 4552 4553 ; 4554 return 0; 4555} 4556_ACEOF 4557if ac_fn_c_try_link "$LINENO"; then : 4558 eval $cacheid=yes 4559else 4560 eval $cacheid=no 4561fi 4562rm -f core conftest.err conftest.$ac_objext \ 4563 conftest$ac_exeext conftest.$ac_ext 4564fi 4565 4566 4567 CFLAGS="$xorg_testset_save_CFLAGS" 4568 4569 eval supported=\$$cacheid 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4571$as_echo "$supported" >&6; } 4572 if test "$supported" = "yes" ; then 4573 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4574 found="yes" 4575 fi 4576 fi 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592xorg_testset_save_CFLAGS="$CFLAGS" 4593 4594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4602/* end confdefs.h. */ 4603int i; 4604_ACEOF 4605if ac_fn_c_try_compile "$LINENO"; then : 4606 xorg_cv_cc_flag_unknown_warning_option=yes 4607else 4608 xorg_cv_cc_flag_unknown_warning_option=no 4609fi 4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4615 CFLAGS="$xorg_testset_save_CFLAGS" 4616fi 4617 4618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4621 fi 4622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4626 $as_echo_n "(cached) " >&6 4627else 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630int i; 4631_ACEOF 4632if ac_fn_c_try_compile "$LINENO"; then : 4633 xorg_cv_cc_flag_unused_command_line_argument=yes 4634else 4635 xorg_cv_cc_flag_unused_command_line_argument=no 4636fi 4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4638fi 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4642 CFLAGS="$xorg_testset_save_CFLAGS" 4643fi 4644 4645found="no" 4646 4647 if test $found = "no" ; then 4648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4650 fi 4651 4652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4654 fi 4655 4656 CFLAGS="$CFLAGS -Wpointer-arith" 4657 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4659$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4660 cacheid=xorg_cv_cc_flag__Wpointer_arith 4661 if eval \${$cacheid+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666int i; 4667int 4668main () 4669{ 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675if ac_fn_c_try_link "$LINENO"; then : 4676 eval $cacheid=yes 4677else 4678 eval $cacheid=no 4679fi 4680rm -f core conftest.err conftest.$ac_objext \ 4681 conftest$ac_exeext conftest.$ac_ext 4682fi 4683 4684 4685 CFLAGS="$xorg_testset_save_CFLAGS" 4686 4687 eval supported=\$$cacheid 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4689$as_echo "$supported" >&6; } 4690 if test "$supported" = "yes" ; then 4691 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4692 found="yes" 4693 fi 4694 fi 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710xorg_testset_save_CFLAGS="$CFLAGS" 4711 4712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721int i; 4722_ACEOF 4723if ac_fn_c_try_compile "$LINENO"; then : 4724 xorg_cv_cc_flag_unknown_warning_option=yes 4725else 4726 xorg_cv_cc_flag_unknown_warning_option=no 4727fi 4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4733 CFLAGS="$xorg_testset_save_CFLAGS" 4734fi 4735 4736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4739 fi 4740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748int i; 4749_ACEOF 4750if ac_fn_c_try_compile "$LINENO"; then : 4751 xorg_cv_cc_flag_unused_command_line_argument=yes 4752else 4753 xorg_cv_cc_flag_unused_command_line_argument=no 4754fi 4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4756fi 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4760 CFLAGS="$xorg_testset_save_CFLAGS" 4761fi 4762 4763found="no" 4764 4765 if test $found = "no" ; then 4766 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4768 fi 4769 4770 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4772 fi 4773 4774 CFLAGS="$CFLAGS -Wmissing-declarations" 4775 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4777$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4778 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4779 if eval \${$cacheid+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781else 4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4783/* end confdefs.h. */ 4784int i; 4785int 4786main () 4787{ 4788 4789 ; 4790 return 0; 4791} 4792_ACEOF 4793if ac_fn_c_try_link "$LINENO"; then : 4794 eval $cacheid=yes 4795else 4796 eval $cacheid=no 4797fi 4798rm -f core conftest.err conftest.$ac_objext \ 4799 conftest$ac_exeext conftest.$ac_ext 4800fi 4801 4802 4803 CFLAGS="$xorg_testset_save_CFLAGS" 4804 4805 eval supported=\$$cacheid 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4807$as_echo "$supported" >&6; } 4808 if test "$supported" = "yes" ; then 4809 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4810 found="yes" 4811 fi 4812 fi 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828xorg_testset_save_CFLAGS="$CFLAGS" 4829 4830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4835 $as_echo_n "(cached) " >&6 4836else 4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4838/* end confdefs.h. */ 4839int i; 4840_ACEOF 4841if ac_fn_c_try_compile "$LINENO"; then : 4842 xorg_cv_cc_flag_unknown_warning_option=yes 4843else 4844 xorg_cv_cc_flag_unknown_warning_option=no 4845fi 4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4847fi 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4851 CFLAGS="$xorg_testset_save_CFLAGS" 4852fi 4853 4854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4857 fi 4858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866int i; 4867_ACEOF 4868if ac_fn_c_try_compile "$LINENO"; then : 4869 xorg_cv_cc_flag_unused_command_line_argument=yes 4870else 4871 xorg_cv_cc_flag_unused_command_line_argument=no 4872fi 4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4878 CFLAGS="$xorg_testset_save_CFLAGS" 4879fi 4880 4881found="no" 4882 4883 if test $found = "no" ; then 4884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4886 fi 4887 4888 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4890 fi 4891 4892 CFLAGS="$CFLAGS -Wformat=2" 4893 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4895$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4896 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4897 if eval \${$cacheid+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902int i; 4903int 4904main () 4905{ 4906 4907 ; 4908 return 0; 4909} 4910_ACEOF 4911if ac_fn_c_try_link "$LINENO"; then : 4912 eval $cacheid=yes 4913else 4914 eval $cacheid=no 4915fi 4916rm -f core conftest.err conftest.$ac_objext \ 4917 conftest$ac_exeext conftest.$ac_ext 4918fi 4919 4920 4921 CFLAGS="$xorg_testset_save_CFLAGS" 4922 4923 eval supported=\$$cacheid 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4925$as_echo "$supported" >&6; } 4926 if test "$supported" = "yes" ; then 4927 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4928 found="yes" 4929 fi 4930 fi 4931 4932 if test $found = "no" ; then 4933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4935 fi 4936 4937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4939 fi 4940 4941 CFLAGS="$CFLAGS -Wformat" 4942 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4944$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4945 cacheid=xorg_cv_cc_flag__Wformat 4946 if eval \${$cacheid+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951int i; 4952int 4953main () 4954{ 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960if ac_fn_c_try_link "$LINENO"; then : 4961 eval $cacheid=yes 4962else 4963 eval $cacheid=no 4964fi 4965rm -f core conftest.err conftest.$ac_objext \ 4966 conftest$ac_exeext conftest.$ac_ext 4967fi 4968 4969 4970 CFLAGS="$xorg_testset_save_CFLAGS" 4971 4972 eval supported=\$$cacheid 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4974$as_echo "$supported" >&6; } 4975 if test "$supported" = "yes" ; then 4976 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4977 found="yes" 4978 fi 4979 fi 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997xorg_testset_save_CFLAGS="$CFLAGS" 4998 4999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008int i; 5009_ACEOF 5010if ac_fn_c_try_compile "$LINENO"; then : 5011 xorg_cv_cc_flag_unknown_warning_option=yes 5012else 5013 xorg_cv_cc_flag_unknown_warning_option=no 5014fi 5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016fi 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5020 CFLAGS="$xorg_testset_save_CFLAGS" 5021fi 5022 5023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026 fi 5027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035int i; 5036_ACEOF 5037if ac_fn_c_try_compile "$LINENO"; then : 5038 xorg_cv_cc_flag_unused_command_line_argument=yes 5039else 5040 xorg_cv_cc_flag_unused_command_line_argument=no 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5047 CFLAGS="$xorg_testset_save_CFLAGS" 5048fi 5049 5050found="no" 5051 5052 if test $found = "no" ; then 5053 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5055 fi 5056 5057 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 fi 5060 5061 CFLAGS="$CFLAGS -Wstrict-prototypes" 5062 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5064$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5065 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5066 if eval \${$cacheid+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071int i; 5072int 5073main () 5074{ 5075 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080if ac_fn_c_try_link "$LINENO"; then : 5081 eval $cacheid=yes 5082else 5083 eval $cacheid=no 5084fi 5085rm -f core conftest.err conftest.$ac_objext \ 5086 conftest$ac_exeext conftest.$ac_ext 5087fi 5088 5089 5090 CFLAGS="$xorg_testset_save_CFLAGS" 5091 5092 eval supported=\$$cacheid 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5094$as_echo "$supported" >&6; } 5095 if test "$supported" = "yes" ; then 5096 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5097 found="yes" 5098 fi 5099 fi 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115xorg_testset_save_CFLAGS="$CFLAGS" 5116 5117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5125/* end confdefs.h. */ 5126int i; 5127_ACEOF 5128if ac_fn_c_try_compile "$LINENO"; then : 5129 xorg_cv_cc_flag_unknown_warning_option=yes 5130else 5131 xorg_cv_cc_flag_unknown_warning_option=no 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5138 CFLAGS="$xorg_testset_save_CFLAGS" 5139fi 5140 5141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5144 fi 5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153int i; 5154_ACEOF 5155if ac_fn_c_try_compile "$LINENO"; then : 5156 xorg_cv_cc_flag_unused_command_line_argument=yes 5157else 5158 xorg_cv_cc_flag_unused_command_line_argument=no 5159fi 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161fi 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5165 CFLAGS="$xorg_testset_save_CFLAGS" 5166fi 5167 5168found="no" 5169 5170 if test $found = "no" ; then 5171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5173 fi 5174 5175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 fi 5178 5179 CFLAGS="$CFLAGS -Wmissing-prototypes" 5180 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5182$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5183 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5184 if eval \${$cacheid+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186else 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189int i; 5190int 5191main () 5192{ 5193 5194 ; 5195 return 0; 5196} 5197_ACEOF 5198if ac_fn_c_try_link "$LINENO"; then : 5199 eval $cacheid=yes 5200else 5201 eval $cacheid=no 5202fi 5203rm -f core conftest.err conftest.$ac_objext \ 5204 conftest$ac_exeext conftest.$ac_ext 5205fi 5206 5207 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209 5210 eval supported=\$$cacheid 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5212$as_echo "$supported" >&6; } 5213 if test "$supported" = "yes" ; then 5214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5215 found="yes" 5216 fi 5217 fi 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233xorg_testset_save_CFLAGS="$CFLAGS" 5234 5235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5240 $as_echo_n "(cached) " >&6 5241else 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244int i; 5245_ACEOF 5246if ac_fn_c_try_compile "$LINENO"; then : 5247 xorg_cv_cc_flag_unknown_warning_option=yes 5248else 5249 xorg_cv_cc_flag_unknown_warning_option=no 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5256 CFLAGS="$xorg_testset_save_CFLAGS" 5257fi 5258 5259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 fi 5263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270/* end confdefs.h. */ 5271int i; 5272_ACEOF 5273if ac_fn_c_try_compile "$LINENO"; then : 5274 xorg_cv_cc_flag_unused_command_line_argument=yes 5275else 5276 xorg_cv_cc_flag_unused_command_line_argument=no 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5283 CFLAGS="$xorg_testset_save_CFLAGS" 5284fi 5285 5286found="no" 5287 5288 if test $found = "no" ; then 5289 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5291 fi 5292 5293 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5295 fi 5296 5297 CFLAGS="$CFLAGS -Wnested-externs" 5298 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5300$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5301 cacheid=xorg_cv_cc_flag__Wnested_externs 5302 if eval \${$cacheid+:} false; then : 5303 $as_echo_n "(cached) " >&6 5304else 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306/* end confdefs.h. */ 5307int i; 5308int 5309main () 5310{ 5311 5312 ; 5313 return 0; 5314} 5315_ACEOF 5316if ac_fn_c_try_link "$LINENO"; then : 5317 eval $cacheid=yes 5318else 5319 eval $cacheid=no 5320fi 5321rm -f core conftest.err conftest.$ac_objext \ 5322 conftest$ac_exeext conftest.$ac_ext 5323fi 5324 5325 5326 CFLAGS="$xorg_testset_save_CFLAGS" 5327 5328 eval supported=\$$cacheid 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5330$as_echo "$supported" >&6; } 5331 if test "$supported" = "yes" ; then 5332 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5333 found="yes" 5334 fi 5335 fi 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351xorg_testset_save_CFLAGS="$CFLAGS" 5352 5353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5361/* end confdefs.h. */ 5362int i; 5363_ACEOF 5364if ac_fn_c_try_compile "$LINENO"; then : 5365 xorg_cv_cc_flag_unknown_warning_option=yes 5366else 5367 xorg_cv_cc_flag_unknown_warning_option=no 5368fi 5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5370fi 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5374 CFLAGS="$xorg_testset_save_CFLAGS" 5375fi 5376 5377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5380 fi 5381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390_ACEOF 5391if ac_fn_c_try_compile "$LINENO"; then : 5392 xorg_cv_cc_flag_unused_command_line_argument=yes 5393else 5394 xorg_cv_cc_flag_unused_command_line_argument=no 5395fi 5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5397fi 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5401 CFLAGS="$xorg_testset_save_CFLAGS" 5402fi 5403 5404found="no" 5405 5406 if test $found = "no" ; then 5407 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 fi 5410 5411 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5413 fi 5414 5415 CFLAGS="$CFLAGS -Wbad-function-cast" 5416 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5418$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5419 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5420 if eval \${$cacheid+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425int i; 5426int 5427main () 5428{ 5429 5430 ; 5431 return 0; 5432} 5433_ACEOF 5434if ac_fn_c_try_link "$LINENO"; then : 5435 eval $cacheid=yes 5436else 5437 eval $cacheid=no 5438fi 5439rm -f core conftest.err conftest.$ac_objext \ 5440 conftest$ac_exeext conftest.$ac_ext 5441fi 5442 5443 5444 CFLAGS="$xorg_testset_save_CFLAGS" 5445 5446 eval supported=\$$cacheid 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5448$as_echo "$supported" >&6; } 5449 if test "$supported" = "yes" ; then 5450 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5451 found="yes" 5452 fi 5453 fi 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469xorg_testset_save_CFLAGS="$CFLAGS" 5470 5471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480int i; 5481_ACEOF 5482if ac_fn_c_try_compile "$LINENO"; then : 5483 xorg_cv_cc_flag_unknown_warning_option=yes 5484else 5485 xorg_cv_cc_flag_unknown_warning_option=no 5486fi 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488fi 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5492 CFLAGS="$xorg_testset_save_CFLAGS" 5493fi 5494 5495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5498 fi 5499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508_ACEOF 5509if ac_fn_c_try_compile "$LINENO"; then : 5510 xorg_cv_cc_flag_unused_command_line_argument=yes 5511else 5512 xorg_cv_cc_flag_unused_command_line_argument=no 5513fi 5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5515fi 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5519 CFLAGS="$xorg_testset_save_CFLAGS" 5520fi 5521 5522found="no" 5523 5524 if test $found = "no" ; then 5525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 fi 5528 5529 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5531 fi 5532 5533 CFLAGS="$CFLAGS -Wold-style-definition" 5534 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5536$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5537 cacheid=xorg_cv_cc_flag__Wold_style_definition 5538 if eval \${$cacheid+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543int i; 5544int 5545main () 5546{ 5547 5548 ; 5549 return 0; 5550} 5551_ACEOF 5552if ac_fn_c_try_link "$LINENO"; then : 5553 eval $cacheid=yes 5554else 5555 eval $cacheid=no 5556fi 5557rm -f core conftest.err conftest.$ac_objext \ 5558 conftest$ac_exeext conftest.$ac_ext 5559fi 5560 5561 5562 CFLAGS="$xorg_testset_save_CFLAGS" 5563 5564 eval supported=\$$cacheid 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5566$as_echo "$supported" >&6; } 5567 if test "$supported" = "yes" ; then 5568 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5569 found="yes" 5570 fi 5571 fi 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587xorg_testset_save_CFLAGS="$CFLAGS" 5588 5589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598int i; 5599_ACEOF 5600if ac_fn_c_try_compile "$LINENO"; then : 5601 xorg_cv_cc_flag_unknown_warning_option=yes 5602else 5603 xorg_cv_cc_flag_unknown_warning_option=no 5604fi 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611fi 5612 5613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 fi 5617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625int i; 5626_ACEOF 5627if ac_fn_c_try_compile "$LINENO"; then : 5628 xorg_cv_cc_flag_unused_command_line_argument=yes 5629else 5630 xorg_cv_cc_flag_unused_command_line_argument=no 5631fi 5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5633fi 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638fi 5639 5640found="no" 5641 5642 if test $found = "no" ; then 5643 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 fi 5646 5647 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 fi 5650 5651 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5652 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5654$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5655 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5656 if eval \${$cacheid+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662int 5663main () 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670if ac_fn_c_try_link "$LINENO"; then : 5671 eval $cacheid=yes 5672else 5673 eval $cacheid=no 5674fi 5675rm -f core conftest.err conftest.$ac_objext \ 5676 conftest$ac_exeext conftest.$ac_ext 5677fi 5678 5679 5680 CFLAGS="$xorg_testset_save_CFLAGS" 5681 5682 eval supported=\$$cacheid 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5684$as_echo "$supported" >&6; } 5685 if test "$supported" = "yes" ; then 5686 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5687 found="yes" 5688 fi 5689 fi 5690 5691 5692 5693 5694 5695# This chunk adds additional warnings that could catch undesired effects. 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709xorg_testset_save_CFLAGS="$CFLAGS" 5710 5711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5719/* end confdefs.h. */ 5720int i; 5721_ACEOF 5722if ac_fn_c_try_compile "$LINENO"; then : 5723 xorg_cv_cc_flag_unknown_warning_option=yes 5724else 5725 xorg_cv_cc_flag_unknown_warning_option=no 5726fi 5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5728fi 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5732 CFLAGS="$xorg_testset_save_CFLAGS" 5733fi 5734 5735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5738 fi 5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747int i; 5748_ACEOF 5749if ac_fn_c_try_compile "$LINENO"; then : 5750 xorg_cv_cc_flag_unused_command_line_argument=yes 5751else 5752 xorg_cv_cc_flag_unused_command_line_argument=no 5753fi 5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5755fi 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760fi 5761 5762found="no" 5763 5764 if test $found = "no" ; then 5765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5767 fi 5768 5769 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5771 fi 5772 5773 CFLAGS="$CFLAGS -Wunused" 5774 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5776$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5777 cacheid=xorg_cv_cc_flag__Wunused 5778 if eval \${$cacheid+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5782/* end confdefs.h. */ 5783int i; 5784int 5785main () 5786{ 5787 5788 ; 5789 return 0; 5790} 5791_ACEOF 5792if ac_fn_c_try_link "$LINENO"; then : 5793 eval $cacheid=yes 5794else 5795 eval $cacheid=no 5796fi 5797rm -f core conftest.err conftest.$ac_objext \ 5798 conftest$ac_exeext conftest.$ac_ext 5799fi 5800 5801 5802 CFLAGS="$xorg_testset_save_CFLAGS" 5803 5804 eval supported=\$$cacheid 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5806$as_echo "$supported" >&6; } 5807 if test "$supported" = "yes" ; then 5808 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5809 found="yes" 5810 fi 5811 fi 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827xorg_testset_save_CFLAGS="$CFLAGS" 5828 5829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838int i; 5839_ACEOF 5840if ac_fn_c_try_compile "$LINENO"; then : 5841 xorg_cv_cc_flag_unknown_warning_option=yes 5842else 5843 xorg_cv_cc_flag_unknown_warning_option=no 5844fi 5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5846fi 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5850 CFLAGS="$xorg_testset_save_CFLAGS" 5851fi 5852 5853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5856 fi 5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862else 5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5864/* end confdefs.h. */ 5865int i; 5866_ACEOF 5867if ac_fn_c_try_compile "$LINENO"; then : 5868 xorg_cv_cc_flag_unused_command_line_argument=yes 5869else 5870 xorg_cv_cc_flag_unused_command_line_argument=no 5871fi 5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5873fi 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5877 CFLAGS="$xorg_testset_save_CFLAGS" 5878fi 5879 5880found="no" 5881 5882 if test $found = "no" ; then 5883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5885 fi 5886 5887 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5889 fi 5890 5891 CFLAGS="$CFLAGS -Wuninitialized" 5892 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5894$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5895 cacheid=xorg_cv_cc_flag__Wuninitialized 5896 if eval \${$cacheid+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900/* end confdefs.h. */ 5901int i; 5902int 5903main () 5904{ 5905 5906 ; 5907 return 0; 5908} 5909_ACEOF 5910if ac_fn_c_try_link "$LINENO"; then : 5911 eval $cacheid=yes 5912else 5913 eval $cacheid=no 5914fi 5915rm -f core conftest.err conftest.$ac_objext \ 5916 conftest$ac_exeext conftest.$ac_ext 5917fi 5918 5919 5920 CFLAGS="$xorg_testset_save_CFLAGS" 5921 5922 eval supported=\$$cacheid 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5924$as_echo "$supported" >&6; } 5925 if test "$supported" = "yes" ; then 5926 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5927 found="yes" 5928 fi 5929 fi 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945xorg_testset_save_CFLAGS="$CFLAGS" 5946 5947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5955/* end confdefs.h. */ 5956int i; 5957_ACEOF 5958if ac_fn_c_try_compile "$LINENO"; then : 5959 xorg_cv_cc_flag_unknown_warning_option=yes 5960else 5961 xorg_cv_cc_flag_unknown_warning_option=no 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5964fi 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969fi 5970 5971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 fi 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5982/* end confdefs.h. */ 5983int i; 5984_ACEOF 5985if ac_fn_c_try_compile "$LINENO"; then : 5986 xorg_cv_cc_flag_unused_command_line_argument=yes 5987else 5988 xorg_cv_cc_flag_unused_command_line_argument=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996fi 5997 5998found="no" 5999 6000 if test $found = "no" ; then 6001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6003 fi 6004 6005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 fi 6008 6009 CFLAGS="$CFLAGS -Wshadow" 6010 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6012$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6013 cacheid=xorg_cv_cc_flag__Wshadow 6014 if eval \${$cacheid+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020int 6021main () 6022{ 6023 6024 ; 6025 return 0; 6026} 6027_ACEOF 6028if ac_fn_c_try_link "$LINENO"; then : 6029 eval $cacheid=yes 6030else 6031 eval $cacheid=no 6032fi 6033rm -f core conftest.err conftest.$ac_objext \ 6034 conftest$ac_exeext conftest.$ac_ext 6035fi 6036 6037 6038 CFLAGS="$xorg_testset_save_CFLAGS" 6039 6040 eval supported=\$$cacheid 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6042$as_echo "$supported" >&6; } 6043 if test "$supported" = "yes" ; then 6044 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6045 found="yes" 6046 fi 6047 fi 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063xorg_testset_save_CFLAGS="$CFLAGS" 6064 6065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073/* end confdefs.h. */ 6074int i; 6075_ACEOF 6076if ac_fn_c_try_compile "$LINENO"; then : 6077 xorg_cv_cc_flag_unknown_warning_option=yes 6078else 6079 xorg_cv_cc_flag_unknown_warning_option=no 6080fi 6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6082fi 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6086 CFLAGS="$xorg_testset_save_CFLAGS" 6087fi 6088 6089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6092 fi 6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6100/* end confdefs.h. */ 6101int i; 6102_ACEOF 6103if ac_fn_c_try_compile "$LINENO"; then : 6104 xorg_cv_cc_flag_unused_command_line_argument=yes 6105else 6106 xorg_cv_cc_flag_unused_command_line_argument=no 6107fi 6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109fi 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114fi 6115 6116found="no" 6117 6118 if test $found = "no" ; then 6119 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 fi 6122 6123 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 fi 6126 6127 CFLAGS="$CFLAGS -Wcast-qual" 6128 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6130$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6131 cacheid=xorg_cv_cc_flag__Wcast_qual 6132 if eval \${$cacheid+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6136/* end confdefs.h. */ 6137int i; 6138int 6139main () 6140{ 6141 6142 ; 6143 return 0; 6144} 6145_ACEOF 6146if ac_fn_c_try_link "$LINENO"; then : 6147 eval $cacheid=yes 6148else 6149 eval $cacheid=no 6150fi 6151rm -f core conftest.err conftest.$ac_objext \ 6152 conftest$ac_exeext conftest.$ac_ext 6153fi 6154 6155 6156 CFLAGS="$xorg_testset_save_CFLAGS" 6157 6158 eval supported=\$$cacheid 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6160$as_echo "$supported" >&6; } 6161 if test "$supported" = "yes" ; then 6162 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6163 found="yes" 6164 fi 6165 fi 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181xorg_testset_save_CFLAGS="$CFLAGS" 6182 6183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192int i; 6193_ACEOF 6194if ac_fn_c_try_compile "$LINENO"; then : 6195 xorg_cv_cc_flag_unknown_warning_option=yes 6196else 6197 xorg_cv_cc_flag_unknown_warning_option=no 6198fi 6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6200fi 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6204 CFLAGS="$xorg_testset_save_CFLAGS" 6205fi 6206 6207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 fi 6211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6218/* end confdefs.h. */ 6219int i; 6220_ACEOF 6221if ac_fn_c_try_compile "$LINENO"; then : 6222 xorg_cv_cc_flag_unused_command_line_argument=yes 6223else 6224 xorg_cv_cc_flag_unused_command_line_argument=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6227fi 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232fi 6233 6234found="no" 6235 6236 if test $found = "no" ; then 6237 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6239 fi 6240 6241 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6243 fi 6244 6245 CFLAGS="$CFLAGS -Wmissing-noreturn" 6246 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6248$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6249 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6250 if eval \${$cacheid+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256int 6257main () 6258{ 6259 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264if ac_fn_c_try_link "$LINENO"; then : 6265 eval $cacheid=yes 6266else 6267 eval $cacheid=no 6268fi 6269rm -f core conftest.err conftest.$ac_objext \ 6270 conftest$ac_exeext conftest.$ac_ext 6271fi 6272 6273 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275 6276 eval supported=\$$cacheid 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6278$as_echo "$supported" >&6; } 6279 if test "$supported" = "yes" ; then 6280 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6281 found="yes" 6282 fi 6283 fi 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299xorg_testset_save_CFLAGS="$CFLAGS" 6300 6301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311_ACEOF 6312if ac_fn_c_try_compile "$LINENO"; then : 6313 xorg_cv_cc_flag_unknown_warning_option=yes 6314else 6315 xorg_cv_cc_flag_unknown_warning_option=no 6316fi 6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6318fi 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6322 CFLAGS="$xorg_testset_save_CFLAGS" 6323fi 6324 6325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 fi 6329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337int i; 6338_ACEOF 6339if ac_fn_c_try_compile "$LINENO"; then : 6340 xorg_cv_cc_flag_unused_command_line_argument=yes 6341else 6342 xorg_cv_cc_flag_unused_command_line_argument=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6345fi 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350fi 6351 6352found="no" 6353 6354 if test $found = "no" ; then 6355 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 6359 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 fi 6362 6363 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6364 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6366$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6367 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6368 if eval \${$cacheid+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6372/* end confdefs.h. */ 6373int i; 6374int 6375main () 6376{ 6377 6378 ; 6379 return 0; 6380} 6381_ACEOF 6382if ac_fn_c_try_link "$LINENO"; then : 6383 eval $cacheid=yes 6384else 6385 eval $cacheid=no 6386fi 6387rm -f core conftest.err conftest.$ac_objext \ 6388 conftest$ac_exeext conftest.$ac_ext 6389fi 6390 6391 6392 CFLAGS="$xorg_testset_save_CFLAGS" 6393 6394 eval supported=\$$cacheid 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6396$as_echo "$supported" >&6; } 6397 if test "$supported" = "yes" ; then 6398 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6399 found="yes" 6400 fi 6401 fi 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417xorg_testset_save_CFLAGS="$CFLAGS" 6418 6419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428int i; 6429_ACEOF 6430if ac_fn_c_try_compile "$LINENO"; then : 6431 xorg_cv_cc_flag_unknown_warning_option=yes 6432else 6433 xorg_cv_cc_flag_unknown_warning_option=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6436fi 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6440 CFLAGS="$xorg_testset_save_CFLAGS" 6441fi 6442 6443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 fi 6447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455int i; 6456_ACEOF 6457if ac_fn_c_try_compile "$LINENO"; then : 6458 xorg_cv_cc_flag_unused_command_line_argument=yes 6459else 6460 xorg_cv_cc_flag_unused_command_line_argument=no 6461fi 6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6467 CFLAGS="$xorg_testset_save_CFLAGS" 6468fi 6469 6470found="no" 6471 6472 if test $found = "no" ; then 6473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6475 fi 6476 6477 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6479 fi 6480 6481 CFLAGS="$CFLAGS -Wredundant-decls" 6482 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6484$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6485 cacheid=xorg_cv_cc_flag__Wredundant_decls 6486 if eval \${$cacheid+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491int i; 6492int 6493main () 6494{ 6495 6496 ; 6497 return 0; 6498} 6499_ACEOF 6500if ac_fn_c_try_link "$LINENO"; then : 6501 eval $cacheid=yes 6502else 6503 eval $cacheid=no 6504fi 6505rm -f core conftest.err conftest.$ac_objext \ 6506 conftest$ac_exeext conftest.$ac_ext 6507fi 6508 6509 6510 CFLAGS="$xorg_testset_save_CFLAGS" 6511 6512 eval supported=\$$cacheid 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6514$as_echo "$supported" >&6; } 6515 if test "$supported" = "yes" ; then 6516 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6517 found="yes" 6518 fi 6519 fi 6520 6521 6522 6523# These are currently disabled because they are noisy. They will be enabled 6524# in the future once the codebase is sufficiently modernized to silence 6525# them. For now, I don't want them to drown out the other warnings. 6526# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6527# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6528# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6529 6530# Turn some warnings into errors, so we don't accidently get successful builds 6531# when there are problems that should be fixed. 6532 6533if test "x$SELECTIVE_WERROR" = "xyes" ; then 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547xorg_testset_save_CFLAGS="$CFLAGS" 6548 6549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6557/* end confdefs.h. */ 6558int i; 6559_ACEOF 6560if ac_fn_c_try_compile "$LINENO"; then : 6561 xorg_cv_cc_flag_unknown_warning_option=yes 6562else 6563 xorg_cv_cc_flag_unknown_warning_option=no 6564fi 6565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6566fi 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6570 CFLAGS="$xorg_testset_save_CFLAGS" 6571fi 6572 6573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6576 fi 6577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586_ACEOF 6587if ac_fn_c_try_compile "$LINENO"; then : 6588 xorg_cv_cc_flag_unused_command_line_argument=yes 6589else 6590 xorg_cv_cc_flag_unused_command_line_argument=no 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6593fi 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6597 CFLAGS="$xorg_testset_save_CFLAGS" 6598fi 6599 6600found="no" 6601 6602 if test $found = "no" ; then 6603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 fi 6606 6607 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6609 fi 6610 6611 CFLAGS="$CFLAGS -Werror=implicit" 6612 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6614$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6615 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6616 if eval \${$cacheid+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618else 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620/* end confdefs.h. */ 6621int i; 6622int 6623main () 6624{ 6625 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_c_try_link "$LINENO"; then : 6631 eval $cacheid=yes 6632else 6633 eval $cacheid=no 6634fi 6635rm -f core conftest.err conftest.$ac_objext \ 6636 conftest$ac_exeext conftest.$ac_ext 6637fi 6638 6639 6640 CFLAGS="$xorg_testset_save_CFLAGS" 6641 6642 eval supported=\$$cacheid 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6644$as_echo "$supported" >&6; } 6645 if test "$supported" = "yes" ; then 6646 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6647 found="yes" 6648 fi 6649 fi 6650 6651 if test $found = "no" ; then 6652 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 fi 6655 6656 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6658 fi 6659 6660 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6661 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6663$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6664 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6665 if eval \${$cacheid+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671int 6672main () 6673{ 6674 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_c_try_link "$LINENO"; then : 6680 eval $cacheid=yes 6681else 6682 eval $cacheid=no 6683fi 6684rm -f core conftest.err conftest.$ac_objext \ 6685 conftest$ac_exeext conftest.$ac_ext 6686fi 6687 6688 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690 6691 eval supported=\$$cacheid 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6693$as_echo "$supported" >&6; } 6694 if test "$supported" = "yes" ; then 6695 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6696 found="yes" 6697 fi 6698 fi 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714xorg_testset_save_CFLAGS="$CFLAGS" 6715 6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6724/* end confdefs.h. */ 6725int i; 6726_ACEOF 6727if ac_fn_c_try_compile "$LINENO"; then : 6728 xorg_cv_cc_flag_unknown_warning_option=yes 6729else 6730 xorg_cv_cc_flag_unknown_warning_option=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6733fi 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738fi 6739 6740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 fi 6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752int i; 6753_ACEOF 6754if ac_fn_c_try_compile "$LINENO"; then : 6755 xorg_cv_cc_flag_unused_command_line_argument=yes 6756else 6757 xorg_cv_cc_flag_unused_command_line_argument=no 6758fi 6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6760fi 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6764 CFLAGS="$xorg_testset_save_CFLAGS" 6765fi 6766 6767found="no" 6768 6769 if test $found = "no" ; then 6770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 fi 6773 6774 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6776 fi 6777 6778 CFLAGS="$CFLAGS -Werror=nonnull" 6779 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6781$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6782 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6783 if eval \${$cacheid+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787/* end confdefs.h. */ 6788int i; 6789int 6790main () 6791{ 6792 6793 ; 6794 return 0; 6795} 6796_ACEOF 6797if ac_fn_c_try_link "$LINENO"; then : 6798 eval $cacheid=yes 6799else 6800 eval $cacheid=no 6801fi 6802rm -f core conftest.err conftest.$ac_objext \ 6803 conftest$ac_exeext conftest.$ac_ext 6804fi 6805 6806 6807 CFLAGS="$xorg_testset_save_CFLAGS" 6808 6809 eval supported=\$$cacheid 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6811$as_echo "$supported" >&6; } 6812 if test "$supported" = "yes" ; then 6813 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6814 found="yes" 6815 fi 6816 fi 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832xorg_testset_save_CFLAGS="$CFLAGS" 6833 6834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843int i; 6844_ACEOF 6845if ac_fn_c_try_compile "$LINENO"; then : 6846 xorg_cv_cc_flag_unknown_warning_option=yes 6847else 6848 xorg_cv_cc_flag_unknown_warning_option=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856fi 6857 6858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 fi 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870int i; 6871_ACEOF 6872if ac_fn_c_try_compile "$LINENO"; then : 6873 xorg_cv_cc_flag_unused_command_line_argument=yes 6874else 6875 xorg_cv_cc_flag_unused_command_line_argument=no 6876fi 6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6878fi 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883fi 6884 6885found="no" 6886 6887 if test $found = "no" ; then 6888 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 fi 6891 6892 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 fi 6895 6896 CFLAGS="$CFLAGS -Werror=init-self" 6897 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6899$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6900 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6901 if eval \${$cacheid+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907int 6908main () 6909{ 6910 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915if ac_fn_c_try_link "$LINENO"; then : 6916 eval $cacheid=yes 6917else 6918 eval $cacheid=no 6919fi 6920rm -f core conftest.err conftest.$ac_objext \ 6921 conftest$ac_exeext conftest.$ac_ext 6922fi 6923 6924 6925 CFLAGS="$xorg_testset_save_CFLAGS" 6926 6927 eval supported=\$$cacheid 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6929$as_echo "$supported" >&6; } 6930 if test "$supported" = "yes" ; then 6931 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6932 found="yes" 6933 fi 6934 fi 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950xorg_testset_save_CFLAGS="$CFLAGS" 6951 6952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962_ACEOF 6963if ac_fn_c_try_compile "$LINENO"; then : 6964 xorg_cv_cc_flag_unknown_warning_option=yes 6965else 6966 xorg_cv_cc_flag_unknown_warning_option=no 6967fi 6968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974fi 6975 6976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 fi 6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988int i; 6989_ACEOF 6990if ac_fn_c_try_compile "$LINENO"; then : 6991 xorg_cv_cc_flag_unused_command_line_argument=yes 6992else 6993 xorg_cv_cc_flag_unused_command_line_argument=no 6994fi 6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6996fi 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7000 CFLAGS="$xorg_testset_save_CFLAGS" 7001fi 7002 7003found="no" 7004 7005 if test $found = "no" ; then 7006 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008 fi 7009 7010 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 fi 7013 7014 CFLAGS="$CFLAGS -Werror=main" 7015 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7017$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7018 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7019 if eval \${$cacheid+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025int 7026main () 7027{ 7028 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033if ac_fn_c_try_link "$LINENO"; then : 7034 eval $cacheid=yes 7035else 7036 eval $cacheid=no 7037fi 7038rm -f core conftest.err conftest.$ac_objext \ 7039 conftest$ac_exeext conftest.$ac_ext 7040fi 7041 7042 7043 CFLAGS="$xorg_testset_save_CFLAGS" 7044 7045 eval supported=\$$cacheid 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7047$as_echo "$supported" >&6; } 7048 if test "$supported" = "yes" ; then 7049 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7050 found="yes" 7051 fi 7052 fi 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068xorg_testset_save_CFLAGS="$CFLAGS" 7069 7070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076else 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO"; then : 7082 xorg_cv_cc_flag_unknown_warning_option=yes 7083else 7084 xorg_cv_cc_flag_unknown_warning_option=no 7085fi 7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7087fi 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092fi 7093 7094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7097 fi 7098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7105/* end confdefs.h. */ 7106int i; 7107_ACEOF 7108if ac_fn_c_try_compile "$LINENO"; then : 7109 xorg_cv_cc_flag_unused_command_line_argument=yes 7110else 7111 xorg_cv_cc_flag_unused_command_line_argument=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119fi 7120 7121found="no" 7122 7123 if test $found = "no" ; then 7124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7126 fi 7127 7128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7130 fi 7131 7132 CFLAGS="$CFLAGS -Werror=missing-braces" 7133 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7135$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7136 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7137 if eval \${$cacheid+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7141/* end confdefs.h. */ 7142int i; 7143int 7144main () 7145{ 7146 7147 ; 7148 return 0; 7149} 7150_ACEOF 7151if ac_fn_c_try_link "$LINENO"; then : 7152 eval $cacheid=yes 7153else 7154 eval $cacheid=no 7155fi 7156rm -f core conftest.err conftest.$ac_objext \ 7157 conftest$ac_exeext conftest.$ac_ext 7158fi 7159 7160 7161 CFLAGS="$xorg_testset_save_CFLAGS" 7162 7163 eval supported=\$$cacheid 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7165$as_echo "$supported" >&6; } 7166 if test "$supported" = "yes" ; then 7167 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7168 found="yes" 7169 fi 7170 fi 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186xorg_testset_save_CFLAGS="$CFLAGS" 7187 7188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197int i; 7198_ACEOF 7199if ac_fn_c_try_compile "$LINENO"; then : 7200 xorg_cv_cc_flag_unknown_warning_option=yes 7201else 7202 xorg_cv_cc_flag_unknown_warning_option=no 7203fi 7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7205fi 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7209 CFLAGS="$xorg_testset_save_CFLAGS" 7210fi 7211 7212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 fi 7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224int i; 7225_ACEOF 7226if ac_fn_c_try_compile "$LINENO"; then : 7227 xorg_cv_cc_flag_unused_command_line_argument=yes 7228else 7229 xorg_cv_cc_flag_unused_command_line_argument=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7232fi 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237fi 7238 7239found="no" 7240 7241 if test $found = "no" ; then 7242 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7244 fi 7245 7246 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7248 fi 7249 7250 CFLAGS="$CFLAGS -Werror=sequence-point" 7251 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7253$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7254 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7255 if eval \${$cacheid+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259/* end confdefs.h. */ 7260int i; 7261int 7262main () 7263{ 7264 7265 ; 7266 return 0; 7267} 7268_ACEOF 7269if ac_fn_c_try_link "$LINENO"; then : 7270 eval $cacheid=yes 7271else 7272 eval $cacheid=no 7273fi 7274rm -f core conftest.err conftest.$ac_objext \ 7275 conftest$ac_exeext conftest.$ac_ext 7276fi 7277 7278 7279 CFLAGS="$xorg_testset_save_CFLAGS" 7280 7281 eval supported=\$$cacheid 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7283$as_echo "$supported" >&6; } 7284 if test "$supported" = "yes" ; then 7285 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7286 found="yes" 7287 fi 7288 fi 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304xorg_testset_save_CFLAGS="$CFLAGS" 7305 7306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7311 $as_echo_n "(cached) " >&6 7312else 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315int i; 7316_ACEOF 7317if ac_fn_c_try_compile "$LINENO"; then : 7318 xorg_cv_cc_flag_unknown_warning_option=yes 7319else 7320 xorg_cv_cc_flag_unknown_warning_option=no 7321fi 7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7327 CFLAGS="$xorg_testset_save_CFLAGS" 7328fi 7329 7330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7333 fi 7334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7341/* end confdefs.h. */ 7342int i; 7343_ACEOF 7344if ac_fn_c_try_compile "$LINENO"; then : 7345 xorg_cv_cc_flag_unused_command_line_argument=yes 7346else 7347 xorg_cv_cc_flag_unused_command_line_argument=no 7348fi 7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7350fi 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355fi 7356 7357found="no" 7358 7359 if test $found = "no" ; then 7360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7362 fi 7363 7364 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7366 fi 7367 7368 CFLAGS="$CFLAGS -Werror=return-type" 7369 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7371$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7372 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7373 if eval \${$cacheid+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378int i; 7379int 7380main () 7381{ 7382 7383 ; 7384 return 0; 7385} 7386_ACEOF 7387if ac_fn_c_try_link "$LINENO"; then : 7388 eval $cacheid=yes 7389else 7390 eval $cacheid=no 7391fi 7392rm -f core conftest.err conftest.$ac_objext \ 7393 conftest$ac_exeext conftest.$ac_ext 7394fi 7395 7396 7397 CFLAGS="$xorg_testset_save_CFLAGS" 7398 7399 eval supported=\$$cacheid 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7401$as_echo "$supported" >&6; } 7402 if test "$supported" = "yes" ; then 7403 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7404 found="yes" 7405 fi 7406 fi 7407 7408 if test $found = "no" ; then 7409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7411 fi 7412 7413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7415 fi 7416 7417 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7418 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7420$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7421 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7422 if eval \${$cacheid+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428int 7429main () 7430{ 7431 7432 ; 7433 return 0; 7434} 7435_ACEOF 7436if ac_fn_c_try_link "$LINENO"; then : 7437 eval $cacheid=yes 7438else 7439 eval $cacheid=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext \ 7442 conftest$ac_exeext conftest.$ac_ext 7443fi 7444 7445 7446 CFLAGS="$xorg_testset_save_CFLAGS" 7447 7448 eval supported=\$$cacheid 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7450$as_echo "$supported" >&6; } 7451 if test "$supported" = "yes" ; then 7452 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7453 found="yes" 7454 fi 7455 fi 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471xorg_testset_save_CFLAGS="$CFLAGS" 7472 7473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482int i; 7483_ACEOF 7484if ac_fn_c_try_compile "$LINENO"; then : 7485 xorg_cv_cc_flag_unknown_warning_option=yes 7486else 7487 xorg_cv_cc_flag_unknown_warning_option=no 7488fi 7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7500 fi 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO"; then : 7512 xorg_cv_cc_flag_unused_command_line_argument=yes 7513else 7514 xorg_cv_cc_flag_unused_command_line_argument=no 7515fi 7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7517fi 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7521 CFLAGS="$xorg_testset_save_CFLAGS" 7522fi 7523 7524found="no" 7525 7526 if test $found = "no" ; then 7527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 fi 7530 7531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7533 fi 7534 7535 CFLAGS="$CFLAGS -Werror=trigraphs" 7536 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7538$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7539 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7540 if eval \${$cacheid+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546int 7547main () 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_link "$LINENO"; then : 7555 eval $cacheid=yes 7556else 7557 eval $cacheid=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext \ 7560 conftest$ac_exeext conftest.$ac_ext 7561fi 7562 7563 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 7566 eval supported=\$$cacheid 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7568$as_echo "$supported" >&6; } 7569 if test "$supported" = "yes" ; then 7570 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7571 found="yes" 7572 fi 7573 fi 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589xorg_testset_save_CFLAGS="$CFLAGS" 7590 7591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO"; then : 7603 xorg_cv_cc_flag_unknown_warning_option=yes 7604else 7605 xorg_cv_cc_flag_unknown_warning_option=no 7606fi 7607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613fi 7614 7615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 fi 7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627int i; 7628_ACEOF 7629if ac_fn_c_try_compile "$LINENO"; then : 7630 xorg_cv_cc_flag_unused_command_line_argument=yes 7631else 7632 xorg_cv_cc_flag_unused_command_line_argument=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7635fi 7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640fi 7641 7642found="no" 7643 7644 if test $found = "no" ; then 7645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7647 fi 7648 7649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 fi 7652 7653 CFLAGS="$CFLAGS -Werror=array-bounds" 7654 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7656$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7657 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7658 if eval \${$cacheid+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664int 7665main () 7666{ 7667 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672if ac_fn_c_try_link "$LINENO"; then : 7673 eval $cacheid=yes 7674else 7675 eval $cacheid=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679fi 7680 7681 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683 7684 eval supported=\$$cacheid 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7686$as_echo "$supported" >&6; } 7687 if test "$supported" = "yes" ; then 7688 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7689 found="yes" 7690 fi 7691 fi 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707xorg_testset_save_CFLAGS="$CFLAGS" 7708 7709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO"; then : 7721 xorg_cv_cc_flag_unknown_warning_option=yes 7722else 7723 xorg_cv_cc_flag_unknown_warning_option=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731fi 7732 7733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7736 fi 7737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745int i; 7746_ACEOF 7747if ac_fn_c_try_compile "$LINENO"; then : 7748 xorg_cv_cc_flag_unused_command_line_argument=yes 7749else 7750 xorg_cv_cc_flag_unused_command_line_argument=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7753fi 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758fi 7759 7760found="no" 7761 7762 if test $found = "no" ; then 7763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7765 fi 7766 7767 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7769 fi 7770 7771 CFLAGS="$CFLAGS -Werror=write-strings" 7772 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7774$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7775 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7776 if eval \${$cacheid+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782int 7783main () 7784{ 7785 7786 ; 7787 return 0; 7788} 7789_ACEOF 7790if ac_fn_c_try_link "$LINENO"; then : 7791 eval $cacheid=yes 7792else 7793 eval $cacheid=no 7794fi 7795rm -f core conftest.err conftest.$ac_objext \ 7796 conftest$ac_exeext conftest.$ac_ext 7797fi 7798 7799 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801 7802 eval supported=\$$cacheid 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7804$as_echo "$supported" >&6; } 7805 if test "$supported" = "yes" ; then 7806 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7807 found="yes" 7808 fi 7809 fi 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825xorg_testset_save_CFLAGS="$CFLAGS" 7826 7827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837_ACEOF 7838if ac_fn_c_try_compile "$LINENO"; then : 7839 xorg_cv_cc_flag_unknown_warning_option=yes 7840else 7841 xorg_cv_cc_flag_unknown_warning_option=no 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7844fi 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849fi 7850 7851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 fi 7855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860else 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863int i; 7864_ACEOF 7865if ac_fn_c_try_compile "$LINENO"; then : 7866 xorg_cv_cc_flag_unused_command_line_argument=yes 7867else 7868 xorg_cv_cc_flag_unused_command_line_argument=no 7869fi 7870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7871fi 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876fi 7877 7878found="no" 7879 7880 if test $found = "no" ; then 7881 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7883 fi 7884 7885 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7887 fi 7888 7889 CFLAGS="$CFLAGS -Werror=address" 7890 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7892$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7893 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7894 if eval \${$cacheid+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899int i; 7900int 7901main () 7902{ 7903 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908if ac_fn_c_try_link "$LINENO"; then : 7909 eval $cacheid=yes 7910else 7911 eval $cacheid=no 7912fi 7913rm -f core conftest.err conftest.$ac_objext \ 7914 conftest$ac_exeext conftest.$ac_ext 7915fi 7916 7917 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919 7920 eval supported=\$$cacheid 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7922$as_echo "$supported" >&6; } 7923 if test "$supported" = "yes" ; then 7924 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7925 found="yes" 7926 fi 7927 fi 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943xorg_testset_save_CFLAGS="$CFLAGS" 7944 7945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954int i; 7955_ACEOF 7956if ac_fn_c_try_compile "$LINENO"; then : 7957 xorg_cv_cc_flag_unknown_warning_option=yes 7958else 7959 xorg_cv_cc_flag_unknown_warning_option=no 7960fi 7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7962fi 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7966 CFLAGS="$xorg_testset_save_CFLAGS" 7967fi 7968 7969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7972 fi 7973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981int i; 7982_ACEOF 7983if ac_fn_c_try_compile "$LINENO"; then : 7984 xorg_cv_cc_flag_unused_command_line_argument=yes 7985else 7986 xorg_cv_cc_flag_unused_command_line_argument=no 7987fi 7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7989fi 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7993 CFLAGS="$xorg_testset_save_CFLAGS" 7994fi 7995 7996found="no" 7997 7998 if test $found = "no" ; then 7999 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8001 fi 8002 8003 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8005 fi 8006 8007 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8008 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8010$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8011 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8012 if eval \${$cacheid+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017int i; 8018int 8019main () 8020{ 8021 8022 ; 8023 return 0; 8024} 8025_ACEOF 8026if ac_fn_c_try_link "$LINENO"; then : 8027 eval $cacheid=yes 8028else 8029 eval $cacheid=no 8030fi 8031rm -f core conftest.err conftest.$ac_objext \ 8032 conftest$ac_exeext conftest.$ac_ext 8033fi 8034 8035 8036 CFLAGS="$xorg_testset_save_CFLAGS" 8037 8038 eval supported=\$$cacheid 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8040$as_echo "$supported" >&6; } 8041 if test "$supported" = "yes" ; then 8042 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8043 found="yes" 8044 fi 8045 fi 8046 8047 if test $found = "no" ; then 8048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 fi 8051 8052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8054 fi 8055 8056 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8057 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8059$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8060 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8061 if eval \${$cacheid+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066int i; 8067int 8068main () 8069{ 8070 8071 ; 8072 return 0; 8073} 8074_ACEOF 8075if ac_fn_c_try_link "$LINENO"; then : 8076 eval $cacheid=yes 8077else 8078 eval $cacheid=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext \ 8081 conftest$ac_exeext conftest.$ac_ext 8082fi 8083 8084 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086 8087 eval supported=\$$cacheid 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8089$as_echo "$supported" >&6; } 8090 if test "$supported" = "yes" ; then 8091 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8092 found="yes" 8093 fi 8094 fi 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110xorg_testset_save_CFLAGS="$CFLAGS" 8111 8112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118else 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120/* end confdefs.h. */ 8121int i; 8122_ACEOF 8123if ac_fn_c_try_compile "$LINENO"; then : 8124 xorg_cv_cc_flag_unknown_warning_option=yes 8125else 8126 xorg_cv_cc_flag_unknown_warning_option=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134fi 8135 8136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149_ACEOF 8150if ac_fn_c_try_compile "$LINENO"; then : 8151 xorg_cv_cc_flag_unused_command_line_argument=yes 8152else 8153 xorg_cv_cc_flag_unused_command_line_argument=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8156fi 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163found="no" 8164 8165 if test $found = "no" ; then 8166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 fi 8169 8170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8172 fi 8173 8174 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8175 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8177$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8178 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8179 if eval \${$cacheid+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185int 8186main () 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_link "$LINENO"; then : 8194 eval $cacheid=yes 8195else 8196 eval $cacheid=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext conftest.$ac_ext 8200fi 8201 8202 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204 8205 eval supported=\$$cacheid 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8207$as_echo "$supported" >&6; } 8208 if test "$supported" = "yes" ; then 8209 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8210 found="yes" 8211 fi 8212 fi 8213 8214 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8215else 8216{ $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 8217$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;} 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231xorg_testset_save_CFLAGS="$CFLAGS" 8232 8233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242int i; 8243_ACEOF 8244if ac_fn_c_try_compile "$LINENO"; then : 8245 xorg_cv_cc_flag_unknown_warning_option=yes 8246else 8247 xorg_cv_cc_flag_unknown_warning_option=no 8248fi 8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8250fi 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8254 CFLAGS="$xorg_testset_save_CFLAGS" 8255fi 8256 8257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8260 fi 8261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269int i; 8270_ACEOF 8271if ac_fn_c_try_compile "$LINENO"; then : 8272 xorg_cv_cc_flag_unused_command_line_argument=yes 8273else 8274 xorg_cv_cc_flag_unused_command_line_argument=no 8275fi 8276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8277fi 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8281 CFLAGS="$xorg_testset_save_CFLAGS" 8282fi 8283 8284found="no" 8285 8286 if test $found = "no" ; then 8287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8289 fi 8290 8291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8293 fi 8294 8295 CFLAGS="$CFLAGS -Wimplicit" 8296 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8298$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8299 cacheid=xorg_cv_cc_flag__Wimplicit 8300 if eval \${$cacheid+:} false; then : 8301 $as_echo_n "(cached) " >&6 8302else 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305int i; 8306int 8307main () 8308{ 8309 8310 ; 8311 return 0; 8312} 8313_ACEOF 8314if ac_fn_c_try_link "$LINENO"; then : 8315 eval $cacheid=yes 8316else 8317 eval $cacheid=no 8318fi 8319rm -f core conftest.err conftest.$ac_objext \ 8320 conftest$ac_exeext conftest.$ac_ext 8321fi 8322 8323 8324 CFLAGS="$xorg_testset_save_CFLAGS" 8325 8326 eval supported=\$$cacheid 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8328$as_echo "$supported" >&6; } 8329 if test "$supported" = "yes" ; then 8330 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8331 found="yes" 8332 fi 8333 fi 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349xorg_testset_save_CFLAGS="$CFLAGS" 8350 8351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360int i; 8361_ACEOF 8362if ac_fn_c_try_compile "$LINENO"; then : 8363 xorg_cv_cc_flag_unknown_warning_option=yes 8364else 8365 xorg_cv_cc_flag_unknown_warning_option=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8368fi 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373fi 8374 8375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8378 fi 8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387int i; 8388_ACEOF 8389if ac_fn_c_try_compile "$LINENO"; then : 8390 xorg_cv_cc_flag_unused_command_line_argument=yes 8391else 8392 xorg_cv_cc_flag_unused_command_line_argument=no 8393fi 8394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8395fi 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8399 CFLAGS="$xorg_testset_save_CFLAGS" 8400fi 8401 8402found="no" 8403 8404 if test $found = "no" ; then 8405 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8407 fi 8408 8409 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8411 fi 8412 8413 CFLAGS="$CFLAGS -Wnonnull" 8414 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8416$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8417 cacheid=xorg_cv_cc_flag__Wnonnull 8418 if eval \${$cacheid+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420else 8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422/* end confdefs.h. */ 8423int i; 8424int 8425main () 8426{ 8427 8428 ; 8429 return 0; 8430} 8431_ACEOF 8432if ac_fn_c_try_link "$LINENO"; then : 8433 eval $cacheid=yes 8434else 8435 eval $cacheid=no 8436fi 8437rm -f core conftest.err conftest.$ac_objext \ 8438 conftest$ac_exeext conftest.$ac_ext 8439fi 8440 8441 8442 CFLAGS="$xorg_testset_save_CFLAGS" 8443 8444 eval supported=\$$cacheid 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8446$as_echo "$supported" >&6; } 8447 if test "$supported" = "yes" ; then 8448 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8449 found="yes" 8450 fi 8451 fi 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467xorg_testset_save_CFLAGS="$CFLAGS" 8468 8469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479_ACEOF 8480if ac_fn_c_try_compile "$LINENO"; then : 8481 xorg_cv_cc_flag_unknown_warning_option=yes 8482else 8483 xorg_cv_cc_flag_unknown_warning_option=no 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8486fi 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8490 CFLAGS="$xorg_testset_save_CFLAGS" 8491fi 8492 8493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8496 fi 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8504/* end confdefs.h. */ 8505int i; 8506_ACEOF 8507if ac_fn_c_try_compile "$LINENO"; then : 8508 xorg_cv_cc_flag_unused_command_line_argument=yes 8509else 8510 xorg_cv_cc_flag_unused_command_line_argument=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8513fi 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518fi 8519 8520found="no" 8521 8522 if test $found = "no" ; then 8523 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 8527 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 fi 8530 8531 CFLAGS="$CFLAGS -Winit-self" 8532 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8534$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8535 cacheid=xorg_cv_cc_flag__Winit_self 8536 if eval \${$cacheid+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int i; 8542int 8543main () 8544{ 8545 8546 ; 8547 return 0; 8548} 8549_ACEOF 8550if ac_fn_c_try_link "$LINENO"; then : 8551 eval $cacheid=yes 8552else 8553 eval $cacheid=no 8554fi 8555rm -f core conftest.err conftest.$ac_objext \ 8556 conftest$ac_exeext conftest.$ac_ext 8557fi 8558 8559 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561 8562 eval supported=\$$cacheid 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8564$as_echo "$supported" >&6; } 8565 if test "$supported" = "yes" ; then 8566 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8567 found="yes" 8568 fi 8569 fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585xorg_testset_save_CFLAGS="$CFLAGS" 8586 8587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596int i; 8597_ACEOF 8598if ac_fn_c_try_compile "$LINENO"; then : 8599 xorg_cv_cc_flag_unknown_warning_option=yes 8600else 8601 xorg_cv_cc_flag_unknown_warning_option=no 8602fi 8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8604fi 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609fi 8610 8611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8614 fi 8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8619 $as_echo_n "(cached) " >&6 8620else 8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8622/* end confdefs.h. */ 8623int i; 8624_ACEOF 8625if ac_fn_c_try_compile "$LINENO"; then : 8626 xorg_cv_cc_flag_unused_command_line_argument=yes 8627else 8628 xorg_cv_cc_flag_unused_command_line_argument=no 8629fi 8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8631fi 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636fi 8637 8638found="no" 8639 8640 if test $found = "no" ; then 8641 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8643 fi 8644 8645 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 fi 8648 8649 CFLAGS="$CFLAGS -Wmain" 8650 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8652$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8653 cacheid=xorg_cv_cc_flag__Wmain 8654 if eval \${$cacheid+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660int 8661main () 8662{ 8663 8664 ; 8665 return 0; 8666} 8667_ACEOF 8668if ac_fn_c_try_link "$LINENO"; then : 8669 eval $cacheid=yes 8670else 8671 eval $cacheid=no 8672fi 8673rm -f core conftest.err conftest.$ac_objext \ 8674 conftest$ac_exeext conftest.$ac_ext 8675fi 8676 8677 8678 CFLAGS="$xorg_testset_save_CFLAGS" 8679 8680 eval supported=\$$cacheid 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8682$as_echo "$supported" >&6; } 8683 if test "$supported" = "yes" ; then 8684 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8685 found="yes" 8686 fi 8687 fi 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703xorg_testset_save_CFLAGS="$CFLAGS" 8704 8705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8713/* end confdefs.h. */ 8714int i; 8715_ACEOF 8716if ac_fn_c_try_compile "$LINENO"; then : 8717 xorg_cv_cc_flag_unknown_warning_option=yes 8718else 8719 xorg_cv_cc_flag_unknown_warning_option=no 8720fi 8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8726 CFLAGS="$xorg_testset_save_CFLAGS" 8727fi 8728 8729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8732 fi 8733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740/* end confdefs.h. */ 8741int i; 8742_ACEOF 8743if ac_fn_c_try_compile "$LINENO"; then : 8744 xorg_cv_cc_flag_unused_command_line_argument=yes 8745else 8746 xorg_cv_cc_flag_unused_command_line_argument=no 8747fi 8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8749fi 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754fi 8755 8756found="no" 8757 8758 if test $found = "no" ; then 8759 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8761 fi 8762 8763 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 fi 8766 8767 CFLAGS="$CFLAGS -Wmissing-braces" 8768 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8770$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8771 cacheid=xorg_cv_cc_flag__Wmissing_braces 8772 if eval \${$cacheid+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778int 8779main () 8780{ 8781 8782 ; 8783 return 0; 8784} 8785_ACEOF 8786if ac_fn_c_try_link "$LINENO"; then : 8787 eval $cacheid=yes 8788else 8789 eval $cacheid=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext \ 8792 conftest$ac_exeext conftest.$ac_ext 8793fi 8794 8795 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797 8798 eval supported=\$$cacheid 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8800$as_echo "$supported" >&6; } 8801 if test "$supported" = "yes" ; then 8802 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8803 found="yes" 8804 fi 8805 fi 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821xorg_testset_save_CFLAGS="$CFLAGS" 8822 8823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO"; then : 8835 xorg_cv_cc_flag_unknown_warning_option=yes 8836else 8837 xorg_cv_cc_flag_unknown_warning_option=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845fi 8846 8847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 fi 8851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858/* end confdefs.h. */ 8859int i; 8860_ACEOF 8861if ac_fn_c_try_compile "$LINENO"; then : 8862 xorg_cv_cc_flag_unused_command_line_argument=yes 8863else 8864 xorg_cv_cc_flag_unused_command_line_argument=no 8865fi 8866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8867fi 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8871 CFLAGS="$xorg_testset_save_CFLAGS" 8872fi 8873 8874found="no" 8875 8876 if test $found = "no" ; then 8877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8879 fi 8880 8881 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8883 fi 8884 8885 CFLAGS="$CFLAGS -Wsequence-point" 8886 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8888$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8889 cacheid=xorg_cv_cc_flag__Wsequence_point 8890 if eval \${$cacheid+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896int 8897main () 8898{ 8899 8900 ; 8901 return 0; 8902} 8903_ACEOF 8904if ac_fn_c_try_link "$LINENO"; then : 8905 eval $cacheid=yes 8906else 8907 eval $cacheid=no 8908fi 8909rm -f core conftest.err conftest.$ac_objext \ 8910 conftest$ac_exeext conftest.$ac_ext 8911fi 8912 8913 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915 8916 eval supported=\$$cacheid 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8918$as_echo "$supported" >&6; } 8919 if test "$supported" = "yes" ; then 8920 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8921 found="yes" 8922 fi 8923 fi 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939xorg_testset_save_CFLAGS="$CFLAGS" 8940 8941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8949/* end confdefs.h. */ 8950int i; 8951_ACEOF 8952if ac_fn_c_try_compile "$LINENO"; then : 8953 xorg_cv_cc_flag_unknown_warning_option=yes 8954else 8955 xorg_cv_cc_flag_unknown_warning_option=no 8956fi 8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8958fi 8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8962 CFLAGS="$xorg_testset_save_CFLAGS" 8963fi 8964 8965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 fi 8969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8973 $as_echo_n "(cached) " >&6 8974else 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977int i; 8978_ACEOF 8979if ac_fn_c_try_compile "$LINENO"; then : 8980 xorg_cv_cc_flag_unused_command_line_argument=yes 8981else 8982 xorg_cv_cc_flag_unused_command_line_argument=no 8983fi 8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8985fi 8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8989 CFLAGS="$xorg_testset_save_CFLAGS" 8990fi 8991 8992found="no" 8993 8994 if test $found = "no" ; then 8995 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8997 fi 8998 8999 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9001 fi 9002 9003 CFLAGS="$CFLAGS -Wreturn-type" 9004 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9006$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9007 cacheid=xorg_cv_cc_flag__Wreturn_type 9008 if eval \${$cacheid+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013int i; 9014int 9015main () 9016{ 9017 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022if ac_fn_c_try_link "$LINENO"; then : 9023 eval $cacheid=yes 9024else 9025 eval $cacheid=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext \ 9028 conftest$ac_exeext conftest.$ac_ext 9029fi 9030 9031 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033 9034 eval supported=\$$cacheid 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9036$as_echo "$supported" >&6; } 9037 if test "$supported" = "yes" ; then 9038 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9039 found="yes" 9040 fi 9041 fi 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057xorg_testset_save_CFLAGS="$CFLAGS" 9058 9059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067/* end confdefs.h. */ 9068int i; 9069_ACEOF 9070if ac_fn_c_try_compile "$LINENO"; then : 9071 xorg_cv_cc_flag_unknown_warning_option=yes 9072else 9073 xorg_cv_cc_flag_unknown_warning_option=no 9074fi 9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9076fi 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9080 CFLAGS="$xorg_testset_save_CFLAGS" 9081fi 9082 9083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9086 fi 9087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095int i; 9096_ACEOF 9097if ac_fn_c_try_compile "$LINENO"; then : 9098 xorg_cv_cc_flag_unused_command_line_argument=yes 9099else 9100 xorg_cv_cc_flag_unused_command_line_argument=no 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9103fi 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9107 CFLAGS="$xorg_testset_save_CFLAGS" 9108fi 9109 9110found="no" 9111 9112 if test $found = "no" ; then 9113 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9115 fi 9116 9117 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9119 fi 9120 9121 CFLAGS="$CFLAGS -Wtrigraphs" 9122 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9124$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9125 cacheid=xorg_cv_cc_flag__Wtrigraphs 9126 if eval \${$cacheid+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132int 9133main () 9134{ 9135 9136 ; 9137 return 0; 9138} 9139_ACEOF 9140if ac_fn_c_try_link "$LINENO"; then : 9141 eval $cacheid=yes 9142else 9143 eval $cacheid=no 9144fi 9145rm -f core conftest.err conftest.$ac_objext \ 9146 conftest$ac_exeext conftest.$ac_ext 9147fi 9148 9149 9150 CFLAGS="$xorg_testset_save_CFLAGS" 9151 9152 eval supported=\$$cacheid 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9154$as_echo "$supported" >&6; } 9155 if test "$supported" = "yes" ; then 9156 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9157 found="yes" 9158 fi 9159 fi 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175xorg_testset_save_CFLAGS="$CFLAGS" 9176 9177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186int i; 9187_ACEOF 9188if ac_fn_c_try_compile "$LINENO"; then : 9189 xorg_cv_cc_flag_unknown_warning_option=yes 9190else 9191 xorg_cv_cc_flag_unknown_warning_option=no 9192fi 9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9194fi 9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9198 CFLAGS="$xorg_testset_save_CFLAGS" 9199fi 9200 9201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9204 fi 9205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213int i; 9214_ACEOF 9215if ac_fn_c_try_compile "$LINENO"; then : 9216 xorg_cv_cc_flag_unused_command_line_argument=yes 9217else 9218 xorg_cv_cc_flag_unused_command_line_argument=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9221fi 9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9225 CFLAGS="$xorg_testset_save_CFLAGS" 9226fi 9227 9228found="no" 9229 9230 if test $found = "no" ; then 9231 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9233 fi 9234 9235 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9237 fi 9238 9239 CFLAGS="$CFLAGS -Warray-bounds" 9240 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9242$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9243 cacheid=xorg_cv_cc_flag__Warray_bounds 9244 if eval \${$cacheid+:} false; then : 9245 $as_echo_n "(cached) " >&6 9246else 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9248/* end confdefs.h. */ 9249int i; 9250int 9251main () 9252{ 9253 9254 ; 9255 return 0; 9256} 9257_ACEOF 9258if ac_fn_c_try_link "$LINENO"; then : 9259 eval $cacheid=yes 9260else 9261 eval $cacheid=no 9262fi 9263rm -f core conftest.err conftest.$ac_objext \ 9264 conftest$ac_exeext conftest.$ac_ext 9265fi 9266 9267 9268 CFLAGS="$xorg_testset_save_CFLAGS" 9269 9270 eval supported=\$$cacheid 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9272$as_echo "$supported" >&6; } 9273 if test "$supported" = "yes" ; then 9274 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9275 found="yes" 9276 fi 9277 fi 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293xorg_testset_save_CFLAGS="$CFLAGS" 9294 9295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301else 9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303/* end confdefs.h. */ 9304int i; 9305_ACEOF 9306if ac_fn_c_try_compile "$LINENO"; then : 9307 xorg_cv_cc_flag_unknown_warning_option=yes 9308else 9309 xorg_cv_cc_flag_unknown_warning_option=no 9310fi 9311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9312fi 9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9316 CFLAGS="$xorg_testset_save_CFLAGS" 9317fi 9318 9319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9322 fi 9323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9327 $as_echo_n "(cached) " >&6 9328else 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330/* end confdefs.h. */ 9331int i; 9332_ACEOF 9333if ac_fn_c_try_compile "$LINENO"; then : 9334 xorg_cv_cc_flag_unused_command_line_argument=yes 9335else 9336 xorg_cv_cc_flag_unused_command_line_argument=no 9337fi 9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9339fi 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9343 CFLAGS="$xorg_testset_save_CFLAGS" 9344fi 9345 9346found="no" 9347 9348 if test $found = "no" ; then 9349 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 fi 9352 9353 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9355 fi 9356 9357 CFLAGS="$CFLAGS -Wwrite-strings" 9358 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9360$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9361 cacheid=xorg_cv_cc_flag__Wwrite_strings 9362 if eval \${$cacheid+:} false; then : 9363 $as_echo_n "(cached) " >&6 9364else 9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9366/* end confdefs.h. */ 9367int i; 9368int 9369main () 9370{ 9371 9372 ; 9373 return 0; 9374} 9375_ACEOF 9376if ac_fn_c_try_link "$LINENO"; then : 9377 eval $cacheid=yes 9378else 9379 eval $cacheid=no 9380fi 9381rm -f core conftest.err conftest.$ac_objext \ 9382 conftest$ac_exeext conftest.$ac_ext 9383fi 9384 9385 9386 CFLAGS="$xorg_testset_save_CFLAGS" 9387 9388 eval supported=\$$cacheid 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9390$as_echo "$supported" >&6; } 9391 if test "$supported" = "yes" ; then 9392 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9393 found="yes" 9394 fi 9395 fi 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411xorg_testset_save_CFLAGS="$CFLAGS" 9412 9413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421/* end confdefs.h. */ 9422int i; 9423_ACEOF 9424if ac_fn_c_try_compile "$LINENO"; then : 9425 xorg_cv_cc_flag_unknown_warning_option=yes 9426else 9427 xorg_cv_cc_flag_unknown_warning_option=no 9428fi 9429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9430fi 9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9434 CFLAGS="$xorg_testset_save_CFLAGS" 9435fi 9436 9437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 fi 9441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9445 $as_echo_n "(cached) " >&6 9446else 9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448/* end confdefs.h. */ 9449int i; 9450_ACEOF 9451if ac_fn_c_try_compile "$LINENO"; then : 9452 xorg_cv_cc_flag_unused_command_line_argument=yes 9453else 9454 xorg_cv_cc_flag_unused_command_line_argument=no 9455fi 9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9461 CFLAGS="$xorg_testset_save_CFLAGS" 9462fi 9463 9464found="no" 9465 9466 if test $found = "no" ; then 9467 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469 fi 9470 9471 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9473 fi 9474 9475 CFLAGS="$CFLAGS -Waddress" 9476 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9478$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9479 cacheid=xorg_cv_cc_flag__Waddress 9480 if eval \${$cacheid+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int i; 9486int 9487main () 9488{ 9489 9490 ; 9491 return 0; 9492} 9493_ACEOF 9494if ac_fn_c_try_link "$LINENO"; then : 9495 eval $cacheid=yes 9496else 9497 eval $cacheid=no 9498fi 9499rm -f core conftest.err conftest.$ac_objext \ 9500 conftest$ac_exeext conftest.$ac_ext 9501fi 9502 9503 9504 CFLAGS="$xorg_testset_save_CFLAGS" 9505 9506 eval supported=\$$cacheid 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9508$as_echo "$supported" >&6; } 9509 if test "$supported" = "yes" ; then 9510 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9511 found="yes" 9512 fi 9513 fi 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529xorg_testset_save_CFLAGS="$CFLAGS" 9530 9531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9536 $as_echo_n "(cached) " >&6 9537else 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541_ACEOF 9542if ac_fn_c_try_compile "$LINENO"; then : 9543 xorg_cv_cc_flag_unknown_warning_option=yes 9544else 9545 xorg_cv_cc_flag_unknown_warning_option=no 9546fi 9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9548fi 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9552 CFLAGS="$xorg_testset_save_CFLAGS" 9553fi 9554 9555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9558 fi 9559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568_ACEOF 9569if ac_fn_c_try_compile "$LINENO"; then : 9570 xorg_cv_cc_flag_unused_command_line_argument=yes 9571else 9572 xorg_cv_cc_flag_unused_command_line_argument=no 9573fi 9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9575fi 9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580fi 9581 9582found="no" 9583 9584 if test $found = "no" ; then 9585 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9587 fi 9588 9589 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9591 fi 9592 9593 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9594 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9596$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9597 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9598 if eval \${$cacheid+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9602/* end confdefs.h. */ 9603int i; 9604int 9605main () 9606{ 9607 9608 ; 9609 return 0; 9610} 9611_ACEOF 9612if ac_fn_c_try_link "$LINENO"; then : 9613 eval $cacheid=yes 9614else 9615 eval $cacheid=no 9616fi 9617rm -f core conftest.err conftest.$ac_objext \ 9618 conftest$ac_exeext conftest.$ac_ext 9619fi 9620 9621 9622 CFLAGS="$xorg_testset_save_CFLAGS" 9623 9624 eval supported=\$$cacheid 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9626$as_echo "$supported" >&6; } 9627 if test "$supported" = "yes" ; then 9628 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9629 found="yes" 9630 fi 9631 fi 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647xorg_testset_save_CFLAGS="$CFLAGS" 9648 9649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658int i; 9659_ACEOF 9660if ac_fn_c_try_compile "$LINENO"; then : 9661 xorg_cv_cc_flag_unknown_warning_option=yes 9662else 9663 xorg_cv_cc_flag_unknown_warning_option=no 9664fi 9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9666fi 9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671fi 9672 9673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 fi 9677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9684/* end confdefs.h. */ 9685int i; 9686_ACEOF 9687if ac_fn_c_try_compile "$LINENO"; then : 9688 xorg_cv_cc_flag_unused_command_line_argument=yes 9689else 9690 xorg_cv_cc_flag_unused_command_line_argument=no 9691fi 9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9693fi 9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9697 CFLAGS="$xorg_testset_save_CFLAGS" 9698fi 9699 9700found="no" 9701 9702 if test $found = "no" ; then 9703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9705 fi 9706 9707 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9709 fi 9710 9711 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9712 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9714$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9715 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9716 if eval \${$cacheid+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9720/* end confdefs.h. */ 9721int i; 9722int 9723main () 9724{ 9725 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730if ac_fn_c_try_link "$LINENO"; then : 9731 eval $cacheid=yes 9732else 9733 eval $cacheid=no 9734fi 9735rm -f core conftest.err conftest.$ac_objext \ 9736 conftest$ac_exeext conftest.$ac_ext 9737fi 9738 9739 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741 9742 eval supported=\$$cacheid 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9744$as_echo "$supported" >&6; } 9745 if test "$supported" = "yes" ; then 9746 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9747 found="yes" 9748 fi 9749 fi 9750 9751 9752fi 9753 9754 9755 9756 9757 9758 9759 9760 CWARNFLAGS="$BASE_CFLAGS" 9761 if test "x$GCC" = xyes ; then 9762 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9763 fi 9764 9765 9766 9767 9768 9769 9770 9771 9772# Check whether --enable-strict-compilation was given. 9773if test "${enable_strict_compilation+set}" = set; then : 9774 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9775else 9776 STRICT_COMPILE=no 9777fi 9778 9779 9780 9781 9782 9783 9784STRICT_CFLAGS="" 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798xorg_testset_save_CFLAGS="$CFLAGS" 9799 9800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9808/* end confdefs.h. */ 9809int i; 9810_ACEOF 9811if ac_fn_c_try_compile "$LINENO"; then : 9812 xorg_cv_cc_flag_unknown_warning_option=yes 9813else 9814 xorg_cv_cc_flag_unknown_warning_option=no 9815fi 9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9817fi 9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9821 CFLAGS="$xorg_testset_save_CFLAGS" 9822fi 9823 9824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9827 fi 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833else 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836int i; 9837_ACEOF 9838if ac_fn_c_try_compile "$LINENO"; then : 9839 xorg_cv_cc_flag_unused_command_line_argument=yes 9840else 9841 xorg_cv_cc_flag_unused_command_line_argument=no 9842fi 9843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9844fi 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9848 CFLAGS="$xorg_testset_save_CFLAGS" 9849fi 9850 9851found="no" 9852 9853 if test $found = "no" ; then 9854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9856 fi 9857 9858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 fi 9861 9862 CFLAGS="$CFLAGS -pedantic" 9863 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9865$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9866 cacheid=xorg_cv_cc_flag__pedantic 9867 if eval \${$cacheid+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873int 9874main () 9875{ 9876 9877 ; 9878 return 0; 9879} 9880_ACEOF 9881if ac_fn_c_try_link "$LINENO"; then : 9882 eval $cacheid=yes 9883else 9884 eval $cacheid=no 9885fi 9886rm -f core conftest.err conftest.$ac_objext \ 9887 conftest$ac_exeext conftest.$ac_ext 9888fi 9889 9890 9891 CFLAGS="$xorg_testset_save_CFLAGS" 9892 9893 eval supported=\$$cacheid 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9895$as_echo "$supported" >&6; } 9896 if test "$supported" = "yes" ; then 9897 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9898 found="yes" 9899 fi 9900 fi 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916xorg_testset_save_CFLAGS="$CFLAGS" 9917 9918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924else 9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926/* end confdefs.h. */ 9927int i; 9928_ACEOF 9929if ac_fn_c_try_compile "$LINENO"; then : 9930 xorg_cv_cc_flag_unknown_warning_option=yes 9931else 9932 xorg_cv_cc_flag_unknown_warning_option=no 9933fi 9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9935fi 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940fi 9941 9942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9945 fi 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953/* end confdefs.h. */ 9954int i; 9955_ACEOF 9956if ac_fn_c_try_compile "$LINENO"; then : 9957 xorg_cv_cc_flag_unused_command_line_argument=yes 9958else 9959 xorg_cv_cc_flag_unused_command_line_argument=no 9960fi 9961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9962fi 9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9966 CFLAGS="$xorg_testset_save_CFLAGS" 9967fi 9968 9969found="no" 9970 9971 if test $found = "no" ; then 9972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9974 fi 9975 9976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 fi 9979 9980 CFLAGS="$CFLAGS -Werror" 9981 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9983$as_echo_n "checking if $CC supports -Werror... " >&6; } 9984 cacheid=xorg_cv_cc_flag__Werror 9985 if eval \${$cacheid+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990int i; 9991int 9992main () 9993{ 9994 9995 ; 9996 return 0; 9997} 9998_ACEOF 9999if ac_fn_c_try_link "$LINENO"; then : 10000 eval $cacheid=yes 10001else 10002 eval $cacheid=no 10003fi 10004rm -f core conftest.err conftest.$ac_objext \ 10005 conftest$ac_exeext conftest.$ac_ext 10006fi 10007 10008 10009 CFLAGS="$xorg_testset_save_CFLAGS" 10010 10011 eval supported=\$$cacheid 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10013$as_echo "$supported" >&6; } 10014 if test "$supported" = "yes" ; then 10015 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10016 found="yes" 10017 fi 10018 fi 10019 10020 if test $found = "no" ; then 10021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10023 fi 10024 10025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10027 fi 10028 10029 CFLAGS="$CFLAGS -errwarn" 10030 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10032$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10033 cacheid=xorg_cv_cc_flag__errwarn 10034 if eval \${$cacheid+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036else 10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040int 10041main () 10042{ 10043 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048if ac_fn_c_try_link "$LINENO"; then : 10049 eval $cacheid=yes 10050else 10051 eval $cacheid=no 10052fi 10053rm -f core conftest.err conftest.$ac_objext \ 10054 conftest$ac_exeext conftest.$ac_ext 10055fi 10056 10057 10058 CFLAGS="$xorg_testset_save_CFLAGS" 10059 10060 eval supported=\$$cacheid 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10062$as_echo "$supported" >&6; } 10063 if test "$supported" = "yes" ; then 10064 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10065 found="yes" 10066 fi 10067 fi 10068 10069 10070 10071# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10072# activate it with -Werror, so we add it here explicitly. 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086xorg_testset_save_CFLAGS="$CFLAGS" 10087 10088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094else 10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096/* end confdefs.h. */ 10097int i; 10098_ACEOF 10099if ac_fn_c_try_compile "$LINENO"; then : 10100 xorg_cv_cc_flag_unknown_warning_option=yes 10101else 10102 xorg_cv_cc_flag_unknown_warning_option=no 10103fi 10104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10105fi 10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10109 CFLAGS="$xorg_testset_save_CFLAGS" 10110fi 10111 10112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 fi 10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123/* end confdefs.h. */ 10124int i; 10125_ACEOF 10126if ac_fn_c_try_compile "$LINENO"; then : 10127 xorg_cv_cc_flag_unused_command_line_argument=yes 10128else 10129 xorg_cv_cc_flag_unused_command_line_argument=no 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10132fi 10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10136 CFLAGS="$xorg_testset_save_CFLAGS" 10137fi 10138 10139found="no" 10140 10141 if test $found = "no" ; then 10142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10144 fi 10145 10146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10148 fi 10149 10150 CFLAGS="$CFLAGS -Werror=attributes" 10151 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10153$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10154 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10155 if eval \${$cacheid+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157else 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160int i; 10161int 10162main () 10163{ 10164 10165 ; 10166 return 0; 10167} 10168_ACEOF 10169if ac_fn_c_try_link "$LINENO"; then : 10170 eval $cacheid=yes 10171else 10172 eval $cacheid=no 10173fi 10174rm -f core conftest.err conftest.$ac_objext \ 10175 conftest$ac_exeext conftest.$ac_ext 10176fi 10177 10178 10179 CFLAGS="$xorg_testset_save_CFLAGS" 10180 10181 eval supported=\$$cacheid 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10183$as_echo "$supported" >&6; } 10184 if test "$supported" = "yes" ; then 10185 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10186 found="yes" 10187 fi 10188 fi 10189 10190 10191 10192if test "x$STRICT_COMPILE" = "xyes"; then 10193 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10194 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10195fi 10196 10197 10198 10199 10200 10201 10202cat >>confdefs.h <<_ACEOF 10203#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10204_ACEOF 10205 10206 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10207 if test "x$PVM" = "x"; then 10208 PVM="0" 10209 fi 10210 10211cat >>confdefs.h <<_ACEOF 10212#define PACKAGE_VERSION_MINOR $PVM 10213_ACEOF 10214 10215 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10216 if test "x$PVP" = "x"; then 10217 PVP="0" 10218 fi 10219 10220cat >>confdefs.h <<_ACEOF 10221#define PACKAGE_VERSION_PATCHLEVEL $PVP 10222_ACEOF 10223 10224 10225 10226CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10227mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10228|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10229echo 'git directory not found: installing possibly empty changelog.' >&2)" 10230 10231 10232 10233 10234macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10235INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10236mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10237|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10238echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10239 10240 10241 10242 10243 10244 10245if test x$APP_MAN_SUFFIX = x ; then 10246 APP_MAN_SUFFIX=1 10247fi 10248if test x$APP_MAN_DIR = x ; then 10249 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10250fi 10251 10252if test x$LIB_MAN_SUFFIX = x ; then 10253 LIB_MAN_SUFFIX=3 10254fi 10255if test x$LIB_MAN_DIR = x ; then 10256 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10257fi 10258 10259if test x$FILE_MAN_SUFFIX = x ; then 10260 case $host_os in 10261 solaris*) FILE_MAN_SUFFIX=4 ;; 10262 *) FILE_MAN_SUFFIX=5 ;; 10263 esac 10264fi 10265if test x$FILE_MAN_DIR = x ; then 10266 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10267fi 10268 10269if test x$MISC_MAN_SUFFIX = x ; then 10270 case $host_os in 10271 solaris*) MISC_MAN_SUFFIX=5 ;; 10272 *) MISC_MAN_SUFFIX=7 ;; 10273 esac 10274fi 10275if test x$MISC_MAN_DIR = x ; then 10276 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10277fi 10278 10279if test x$DRIVER_MAN_SUFFIX = x ; then 10280 case $host_os in 10281 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10282 *) DRIVER_MAN_SUFFIX=4 ;; 10283 esac 10284fi 10285if test x$DRIVER_MAN_DIR = x ; then 10286 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10287fi 10288 10289if test x$ADMIN_MAN_SUFFIX = x ; then 10290 case $host_os in 10291 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10292 *) ADMIN_MAN_SUFFIX=8 ;; 10293 esac 10294fi 10295if test x$ADMIN_MAN_DIR = x ; then 10296 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10297fi 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313XORG_MAN_PAGE="X Version 11" 10314 10315MAN_SUBSTS="\ 10316 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10317 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10318 -e 's|__xservername__|Xorg|g' \ 10319 -e 's|__xconfigfile__|xorg.conf|g' \ 10320 -e 's|__projectroot__|\$(prefix)|g' \ 10321 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10322 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10323 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10324 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10325 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10326 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10327 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10328 10329 10330 10331# Check whether --enable-silent-rules was given. 10332if test "${enable_silent_rules+set}" = set; then : 10333 enableval=$enable_silent_rules; 10334fi 10335 10336case $enable_silent_rules in 10337yes) AM_DEFAULT_VERBOSITY=0;; 10338no) AM_DEFAULT_VERBOSITY=1;; 10339*) AM_DEFAULT_VERBOSITY=0;; 10340esac 10341am_make=${MAKE-make} 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10343$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10344if ${am_cv_make_support_nested_variables+:} false; then : 10345 $as_echo_n "(cached) " >&6 10346else 10347 if $as_echo 'TRUE=$(BAR$(V)) 10348BAR0=false 10349BAR1=true 10350V=1 10351am__doit: 10352 @$(TRUE) 10353.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10354 am_cv_make_support_nested_variables=yes 10355else 10356 am_cv_make_support_nested_variables=no 10357fi 10358fi 10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10360$as_echo "$am_cv_make_support_nested_variables" >&6; } 10361if test $am_cv_make_support_nested_variables = yes; then 10362 AM_V='$(V)' 10363 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10364else 10365 AM_V=$AM_DEFAULT_VERBOSITY 10366 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10367fi 10368AM_BACKSLASH='\' 10369 10370 10371 10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 10373$as_echo_n "checking for floor in -lm... " >&6; } 10374if ${ac_cv_lib_m_floor+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 ac_check_lib_save_LIBS=$LIBS 10378LIBS="-lm $LIBS" 10379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380/* end confdefs.h. */ 10381 10382/* Override any GCC internal prototype to avoid an error. 10383 Use char because int might match the return type of a GCC 10384 builtin and then its argument prototype would still apply. */ 10385#ifdef __cplusplus 10386extern "C" 10387#endif 10388char floor (); 10389int 10390main () 10391{ 10392return floor (); 10393 ; 10394 return 0; 10395} 10396_ACEOF 10397if ac_fn_c_try_link "$LINENO"; then : 10398 ac_cv_lib_m_floor=yes 10399else 10400 ac_cv_lib_m_floor=no 10401fi 10402rm -f core conftest.err conftest.$ac_objext \ 10403 conftest$ac_exeext conftest.$ac_ext 10404LIBS=$ac_check_lib_save_LIBS 10405fi 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 10407$as_echo "$ac_cv_lib_m_floor" >&6; } 10408if test "x$ac_cv_lib_m_floor" = xyes; then : 10409 cat >>confdefs.h <<_ACEOF 10410#define HAVE_LIBM 1 10411_ACEOF 10412 10413 LIBS="-lm $LIBS" 10414 10415fi 10416 10417 10418# Checks for pkg-config packages 10419 10420pkg_failed=no 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5 10422$as_echo_n "checking for XRANDR... " >&6; } 10423 10424if test -n "$XRANDR_CFLAGS"; then 10425 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS" 10426 elif test -n "$PKG_CONFIG"; then 10427 if test -n "$PKG_CONFIG" && \ 10428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.4 xrender x11 xproto >= 7.0.17\""; } >&5 10429 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17") 2>&5 10430 ac_status=$? 10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10432 test $ac_status = 0; }; then 10433 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>/dev/null` 10434 test "x$?" != "x0" && pkg_failed=yes 10435else 10436 pkg_failed=yes 10437fi 10438 else 10439 pkg_failed=untried 10440fi 10441if test -n "$XRANDR_LIBS"; then 10442 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS" 10443 elif test -n "$PKG_CONFIG"; then 10444 if test -n "$PKG_CONFIG" && \ 10445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.4 xrender x11 xproto >= 7.0.17\""; } >&5 10446 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17") 2>&5 10447 ac_status=$? 10448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10449 test $ac_status = 0; }; then 10450 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>/dev/null` 10451 test "x$?" != "x0" && pkg_failed=yes 10452else 10453 pkg_failed=yes 10454fi 10455 else 10456 pkg_failed=untried 10457fi 10458 10459 10460 10461if test $pkg_failed = yes; then 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10463$as_echo "no" >&6; } 10464 10465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10466 _pkg_short_errors_supported=yes 10467else 10468 _pkg_short_errors_supported=no 10469fi 10470 if test $_pkg_short_errors_supported = yes; then 10471 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>&1` 10472 else 10473 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>&1` 10474 fi 10475 # Put the nasty error message in config.log where it belongs 10476 echo "$XRANDR_PKG_ERRORS" >&5 10477 10478 as_fn_error $? "Package requirements (xrandr >= 1.4 xrender x11 xproto >= 7.0.17) were not met: 10479 10480$XRANDR_PKG_ERRORS 10481 10482Consider adjusting the PKG_CONFIG_PATH environment variable if you 10483installed software in a non-standard prefix. 10484 10485Alternatively, you may set the environment variables XRANDR_CFLAGS 10486and XRANDR_LIBS to avoid the need to call pkg-config. 10487See the pkg-config man page for more details." "$LINENO" 5 10488elif test $pkg_failed = untried; then 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10490$as_echo "no" >&6; } 10491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10493as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10494is in your PATH or set the PKG_CONFIG environment variable to the full 10495path to pkg-config. 10496 10497Alternatively, you may set the environment variables XRANDR_CFLAGS 10498and XRANDR_LIBS to avoid the need to call pkg-config. 10499See the pkg-config man page for more details. 10500 10501To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10502See \`config.log' for more details" "$LINENO" 5; } 10503else 10504 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS 10505 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10507$as_echo "yes" >&6; } 10508 10509fi 10510 10511ac_config_files="$ac_config_files Makefile man/Makefile" 10512 10513cat >confcache <<\_ACEOF 10514# This file is a shell script that caches the results of configure 10515# tests run on this system so they can be shared between configure 10516# scripts and configure runs, see configure's option --config-cache. 10517# It is not useful on other systems. If it contains results you don't 10518# want to keep, you may remove or edit it. 10519# 10520# config.status only pays attention to the cache file if you give it 10521# the --recheck option to rerun configure. 10522# 10523# `ac_cv_env_foo' variables (set or unset) will be overridden when 10524# loading this file, other *unset* `ac_cv_foo' will be assigned the 10525# following values. 10526 10527_ACEOF 10528 10529# The following way of writing the cache mishandles newlines in values, 10530# but we know of no workaround that is simple, portable, and efficient. 10531# So, we kill variables containing newlines. 10532# Ultrix sh set writes to stderr and can't be redirected directly, 10533# and sets the high bit in the cache file unless we assign to the vars. 10534( 10535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10536 eval ac_val=\$$ac_var 10537 case $ac_val in #( 10538 *${as_nl}*) 10539 case $ac_var in #( 10540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10541$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10542 esac 10543 case $ac_var in #( 10544 _ | IFS | as_nl) ;; #( 10545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10546 *) { eval $ac_var=; unset $ac_var;} ;; 10547 esac ;; 10548 esac 10549 done 10550 10551 (set) 2>&1 | 10552 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10553 *${as_nl}ac_space=\ *) 10554 # `set' does not quote correctly, so add quotes: double-quote 10555 # substitution turns \\\\ into \\, and sed turns \\ into \. 10556 sed -n \ 10557 "s/'/'\\\\''/g; 10558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10559 ;; #( 10560 *) 10561 # `set' quotes correctly as required by POSIX, so do not add quotes. 10562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10563 ;; 10564 esac | 10565 sort 10566) | 10567 sed ' 10568 /^ac_cv_env_/b end 10569 t clear 10570 :clear 10571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10572 t end 10573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10574 :end' >>confcache 10575if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10576 if test -w "$cache_file"; then 10577 if test "x$cache_file" != "x/dev/null"; then 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10579$as_echo "$as_me: updating cache $cache_file" >&6;} 10580 if test ! -f "$cache_file" || test -h "$cache_file"; then 10581 cat confcache >"$cache_file" 10582 else 10583 case $cache_file in #( 10584 */* | ?:*) 10585 mv -f confcache "$cache_file"$$ && 10586 mv -f "$cache_file"$$ "$cache_file" ;; #( 10587 *) 10588 mv -f confcache "$cache_file" ;; 10589 esac 10590 fi 10591 fi 10592 else 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10594$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10595 fi 10596fi 10597rm -f confcache 10598 10599test "x$prefix" = xNONE && prefix=$ac_default_prefix 10600# Let make expand exec_prefix. 10601test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10602 10603DEFS=-DHAVE_CONFIG_H 10604 10605ac_libobjs= 10606ac_ltlibobjs= 10607U= 10608for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10609 # 1. Remove the extension, and $U if already installed. 10610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10613 # will be set to the directory where LIBOBJS objects are built. 10614 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10615 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10616done 10617LIBOBJS=$ac_libobjs 10618 10619LTLIBOBJS=$ac_ltlibobjs 10620 10621 10622 if test -n "$EXEEXT"; then 10623 am__EXEEXT_TRUE= 10624 am__EXEEXT_FALSE='#' 10625else 10626 am__EXEEXT_TRUE='#' 10627 am__EXEEXT_FALSE= 10628fi 10629 10630if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10631 as_fn_error $? "conditional \"AMDEP\" was never defined. 10632Usually this means the macro was only invoked conditionally." "$LINENO" 5 10633fi 10634if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10635 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10636Usually this means the macro was only invoked conditionally." "$LINENO" 5 10637fi 10638 10639: "${CONFIG_STATUS=./config.status}" 10640ac_write_fail=0 10641ac_clean_files_save=$ac_clean_files 10642ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10643{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10644$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10645as_write_fail=0 10646cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10647#! $SHELL 10648# Generated by $as_me. 10649# Run this file to recreate the current configuration. 10650# Compiler output produced by configure, useful for debugging 10651# configure, is in config.log if it exists. 10652 10653debug=false 10654ac_cs_recheck=false 10655ac_cs_silent=false 10656 10657SHELL=\${CONFIG_SHELL-$SHELL} 10658export SHELL 10659_ASEOF 10660cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10661## -------------------- ## 10662## M4sh Initialization. ## 10663## -------------------- ## 10664 10665# Be more Bourne compatible 10666DUALCASE=1; export DUALCASE # for MKS sh 10667if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10668 emulate sh 10669 NULLCMD=: 10670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10671 # is contrary to our usage. Disable this feature. 10672 alias -g '${1+"$@"}'='"$@"' 10673 setopt NO_GLOB_SUBST 10674else 10675 case `(set -o) 2>/dev/null` in #( 10676 *posix*) : 10677 set -o posix ;; #( 10678 *) : 10679 ;; 10680esac 10681fi 10682 10683 10684as_nl=' 10685' 10686export as_nl 10687# Printing a long string crashes Solaris 7 /usr/bin/printf. 10688as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10689as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10690as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10691# Prefer a ksh shell builtin over an external printf program on Solaris, 10692# but without wasting forks for bash or zsh. 10693if test -z "$BASH_VERSION$ZSH_VERSION" \ 10694 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10695 as_echo='print -r --' 10696 as_echo_n='print -rn --' 10697elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10698 as_echo='printf %s\n' 10699 as_echo_n='printf %s' 10700else 10701 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10702 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10703 as_echo_n='/usr/ucb/echo -n' 10704 else 10705 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10706 as_echo_n_body='eval 10707 arg=$1; 10708 case $arg in #( 10709 *"$as_nl"*) 10710 expr "X$arg" : "X\\(.*\\)$as_nl"; 10711 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10712 esac; 10713 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10714 ' 10715 export as_echo_n_body 10716 as_echo_n='sh -c $as_echo_n_body as_echo' 10717 fi 10718 export as_echo_body 10719 as_echo='sh -c $as_echo_body as_echo' 10720fi 10721 10722# The user is always right. 10723if test "${PATH_SEPARATOR+set}" != set; then 10724 PATH_SEPARATOR=: 10725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10727 PATH_SEPARATOR=';' 10728 } 10729fi 10730 10731 10732# IFS 10733# We need space, tab and new line, in precisely that order. Quoting is 10734# there to prevent editors from complaining about space-tab. 10735# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10736# splitting by setting IFS to empty value.) 10737IFS=" "" $as_nl" 10738 10739# Find who we are. Look in the path if we contain no directory separator. 10740as_myself= 10741case $0 in #(( 10742 *[\\/]* ) as_myself=$0 ;; 10743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10744for as_dir in $PATH 10745do 10746 IFS=$as_save_IFS 10747 test -z "$as_dir" && as_dir=. 10748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10749 done 10750IFS=$as_save_IFS 10751 10752 ;; 10753esac 10754# We did not find ourselves, most probably we were run as `sh COMMAND' 10755# in which case we are not to be found in the path. 10756if test "x$as_myself" = x; then 10757 as_myself=$0 10758fi 10759if test ! -f "$as_myself"; then 10760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10761 exit 1 10762fi 10763 10764# Unset variables that we do not need and which cause bugs (e.g. in 10765# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10766# suppresses any "Segmentation fault" message there. '((' could 10767# trigger a bug in pdksh 5.2.14. 10768for as_var in BASH_ENV ENV MAIL MAILPATH 10769do eval test x\${$as_var+set} = xset \ 10770 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10771done 10772PS1='$ ' 10773PS2='> ' 10774PS4='+ ' 10775 10776# NLS nuisances. 10777LC_ALL=C 10778export LC_ALL 10779LANGUAGE=C 10780export LANGUAGE 10781 10782# CDPATH. 10783(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10784 10785 10786# as_fn_error STATUS ERROR [LINENO LOG_FD] 10787# ---------------------------------------- 10788# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10789# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10790# script with STATUS, using 1 if that was 0. 10791as_fn_error () 10792{ 10793 as_status=$1; test $as_status -eq 0 && as_status=1 10794 if test "$4"; then 10795 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10796 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10797 fi 10798 $as_echo "$as_me: error: $2" >&2 10799 as_fn_exit $as_status 10800} # as_fn_error 10801 10802 10803# as_fn_set_status STATUS 10804# ----------------------- 10805# Set $? to STATUS, without forking. 10806as_fn_set_status () 10807{ 10808 return $1 10809} # as_fn_set_status 10810 10811# as_fn_exit STATUS 10812# ----------------- 10813# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10814as_fn_exit () 10815{ 10816 set +e 10817 as_fn_set_status $1 10818 exit $1 10819} # as_fn_exit 10820 10821# as_fn_unset VAR 10822# --------------- 10823# Portably unset VAR. 10824as_fn_unset () 10825{ 10826 { eval $1=; unset $1;} 10827} 10828as_unset=as_fn_unset 10829# as_fn_append VAR VALUE 10830# ---------------------- 10831# Append the text in VALUE to the end of the definition contained in VAR. Take 10832# advantage of any shell optimizations that allow amortized linear growth over 10833# repeated appends, instead of the typical quadratic growth present in naive 10834# implementations. 10835if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10836 eval 'as_fn_append () 10837 { 10838 eval $1+=\$2 10839 }' 10840else 10841 as_fn_append () 10842 { 10843 eval $1=\$$1\$2 10844 } 10845fi # as_fn_append 10846 10847# as_fn_arith ARG... 10848# ------------------ 10849# Perform arithmetic evaluation on the ARGs, and store the result in the 10850# global $as_val. Take advantage of shells that can avoid forks. The arguments 10851# must be portable across $(()) and expr. 10852if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10853 eval 'as_fn_arith () 10854 { 10855 as_val=$(( $* )) 10856 }' 10857else 10858 as_fn_arith () 10859 { 10860 as_val=`expr "$@" || test $? -eq 1` 10861 } 10862fi # as_fn_arith 10863 10864 10865if expr a : '\(a\)' >/dev/null 2>&1 && 10866 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10867 as_expr=expr 10868else 10869 as_expr=false 10870fi 10871 10872if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10873 as_basename=basename 10874else 10875 as_basename=false 10876fi 10877 10878if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10879 as_dirname=dirname 10880else 10881 as_dirname=false 10882fi 10883 10884as_me=`$as_basename -- "$0" || 10885$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10886 X"$0" : 'X\(//\)$' \| \ 10887 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10888$as_echo X/"$0" | 10889 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10890 s//\1/ 10891 q 10892 } 10893 /^X\/\(\/\/\)$/{ 10894 s//\1/ 10895 q 10896 } 10897 /^X\/\(\/\).*/{ 10898 s//\1/ 10899 q 10900 } 10901 s/.*/./; q'` 10902 10903# Avoid depending upon Character Ranges. 10904as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10905as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10906as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10907as_cr_digits='0123456789' 10908as_cr_alnum=$as_cr_Letters$as_cr_digits 10909 10910ECHO_C= ECHO_N= ECHO_T= 10911case `echo -n x` in #((((( 10912-n*) 10913 case `echo 'xy\c'` in 10914 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10915 xy) ECHO_C='\c';; 10916 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10917 ECHO_T=' ';; 10918 esac;; 10919*) 10920 ECHO_N='-n';; 10921esac 10922 10923rm -f conf$$ conf$$.exe conf$$.file 10924if test -d conf$$.dir; then 10925 rm -f conf$$.dir/conf$$.file 10926else 10927 rm -f conf$$.dir 10928 mkdir conf$$.dir 2>/dev/null 10929fi 10930if (echo >conf$$.file) 2>/dev/null; then 10931 if ln -s conf$$.file conf$$ 2>/dev/null; then 10932 as_ln_s='ln -s' 10933 # ... but there are two gotchas: 10934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10936 # In both cases, we have to default to `cp -p'. 10937 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10938 as_ln_s='cp -p' 10939 elif ln conf$$.file conf$$ 2>/dev/null; then 10940 as_ln_s=ln 10941 else 10942 as_ln_s='cp -p' 10943 fi 10944else 10945 as_ln_s='cp -p' 10946fi 10947rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10948rmdir conf$$.dir 2>/dev/null 10949 10950 10951# as_fn_mkdir_p 10952# ------------- 10953# Create "$as_dir" as a directory, including parents if necessary. 10954as_fn_mkdir_p () 10955{ 10956 10957 case $as_dir in #( 10958 -*) as_dir=./$as_dir;; 10959 esac 10960 test -d "$as_dir" || eval $as_mkdir_p || { 10961 as_dirs= 10962 while :; do 10963 case $as_dir in #( 10964 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10965 *) as_qdir=$as_dir;; 10966 esac 10967 as_dirs="'$as_qdir' $as_dirs" 10968 as_dir=`$as_dirname -- "$as_dir" || 10969$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10970 X"$as_dir" : 'X\(//\)[^/]' \| \ 10971 X"$as_dir" : 'X\(//\)$' \| \ 10972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10973$as_echo X"$as_dir" | 10974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10975 s//\1/ 10976 q 10977 } 10978 /^X\(\/\/\)[^/].*/{ 10979 s//\1/ 10980 q 10981 } 10982 /^X\(\/\/\)$/{ 10983 s//\1/ 10984 q 10985 } 10986 /^X\(\/\).*/{ 10987 s//\1/ 10988 q 10989 } 10990 s/.*/./; q'` 10991 test -d "$as_dir" && break 10992 done 10993 test -z "$as_dirs" || eval "mkdir $as_dirs" 10994 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10995 10996 10997} # as_fn_mkdir_p 10998if mkdir -p . 2>/dev/null; then 10999 as_mkdir_p='mkdir -p "$as_dir"' 11000else 11001 test -d ./-p && rmdir ./-p 11002 as_mkdir_p=false 11003fi 11004 11005if test -x / >/dev/null 2>&1; then 11006 as_test_x='test -x' 11007else 11008 if ls -dL / >/dev/null 2>&1; then 11009 as_ls_L_option=L 11010 else 11011 as_ls_L_option= 11012 fi 11013 as_test_x=' 11014 eval sh -c '\'' 11015 if test -d "$1"; then 11016 test -d "$1/."; 11017 else 11018 case $1 in #( 11019 -*)set "./$1";; 11020 esac; 11021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11022 ???[sx]*):;;*)false;;esac;fi 11023 '\'' sh 11024 ' 11025fi 11026as_executable_p=$as_test_x 11027 11028# Sed expression to map a string onto a valid CPP name. 11029as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11030 11031# Sed expression to map a string onto a valid variable name. 11032as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11033 11034 11035exec 6>&1 11036## ----------------------------------- ## 11037## Main body of $CONFIG_STATUS script. ## 11038## ----------------------------------- ## 11039_ASEOF 11040test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11041 11042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11043# Save the log message, to keep $0 and so on meaningful, and to 11044# report actual input values of CONFIG_FILES etc. instead of their 11045# values after options handling. 11046ac_log=" 11047This file was extended by xrandr $as_me 1.4.0, which was 11048generated by GNU Autoconf 2.68. Invocation command line was 11049 11050 CONFIG_FILES = $CONFIG_FILES 11051 CONFIG_HEADERS = $CONFIG_HEADERS 11052 CONFIG_LINKS = $CONFIG_LINKS 11053 CONFIG_COMMANDS = $CONFIG_COMMANDS 11054 $ $0 $@ 11055 11056on `(hostname || uname -n) 2>/dev/null | sed 1q` 11057" 11058 11059_ACEOF 11060 11061case $ac_config_files in *" 11062"*) set x $ac_config_files; shift; ac_config_files=$*;; 11063esac 11064 11065case $ac_config_headers in *" 11066"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11067esac 11068 11069 11070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11071# Files that config.status was made for. 11072config_files="$ac_config_files" 11073config_headers="$ac_config_headers" 11074config_commands="$ac_config_commands" 11075 11076_ACEOF 11077 11078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11079ac_cs_usage="\ 11080\`$as_me' instantiates files and other configuration actions 11081from templates according to the current configuration. Unless the files 11082and actions are specified as TAGs, all are instantiated by default. 11083 11084Usage: $0 [OPTION]... [TAG]... 11085 11086 -h, --help print this help, then exit 11087 -V, --version print version number and configuration settings, then exit 11088 --config print configuration, then exit 11089 -q, --quiet, --silent 11090 do not print progress messages 11091 -d, --debug don't remove temporary files 11092 --recheck update $as_me by reconfiguring in the same conditions 11093 --file=FILE[:TEMPLATE] 11094 instantiate the configuration file FILE 11095 --header=FILE[:TEMPLATE] 11096 instantiate the configuration header FILE 11097 11098Configuration files: 11099$config_files 11100 11101Configuration headers: 11102$config_headers 11103 11104Configuration commands: 11105$config_commands 11106 11107Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11108 11109_ACEOF 11110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11111ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11112ac_cs_version="\\ 11113xrandr config.status 1.4.0 11114configured by $0, generated by GNU Autoconf 2.68, 11115 with options \\"\$ac_cs_config\\" 11116 11117Copyright (C) 2010 Free Software Foundation, Inc. 11118This config.status script is free software; the Free Software Foundation 11119gives unlimited permission to copy, distribute and modify it." 11120 11121ac_pwd='$ac_pwd' 11122srcdir='$srcdir' 11123INSTALL='$INSTALL' 11124MKDIR_P='$MKDIR_P' 11125AWK='$AWK' 11126test -n "\$AWK" || AWK=awk 11127_ACEOF 11128 11129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11130# The default lists apply if the user does not specify any file. 11131ac_need_defaults=: 11132while test $# != 0 11133do 11134 case $1 in 11135 --*=?*) 11136 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11138 ac_shift=: 11139 ;; 11140 --*=) 11141 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11142 ac_optarg= 11143 ac_shift=: 11144 ;; 11145 *) 11146 ac_option=$1 11147 ac_optarg=$2 11148 ac_shift=shift 11149 ;; 11150 esac 11151 11152 case $ac_option in 11153 # Handling of the options. 11154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11155 ac_cs_recheck=: ;; 11156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11157 $as_echo "$ac_cs_version"; exit ;; 11158 --config | --confi | --conf | --con | --co | --c ) 11159 $as_echo "$ac_cs_config"; exit ;; 11160 --debug | --debu | --deb | --de | --d | -d ) 11161 debug=: ;; 11162 --file | --fil | --fi | --f ) 11163 $ac_shift 11164 case $ac_optarg in 11165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11166 '') as_fn_error $? "missing file argument" ;; 11167 esac 11168 as_fn_append CONFIG_FILES " '$ac_optarg'" 11169 ac_need_defaults=false;; 11170 --header | --heade | --head | --hea ) 11171 $ac_shift 11172 case $ac_optarg in 11173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11174 esac 11175 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11176 ac_need_defaults=false;; 11177 --he | --h) 11178 # Conflict between --help and --header 11179 as_fn_error $? "ambiguous option: \`$1' 11180Try \`$0 --help' for more information.";; 11181 --help | --hel | -h ) 11182 $as_echo "$ac_cs_usage"; exit ;; 11183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11184 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11185 ac_cs_silent=: ;; 11186 11187 # This is an error. 11188 -*) as_fn_error $? "unrecognized option: \`$1' 11189Try \`$0 --help' for more information." ;; 11190 11191 *) as_fn_append ac_config_targets " $1" 11192 ac_need_defaults=false ;; 11193 11194 esac 11195 shift 11196done 11197 11198ac_configure_extra_args= 11199 11200if $ac_cs_silent; then 11201 exec 6>/dev/null 11202 ac_configure_extra_args="$ac_configure_extra_args --silent" 11203fi 11204 11205_ACEOF 11206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11207if \$ac_cs_recheck; then 11208 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11209 shift 11210 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11211 CONFIG_SHELL='$SHELL' 11212 export CONFIG_SHELL 11213 exec "\$@" 11214fi 11215 11216_ACEOF 11217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11218exec 5>>config.log 11219{ 11220 echo 11221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11222## Running $as_me. ## 11223_ASBOX 11224 $as_echo "$ac_log" 11225} >&5 11226 11227_ACEOF 11228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11229# 11230# INIT-COMMANDS 11231# 11232AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11233 11234_ACEOF 11235 11236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11237 11238# Handling of arguments. 11239for ac_config_target in $ac_config_targets 11240do 11241 case $ac_config_target in 11242 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11244 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11245 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11246 11247 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11248 esac 11249done 11250 11251 11252# If the user did not use the arguments to specify the items to instantiate, 11253# then the envvar interface is used. Set only those that are not. 11254# We use the long form for the default assignment because of an extremely 11255# bizarre bug on SunOS 4.1.3. 11256if $ac_need_defaults; then 11257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11259 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11260fi 11261 11262# Have a temporary directory for convenience. Make it in the build tree 11263# simply because there is no reason against having it here, and in addition, 11264# creating and moving files from /tmp can sometimes cause problems. 11265# Hook for its removal unless debugging. 11266# Note that there is a small window in which the directory will not be cleaned: 11267# after its creation but before its name has been assigned to `$tmp'. 11268$debug || 11269{ 11270 tmp= ac_tmp= 11271 trap 'exit_status=$? 11272 : "${ac_tmp:=$tmp}" 11273 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11274' 0 11275 trap 'as_fn_exit 1' 1 2 13 15 11276} 11277# Create a (secure) tmp directory for tmp files. 11278 11279{ 11280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11281 test -d "$tmp" 11282} || 11283{ 11284 tmp=./conf$$-$RANDOM 11285 (umask 077 && mkdir "$tmp") 11286} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11287ac_tmp=$tmp 11288 11289# Set up the scripts for CONFIG_FILES section. 11290# No need to generate them if there are no CONFIG_FILES. 11291# This happens for instance with `./config.status config.h'. 11292if test -n "$CONFIG_FILES"; then 11293 11294 11295ac_cr=`echo X | tr X '\015'` 11296# On cygwin, bash can eat \r inside `` if the user requested igncr. 11297# But we know of no other shell where ac_cr would be empty at this 11298# point, so we can use a bashism as a fallback. 11299if test "x$ac_cr" = x; then 11300 eval ac_cr=\$\'\\r\' 11301fi 11302ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11303if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11304 ac_cs_awk_cr='\\r' 11305else 11306 ac_cs_awk_cr=$ac_cr 11307fi 11308 11309echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11310_ACEOF 11311 11312 11313{ 11314 echo "cat >conf$$subs.awk <<_ACEOF" && 11315 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11316 echo "_ACEOF" 11317} >conf$$subs.sh || 11318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11319ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11320ac_delim='%!_!# ' 11321for ac_last_try in false false false false false :; do 11322 . ./conf$$subs.sh || 11323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11324 11325 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11326 if test $ac_delim_n = $ac_delim_num; then 11327 break 11328 elif $ac_last_try; then 11329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11330 else 11331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11332 fi 11333done 11334rm -f conf$$subs.sh 11335 11336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11337cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11338_ACEOF 11339sed -n ' 11340h 11341s/^/S["/; s/!.*/"]=/ 11342p 11343g 11344s/^[^!]*!// 11345:repl 11346t repl 11347s/'"$ac_delim"'$// 11348t delim 11349:nl 11350h 11351s/\(.\{148\}\)..*/\1/ 11352t more1 11353s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11354p 11355n 11356b repl 11357:more1 11358s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11359p 11360g 11361s/.\{148\}// 11362t nl 11363:delim 11364h 11365s/\(.\{148\}\)..*/\1/ 11366t more2 11367s/["\\]/\\&/g; s/^/"/; s/$/"/ 11368p 11369b 11370:more2 11371s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11372p 11373g 11374s/.\{148\}// 11375t delim 11376' <conf$$subs.awk | sed ' 11377/^[^""]/{ 11378 N 11379 s/\n// 11380} 11381' >>$CONFIG_STATUS || ac_write_fail=1 11382rm -f conf$$subs.awk 11383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11384_ACAWK 11385cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11386 for (key in S) S_is_set[key] = 1 11387 FS = "" 11388 11389} 11390{ 11391 line = $ 0 11392 nfields = split(line, field, "@") 11393 substed = 0 11394 len = length(field[1]) 11395 for (i = 2; i < nfields; i++) { 11396 key = field[i] 11397 keylen = length(key) 11398 if (S_is_set[key]) { 11399 value = S[key] 11400 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11401 len += length(value) + length(field[++i]) 11402 substed = 1 11403 } else 11404 len += 1 + keylen 11405 } 11406 11407 print line 11408} 11409 11410_ACAWK 11411_ACEOF 11412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11413if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11414 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11415else 11416 cat 11417fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11418 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11419_ACEOF 11420 11421# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11422# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11423# trailing colons and then remove the whole line if VPATH becomes empty 11424# (actually we leave an empty line to preserve line numbers). 11425if test "x$srcdir" = x.; then 11426 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11427h 11428s/// 11429s/^/:/ 11430s/[ ]*$/:/ 11431s/:\$(srcdir):/:/g 11432s/:\${srcdir}:/:/g 11433s/:@srcdir@:/:/g 11434s/^:*// 11435s/:*$// 11436x 11437s/\(=[ ]*\).*/\1/ 11438G 11439s/\n// 11440s/^[^=]*=[ ]*$// 11441}' 11442fi 11443 11444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11445fi # test -n "$CONFIG_FILES" 11446 11447# Set up the scripts for CONFIG_HEADERS section. 11448# No need to generate them if there are no CONFIG_HEADERS. 11449# This happens for instance with `./config.status Makefile'. 11450if test -n "$CONFIG_HEADERS"; then 11451cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11452BEGIN { 11453_ACEOF 11454 11455# Transform confdefs.h into an awk script `defines.awk', embedded as 11456# here-document in config.status, that substitutes the proper values into 11457# config.h.in to produce config.h. 11458 11459# Create a delimiter string that does not exist in confdefs.h, to ease 11460# handling of long lines. 11461ac_delim='%!_!# ' 11462for ac_last_try in false false :; do 11463 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11464 if test -z "$ac_tt"; then 11465 break 11466 elif $ac_last_try; then 11467 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11468 else 11469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11470 fi 11471done 11472 11473# For the awk script, D is an array of macro values keyed by name, 11474# likewise P contains macro parameters if any. Preserve backslash 11475# newline sequences. 11476 11477ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11478sed -n ' 11479s/.\{148\}/&'"$ac_delim"'/g 11480t rset 11481:rset 11482s/^[ ]*#[ ]*define[ ][ ]*/ / 11483t def 11484d 11485:def 11486s/\\$// 11487t bsnl 11488s/["\\]/\\&/g 11489s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11490D["\1"]=" \3"/p 11491s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11492d 11493:bsnl 11494s/["\\]/\\&/g 11495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11496D["\1"]=" \3\\\\\\n"\\/p 11497t cont 11498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11499t cont 11500d 11501:cont 11502n 11503s/.\{148\}/&'"$ac_delim"'/g 11504t clear 11505:clear 11506s/\\$// 11507t bsnlc 11508s/["\\]/\\&/g; s/^/"/; s/$/"/p 11509d 11510:bsnlc 11511s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11512b cont 11513' <confdefs.h | sed ' 11514s/'"$ac_delim"'/"\\\ 11515"/g' >>$CONFIG_STATUS || ac_write_fail=1 11516 11517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11518 for (key in D) D_is_set[key] = 1 11519 FS = "" 11520} 11521/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11522 line = \$ 0 11523 split(line, arg, " ") 11524 if (arg[1] == "#") { 11525 defundef = arg[2] 11526 mac1 = arg[3] 11527 } else { 11528 defundef = substr(arg[1], 2) 11529 mac1 = arg[2] 11530 } 11531 split(mac1, mac2, "(") #) 11532 macro = mac2[1] 11533 prefix = substr(line, 1, index(line, defundef) - 1) 11534 if (D_is_set[macro]) { 11535 # Preserve the white space surrounding the "#". 11536 print prefix "define", macro P[macro] D[macro] 11537 next 11538 } else { 11539 # Replace #undef with comments. This is necessary, for example, 11540 # in the case of _POSIX_SOURCE, which is predefined and required 11541 # on some systems where configure will not decide to define it. 11542 if (defundef == "undef") { 11543 print "/*", prefix defundef, macro, "*/" 11544 next 11545 } 11546 } 11547} 11548{ print } 11549_ACAWK 11550_ACEOF 11551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11552 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11553fi # test -n "$CONFIG_HEADERS" 11554 11555 11556eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11557shift 11558for ac_tag 11559do 11560 case $ac_tag in 11561 :[FHLC]) ac_mode=$ac_tag; continue;; 11562 esac 11563 case $ac_mode$ac_tag in 11564 :[FHL]*:*);; 11565 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11566 :[FH]-) ac_tag=-:-;; 11567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11568 esac 11569 ac_save_IFS=$IFS 11570 IFS=: 11571 set x $ac_tag 11572 IFS=$ac_save_IFS 11573 shift 11574 ac_file=$1 11575 shift 11576 11577 case $ac_mode in 11578 :L) ac_source=$1;; 11579 :[FH]) 11580 ac_file_inputs= 11581 for ac_f 11582 do 11583 case $ac_f in 11584 -) ac_f="$ac_tmp/stdin";; 11585 *) # Look for the file first in the build tree, then in the source tree 11586 # (if the path is not absolute). The absolute path cannot be DOS-style, 11587 # because $ac_f cannot contain `:'. 11588 test -f "$ac_f" || 11589 case $ac_f in 11590 [\\/$]*) false;; 11591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11592 esac || 11593 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11594 esac 11595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11596 as_fn_append ac_file_inputs " '$ac_f'" 11597 done 11598 11599 # Let's still pretend it is `configure' which instantiates (i.e., don't 11600 # use $as_me), people would be surprised to read: 11601 # /* config.h. Generated by config.status. */ 11602 configure_input='Generated from '` 11603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11604 `' by configure.' 11605 if test x"$ac_file" != x-; then 11606 configure_input="$ac_file. $configure_input" 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11608$as_echo "$as_me: creating $ac_file" >&6;} 11609 fi 11610 # Neutralize special characters interpreted by sed in replacement strings. 11611 case $configure_input in #( 11612 *\&* | *\|* | *\\* ) 11613 ac_sed_conf_input=`$as_echo "$configure_input" | 11614 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11615 *) ac_sed_conf_input=$configure_input;; 11616 esac 11617 11618 case $ac_tag in 11619 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11621 esac 11622 ;; 11623 esac 11624 11625 ac_dir=`$as_dirname -- "$ac_file" || 11626$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11627 X"$ac_file" : 'X\(//\)[^/]' \| \ 11628 X"$ac_file" : 'X\(//\)$' \| \ 11629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11630$as_echo X"$ac_file" | 11631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11632 s//\1/ 11633 q 11634 } 11635 /^X\(\/\/\)[^/].*/{ 11636 s//\1/ 11637 q 11638 } 11639 /^X\(\/\/\)$/{ 11640 s//\1/ 11641 q 11642 } 11643 /^X\(\/\).*/{ 11644 s//\1/ 11645 q 11646 } 11647 s/.*/./; q'` 11648 as_dir="$ac_dir"; as_fn_mkdir_p 11649 ac_builddir=. 11650 11651case "$ac_dir" in 11652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11653*) 11654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11655 # A ".." for each directory in $ac_dir_suffix. 11656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11657 case $ac_top_builddir_sub in 11658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11660 esac ;; 11661esac 11662ac_abs_top_builddir=$ac_pwd 11663ac_abs_builddir=$ac_pwd$ac_dir_suffix 11664# for backward compatibility: 11665ac_top_builddir=$ac_top_build_prefix 11666 11667case $srcdir in 11668 .) # We are building in place. 11669 ac_srcdir=. 11670 ac_top_srcdir=$ac_top_builddir_sub 11671 ac_abs_top_srcdir=$ac_pwd ;; 11672 [\\/]* | ?:[\\/]* ) # Absolute name. 11673 ac_srcdir=$srcdir$ac_dir_suffix; 11674 ac_top_srcdir=$srcdir 11675 ac_abs_top_srcdir=$srcdir ;; 11676 *) # Relative name. 11677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11678 ac_top_srcdir=$ac_top_build_prefix$srcdir 11679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11680esac 11681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11682 11683 11684 case $ac_mode in 11685 :F) 11686 # 11687 # CONFIG_FILE 11688 # 11689 11690 case $INSTALL in 11691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11693 esac 11694 ac_MKDIR_P=$MKDIR_P 11695 case $MKDIR_P in 11696 [\\/$]* | ?:[\\/]* ) ;; 11697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11698 esac 11699_ACEOF 11700 11701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11702# If the template does not know about datarootdir, expand it. 11703# FIXME: This hack should be removed a few years after 2.60. 11704ac_datarootdir_hack=; ac_datarootdir_seen= 11705ac_sed_dataroot=' 11706/datarootdir/ { 11707 p 11708 q 11709} 11710/@datadir@/p 11711/@docdir@/p 11712/@infodir@/p 11713/@localedir@/p 11714/@mandir@/p' 11715case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11716*datarootdir*) ac_datarootdir_seen=yes;; 11717*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11719$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11720_ACEOF 11721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11722 ac_datarootdir_hack=' 11723 s&@datadir@&$datadir&g 11724 s&@docdir@&$docdir&g 11725 s&@infodir@&$infodir&g 11726 s&@localedir@&$localedir&g 11727 s&@mandir@&$mandir&g 11728 s&\\\${datarootdir}&$datarootdir&g' ;; 11729esac 11730_ACEOF 11731 11732# Neutralize VPATH when `$srcdir' = `.'. 11733# Shell code in configure.ac might set extrasub. 11734# FIXME: do we really want to maintain this feature? 11735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11736ac_sed_extra="$ac_vpsub 11737$extrasub 11738_ACEOF 11739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11740:t 11741/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11742s|@configure_input@|$ac_sed_conf_input|;t t 11743s&@top_builddir@&$ac_top_builddir_sub&;t t 11744s&@top_build_prefix@&$ac_top_build_prefix&;t t 11745s&@srcdir@&$ac_srcdir&;t t 11746s&@abs_srcdir@&$ac_abs_srcdir&;t t 11747s&@top_srcdir@&$ac_top_srcdir&;t t 11748s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11749s&@builddir@&$ac_builddir&;t t 11750s&@abs_builddir@&$ac_abs_builddir&;t t 11751s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11752s&@INSTALL@&$ac_INSTALL&;t t 11753s&@MKDIR_P@&$ac_MKDIR_P&;t t 11754$ac_datarootdir_hack 11755" 11756eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11758 11759test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11762 "$ac_tmp/out"`; test -z "$ac_out"; } && 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11764which seems to be undefined. Please make sure it is defined" >&5 11765$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11766which seems to be undefined. Please make sure it is defined" >&2;} 11767 11768 rm -f "$ac_tmp/stdin" 11769 case $ac_file in 11770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11772 esac \ 11773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11774 ;; 11775 :H) 11776 # 11777 # CONFIG_HEADER 11778 # 11779 if test x"$ac_file" != x-; then 11780 { 11781 $as_echo "/* $configure_input */" \ 11782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11783 } >"$ac_tmp/config.h" \ 11784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11785 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11787$as_echo "$as_me: $ac_file is unchanged" >&6;} 11788 else 11789 rm -f "$ac_file" 11790 mv "$ac_tmp/config.h" "$ac_file" \ 11791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11792 fi 11793 else 11794 $as_echo "/* $configure_input */" \ 11795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11796 || as_fn_error $? "could not create -" "$LINENO" 5 11797 fi 11798# Compute "$ac_file"'s index in $config_headers. 11799_am_arg="$ac_file" 11800_am_stamp_count=1 11801for _am_header in $config_headers :; do 11802 case $_am_header in 11803 $_am_arg | $_am_arg:* ) 11804 break ;; 11805 * ) 11806 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11807 esac 11808done 11809echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11810$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11811 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11812 X"$_am_arg" : 'X\(//\)$' \| \ 11813 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11814$as_echo X"$_am_arg" | 11815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11816 s//\1/ 11817 q 11818 } 11819 /^X\(\/\/\)[^/].*/{ 11820 s//\1/ 11821 q 11822 } 11823 /^X\(\/\/\)$/{ 11824 s//\1/ 11825 q 11826 } 11827 /^X\(\/\).*/{ 11828 s//\1/ 11829 q 11830 } 11831 s/.*/./; q'`/stamp-h$_am_stamp_count 11832 ;; 11833 11834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11835$as_echo "$as_me: executing $ac_file commands" >&6;} 11836 ;; 11837 esac 11838 11839 11840 case $ac_file$ac_mode in 11841 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11842 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11843 # are listed without --file. Let's play safe and only enable the eval 11844 # if we detect the quoting. 11845 case $CONFIG_FILES in 11846 *\'*) eval set x "$CONFIG_FILES" ;; 11847 *) set x $CONFIG_FILES ;; 11848 esac 11849 shift 11850 for mf 11851 do 11852 # Strip MF so we end up with the name of the file. 11853 mf=`echo "$mf" | sed -e 's/:.*$//'` 11854 # Check whether this is an Automake generated Makefile or not. 11855 # We used to match only the files named `Makefile.in', but 11856 # some people rename them; so instead we look at the file content. 11857 # Grep'ing the first line is not enough: some people post-process 11858 # each Makefile.in and add a new line on top of each file to say so. 11859 # Grep'ing the whole file is not good either: AIX grep has a line 11860 # limit of 2048, but all sed's we know have understand at least 4000. 11861 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11862 dirpart=`$as_dirname -- "$mf" || 11863$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11864 X"$mf" : 'X\(//\)[^/]' \| \ 11865 X"$mf" : 'X\(//\)$' \| \ 11866 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11867$as_echo X"$mf" | 11868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11869 s//\1/ 11870 q 11871 } 11872 /^X\(\/\/\)[^/].*/{ 11873 s//\1/ 11874 q 11875 } 11876 /^X\(\/\/\)$/{ 11877 s//\1/ 11878 q 11879 } 11880 /^X\(\/\).*/{ 11881 s//\1/ 11882 q 11883 } 11884 s/.*/./; q'` 11885 else 11886 continue 11887 fi 11888 # Extract the definition of DEPDIR, am__include, and am__quote 11889 # from the Makefile without running `make'. 11890 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11891 test -z "$DEPDIR" && continue 11892 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11893 test -z "am__include" && continue 11894 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11895 # When using ansi2knr, U may be empty or an underscore; expand it 11896 U=`sed -n 's/^U = //p' < "$mf"` 11897 # Find all dependency output files, they are included files with 11898 # $(DEPDIR) in their names. We invoke sed twice because it is the 11899 # simplest approach to changing $(DEPDIR) to its actual value in the 11900 # expansion. 11901 for file in `sed -n " 11902 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11903 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11904 # Make sure the directory exists. 11905 test -f "$dirpart/$file" && continue 11906 fdir=`$as_dirname -- "$file" || 11907$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11908 X"$file" : 'X\(//\)[^/]' \| \ 11909 X"$file" : 'X\(//\)$' \| \ 11910 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11911$as_echo X"$file" | 11912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11913 s//\1/ 11914 q 11915 } 11916 /^X\(\/\/\)[^/].*/{ 11917 s//\1/ 11918 q 11919 } 11920 /^X\(\/\/\)$/{ 11921 s//\1/ 11922 q 11923 } 11924 /^X\(\/\).*/{ 11925 s//\1/ 11926 q 11927 } 11928 s/.*/./; q'` 11929 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11930 # echo "creating $dirpart/$file" 11931 echo '# dummy' > "$dirpart/$file" 11932 done 11933 done 11934} 11935 ;; 11936 11937 esac 11938done # for ac_tag 11939 11940 11941as_fn_exit 0 11942_ACEOF 11943ac_clean_files=$ac_clean_files_save 11944 11945test $ac_write_fail = 0 || 11946 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11947 11948 11949# configure is writing to config.log, and then calls config.status. 11950# config.status does its own redirection, appending to config.log. 11951# Unfortunately, on DOS this fails, as config.log is still kept open 11952# by configure, so config.status won't be able to write to it; its 11953# output is simply discarded. So we exec the FD to /dev/null, 11954# effectively closing config.log, so it can be properly (re)opened and 11955# appended to by config.status. When coming back to configure, we 11956# need to make the FD available again. 11957if test "$no_create" != yes; then 11958 ac_cs_success=: 11959 ac_config_status_args= 11960 test "$silent" = yes && 11961 ac_config_status_args="$ac_config_status_args --quiet" 11962 exec 5>/dev/null 11963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11964 exec 5>>config.log 11965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11966 # would make configure fail if this is the last instruction. 11967 $ac_cs_success || as_fn_exit 1 11968fi 11969if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11971$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11972fi 11973 11974