configure revision 8abc0ccf
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xauth 1.0.8. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xauth' 583PACKAGE_TARNAME='xauth' 584PACKAGE_VERSION='1.0.8' 585PACKAGE_STRING='xauth 1.0.8' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='am__EXEEXT_FALSE 626am__EXEEXT_TRUE 627LTLIBOBJS 628LIBOBJS 629LINT_FALSE 630LINT_TRUE 631LINT_FLAGS 632LINT 633XAUTH_LIBS 634XAUTH_CFLAGS 635AM_BACKSLASH 636AM_DEFAULT_VERBOSITY 637AM_DEFAULT_V 638AM_V 639MAN_SUBSTS 640XORG_MAN_PAGE 641ADMIN_MAN_DIR 642DRIVER_MAN_DIR 643MISC_MAN_DIR 644FILE_MAN_DIR 645LIB_MAN_DIR 646APP_MAN_DIR 647ADMIN_MAN_SUFFIX 648DRIVER_MAN_SUFFIX 649MISC_MAN_SUFFIX 650FILE_MAN_SUFFIX 651LIB_MAN_SUFFIX 652APP_MAN_SUFFIX 653SED 654host_os 655host_vendor 656host_cpu 657host 658build_os 659build_vendor 660build_cpu 661build 662INSTALL_CMD 663PKG_CONFIG_LIBDIR 664PKG_CONFIG_PATH 665PKG_CONFIG 666CHANGELOG_CMD 667STRICT_CFLAGS 668CWARNFLAGS 669BASE_CFLAGS 670EGREP 671GREP 672CPP 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690MAINT 691MAINTAINER_MODE_FALSE 692MAINTAINER_MODE_TRUE 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_maintainer_mode 758enable_dependency_tracking 759enable_selective_werror 760enable_strict_compilation 761enable_silent_rules 762enable_unix_transport 763enable_tcp_transport 764enable_ipv6 765enable_local_transport 766with_lint 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776CPP 777PKG_CONFIG 778PKG_CONFIG_PATH 779PKG_CONFIG_LIBDIR 780XAUTH_CFLAGS 781XAUTH_LIBS 782LINT 783LINT_FLAGS' 784 785 786# Initialize some variables set by options. 787ac_init_help= 788ac_init_version=false 789ac_unrecognized_opts= 790ac_unrecognized_sep= 791# The variables have the same names as the options, with 792# dashes changed to underlines. 793cache_file=/dev/null 794exec_prefix=NONE 795no_create= 796no_recursion= 797prefix=NONE 798program_prefix=NONE 799program_suffix=NONE 800program_transform_name=s,x,x, 801silent= 802site= 803srcdir= 804verbose= 805x_includes=NONE 806x_libraries=NONE 807 808# Installation directory options. 809# These are left unexpanded so users can "make install exec_prefix=/foo" 810# and all the variables that are supposed to be based on exec_prefix 811# by default will actually change. 812# Use braces instead of parens because sh, perl, etc. also accept them. 813# (The list follows the same order as the GNU Coding Standards.) 814bindir='${exec_prefix}/bin' 815sbindir='${exec_prefix}/sbin' 816libexecdir='${exec_prefix}/libexec' 817datarootdir='${prefix}/share' 818datadir='${datarootdir}' 819sysconfdir='${prefix}/etc' 820sharedstatedir='${prefix}/com' 821localstatedir='${prefix}/var' 822includedir='${prefix}/include' 823oldincludedir='/usr/include' 824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 825infodir='${datarootdir}/info' 826htmldir='${docdir}' 827dvidir='${docdir}' 828pdfdir='${docdir}' 829psdir='${docdir}' 830libdir='${exec_prefix}/lib' 831localedir='${datarootdir}/locale' 832mandir='${datarootdir}/man' 833 834ac_prev= 835ac_dashdash= 836for ac_option 837do 838 # If the previous option needs an argument, assign it. 839 if test -n "$ac_prev"; then 840 eval $ac_prev=\$ac_option 841 ac_prev= 842 continue 843 fi 844 845 case $ac_option in 846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 847 *=) ac_optarg= ;; 848 *) ac_optarg=yes ;; 849 esac 850 851 # Accept the important Cygnus configure options, so we can diagnose typos. 852 853 case $ac_dashdash$ac_option in 854 --) 855 ac_dashdash=yes ;; 856 857 -bindir | --bindir | --bindi | --bind | --bin | --bi) 858 ac_prev=bindir ;; 859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 860 bindir=$ac_optarg ;; 861 862 -build | --build | --buil | --bui | --bu) 863 ac_prev=build_alias ;; 864 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 865 build_alias=$ac_optarg ;; 866 867 -cache-file | --cache-file | --cache-fil | --cache-fi \ 868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 869 ac_prev=cache_file ;; 870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 872 cache_file=$ac_optarg ;; 873 874 --config-cache | -C) 875 cache_file=config.cache ;; 876 877 -datadir | --datadir | --datadi | --datad) 878 ac_prev=datadir ;; 879 -datadir=* | --datadir=* | --datadi=* | --datad=*) 880 datadir=$ac_optarg ;; 881 882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 883 | --dataroo | --dataro | --datar) 884 ac_prev=datarootdir ;; 885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 887 datarootdir=$ac_optarg ;; 888 889 -disable-* | --disable-*) 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 891 # Reject names that are not valid shell variable names. 892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 893 as_fn_error $? "invalid feature name: $ac_useropt" 894 ac_useropt_orig=$ac_useropt 895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 896 case $ac_user_opts in 897 *" 898"enable_$ac_useropt" 899"*) ;; 900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 901 ac_unrecognized_sep=', ';; 902 esac 903 eval enable_$ac_useropt=no ;; 904 905 -docdir | --docdir | --docdi | --doc | --do) 906 ac_prev=docdir ;; 907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 908 docdir=$ac_optarg ;; 909 910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 911 ac_prev=dvidir ;; 912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 913 dvidir=$ac_optarg ;; 914 915 -enable-* | --enable-*) 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 917 # Reject names that are not valid shell variable names. 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919 as_fn_error $? "invalid feature name: $ac_useropt" 920 ac_useropt_orig=$ac_useropt 921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 922 case $ac_user_opts in 923 *" 924"enable_$ac_useropt" 925"*) ;; 926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 927 ac_unrecognized_sep=', ';; 928 esac 929 eval enable_$ac_useropt=\$ac_optarg ;; 930 931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 933 | --exec | --exe | --ex) 934 ac_prev=exec_prefix ;; 935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 937 | --exec=* | --exe=* | --ex=*) 938 exec_prefix=$ac_optarg ;; 939 940 -gas | --gas | --ga | --g) 941 # Obsolete; use --with-gas. 942 with_gas=yes ;; 943 944 -help | --help | --hel | --he | -h) 945 ac_init_help=long ;; 946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 947 ac_init_help=recursive ;; 948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 949 ac_init_help=short ;; 950 951 -host | --host | --hos | --ho) 952 ac_prev=host_alias ;; 953 -host=* | --host=* | --hos=* | --ho=*) 954 host_alias=$ac_optarg ;; 955 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 957 ac_prev=htmldir ;; 958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 959 | --ht=*) 960 htmldir=$ac_optarg ;; 961 962 -includedir | --includedir | --includedi | --included | --include \ 963 | --includ | --inclu | --incl | --inc) 964 ac_prev=includedir ;; 965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 966 | --includ=* | --inclu=* | --incl=* | --inc=*) 967 includedir=$ac_optarg ;; 968 969 -infodir | --infodir | --infodi | --infod | --info | --inf) 970 ac_prev=infodir ;; 971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 972 infodir=$ac_optarg ;; 973 974 -libdir | --libdir | --libdi | --libd) 975 ac_prev=libdir ;; 976 -libdir=* | --libdir=* | --libdi=* | --libd=*) 977 libdir=$ac_optarg ;; 978 979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 980 | --libexe | --libex | --libe) 981 ac_prev=libexecdir ;; 982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 983 | --libexe=* | --libex=* | --libe=*) 984 libexecdir=$ac_optarg ;; 985 986 -localedir | --localedir | --localedi | --localed | --locale) 987 ac_prev=localedir ;; 988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 989 localedir=$ac_optarg ;; 990 991 -localstatedir | --localstatedir | --localstatedi | --localstated \ 992 | --localstate | --localstat | --localsta | --localst | --locals) 993 ac_prev=localstatedir ;; 994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 996 localstatedir=$ac_optarg ;; 997 998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 999 ac_prev=mandir ;; 1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1001 mandir=$ac_optarg ;; 1002 1003 -nfp | --nfp | --nf) 1004 # Obsolete; use --without-fp. 1005 with_fp=no ;; 1006 1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1008 | --no-cr | --no-c | -n) 1009 no_create=yes ;; 1010 1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1013 no_recursion=yes ;; 1014 1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1017 | --oldin | --oldi | --old | --ol | --o) 1018 ac_prev=oldincludedir ;; 1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1022 oldincludedir=$ac_optarg ;; 1023 1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1025 ac_prev=prefix ;; 1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1027 prefix=$ac_optarg ;; 1028 1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1030 | --program-pre | --program-pr | --program-p) 1031 ac_prev=program_prefix ;; 1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1034 program_prefix=$ac_optarg ;; 1035 1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1037 | --program-suf | --program-su | --program-s) 1038 ac_prev=program_suffix ;; 1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1041 program_suffix=$ac_optarg ;; 1042 1043 -program-transform-name | --program-transform-name \ 1044 | --program-transform-nam | --program-transform-na \ 1045 | --program-transform-n | --program-transform- \ 1046 | --program-transform | --program-transfor \ 1047 | --program-transfo | --program-transf \ 1048 | --program-trans | --program-tran \ 1049 | --progr-tra | --program-tr | --program-t) 1050 ac_prev=program_transform_name ;; 1051 -program-transform-name=* | --program-transform-name=* \ 1052 | --program-transform-nam=* | --program-transform-na=* \ 1053 | --program-transform-n=* | --program-transform-=* \ 1054 | --program-transform=* | --program-transfor=* \ 1055 | --program-transfo=* | --program-transf=* \ 1056 | --program-trans=* | --program-tran=* \ 1057 | --progr-tra=* | --program-tr=* | --program-t=*) 1058 program_transform_name=$ac_optarg ;; 1059 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1061 ac_prev=pdfdir ;; 1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1063 pdfdir=$ac_optarg ;; 1064 1065 -psdir | --psdir | --psdi | --psd | --ps) 1066 ac_prev=psdir ;; 1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1068 psdir=$ac_optarg ;; 1069 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 silent=yes ;; 1073 1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1075 ac_prev=sbindir ;; 1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1077 | --sbi=* | --sb=*) 1078 sbindir=$ac_optarg ;; 1079 1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1082 | --sharedst | --shareds | --shared | --share | --shar \ 1083 | --sha | --sh) 1084 ac_prev=sharedstatedir ;; 1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1088 | --sha=* | --sh=*) 1089 sharedstatedir=$ac_optarg ;; 1090 1091 -site | --site | --sit) 1092 ac_prev=site ;; 1093 -site=* | --site=* | --sit=*) 1094 site=$ac_optarg ;; 1095 1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1097 ac_prev=srcdir ;; 1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1099 srcdir=$ac_optarg ;; 1100 1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1102 | --syscon | --sysco | --sysc | --sys | --sy) 1103 ac_prev=sysconfdir ;; 1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1106 sysconfdir=$ac_optarg ;; 1107 1108 -target | --target | --targe | --targ | --tar | --ta | --t) 1109 ac_prev=target_alias ;; 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1111 target_alias=$ac_optarg ;; 1112 1113 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1114 verbose=yes ;; 1115 1116 -version | --version | --versio | --versi | --vers | -V) 1117 ac_init_version=: ;; 1118 1119 -with-* | --with-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=\$ac_optarg ;; 1134 1135 -without-* | --without-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=no ;; 1150 1151 --x) 1152 # Obsolete; use --with-x. 1153 with_x=yes ;; 1154 1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1156 | --x-incl | --x-inc | --x-in | --x-i) 1157 ac_prev=x_includes ;; 1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1160 x_includes=$ac_optarg ;; 1161 1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1164 ac_prev=x_libraries ;; 1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1167 x_libraries=$ac_optarg ;; 1168 1169 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1170Try \`$0 --help' for more information" 1171 ;; 1172 1173 *=*) 1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1175 # Reject names that are not valid shell variable names. 1176 case $ac_envvar in #( 1177 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1179 esac 1180 eval $ac_envvar=\$ac_optarg 1181 export $ac_envvar ;; 1182 1183 *) 1184 # FIXME: should be removed in autoconf 3.0. 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1189 ;; 1190 1191 esac 1192done 1193 1194if test -n "$ac_prev"; then 1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1196 as_fn_error $? "missing argument to $ac_option" 1197fi 1198 1199if test -n "$ac_unrecognized_opts"; then 1200 case $enable_option_checking in 1201 no) ;; 1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1204 esac 1205fi 1206 1207# Check all directory arguments for consistency. 1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1209 datadir sysconfdir sharedstatedir localstatedir includedir \ 1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1211 libdir localedir mandir 1212do 1213 eval ac_val=\$$ac_var 1214 # Remove trailing slashes. 1215 case $ac_val in 1216 */ ) 1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1218 eval $ac_var=\$ac_val;; 1219 esac 1220 # Be sure to have absolute directory names. 1221 case $ac_val in 1222 [\\/$]* | ?:[\\/]* ) continue;; 1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1224 esac 1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1226done 1227 1228# There might be people who depend on the old broken behavior: `$host' 1229# used to hold the argument of --host etc. 1230# FIXME: To remove some day. 1231build=$build_alias 1232host=$host_alias 1233target=$target_alias 1234 1235# FIXME: To remove some day. 1236if test "x$host_alias" != x; then 1237 if test "x$build_alias" = x; then 1238 cross_compiling=maybe 1239 elif test "x$build_alias" != "x$host_alias"; then 1240 cross_compiling=yes 1241 fi 1242fi 1243 1244ac_tool_prefix= 1245test -n "$host_alias" && ac_tool_prefix=$host_alias- 1246 1247test "$silent" = yes && exec 6>/dev/null 1248 1249 1250ac_pwd=`pwd` && test -n "$ac_pwd" && 1251ac_ls_di=`ls -di .` && 1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1253 as_fn_error $? "working directory cannot be determined" 1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1255 as_fn_error $? "pwd does not report name of working directory" 1256 1257 1258# Find the source files, if location was not specified. 1259if test -z "$srcdir"; then 1260 ac_srcdir_defaulted=yes 1261 # Try the directory containing this script, then the parent directory. 1262 ac_confdir=`$as_dirname -- "$as_myself" || 1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264 X"$as_myself" : 'X\(//\)[^/]' \| \ 1265 X"$as_myself" : 'X\(//\)$' \| \ 1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1267$as_echo X"$as_myself" | 1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)[^/].*/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\).*/{ 1281 s//\1/ 1282 q 1283 } 1284 s/.*/./; q'` 1285 srcdir=$ac_confdir 1286 if test ! -r "$srcdir/$ac_unique_file"; then 1287 srcdir=.. 1288 fi 1289else 1290 ac_srcdir_defaulted=no 1291fi 1292if test ! -r "$srcdir/$ac_unique_file"; then 1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1295fi 1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1297ac_abs_confdir=`( 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1299 pwd)` 1300# When building in place, set srcdir=. 1301if test "$ac_abs_confdir" = "$ac_pwd"; then 1302 srcdir=. 1303fi 1304# Remove unnecessary trailing slashes from srcdir. 1305# Double slashes in file names in object file debugging info 1306# mess up M-x gdb in Emacs. 1307case $srcdir in 1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1309esac 1310for ac_var in $ac_precious_vars; do 1311 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_env_${ac_var}_value=\$${ac_var} 1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1315done 1316 1317# 1318# Report the --help message. 1319# 1320if test "$ac_init_help" = "long"; then 1321 # Omit some internal or obsolete options to make the list less imposing. 1322 # This message is too long to be a string in the A/UX 3.1 sh. 1323 cat <<_ACEOF 1324\`configure' configures xauth 1.0.8 to adapt to many kinds of systems. 1325 1326Usage: $0 [OPTION]... [VAR=VALUE]... 1327 1328To assign environment variables (e.g., CC, CFLAGS...), specify them as 1329VAR=VALUE. See below for descriptions of some of the useful variables. 1330 1331Defaults for the options are specified in brackets. 1332 1333Configuration: 1334 -h, --help display this help and exit 1335 --help=short display options specific to this package 1336 --help=recursive display the short help of all the included packages 1337 -V, --version display version information and exit 1338 -q, --quiet, --silent do not print \`checking ...' messages 1339 --cache-file=FILE cache test results in FILE [disabled] 1340 -C, --config-cache alias for \`--cache-file=config.cache' 1341 -n, --no-create do not create output files 1342 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1343 1344Installation directories: 1345 --prefix=PREFIX install architecture-independent files in PREFIX 1346 [$ac_default_prefix] 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1348 [PREFIX] 1349 1350By default, \`make install' will install all the files in 1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1352an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1353for instance \`--prefix=\$HOME'. 1354 1355For better control, use the options below. 1356 1357Fine tuning of the installation directories: 1358 --bindir=DIR user executables [EPREFIX/bin] 1359 --sbindir=DIR system admin executables [EPREFIX/sbin] 1360 --libexecdir=DIR program executables [EPREFIX/libexec] 1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381Program names: 1382 --program-prefix=PREFIX prepend PREFIX to installed program names 1383 --program-suffix=SUFFIX append SUFFIX to installed program names 1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1385 1386System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389_ACEOF 1390fi 1391 1392if test -n "$ac_init_help"; then 1393 case $ac_init_help in 1394 short | recursive ) echo "Configuration of xauth 1.0.8:";; 1395 esac 1396 cat <<\_ACEOF 1397 1398Optional Features: 1399 --disable-option-checking ignore unrecognized --enable/--with options 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-maintainer-mode 1403 enable make rules and dependencies not useful (and 1404 sometimes confusing) to the casual installer 1405 --enable-dependency-tracking 1406 do not reject slow dependency extractors 1407 --disable-dependency-tracking 1408 speeds up one-time build 1409 --disable-selective-werror 1410 Turn off selective compiler errors. (default: 1411 enabled) 1412 --enable-strict-compilation 1413 Enable all warnings from compiler and make them 1414 errors (default: disabled) 1415 --enable-silent-rules less verbose build output (undo: "make V=1") 1416 --disable-silent-rules verbose build output (undo: "make V=0") 1417 --enable-unix-transport Enable UNIX domain socket transport 1418 --enable-tcp-transport Enable TCP socket transport 1419 --enable-ipv6 Enable IPv6 support 1420 --enable-local-transport 1421 Enable os-specific local transport 1422 1423Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-lint Use a lint-style source code checker (default: 1427 disabled) 1428 1429Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 CPP C preprocessor 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 XAUTH_CFLAGS 1444 C compiler flags for XAUTH, overriding pkg-config 1445 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config 1446 LINT Path to a lint-style command 1447 LINT_FLAGS Flags for the lint-style command 1448 1449Use these variables to override the choices made by `configure' or to help 1450it to find libraries and programs with nonstandard names/locations. 1451 1452Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1453_ACEOF 1454ac_status=$? 1455fi 1456 1457if test "$ac_init_help" = "recursive"; then 1458 # If there are subdirs, report their specific --help. 1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1460 test -d "$ac_dir" || 1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1462 continue 1463 ac_builddir=. 1464 1465case "$ac_dir" in 1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467*) 1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1469 # A ".." for each directory in $ac_dir_suffix. 1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1471 case $ac_top_builddir_sub in 1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1474 esac ;; 1475esac 1476ac_abs_top_builddir=$ac_pwd 1477ac_abs_builddir=$ac_pwd$ac_dir_suffix 1478# for backward compatibility: 1479ac_top_builddir=$ac_top_build_prefix 1480 1481case $srcdir in 1482 .) # We are building in place. 1483 ac_srcdir=. 1484 ac_top_srcdir=$ac_top_builddir_sub 1485 ac_abs_top_srcdir=$ac_pwd ;; 1486 [\\/]* | ?:[\\/]* ) # Absolute name. 1487 ac_srcdir=$srcdir$ac_dir_suffix; 1488 ac_top_srcdir=$srcdir 1489 ac_abs_top_srcdir=$srcdir ;; 1490 *) # Relative name. 1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1492 ac_top_srcdir=$ac_top_build_prefix$srcdir 1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1494esac 1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1496 1497 cd "$ac_dir" || { ac_status=$?; continue; } 1498 # Check for guested configure. 1499 if test -f "$ac_srcdir/configure.gnu"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1502 elif test -f "$ac_srcdir/configure"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure" --help=recursive 1505 else 1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1507 fi || ac_status=$? 1508 cd "$ac_pwd" || { ac_status=$?; break; } 1509 done 1510fi 1511 1512test -n "$ac_init_help" && exit $ac_status 1513if $ac_init_version; then 1514 cat <<\_ACEOF 1515xauth configure 1.0.8 1516generated by GNU Autoconf 2.69 1517 1518Copyright (C) 2012 Free Software Foundation, Inc. 1519This configure script is free software; the Free Software Foundation 1520gives unlimited permission to copy, distribute and modify it. 1521_ACEOF 1522 exit 1523fi 1524 1525## ------------------------ ## 1526## Autoconf initialization. ## 1527## ------------------------ ## 1528 1529# ac_fn_c_try_compile LINENO 1530# -------------------------- 1531# Try to compile conftest.$ac_ext, and return whether this succeeded. 1532ac_fn_c_try_compile () 1533{ 1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1535 rm -f conftest.$ac_objext 1536 if { { ac_try="$ac_compile" 1537case "(($ac_try" in 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1539 *) ac_try_echo=$ac_try;; 1540esac 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1542$as_echo "$ac_try_echo"; } >&5 1543 (eval "$ac_compile") 2>conftest.err 1544 ac_status=$? 1545 if test -s conftest.err; then 1546 grep -v '^ *+' conftest.err >conftest.er1 1547 cat conftest.er1 >&5 1548 mv -f conftest.er1 conftest.err 1549 fi 1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1551 test $ac_status = 0; } && { 1552 test -z "$ac_c_werror_flag" || 1553 test ! -s conftest.err 1554 } && test -s conftest.$ac_objext; then : 1555 ac_retval=0 1556else 1557 $as_echo "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 1561fi 1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563 as_fn_set_status $ac_retval 1564 1565} # ac_fn_c_try_compile 1566 1567# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1568# --------------------------------------------- 1569# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1570# accordingly. 1571ac_fn_c_check_decl () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 as_decl_name=`echo $2|sed 's/ *(.*//'` 1575 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1577$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1578if eval \${$3+:} false; then : 1579 $as_echo_n "(cached) " >&6 1580else 1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1582/* end confdefs.h. */ 1583$4 1584int 1585main () 1586{ 1587#ifndef $as_decl_name 1588#ifdef __cplusplus 1589 (void) $as_decl_use; 1590#else 1591 (void) $as_decl_name; 1592#endif 1593#endif 1594 1595 ; 1596 return 0; 1597} 1598_ACEOF 1599if ac_fn_c_try_compile "$LINENO"; then : 1600 eval "$3=yes" 1601else 1602 eval "$3=no" 1603fi 1604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1605fi 1606eval ac_res=\$$3 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1608$as_echo "$ac_res" >&6; } 1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 1611} # ac_fn_c_check_decl 1612 1613# ac_fn_c_try_cpp LINENO 1614# ---------------------- 1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_cpp () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 if { { ac_try="$ac_cpp conftest.$ac_ext" 1620case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623esac 1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625$as_echo "$ac_try_echo"; } >&5 1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1627 ac_status=$? 1628 if test -s conftest.err; then 1629 grep -v '^ *+' conftest.err >conftest.er1 1630 cat conftest.er1 >&5 1631 mv -f conftest.er1 conftest.err 1632 fi 1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; } > conftest.i && { 1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1636 test ! -s conftest.err 1637 }; then : 1638 ac_retval=0 1639else 1640 $as_echo "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_cpp 1649 1650# ac_fn_c_try_run LINENO 1651# ---------------------- 1652# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1653# that executables *can* be run. 1654ac_fn_c_try_run () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 if { { ac_try="$ac_link" 1658case "(($ac_try" in 1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660 *) ac_try_echo=$ac_try;; 1661esac 1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663$as_echo "$ac_try_echo"; } >&5 1664 (eval "$ac_link") 2>&5 1665 ac_status=$? 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1668 { { case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_try") 2>&5 1675 ac_status=$? 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; }; }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: program exited with status $ac_status" >&5 1681 $as_echo "$as_me: failed program was:" >&5 1682sed 's/^/| /' conftest.$ac_ext >&5 1683 1684 ac_retval=$ac_status 1685fi 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_run 1691 1692# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1693# ------------------------------------------------------- 1694# Tests whether HEADER exists and can be compiled using the include files in 1695# INCLUDES, setting the cache variable VAR accordingly. 1696ac_fn_c_check_header_compile () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1700$as_echo_n "checking for $2... " >&6; } 1701if eval \${$3+:} false; then : 1702 $as_echo_n "(cached) " >&6 1703else 1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1705/* end confdefs.h. */ 1706$4 1707#include <$2> 1708_ACEOF 1709if ac_fn_c_try_compile "$LINENO"; then : 1710 eval "$3=yes" 1711else 1712 eval "$3=no" 1713fi 1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1715fi 1716eval ac_res=\$$3 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1718$as_echo "$ac_res" >&6; } 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1721} # ac_fn_c_check_header_compile 1722 1723# ac_fn_c_try_link LINENO 1724# ----------------------- 1725# Try to link conftest.$ac_ext, and return whether this succeeded. 1726ac_fn_c_try_link () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 rm -f conftest.$ac_objext conftest$ac_exeext 1730 if { { ac_try="$ac_link" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>conftest.err 1738 ac_status=$? 1739 if test -s conftest.err; then 1740 grep -v '^ *+' conftest.err >conftest.er1 1741 cat conftest.er1 >&5 1742 mv -f conftest.er1 conftest.err 1743 fi 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; } && { 1746 test -z "$ac_c_werror_flag" || 1747 test ! -s conftest.err 1748 } && test -s conftest$ac_exeext && { 1749 test "$cross_compiling" = yes || 1750 test -x conftest$ac_exeext 1751 }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=1 1758fi 1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1761 # interfere with the next link command; also delete a directory that is 1762 # left behind by Apple's compiler. We do this before executing the actions. 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_link 1768 1769# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1770# ------------------------------------------------------- 1771# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1772# the include files in INCLUDES and setting the cache variable VAR 1773# accordingly. 1774ac_fn_c_check_header_mongrel () 1775{ 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 if eval \${$3+:} false; then : 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779$as_echo_n "checking for $2... " >&6; } 1780if eval \${$3+:} false; then : 1781 $as_echo_n "(cached) " >&6 1782fi 1783eval ac_res=\$$3 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785$as_echo "$ac_res" >&6; } 1786else 1787 # Is the header compilable? 1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1789$as_echo_n "checking $2 usability... " >&6; } 1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1791/* end confdefs.h. */ 1792$4 1793#include <$2> 1794_ACEOF 1795if ac_fn_c_try_compile "$LINENO"; then : 1796 ac_header_compiler=yes 1797else 1798 ac_header_compiler=no 1799fi 1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1802$as_echo "$ac_header_compiler" >&6; } 1803 1804# Is the header present? 1805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1806$as_echo_n "checking $2 presence... " >&6; } 1807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808/* end confdefs.h. */ 1809#include <$2> 1810_ACEOF 1811if ac_fn_c_try_cpp "$LINENO"; then : 1812 ac_header_preproc=yes 1813else 1814 ac_header_preproc=no 1815fi 1816rm -f conftest.err conftest.i conftest.$ac_ext 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1818$as_echo "$ac_header_preproc" >&6; } 1819 1820# So? What about this header? 1821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1822 yes:no: ) 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1824$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1827 ;; 1828 no:yes:* ) 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1830$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1832$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1834$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1836$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1839( $as_echo "## ---------------------------------------------------------------------- ## 1840## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1841## ---------------------------------------------------------------------- ##" 1842 ) | sed "s/^/$as_me: WARNING: /" >&2 1843 ;; 1844esac 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1846$as_echo_n "checking for $2... " >&6; } 1847if eval \${$3+:} false; then : 1848 $as_echo_n "(cached) " >&6 1849else 1850 eval "$3=\$ac_header_compiler" 1851fi 1852eval ac_res=\$$3 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854$as_echo "$ac_res" >&6; } 1855fi 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 1858} # ac_fn_c_check_header_mongrel 1859 1860# ac_fn_c_check_func LINENO FUNC VAR 1861# ---------------------------------- 1862# Tests whether FUNC exists, setting the cache variable VAR accordingly 1863ac_fn_c_check_func () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1867$as_echo_n "checking for $2... " >&6; } 1868if eval \${$3+:} false; then : 1869 $as_echo_n "(cached) " >&6 1870else 1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1872/* end confdefs.h. */ 1873/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1874 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1875#define $2 innocuous_$2 1876 1877/* System header to define __stub macros and hopefully few prototypes, 1878 which can conflict with char $2 (); below. 1879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1880 <limits.h> exists even on freestanding compilers. */ 1881 1882#ifdef __STDC__ 1883# include <limits.h> 1884#else 1885# include <assert.h> 1886#endif 1887 1888#undef $2 1889 1890/* Override any GCC internal prototype to avoid an error. 1891 Use char because int might match the return type of a GCC 1892 builtin and then its argument prototype would still apply. */ 1893#ifdef __cplusplus 1894extern "C" 1895#endif 1896char $2 (); 1897/* The GNU C library defines this for functions which it implements 1898 to always fail with ENOSYS. Some functions are actually named 1899 something starting with __ and the normal name is an alias. */ 1900#if defined __stub_$2 || defined __stub___$2 1901choke me 1902#endif 1903 1904int 1905main () 1906{ 1907return $2 (); 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_link "$LINENO"; then : 1913 eval "$3=yes" 1914else 1915 eval "$3=no" 1916fi 1917rm -f core conftest.err conftest.$ac_objext \ 1918 conftest$ac_exeext conftest.$ac_ext 1919fi 1920eval ac_res=\$$3 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922$as_echo "$ac_res" >&6; } 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 1925} # ac_fn_c_check_func 1926 1927# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1928# ---------------------------------------------------- 1929# Tries to find if the field MEMBER exists in type AGGR, after including 1930# INCLUDES, setting cache variable VAR accordingly. 1931ac_fn_c_check_member () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1935$as_echo_n "checking for $2.$3... " >&6; } 1936if eval \${$4+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$5 1942int 1943main () 1944{ 1945static $2 ac_aggr; 1946if (ac_aggr.$3) 1947return 0; 1948 ; 1949 return 0; 1950} 1951_ACEOF 1952if ac_fn_c_try_compile "$LINENO"; then : 1953 eval "$4=yes" 1954else 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$5 1958int 1959main () 1960{ 1961static $2 ac_aggr; 1962if (sizeof ac_aggr.$3) 1963return 0; 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_compile "$LINENO"; then : 1969 eval "$4=yes" 1970else 1971 eval "$4=no" 1972fi 1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976fi 1977eval ac_res=\$$4 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1979$as_echo "$ac_res" >&6; } 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 1982} # ac_fn_c_check_member 1983 1984# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1985# ------------------------------------------- 1986# Tests whether TYPE exists after having included INCLUDES, setting cache 1987# variable VAR accordingly. 1988ac_fn_c_check_type () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992$as_echo_n "checking for $2... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995else 1996 eval "$3=no" 1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999$4 2000int 2001main () 2002{ 2003if (sizeof ($2)) 2004 return 0; 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO"; then : 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main () 2015{ 2016if (sizeof (($2))) 2017 return 0; 2018 ; 2019 return 0; 2020} 2021_ACEOF 2022if ac_fn_c_try_compile "$LINENO"; then : 2023 2024else 2025 eval "$3=yes" 2026fi 2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030fi 2031eval ac_res=\$$3 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2033$as_echo "$ac_res" >&6; } 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 2036} # ac_fn_c_check_type 2037cat >config.log <<_ACEOF 2038This file contains any messages produced by compilers while 2039running configure, to aid debugging if configure makes a mistake. 2040 2041It was created by xauth $as_me 1.0.8, which was 2042generated by GNU Autoconf 2.69. Invocation command line was 2043 2044 $ $0 $@ 2045 2046_ACEOF 2047exec 5>>config.log 2048{ 2049cat <<_ASUNAME 2050## --------- ## 2051## Platform. ## 2052## --------- ## 2053 2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2055uname -m = `(uname -m) 2>/dev/null || echo unknown` 2056uname -r = `(uname -r) 2>/dev/null || echo unknown` 2057uname -s = `(uname -s) 2>/dev/null || echo unknown` 2058uname -v = `(uname -v) 2>/dev/null || echo unknown` 2059 2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2061/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2062 2063/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2064/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2066/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2067/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2068/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2069/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2070 2071_ASUNAME 2072 2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2074for as_dir in $PATH 2075do 2076 IFS=$as_save_IFS 2077 test -z "$as_dir" && as_dir=. 2078 $as_echo "PATH: $as_dir" 2079 done 2080IFS=$as_save_IFS 2081 2082} >&5 2083 2084cat >&5 <<_ACEOF 2085 2086 2087## ----------- ## 2088## Core tests. ## 2089## ----------- ## 2090 2091_ACEOF 2092 2093 2094# Keep a trace of the command line. 2095# Strip out --no-create and --no-recursion so they do not pile up. 2096# Strip out --silent because we don't want to record it for future runs. 2097# Also quote any args containing shell meta-characters. 2098# Make two passes to allow for proper duplicate-argument suppression. 2099ac_configure_args= 2100ac_configure_args0= 2101ac_configure_args1= 2102ac_must_keep_next=false 2103for ac_pass in 1 2 2104do 2105 for ac_arg 2106 do 2107 case $ac_arg in 2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2110 | -silent | --silent | --silen | --sile | --sil) 2111 continue ;; 2112 *\'*) 2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2114 esac 2115 case $ac_pass in 2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2117 2) 2118 as_fn_append ac_configure_args1 " '$ac_arg'" 2119 if test $ac_must_keep_next = true; then 2120 ac_must_keep_next=false # Got value, back to normal. 2121 else 2122 case $ac_arg in 2123 *=* | --config-cache | -C | -disable-* | --disable-* \ 2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2126 | -with-* | --with-* | -without-* | --without-* | --x) 2127 case "$ac_configure_args0 " in 2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2129 esac 2130 ;; 2131 -* ) ac_must_keep_next=true ;; 2132 esac 2133 fi 2134 as_fn_append ac_configure_args " '$ac_arg'" 2135 ;; 2136 esac 2137 done 2138done 2139{ ac_configure_args0=; unset ac_configure_args0;} 2140{ ac_configure_args1=; unset ac_configure_args1;} 2141 2142# When interrupted or exit'd, cleanup temporary files, and complete 2143# config.log. We remove comments because anyway the quotes in there 2144# would cause problems or look ugly. 2145# WARNING: Use '\'' to represent an apostrophe within the trap. 2146# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2147trap 'exit_status=$? 2148 # Save into config.log some information that might help in debugging. 2149 { 2150 echo 2151 2152 $as_echo "## ---------------- ## 2153## Cache variables. ## 2154## ---------------- ##" 2155 echo 2156 # The following way of writing the cache mishandles newlines in values, 2157( 2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2159 eval ac_val=\$$ac_var 2160 case $ac_val in #( 2161 *${as_nl}*) 2162 case $ac_var in #( 2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2165 esac 2166 case $ac_var in #( 2167 _ | IFS | as_nl) ;; #( 2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2169 *) { eval $ac_var=; unset $ac_var;} ;; 2170 esac ;; 2171 esac 2172 done 2173 (set) 2>&1 | 2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2175 *${as_nl}ac_space=\ *) 2176 sed -n \ 2177 "s/'\''/'\''\\\\'\'''\''/g; 2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2179 ;; #( 2180 *) 2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2182 ;; 2183 esac | 2184 sort 2185) 2186 echo 2187 2188 $as_echo "## ----------------- ## 2189## Output variables. ## 2190## ----------------- ##" 2191 echo 2192 for ac_var in $ac_subst_vars 2193 do 2194 eval ac_val=\$$ac_var 2195 case $ac_val in 2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2197 esac 2198 $as_echo "$ac_var='\''$ac_val'\''" 2199 done | sort 2200 echo 2201 2202 if test -n "$ac_subst_files"; then 2203 $as_echo "## ------------------- ## 2204## File substitutions. ## 2205## ------------------- ##" 2206 echo 2207 for ac_var in $ac_subst_files 2208 do 2209 eval ac_val=\$$ac_var 2210 case $ac_val in 2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2212 esac 2213 $as_echo "$ac_var='\''$ac_val'\''" 2214 done | sort 2215 echo 2216 fi 2217 2218 if test -s confdefs.h; then 2219 $as_echo "## ----------- ## 2220## confdefs.h. ## 2221## ----------- ##" 2222 echo 2223 cat confdefs.h 2224 echo 2225 fi 2226 test "$ac_signal" != 0 && 2227 $as_echo "$as_me: caught signal $ac_signal" 2228 $as_echo "$as_me: exit $exit_status" 2229 } >&5 2230 rm -f core *.core core.conftest.* && 2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2232 exit $exit_status 2233' 0 2234for ac_signal in 1 2 13 15; do 2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2236done 2237ac_signal=0 2238 2239# confdefs.h avoids OS command line length limits that DEFS can exceed. 2240rm -f -r conftest* confdefs.h 2241 2242$as_echo "/* confdefs.h */" > confdefs.h 2243 2244# Predefined preprocessor variables. 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE_NAME "$PACKAGE_NAME" 2248_ACEOF 2249 2250cat >>confdefs.h <<_ACEOF 2251#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2252_ACEOF 2253 2254cat >>confdefs.h <<_ACEOF 2255#define PACKAGE_VERSION "$PACKAGE_VERSION" 2256_ACEOF 2257 2258cat >>confdefs.h <<_ACEOF 2259#define PACKAGE_STRING "$PACKAGE_STRING" 2260_ACEOF 2261 2262cat >>confdefs.h <<_ACEOF 2263#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2264_ACEOF 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE_URL "$PACKAGE_URL" 2268_ACEOF 2269 2270 2271# Let the site file select an alternate cache file if it wants to. 2272# Prefer an explicitly selected file to automatically selected ones. 2273ac_site_file1=NONE 2274ac_site_file2=NONE 2275if test -n "$CONFIG_SITE"; then 2276 # We do not want a PATH search for config.site. 2277 case $CONFIG_SITE in #(( 2278 -*) ac_site_file1=./$CONFIG_SITE;; 2279 */*) ac_site_file1=$CONFIG_SITE;; 2280 *) ac_site_file1=./$CONFIG_SITE;; 2281 esac 2282elif test "x$prefix" != xNONE; then 2283 ac_site_file1=$prefix/share/config.site 2284 ac_site_file2=$prefix/etc/config.site 2285else 2286 ac_site_file1=$ac_default_prefix/share/config.site 2287 ac_site_file2=$ac_default_prefix/etc/config.site 2288fi 2289for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2290do 2291 test "x$ac_site_file" = xNONE && continue 2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2294$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2295 sed 's/^/| /' "$ac_site_file" >&5 2296 . "$ac_site_file" \ 2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2299as_fn_error $? "failed to load site script $ac_site_file 2300See \`config.log' for more details" "$LINENO" 5; } 2301 fi 2302done 2303 2304if test -r "$cache_file"; then 2305 # Some versions of bash will fail to source /dev/null (special files 2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2309$as_echo "$as_me: loading cache $cache_file" >&6;} 2310 case $cache_file in 2311 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2312 *) . "./$cache_file";; 2313 esac 2314 fi 2315else 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2317$as_echo "$as_me: creating cache $cache_file" >&6;} 2318 >$cache_file 2319fi 2320 2321# Check that the precious variables saved in the cache have kept the same 2322# value. 2323ac_cache_corrupted=false 2324for ac_var in $ac_precious_vars; do 2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2326 eval ac_new_set=\$ac_env_${ac_var}_set 2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2328 eval ac_new_val=\$ac_env_${ac_var}_value 2329 case $ac_old_set,$ac_new_set in 2330 set,) 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2332$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2333 ac_cache_corrupted=: ;; 2334 ,set) 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2336$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2337 ac_cache_corrupted=: ;; 2338 ,);; 2339 *) 2340 if test "x$ac_old_val" != "x$ac_new_val"; then 2341 # differences in whitespace do not lead to failure. 2342 ac_old_val_w=`echo x $ac_old_val` 2343 ac_new_val_w=`echo x $ac_new_val` 2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2346$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2347 ac_cache_corrupted=: 2348 else 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2350$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2351 eval $ac_var=\$ac_old_val 2352 fi 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2354$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2356$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2357 fi;; 2358 esac 2359 # Pass precious variables to config.status. 2360 if test "$ac_new_set" = set; then 2361 case $ac_new_val in 2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2363 *) ac_arg=$ac_var=$ac_new_val ;; 2364 esac 2365 case " $ac_configure_args " in 2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2368 esac 2369 fi 2370done 2371if $ac_cache_corrupted; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2375$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2377fi 2378## -------------------- ## 2379## Main body of script. ## 2380## -------------------- ## 2381 2382ac_ext=c 2383ac_cpp='$CPP $CPPFLAGS' 2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2386ac_compiler_gnu=$ac_cv_c_compiler_gnu 2387 2388 2389am__api_version='1.12' 2390 2391ac_aux_dir= 2392for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2393 if test -f "$ac_dir/install-sh"; then 2394 ac_aux_dir=$ac_dir 2395 ac_install_sh="$ac_aux_dir/install-sh -c" 2396 break 2397 elif test -f "$ac_dir/install.sh"; then 2398 ac_aux_dir=$ac_dir 2399 ac_install_sh="$ac_aux_dir/install.sh -c" 2400 break 2401 elif test -f "$ac_dir/shtool"; then 2402 ac_aux_dir=$ac_dir 2403 ac_install_sh="$ac_aux_dir/shtool install -c" 2404 break 2405 fi 2406done 2407if test -z "$ac_aux_dir"; then 2408 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2409fi 2410 2411# These three variables are undocumented and unsupported, 2412# and are intended to be withdrawn in a future Autoconf release. 2413# They can cause serious problems if a builder's source tree is in a directory 2414# whose full name contains unusual characters. 2415ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2416ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2417ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2418 2419 2420# Find a good install program. We prefer a C program (faster), 2421# so one script is as good as another. But avoid the broken or 2422# incompatible versions: 2423# SysV /etc/install, /usr/sbin/install 2424# SunOS /usr/etc/install 2425# IRIX /sbin/install 2426# AIX /bin/install 2427# AmigaOS /C/install, which installs bootblocks on floppy discs 2428# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2429# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2430# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2431# OS/2's system install, which has a completely different semantic 2432# ./install, which can be erroneously created by make from ./install.sh. 2433# Reject install programs that cannot install multiple files. 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2435$as_echo_n "checking for a BSD-compatible install... " >&6; } 2436if test -z "$INSTALL"; then 2437if ${ac_cv_path_install+:} false; then : 2438 $as_echo_n "(cached) " >&6 2439else 2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 # Account for people who put trailing slashes in PATH elements. 2446case $as_dir/ in #(( 2447 ./ | .// | /[cC]/* | \ 2448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2449 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2450 /usr/ucb/* ) ;; 2451 *) 2452 # OSF1 and SCO ODT 3.0 have their own names for install. 2453 # Don't use installbsd from OSF since it installs stuff as root 2454 # by default. 2455 for ac_prog in ginstall scoinst install; do 2456 for ac_exec_ext in '' $ac_executable_extensions; do 2457 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2458 if test $ac_prog = install && 2459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2460 # AIX install. It has an incompatible calling convention. 2461 : 2462 elif test $ac_prog = install && 2463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2464 # program-specific install script used by HP pwplus--don't use. 2465 : 2466 else 2467 rm -rf conftest.one conftest.two conftest.dir 2468 echo one > conftest.one 2469 echo two > conftest.two 2470 mkdir conftest.dir 2471 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2472 test -s conftest.one && test -s conftest.two && 2473 test -s conftest.dir/conftest.one && 2474 test -s conftest.dir/conftest.two 2475 then 2476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2477 break 3 2478 fi 2479 fi 2480 fi 2481 done 2482 done 2483 ;; 2484esac 2485 2486 done 2487IFS=$as_save_IFS 2488 2489rm -rf conftest.one conftest.two conftest.dir 2490 2491fi 2492 if test "${ac_cv_path_install+set}" = set; then 2493 INSTALL=$ac_cv_path_install 2494 else 2495 # As a last resort, use the slow shell script. Don't cache a 2496 # value for INSTALL within a source directory, because that will 2497 # break other packages using the cache if that directory is 2498 # removed, or if the value is a relative name. 2499 INSTALL=$ac_install_sh 2500 fi 2501fi 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2503$as_echo "$INSTALL" >&6; } 2504 2505# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2506# It thinks the first close brace ends the variable substitution. 2507test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2508 2509test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2510 2511test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2512 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2514$as_echo_n "checking whether build environment is sane... " >&6; } 2515# Reject unsafe characters in $srcdir or the absolute working directory 2516# name. Accept space and tab only in the latter. 2517am_lf=' 2518' 2519case `pwd` in 2520 *[\\\"\#\$\&\'\`$am_lf]*) 2521 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2522esac 2523case $srcdir in 2524 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2525 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2526esac 2527 2528# Do 'set' in a subshell so we don't clobber the current shell's 2529# arguments. Must try -L first in case configure is actually a 2530# symlink; some systems play weird games with the mod time of symlinks 2531# (eg FreeBSD returns the mod time of the symlink's containing 2532# directory). 2533if ( 2534 am_has_slept=no 2535 for am_try in 1 2; do 2536 echo "timestamp, slept: $am_has_slept" > conftest.file 2537 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2538 if test "$*" = "X"; then 2539 # -L didn't work. 2540 set X `ls -t "$srcdir/configure" conftest.file` 2541 fi 2542 if test "$*" != "X $srcdir/configure conftest.file" \ 2543 && test "$*" != "X conftest.file $srcdir/configure"; then 2544 2545 # If neither matched, then we have a broken ls. This can happen 2546 # if, for instance, CONFIG_SHELL is bash and it inherits a 2547 # broken ls alias from the environment. This has actually 2548 # happened. Such a system could not be considered "sane". 2549 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2550 alias in your environment" "$LINENO" 5 2551 fi 2552 if test "$2" = conftest.file || test $am_try -eq 2; then 2553 break 2554 fi 2555 # Just in case. 2556 sleep 1 2557 am_has_slept=yes 2558 done 2559 test "$2" = conftest.file 2560 ) 2561then 2562 # Ok. 2563 : 2564else 2565 as_fn_error $? "newly created file is older than distributed files! 2566Check your system clock" "$LINENO" 5 2567fi 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2569$as_echo "yes" >&6; } 2570# If we didn't sleep, we still need to ensure time stamps of config.status and 2571# generated files are strictly newer. 2572am_sleep_pid= 2573if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2574 ( sleep 1 ) & 2575 am_sleep_pid=$! 2576fi 2577 2578rm -f conftest.file 2579 2580test "$program_prefix" != NONE && 2581 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2582# Use a double $ so make ignores it. 2583test "$program_suffix" != NONE && 2584 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2585# Double any \ or $. 2586# By default was `s,x,x', remove it if useless. 2587ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2588program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2589 2590# expand $ac_aux_dir to an absolute path 2591am_aux_dir=`cd $ac_aux_dir && pwd` 2592 2593if test x"${MISSING+set}" != xset; then 2594 case $am_aux_dir in 2595 *\ * | *\ *) 2596 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2597 *) 2598 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2599 esac 2600fi 2601# Use eval to expand $SHELL 2602if eval "$MISSING --run true"; then 2603 am_missing_run="$MISSING --run " 2604else 2605 am_missing_run= 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2607$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2608fi 2609 2610if test x"${install_sh}" != xset; then 2611 case $am_aux_dir in 2612 *\ * | *\ *) 2613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2614 *) 2615 install_sh="\${SHELL} $am_aux_dir/install-sh" 2616 esac 2617fi 2618 2619# Installed binaries are usually stripped using 'strip' when the user 2620# run "make install-strip". However 'strip' might not be the right 2621# tool to use in cross-compilation environments, therefore Automake 2622# will honor the 'STRIP' environment variable to overrule this program. 2623if test "$cross_compiling" != no; then 2624 if test -n "$ac_tool_prefix"; then 2625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2626set dummy ${ac_tool_prefix}strip; ac_word=$2 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2628$as_echo_n "checking for $ac_word... " >&6; } 2629if ${ac_cv_prog_STRIP+:} false; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test -n "$STRIP"; then 2633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2634else 2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636for as_dir in $PATH 2637do 2638 IFS=$as_save_IFS 2639 test -z "$as_dir" && as_dir=. 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2642 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647 done 2648IFS=$as_save_IFS 2649 2650fi 2651fi 2652STRIP=$ac_cv_prog_STRIP 2653if test -n "$STRIP"; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2655$as_echo "$STRIP" >&6; } 2656else 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2658$as_echo "no" >&6; } 2659fi 2660 2661 2662fi 2663if test -z "$ac_cv_prog_STRIP"; then 2664 ac_ct_STRIP=$STRIP 2665 # Extract the first word of "strip", so it can be a program name with args. 2666set dummy strip; ac_word=$2 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$ac_ct_STRIP"; then 2673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2682 ac_cv_prog_ac_ct_STRIP="strip" 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687 done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2693if test -n "$ac_ct_STRIP"; then 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2695$as_echo "$ac_ct_STRIP" >&6; } 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 if test "x$ac_ct_STRIP" = x; then 2702 STRIP=":" 2703 else 2704 case $cross_compiling:$ac_tool_warned in 2705yes:) 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2708ac_tool_warned=yes ;; 2709esac 2710 STRIP=$ac_ct_STRIP 2711 fi 2712else 2713 STRIP="$ac_cv_prog_STRIP" 2714fi 2715 2716fi 2717INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2718 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2720$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2721if test -z "$MKDIR_P"; then 2722 if ${ac_cv_path_mkdir+:} false; then : 2723 $as_echo_n "(cached) " >&6 2724else 2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2727do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_prog in mkdir gmkdir; do 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2733 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2734 'mkdir (GNU coreutils) '* | \ 2735 'mkdir (coreutils) '* | \ 2736 'mkdir (fileutils) '4.1*) 2737 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2738 break 3;; 2739 esac 2740 done 2741 done 2742 done 2743IFS=$as_save_IFS 2744 2745fi 2746 2747 test -d ./--version && rmdir ./--version 2748 if test "${ac_cv_path_mkdir+set}" = set; then 2749 MKDIR_P="$ac_cv_path_mkdir -p" 2750 else 2751 # As a last resort, use the slow shell script. Don't cache a 2752 # value for MKDIR_P within a source directory, because that will 2753 # break other packages using the cache if that directory is 2754 # removed, or if the value is a relative name. 2755 MKDIR_P="$ac_install_sh -d" 2756 fi 2757fi 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2759$as_echo "$MKDIR_P" >&6; } 2760 2761for ac_prog in gawk mawk nawk awk 2762do 2763 # Extract the first word of "$ac_prog", so it can be a program name with args. 2764set dummy $ac_prog; ac_word=$2 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if ${ac_cv_prog_AWK+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$AWK"; then 2771 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2772else 2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2780 ac_cv_prog_AWK="$ac_prog" 2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785 done 2786IFS=$as_save_IFS 2787 2788fi 2789fi 2790AWK=$ac_cv_prog_AWK 2791if test -n "$AWK"; then 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2793$as_echo "$AWK" >&6; } 2794else 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796$as_echo "no" >&6; } 2797fi 2798 2799 2800 test -n "$AWK" && break 2801done 2802 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2804$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2805set x ${MAKE-make} 2806ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2807if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 cat >conftest.make <<\_ACEOF 2811SHELL = /bin/sh 2812all: 2813 @echo '@@@%%%=$(MAKE)=@@@%%%' 2814_ACEOF 2815# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2816case `${MAKE-make} -f conftest.make 2>/dev/null` in 2817 *@@@%%%=?*=@@@%%%*) 2818 eval ac_cv_prog_make_${ac_make}_set=yes;; 2819 *) 2820 eval ac_cv_prog_make_${ac_make}_set=no;; 2821esac 2822rm -f conftest.make 2823fi 2824if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2826$as_echo "yes" >&6; } 2827 SET_MAKE= 2828else 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2830$as_echo "no" >&6; } 2831 SET_MAKE="MAKE=${MAKE-make}" 2832fi 2833 2834rm -rf .tst 2>/dev/null 2835mkdir .tst 2>/dev/null 2836if test -d .tst; then 2837 am__leading_dot=. 2838else 2839 am__leading_dot=_ 2840fi 2841rmdir .tst 2>/dev/null 2842 2843if test "`cd $srcdir && pwd`" != "`pwd`"; then 2844 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2845 # is not polluted with repeated "-I." 2846 am__isrc=' -I$(srcdir)' 2847 # test to see if srcdir already configured 2848 if test -f $srcdir/config.status; then 2849 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2850 fi 2851fi 2852 2853# test whether we have cygpath 2854if test -z "$CYGPATH_W"; then 2855 if (cygpath --version) >/dev/null 2>/dev/null; then 2856 CYGPATH_W='cygpath -w' 2857 else 2858 CYGPATH_W=echo 2859 fi 2860fi 2861 2862 2863# Define the identity of the package. 2864 PACKAGE='xauth' 2865 VERSION='1.0.8' 2866 2867 2868cat >>confdefs.h <<_ACEOF 2869#define PACKAGE "$PACKAGE" 2870_ACEOF 2871 2872 2873cat >>confdefs.h <<_ACEOF 2874#define VERSION "$VERSION" 2875_ACEOF 2876 2877# Some tools Automake needs. 2878 2879ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2880 2881 2882AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2883 2884 2885AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2886 2887 2888AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2889 2890 2891MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2892 2893# For better backward compatibility. To be removed once Automake 1.9.x 2894# dies out for good. For more background, see: 2895# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2896# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2897mkdir_p='$(MKDIR_P)' 2898 2899# We need awk for the "check" target. The system "awk" is bad on 2900# some platforms. 2901# Always define AMTAR for backward compatibility. Yes, it's still used 2902# in the wild :-( We should find a proper way to deprecate it ... 2903AMTAR='$${TAR-tar}' 2904 2905am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2906 2907 2908 2909 2910 2911 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2913$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2914 # Check whether --enable-maintainer-mode was given. 2915if test "${enable_maintainer_mode+set}" = set; then : 2916 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2917else 2918 USE_MAINTAINER_MODE=no 2919fi 2920 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2922$as_echo "$USE_MAINTAINER_MODE" >&6; } 2923 if test $USE_MAINTAINER_MODE = yes; then 2924 MAINTAINER_MODE_TRUE= 2925 MAINTAINER_MODE_FALSE='#' 2926else 2927 MAINTAINER_MODE_TRUE='#' 2928 MAINTAINER_MODE_FALSE= 2929fi 2930 2931 MAINT=$MAINTAINER_MODE_TRUE 2932 2933 2934 2935ac_config_headers="$ac_config_headers config.h" 2936 2937 2938# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950DEPDIR="${am__leading_dot}deps" 2951 2952ac_config_commands="$ac_config_commands depfiles" 2953 2954 2955am_make=${MAKE-make} 2956cat > confinc << 'END' 2957am__doit: 2958 @echo this is the am__doit target 2959.PHONY: am__doit 2960END 2961# If we don't find an include directive, just comment out the code. 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2963$as_echo_n "checking for style of include used by $am_make... " >&6; } 2964am__include="#" 2965am__quote= 2966_am_result=none 2967# First try GNU make style include. 2968echo "include confinc" > confmf 2969# Ignore all kinds of additional output from 'make'. 2970case `$am_make -s -f confmf 2> /dev/null` in #( 2971*the\ am__doit\ target*) 2972 am__include=include 2973 am__quote= 2974 _am_result=GNU 2975 ;; 2976esac 2977# Now try BSD make style include. 2978if test "$am__include" = "#"; then 2979 echo '.include "confinc"' > confmf 2980 case `$am_make -s -f confmf 2> /dev/null` in #( 2981 *the\ am__doit\ target*) 2982 am__include=.include 2983 am__quote="\"" 2984 _am_result=BSD 2985 ;; 2986 esac 2987fi 2988 2989 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2991$as_echo "$_am_result" >&6; } 2992rm -f confinc confmf 2993 2994# Check whether --enable-dependency-tracking was given. 2995if test "${enable_dependency_tracking+set}" = set; then : 2996 enableval=$enable_dependency_tracking; 2997fi 2998 2999if test "x$enable_dependency_tracking" != xno; then 3000 am_depcomp="$ac_aux_dir/depcomp" 3001 AMDEPBACKSLASH='\' 3002 am__nodep='_no' 3003fi 3004 if test "x$enable_dependency_tracking" != xno; then 3005 AMDEP_TRUE= 3006 AMDEP_FALSE='#' 3007else 3008 AMDEP_TRUE='#' 3009 AMDEP_FALSE= 3010fi 3011 3012 3013ac_ext=c 3014ac_cpp='$CPP $CPPFLAGS' 3015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3017ac_compiler_gnu=$ac_cv_c_compiler_gnu 3018if test -n "$ac_tool_prefix"; then 3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3020set dummy ${ac_tool_prefix}gcc; ac_word=$2 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022$as_echo_n "checking for $ac_word... " >&6; } 3023if ${ac_cv_prog_CC+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 if test -n "$CC"; then 3027 ac_cv_prog_CC="$CC" # Let the user override the test. 3028else 3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 test -z "$as_dir" && as_dir=. 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040done 3041 done 3042IFS=$as_save_IFS 3043 3044fi 3045fi 3046CC=$ac_cv_prog_CC 3047if test -n "$CC"; then 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3049$as_echo "$CC" >&6; } 3050else 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052$as_echo "no" >&6; } 3053fi 3054 3055 3056fi 3057if test -z "$ac_cv_prog_CC"; then 3058 ac_ct_CC=$CC 3059 # Extract the first word of "gcc", so it can be a program name with args. 3060set dummy gcc; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if ${ac_cv_prog_ac_ct_CC+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$ac_ct_CC"; then 3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3076 ac_cv_prog_ac_ct_CC="gcc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086ac_ct_CC=$ac_cv_prog_ac_ct_CC 3087if test -n "$ac_ct_CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3089$as_echo "$ac_ct_CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 if test "x$ac_ct_CC" = x; then 3096 CC="" 3097 else 3098 case $cross_compiling:$ac_tool_warned in 3099yes:) 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3102ac_tool_warned=yes ;; 3103esac 3104 CC=$ac_ct_CC 3105 fi 3106else 3107 CC="$ac_cv_prog_CC" 3108fi 3109 3110if test -z "$CC"; then 3111 if test -n "$ac_tool_prefix"; then 3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3113set dummy ${ac_tool_prefix}cc; ac_word=$2 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3115$as_echo_n "checking for $ac_word... " >&6; } 3116if ${ac_cv_prog_CC+:} false; then : 3117 $as_echo_n "(cached) " >&6 3118else 3119 if test -n "$CC"; then 3120 ac_cv_prog_CC="$CC" # Let the user override the test. 3121else 3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123for as_dir in $PATH 3124do 3125 IFS=$as_save_IFS 3126 test -z "$as_dir" && as_dir=. 3127 for ac_exec_ext in '' $ac_executable_extensions; do 3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3129 ac_cv_prog_CC="${ac_tool_prefix}cc" 3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3131 break 2 3132 fi 3133done 3134 done 3135IFS=$as_save_IFS 3136 3137fi 3138fi 3139CC=$ac_cv_prog_CC 3140if test -n "$CC"; then 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3142$as_echo "$CC" >&6; } 3143else 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3145$as_echo "no" >&6; } 3146fi 3147 3148 3149 fi 3150fi 3151if test -z "$CC"; then 3152 # Extract the first word of "cc", so it can be a program name with args. 3153set dummy cc; ac_word=$2 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3155$as_echo_n "checking for $ac_word... " >&6; } 3156if ${ac_cv_prog_CC+:} false; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 if test -n "$CC"; then 3160 ac_cv_prog_CC="$CC" # Let the user override the test. 3161else 3162 ac_prog_rejected=no 3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3164for as_dir in $PATH 3165do 3166 IFS=$as_save_IFS 3167 test -z "$as_dir" && as_dir=. 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3171 ac_prog_rejected=yes 3172 continue 3173 fi 3174 ac_cv_prog_CC="cc" 3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3176 break 2 3177 fi 3178done 3179 done 3180IFS=$as_save_IFS 3181 3182if test $ac_prog_rejected = yes; then 3183 # We found a bogon in the path, so make sure we never use it. 3184 set dummy $ac_cv_prog_CC 3185 shift 3186 if test $# != 0; then 3187 # We chose a different compiler from the bogus one. 3188 # However, it has the same basename, so the bogon will be chosen 3189 # first if we set CC to just the basename; use the full file name. 3190 shift 3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3192 fi 3193fi 3194fi 3195fi 3196CC=$ac_cv_prog_CC 3197if test -n "$CC"; then 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3199$as_echo "$CC" >&6; } 3200else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202$as_echo "no" >&6; } 3203fi 3204 3205 3206fi 3207if test -z "$CC"; then 3208 if test -n "$ac_tool_prefix"; then 3209 for ac_prog in cl.exe 3210 do 3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3214$as_echo_n "checking for $ac_word... " >&6; } 3215if ${ac_cv_prog_CC+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -n "$CC"; then 3219 ac_cv_prog_CC="$CC" # Let the user override the test. 3220else 3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3230 break 2 3231 fi 3232done 3233 done 3234IFS=$as_save_IFS 3235 3236fi 3237fi 3238CC=$ac_cv_prog_CC 3239if test -n "$CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3241$as_echo "$CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248 test -n "$CC" && break 3249 done 3250fi 3251if test -z "$CC"; then 3252 ac_ct_CC=$CC 3253 for ac_prog in cl.exe 3254do 3255 # Extract the first word of "$ac_prog", so it can be a program name with args. 3256set dummy $ac_prog; ac_word=$2 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258$as_echo_n "checking for $ac_word... " >&6; } 3259if ${ac_cv_prog_ac_ct_CC+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if test -n "$ac_ct_CC"; then 3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3272 ac_cv_prog_ac_ct_CC="$ac_prog" 3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 break 2 3275 fi 3276done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281fi 3282ac_ct_CC=$ac_cv_prog_ac_ct_CC 3283if test -n "$ac_ct_CC"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3285$as_echo "$ac_ct_CC" >&6; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289fi 3290 3291 3292 test -n "$ac_ct_CC" && break 3293done 3294 3295 if test "x$ac_ct_CC" = x; then 3296 CC="" 3297 else 3298 case $cross_compiling:$ac_tool_warned in 3299yes:) 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3302ac_tool_warned=yes ;; 3303esac 3304 CC=$ac_ct_CC 3305 fi 3306fi 3307 3308fi 3309 3310 3311test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3313as_fn_error $? "no acceptable C compiler found in \$PATH 3314See \`config.log' for more details" "$LINENO" 5; } 3315 3316# Provide some information about the compiler. 3317$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3318set X $ac_compile 3319ac_compiler=$2 3320for ac_option in --version -v -V -qversion; do 3321 { { ac_try="$ac_compiler $ac_option >&5" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3327$as_echo "$ac_try_echo"; } >&5 3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3329 ac_status=$? 3330 if test -s conftest.err; then 3331 sed '10a\ 3332... rest of stderr output deleted ... 3333 10q' conftest.err >conftest.er1 3334 cat conftest.er1 >&5 3335 fi 3336 rm -f conftest.er1 conftest.err 3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3338 test $ac_status = 0; } 3339done 3340 3341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3342/* end confdefs.h. */ 3343 3344int 3345main () 3346{ 3347 3348 ; 3349 return 0; 3350} 3351_ACEOF 3352ac_clean_files_save=$ac_clean_files 3353ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3354# Try to create an executable without -o first, disregard a.out. 3355# It will help us diagnose broken compilers, and finding out an intuition 3356# of exeext. 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3358$as_echo_n "checking whether the C compiler works... " >&6; } 3359ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3360 3361# The possible output files: 3362ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3363 3364ac_rmfiles= 3365for ac_file in $ac_files 3366do 3367 case $ac_file in 3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3369 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3370 esac 3371done 3372rm -f $ac_rmfiles 3373 3374if { { ac_try="$ac_link_default" 3375case "(($ac_try" in 3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3377 *) ac_try_echo=$ac_try;; 3378esac 3379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3380$as_echo "$ac_try_echo"; } >&5 3381 (eval "$ac_link_default") 2>&5 3382 ac_status=$? 3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3384 test $ac_status = 0; }; then : 3385 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3386# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3387# in a Makefile. We should not override ac_cv_exeext if it was cached, 3388# so that the user can short-circuit this test for compilers unknown to 3389# Autoconf. 3390for ac_file in $ac_files '' 3391do 3392 test -f "$ac_file" || continue 3393 case $ac_file in 3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3395 ;; 3396 [ab].out ) 3397 # We found the default executable, but exeext='' is most 3398 # certainly right. 3399 break;; 3400 *.* ) 3401 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3402 then :; else 3403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3404 fi 3405 # We set ac_cv_exeext here because the later test for it is not 3406 # safe: cross compilers may not add the suffix if given an `-o' 3407 # argument, so we may need to know it at that point already. 3408 # Even if this section looks crufty: it has the advantage of 3409 # actually working. 3410 break;; 3411 * ) 3412 break;; 3413 esac 3414done 3415test "$ac_cv_exeext" = no && ac_cv_exeext= 3416 3417else 3418 ac_file='' 3419fi 3420if test -z "$ac_file"; then : 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3422$as_echo "no" >&6; } 3423$as_echo "$as_me: failed program was:" >&5 3424sed 's/^/| /' conftest.$ac_ext >&5 3425 3426{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3428as_fn_error 77 "C compiler cannot create executables 3429See \`config.log' for more details" "$LINENO" 5; } 3430else 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3432$as_echo "yes" >&6; } 3433fi 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3435$as_echo_n "checking for C compiler default output file name... " >&6; } 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3437$as_echo "$ac_file" >&6; } 3438ac_exeext=$ac_cv_exeext 3439 3440rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3441ac_clean_files=$ac_clean_files_save 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3443$as_echo_n "checking for suffix of executables... " >&6; } 3444if { { ac_try="$ac_link" 3445case "(($ac_try" in 3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3447 *) ac_try_echo=$ac_try;; 3448esac 3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3450$as_echo "$ac_try_echo"; } >&5 3451 (eval "$ac_link") 2>&5 3452 ac_status=$? 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; }; then : 3455 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3456# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3457# work properly (i.e., refer to `conftest.exe'), while it won't with 3458# `rm'. 3459for ac_file in conftest.exe conftest conftest.*; do 3460 test -f "$ac_file" || continue 3461 case $ac_file in 3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3464 break;; 3465 * ) break;; 3466 esac 3467done 3468else 3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3471as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3472See \`config.log' for more details" "$LINENO" 5; } 3473fi 3474rm -f conftest conftest$ac_cv_exeext 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3476$as_echo "$ac_cv_exeext" >&6; } 3477 3478rm -f conftest.$ac_ext 3479EXEEXT=$ac_cv_exeext 3480ac_exeext=$EXEEXT 3481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3482/* end confdefs.h. */ 3483#include <stdio.h> 3484int 3485main () 3486{ 3487FILE *f = fopen ("conftest.out", "w"); 3488 return ferror (f) || fclose (f) != 0; 3489 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494ac_clean_files="$ac_clean_files conftest.out" 3495# Check that the compiler produces executables we can run. If not, either 3496# the compiler is broken, or we cross compile. 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3498$as_echo_n "checking whether we are cross compiling... " >&6; } 3499if test "$cross_compiling" != yes; then 3500 { { ac_try="$ac_link" 3501case "(($ac_try" in 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503 *) ac_try_echo=$ac_try;; 3504esac 3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3506$as_echo "$ac_try_echo"; } >&5 3507 (eval "$ac_link") 2>&5 3508 ac_status=$? 3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510 test $ac_status = 0; } 3511 if { ac_try='./conftest$ac_cv_exeext' 3512 { { case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3517$as_echo "$ac_try_echo"; } >&5 3518 (eval "$ac_try") 2>&5 3519 ac_status=$? 3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3521 test $ac_status = 0; }; }; then 3522 cross_compiling=no 3523 else 3524 if test "$cross_compiling" = maybe; then 3525 cross_compiling=yes 3526 else 3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "cannot run C compiled programs. 3530If you meant to cross compile, use \`--host'. 3531See \`config.log' for more details" "$LINENO" 5; } 3532 fi 3533 fi 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3536$as_echo "$cross_compiling" >&6; } 3537 3538rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3539ac_clean_files=$ac_clean_files_save 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3541$as_echo_n "checking for suffix of object files... " >&6; } 3542if ${ac_cv_objext+:} false; then : 3543 $as_echo_n "(cached) " >&6 3544else 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main () 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556rm -f conftest.o conftest.obj 3557if { { ac_try="$ac_compile" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3563$as_echo "$ac_try_echo"; } >&5 3564 (eval "$ac_compile") 2>&5 3565 ac_status=$? 3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3567 test $ac_status = 0; }; then : 3568 for ac_file in conftest.o conftest.obj conftest.*; do 3569 test -f "$ac_file" || continue; 3570 case $ac_file in 3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3573 break;; 3574 esac 3575done 3576else 3577 $as_echo "$as_me: failed program was:" >&5 3578sed 's/^/| /' conftest.$ac_ext >&5 3579 3580{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3582as_fn_error $? "cannot compute suffix of object files: cannot compile 3583See \`config.log' for more details" "$LINENO" 5; } 3584fi 3585rm -f conftest.$ac_cv_objext conftest.$ac_ext 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3588$as_echo "$ac_cv_objext" >&6; } 3589OBJEXT=$ac_cv_objext 3590ac_objext=$OBJEXT 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3593if ${ac_cv_c_compiler_gnu+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597/* end confdefs.h. */ 3598 3599int 3600main () 3601{ 3602#ifndef __GNUC__ 3603 choke me 3604#endif 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610if ac_fn_c_try_compile "$LINENO"; then : 3611 ac_compiler_gnu=yes 3612else 3613 ac_compiler_gnu=no 3614fi 3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3616ac_cv_c_compiler_gnu=$ac_compiler_gnu 3617 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3620$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3621if test $ac_compiler_gnu = yes; then 3622 GCC=yes 3623else 3624 GCC= 3625fi 3626ac_test_CFLAGS=${CFLAGS+set} 3627ac_save_CFLAGS=$CFLAGS 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3629$as_echo_n "checking whether $CC accepts -g... " >&6; } 3630if ${ac_cv_prog_cc_g+:} false; then : 3631 $as_echo_n "(cached) " >&6 3632else 3633 ac_save_c_werror_flag=$ac_c_werror_flag 3634 ac_c_werror_flag=yes 3635 ac_cv_prog_cc_g=no 3636 CFLAGS="-g" 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639 3640int 3641main () 3642{ 3643 3644 ; 3645 return 0; 3646} 3647_ACEOF 3648if ac_fn_c_try_compile "$LINENO"; then : 3649 ac_cv_prog_cc_g=yes 3650else 3651 CFLAGS="" 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654 3655int 3656main () 3657{ 3658 3659 ; 3660 return 0; 3661} 3662_ACEOF 3663if ac_fn_c_try_compile "$LINENO"; then : 3664 3665else 3666 ac_c_werror_flag=$ac_save_c_werror_flag 3667 CFLAGS="-g" 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670 3671int 3672main () 3673{ 3674 3675 ; 3676 return 0; 3677} 3678_ACEOF 3679if ac_fn_c_try_compile "$LINENO"; then : 3680 ac_cv_prog_cc_g=yes 3681fi 3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3683fi 3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3685fi 3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3687 ac_c_werror_flag=$ac_save_c_werror_flag 3688fi 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3690$as_echo "$ac_cv_prog_cc_g" >&6; } 3691if test "$ac_test_CFLAGS" = set; then 3692 CFLAGS=$ac_save_CFLAGS 3693elif test $ac_cv_prog_cc_g = yes; then 3694 if test "$GCC" = yes; then 3695 CFLAGS="-g -O2" 3696 else 3697 CFLAGS="-g" 3698 fi 3699else 3700 if test "$GCC" = yes; then 3701 CFLAGS="-O2" 3702 else 3703 CFLAGS= 3704 fi 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3708if ${ac_cv_prog_cc_c89+:} false; then : 3709 $as_echo_n "(cached) " >&6 3710else 3711 ac_cv_prog_cc_c89=no 3712ac_save_CC=$CC 3713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715#include <stdarg.h> 3716#include <stdio.h> 3717struct stat; 3718/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3719struct buf { int x; }; 3720FILE * (*rcsopen) (struct buf *, struct stat *, int); 3721static char *e (p, i) 3722 char **p; 3723 int i; 3724{ 3725 return p[i]; 3726} 3727static char *f (char * (*g) (char **, int), char **p, ...) 3728{ 3729 char *s; 3730 va_list v; 3731 va_start (v,p); 3732 s = g (p, va_arg (v,int)); 3733 va_end (v); 3734 return s; 3735} 3736 3737/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3738 function prototypes and stuff, but not '\xHH' hex character constants. 3739 These don't provoke an error unfortunately, instead are silently treated 3740 as 'x'. The following induces an error, until -std is added to get 3741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3742 array size at least. It's necessary to write '\x00'==0 to get something 3743 that's true only with -std. */ 3744int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3745 3746/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3747 inside strings and character constants. */ 3748#define FOO(x) 'x' 3749int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3750 3751int test (int i, double x); 3752struct s1 {int (*f) (int a);}; 3753struct s2 {int (*f) (double a);}; 3754int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3755int argc; 3756char **argv; 3757int 3758main () 3759{ 3760return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3767do 3768 CC="$ac_save_CC $ac_arg" 3769 if ac_fn_c_try_compile "$LINENO"; then : 3770 ac_cv_prog_cc_c89=$ac_arg 3771fi 3772rm -f core conftest.err conftest.$ac_objext 3773 test "x$ac_cv_prog_cc_c89" != "xno" && break 3774done 3775rm -f conftest.$ac_ext 3776CC=$ac_save_CC 3777 3778fi 3779# AC_CACHE_VAL 3780case "x$ac_cv_prog_cc_c89" in 3781 x) 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3783$as_echo "none needed" >&6; } ;; 3784 xno) 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3786$as_echo "unsupported" >&6; } ;; 3787 *) 3788 CC="$CC $ac_cv_prog_cc_c89" 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3790$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3791esac 3792if test "x$ac_cv_prog_cc_c89" != xno; then : 3793 3794fi 3795 3796ac_ext=c 3797ac_cpp='$CPP $CPPFLAGS' 3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3800ac_compiler_gnu=$ac_cv_c_compiler_gnu 3801 3802depcc="$CC" am_compiler_list= 3803 3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3805$as_echo_n "checking dependency style of $depcc... " >&6; } 3806if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3807 $as_echo_n "(cached) " >&6 3808else 3809 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3810 # We make a subdir and do the tests there. Otherwise we can end up 3811 # making bogus files that we don't know about and never remove. For 3812 # instance it was reported that on HP-UX the gcc test will end up 3813 # making a dummy file named 'D' -- because '-MD' means "put the output 3814 # in D". 3815 rm -rf conftest.dir 3816 mkdir conftest.dir 3817 # Copy depcomp to subdir because otherwise we won't find it if we're 3818 # using a relative directory. 3819 cp "$am_depcomp" conftest.dir 3820 cd conftest.dir 3821 # We will build objects and dependencies in a subdirectory because 3822 # it helps to detect inapplicable dependency modes. For instance 3823 # both Tru64's cc and ICC support -MD to output dependencies as a 3824 # side effect of compilation, but ICC will put the dependencies in 3825 # the current directory while Tru64 will put them in the object 3826 # directory. 3827 mkdir sub 3828 3829 am_cv_CC_dependencies_compiler_type=none 3830 if test "$am_compiler_list" = ""; then 3831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3832 fi 3833 am__universal=false 3834 case " $depcc " in #( 3835 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3836 esac 3837 3838 for depmode in $am_compiler_list; do 3839 # Setup a source with many dependencies, because some compilers 3840 # like to wrap large dependency lists on column 80 (with \), and 3841 # we should not choose a depcomp mode which is confused by this. 3842 # 3843 # We need to recreate these files for each test, as the compiler may 3844 # overwrite some of them when testing with obscure command lines. 3845 # This happens at least with the AIX C compiler. 3846 : > sub/conftest.c 3847 for i in 1 2 3 4 5 6; do 3848 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3849 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3850 # Solaris 10 /bin/sh. 3851 echo '/* dummy */' > sub/conftst$i.h 3852 done 3853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3854 3855 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3856 # mode. It turns out that the SunPro C++ compiler does not properly 3857 # handle '-M -o', and we need to detect this. Also, some Intel 3858 # versions had trouble with output in subdirs. 3859 am__obj=sub/conftest.${OBJEXT-o} 3860 am__minus_obj="-o $am__obj" 3861 case $depmode in 3862 gcc) 3863 # This depmode causes a compiler race in universal mode. 3864 test "$am__universal" = false || continue 3865 ;; 3866 nosideeffect) 3867 # After this tag, mechanisms are not by side-effect, so they'll 3868 # only be used when explicitly requested. 3869 if test "x$enable_dependency_tracking" = xyes; then 3870 continue 3871 else 3872 break 3873 fi 3874 ;; 3875 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3876 # This compiler won't grok '-c -o', but also, the minuso test has 3877 # not run yet. These depmodes are late enough in the game, and 3878 # so weak that their functioning should not be impacted. 3879 am__obj=conftest.${OBJEXT-o} 3880 am__minus_obj= 3881 ;; 3882 none) break ;; 3883 esac 3884 if depmode=$depmode \ 3885 source=sub/conftest.c object=$am__obj \ 3886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3888 >/dev/null 2>conftest.err && 3889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3893 # icc doesn't choke on unknown options, it will just issue warnings 3894 # or remarks (even with -Werror). So we grep stderr for any message 3895 # that says an option was ignored or not supported. 3896 # When given -MP, icc 7.0 and 7.1 complain thusly: 3897 # icc: Command line warning: ignoring option '-M'; no argument required 3898 # The diagnosis changed in icc 8.0: 3899 # icc: Command line remark: option '-MP' not supported 3900 if (grep 'ignoring option' conftest.err || 3901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3902 am_cv_CC_dependencies_compiler_type=$depmode 3903 break 3904 fi 3905 fi 3906 done 3907 3908 cd .. 3909 rm -rf conftest.dir 3910else 3911 am_cv_CC_dependencies_compiler_type=none 3912fi 3913 3914fi 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3916$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3917CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3918 3919 if 3920 test "x$enable_dependency_tracking" != xno \ 3921 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3922 am__fastdepCC_TRUE= 3923 am__fastdepCC_FALSE='#' 3924else 3925 am__fastdepCC_TRUE='#' 3926 am__fastdepCC_FALSE= 3927fi 3928 3929 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3931$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3932if ${ac_cv_prog_cc_c99+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 ac_cv_prog_cc_c99=no 3936ac_save_CC=$CC 3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939#include <stdarg.h> 3940#include <stdbool.h> 3941#include <stdlib.h> 3942#include <wchar.h> 3943#include <stdio.h> 3944 3945// Check varargs macros. These examples are taken from C99 6.10.3.5. 3946#define debug(...) fprintf (stderr, __VA_ARGS__) 3947#define showlist(...) puts (#__VA_ARGS__) 3948#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3949static void 3950test_varargs_macros (void) 3951{ 3952 int x = 1234; 3953 int y = 5678; 3954 debug ("Flag"); 3955 debug ("X = %d\n", x); 3956 showlist (The first, second, and third items.); 3957 report (x>y, "x is %d but y is %d", x, y); 3958} 3959 3960// Check long long types. 3961#define BIG64 18446744073709551615ull 3962#define BIG32 4294967295ul 3963#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3964#if !BIG_OK 3965 your preprocessor is broken; 3966#endif 3967#if BIG_OK 3968#else 3969 your preprocessor is broken; 3970#endif 3971static long long int bignum = -9223372036854775807LL; 3972static unsigned long long int ubignum = BIG64; 3973 3974struct incomplete_array 3975{ 3976 int datasize; 3977 double data[]; 3978}; 3979 3980struct named_init { 3981 int number; 3982 const wchar_t *name; 3983 double average; 3984}; 3985 3986typedef const char *ccp; 3987 3988static inline int 3989test_restrict (ccp restrict text) 3990{ 3991 // See if C++-style comments work. 3992 // Iterate through items via the restricted pointer. 3993 // Also check for declarations in for loops. 3994 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3995 continue; 3996 return 0; 3997} 3998 3999// Check varargs and va_copy. 4000static void 4001test_varargs (const char *format, ...) 4002{ 4003 va_list args; 4004 va_start (args, format); 4005 va_list args_copy; 4006 va_copy (args_copy, args); 4007 4008 const char *str; 4009 int number; 4010 float fnumber; 4011 4012 while (*format) 4013 { 4014 switch (*format++) 4015 { 4016 case 's': // string 4017 str = va_arg (args_copy, const char *); 4018 break; 4019 case 'd': // int 4020 number = va_arg (args_copy, int); 4021 break; 4022 case 'f': // float 4023 fnumber = va_arg (args_copy, double); 4024 break; 4025 default: 4026 break; 4027 } 4028 } 4029 va_end (args_copy); 4030 va_end (args); 4031} 4032 4033int 4034main () 4035{ 4036 4037 // Check bool. 4038 _Bool success = false; 4039 4040 // Check restrict. 4041 if (test_restrict ("String literal") == 0) 4042 success = true; 4043 char *restrict newvar = "Another string"; 4044 4045 // Check varargs. 4046 test_varargs ("s, d' f .", "string", 65, 34.234); 4047 test_varargs_macros (); 4048 4049 // Check flexible array members. 4050 struct incomplete_array *ia = 4051 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4052 ia->datasize = 10; 4053 for (int i = 0; i < ia->datasize; ++i) 4054 ia->data[i] = i * 1.234; 4055 4056 // Check named initializers. 4057 struct named_init ni = { 4058 .number = 34, 4059 .name = L"Test wide string", 4060 .average = 543.34343, 4061 }; 4062 4063 ni.number = 58; 4064 4065 int dynamic_array[ni.number]; 4066 dynamic_array[ni.number - 1] = 543; 4067 4068 // work around unused variable warnings 4069 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4070 || dynamic_array[ni.number - 1] != 543); 4071 4072 ; 4073 return 0; 4074} 4075_ACEOF 4076for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4077do 4078 CC="$ac_save_CC $ac_arg" 4079 if ac_fn_c_try_compile "$LINENO"; then : 4080 ac_cv_prog_cc_c99=$ac_arg 4081fi 4082rm -f core conftest.err conftest.$ac_objext 4083 test "x$ac_cv_prog_cc_c99" != "xno" && break 4084done 4085rm -f conftest.$ac_ext 4086CC=$ac_save_CC 4087 4088fi 4089# AC_CACHE_VAL 4090case "x$ac_cv_prog_cc_c99" in 4091 x) 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4093$as_echo "none needed" >&6; } ;; 4094 xno) 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4096$as_echo "unsupported" >&6; } ;; 4097 *) 4098 CC="$CC $ac_cv_prog_cc_c99" 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4100$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4101esac 4102if test "x$ac_cv_prog_cc_c99" != xno; then : 4103 4104fi 4105 4106 4107 4108ac_ext=c 4109ac_cpp='$CPP $CPPFLAGS' 4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4112ac_compiler_gnu=$ac_cv_c_compiler_gnu 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4114$as_echo_n "checking how to run the C preprocessor... " >&6; } 4115# On Suns, sometimes $CPP names a directory. 4116if test -n "$CPP" && test -d "$CPP"; then 4117 CPP= 4118fi 4119if test -z "$CPP"; then 4120 if ${ac_cv_prog_CPP+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 # Double quotes because CPP needs to be expanded 4124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4125 do 4126 ac_preproc_ok=false 4127for ac_c_preproc_warn_flag in '' yes 4128do 4129 # Use a header file that comes with gcc, so configuring glibc 4130 # with a fresh cross-compiler works. 4131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4132 # <limits.h> exists even on freestanding compilers. 4133 # On the NeXT, cc -E runs the code through the compiler's parser, 4134 # not just through cpp. "Syntax error" is here to catch this case. 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137#ifdef __STDC__ 4138# include <limits.h> 4139#else 4140# include <assert.h> 4141#endif 4142 Syntax error 4143_ACEOF 4144if ac_fn_c_try_cpp "$LINENO"; then : 4145 4146else 4147 # Broken: fails on valid input. 4148continue 4149fi 4150rm -f conftest.err conftest.i conftest.$ac_ext 4151 4152 # OK, works on sane cases. Now check whether nonexistent headers 4153 # can be detected and how. 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156#include <ac_nonexistent.h> 4157_ACEOF 4158if ac_fn_c_try_cpp "$LINENO"; then : 4159 # Broken: success on invalid input. 4160continue 4161else 4162 # Passes both tests. 4163ac_preproc_ok=: 4164break 4165fi 4166rm -f conftest.err conftest.i conftest.$ac_ext 4167 4168done 4169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4170rm -f conftest.i conftest.err conftest.$ac_ext 4171if $ac_preproc_ok; then : 4172 break 4173fi 4174 4175 done 4176 ac_cv_prog_CPP=$CPP 4177 4178fi 4179 CPP=$ac_cv_prog_CPP 4180else 4181 ac_cv_prog_CPP=$CPP 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4184$as_echo "$CPP" >&6; } 4185ac_preproc_ok=false 4186for ac_c_preproc_warn_flag in '' yes 4187do 4188 # Use a header file that comes with gcc, so configuring glibc 4189 # with a fresh cross-compiler works. 4190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4191 # <limits.h> exists even on freestanding compilers. 4192 # On the NeXT, cc -E runs the code through the compiler's parser, 4193 # not just through cpp. "Syntax error" is here to catch this case. 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195/* end confdefs.h. */ 4196#ifdef __STDC__ 4197# include <limits.h> 4198#else 4199# include <assert.h> 4200#endif 4201 Syntax error 4202_ACEOF 4203if ac_fn_c_try_cpp "$LINENO"; then : 4204 4205else 4206 # Broken: fails on valid input. 4207continue 4208fi 4209rm -f conftest.err conftest.i conftest.$ac_ext 4210 4211 # OK, works on sane cases. Now check whether nonexistent headers 4212 # can be detected and how. 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214/* end confdefs.h. */ 4215#include <ac_nonexistent.h> 4216_ACEOF 4217if ac_fn_c_try_cpp "$LINENO"; then : 4218 # Broken: success on invalid input. 4219continue 4220else 4221 # Passes both tests. 4222ac_preproc_ok=: 4223break 4224fi 4225rm -f conftest.err conftest.i conftest.$ac_ext 4226 4227done 4228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4229rm -f conftest.i conftest.err conftest.$ac_ext 4230if $ac_preproc_ok; then : 4231 4232else 4233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4235as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4236See \`config.log' for more details" "$LINENO" 5; } 4237fi 4238 4239ac_ext=c 4240ac_cpp='$CPP $CPPFLAGS' 4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4243ac_compiler_gnu=$ac_cv_c_compiler_gnu 4244 4245 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4247$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4248if ${ac_cv_path_GREP+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 if test -z "$GREP"; then 4252 ac_path_GREP_found=false 4253 # Loop through the user's path and test for each of PROGNAME-LIST 4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4256do 4257 IFS=$as_save_IFS 4258 test -z "$as_dir" && as_dir=. 4259 for ac_prog in grep ggrep; do 4260 for ac_exec_ext in '' $ac_executable_extensions; do 4261 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4262 as_fn_executable_p "$ac_path_GREP" || continue 4263# Check for GNU ac_path_GREP and select it if it is found. 4264 # Check for GNU $ac_path_GREP 4265case `"$ac_path_GREP" --version 2>&1` in 4266*GNU*) 4267 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4268*) 4269 ac_count=0 4270 $as_echo_n 0123456789 >"conftest.in" 4271 while : 4272 do 4273 cat "conftest.in" "conftest.in" >"conftest.tmp" 4274 mv "conftest.tmp" "conftest.in" 4275 cp "conftest.in" "conftest.nl" 4276 $as_echo 'GREP' >> "conftest.nl" 4277 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4279 as_fn_arith $ac_count + 1 && ac_count=$as_val 4280 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4281 # Best one so far, save it but keep looking for a better one 4282 ac_cv_path_GREP="$ac_path_GREP" 4283 ac_path_GREP_max=$ac_count 4284 fi 4285 # 10*(2^10) chars as input seems more than enough 4286 test $ac_count -gt 10 && break 4287 done 4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4289esac 4290 4291 $ac_path_GREP_found && break 3 4292 done 4293 done 4294 done 4295IFS=$as_save_IFS 4296 if test -z "$ac_cv_path_GREP"; then 4297 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4298 fi 4299else 4300 ac_cv_path_GREP=$GREP 4301fi 4302 4303fi 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4305$as_echo "$ac_cv_path_GREP" >&6; } 4306 GREP="$ac_cv_path_GREP" 4307 4308 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4310$as_echo_n "checking for egrep... " >&6; } 4311if ${ac_cv_path_EGREP+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4315 then ac_cv_path_EGREP="$GREP -E" 4316 else 4317 if test -z "$EGREP"; then 4318 ac_path_EGREP_found=false 4319 # Loop through the user's path and test for each of PROGNAME-LIST 4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4322do 4323 IFS=$as_save_IFS 4324 test -z "$as_dir" && as_dir=. 4325 for ac_prog in egrep; do 4326 for ac_exec_ext in '' $ac_executable_extensions; do 4327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4328 as_fn_executable_p "$ac_path_EGREP" || continue 4329# Check for GNU ac_path_EGREP and select it if it is found. 4330 # Check for GNU $ac_path_EGREP 4331case `"$ac_path_EGREP" --version 2>&1` in 4332*GNU*) 4333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4334*) 4335 ac_count=0 4336 $as_echo_n 0123456789 >"conftest.in" 4337 while : 4338 do 4339 cat "conftest.in" "conftest.in" >"conftest.tmp" 4340 mv "conftest.tmp" "conftest.in" 4341 cp "conftest.in" "conftest.nl" 4342 $as_echo 'EGREP' >> "conftest.nl" 4343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4345 as_fn_arith $ac_count + 1 && ac_count=$as_val 4346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4347 # Best one so far, save it but keep looking for a better one 4348 ac_cv_path_EGREP="$ac_path_EGREP" 4349 ac_path_EGREP_max=$ac_count 4350 fi 4351 # 10*(2^10) chars as input seems more than enough 4352 test $ac_count -gt 10 && break 4353 done 4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4355esac 4356 4357 $ac_path_EGREP_found && break 3 4358 done 4359 done 4360 done 4361IFS=$as_save_IFS 4362 if test -z "$ac_cv_path_EGREP"; then 4363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4364 fi 4365else 4366 ac_cv_path_EGREP=$EGREP 4367fi 4368 4369 fi 4370fi 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4372$as_echo "$ac_cv_path_EGREP" >&6; } 4373 EGREP="$ac_cv_path_EGREP" 4374 4375 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4377$as_echo_n "checking for ANSI C header files... " >&6; } 4378if ${ac_cv_header_stdc+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4382/* end confdefs.h. */ 4383#include <stdlib.h> 4384#include <stdarg.h> 4385#include <string.h> 4386#include <float.h> 4387 4388int 4389main () 4390{ 4391 4392 ; 4393 return 0; 4394} 4395_ACEOF 4396if ac_fn_c_try_compile "$LINENO"; then : 4397 ac_cv_header_stdc=yes 4398else 4399 ac_cv_header_stdc=no 4400fi 4401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4402 4403if test $ac_cv_header_stdc = yes; then 4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407#include <string.h> 4408 4409_ACEOF 4410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4411 $EGREP "memchr" >/dev/null 2>&1; then : 4412 4413else 4414 ac_cv_header_stdc=no 4415fi 4416rm -f conftest* 4417 4418fi 4419 4420if test $ac_cv_header_stdc = yes; then 4421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423/* end confdefs.h. */ 4424#include <stdlib.h> 4425 4426_ACEOF 4427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4428 $EGREP "free" >/dev/null 2>&1; then : 4429 4430else 4431 ac_cv_header_stdc=no 4432fi 4433rm -f conftest* 4434 4435fi 4436 4437if test $ac_cv_header_stdc = yes; then 4438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4439 if test "$cross_compiling" = yes; then : 4440 : 4441else 4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4443/* end confdefs.h. */ 4444#include <ctype.h> 4445#include <stdlib.h> 4446#if ((' ' & 0x0FF) == 0x020) 4447# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4448# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4449#else 4450# define ISLOWER(c) \ 4451 (('a' <= (c) && (c) <= 'i') \ 4452 || ('j' <= (c) && (c) <= 'r') \ 4453 || ('s' <= (c) && (c) <= 'z')) 4454# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4455#endif 4456 4457#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4458int 4459main () 4460{ 4461 int i; 4462 for (i = 0; i < 256; i++) 4463 if (XOR (islower (i), ISLOWER (i)) 4464 || toupper (i) != TOUPPER (i)) 4465 return 2; 4466 return 0; 4467} 4468_ACEOF 4469if ac_fn_c_try_run "$LINENO"; then : 4470 4471else 4472 ac_cv_header_stdc=no 4473fi 4474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4475 conftest.$ac_objext conftest.beam conftest.$ac_ext 4476fi 4477 4478fi 4479fi 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4481$as_echo "$ac_cv_header_stdc" >&6; } 4482if test $ac_cv_header_stdc = yes; then 4483 4484$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4485 4486fi 4487 4488# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4489for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4490 inttypes.h stdint.h unistd.h 4491do : 4492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4493ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4494" 4495if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4496 cat >>confdefs.h <<_ACEOF 4497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4498_ACEOF 4499 4500fi 4501 4502done 4503 4504 4505 4506 4507 4508 4509ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4510if test "x$ac_cv_have_decl___clang__" = xyes; then : 4511 CLANGCC="yes" 4512else 4513 CLANGCC="no" 4514fi 4515 4516ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4517if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4518 INTELCC="yes" 4519else 4520 INTELCC="no" 4521fi 4522 4523ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4524if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4525 SUNCC="yes" 4526else 4527 SUNCC="no" 4528fi 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4539 if test -n "$ac_tool_prefix"; then 4540 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4541set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4543$as_echo_n "checking for $ac_word... " >&6; } 4544if ${ac_cv_path_PKG_CONFIG+:} false; then : 4545 $as_echo_n "(cached) " >&6 4546else 4547 case $PKG_CONFIG in 4548 [\\/]* | ?:[\\/]*) 4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4550 ;; 4551 *) 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH 4554do 4555 IFS=$as_save_IFS 4556 test -z "$as_dir" && as_dir=. 4557 for ac_exec_ext in '' $ac_executable_extensions; do 4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4561 break 2 4562 fi 4563done 4564 done 4565IFS=$as_save_IFS 4566 4567 ;; 4568esac 4569fi 4570PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4571if test -n "$PKG_CONFIG"; then 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4573$as_echo "$PKG_CONFIG" >&6; } 4574else 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4576$as_echo "no" >&6; } 4577fi 4578 4579 4580fi 4581if test -z "$ac_cv_path_PKG_CONFIG"; then 4582 ac_pt_PKG_CONFIG=$PKG_CONFIG 4583 # Extract the first word of "pkg-config", so it can be a program name with args. 4584set dummy pkg-config; ac_word=$2 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586$as_echo_n "checking for $ac_word... " >&6; } 4587if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 case $ac_pt_PKG_CONFIG in 4591 [\\/]* | ?:[\\/]*) 4592 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4593 ;; 4594 *) 4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610 ;; 4611esac 4612fi 4613ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4614if test -n "$ac_pt_PKG_CONFIG"; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4616$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619$as_echo "no" >&6; } 4620fi 4621 4622 if test "x$ac_pt_PKG_CONFIG" = x; then 4623 PKG_CONFIG="" 4624 else 4625 case $cross_compiling:$ac_tool_warned in 4626yes:) 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4629ac_tool_warned=yes ;; 4630esac 4631 PKG_CONFIG=$ac_pt_PKG_CONFIG 4632 fi 4633else 4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4635fi 4636 4637fi 4638if test -n "$PKG_CONFIG"; then 4639 _pkg_min_version=0.9.0 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4641$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4644$as_echo "yes" >&6; } 4645 else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648 PKG_CONFIG="" 4649 fi 4650fi 4651# Make sure we can run config.sub. 4652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4653 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4656$as_echo_n "checking build system type... " >&6; } 4657if ${ac_cv_build+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 ac_build_alias=$build_alias 4661test "x$ac_build_alias" = x && 4662 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4663test "x$ac_build_alias" = x && 4664 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4665ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4667 4668fi 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4670$as_echo "$ac_cv_build" >&6; } 4671case $ac_cv_build in 4672*-*-*) ;; 4673*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4674esac 4675build=$ac_cv_build 4676ac_save_IFS=$IFS; IFS='-' 4677set x $ac_cv_build 4678shift 4679build_cpu=$1 4680build_vendor=$2 4681shift; shift 4682# Remember, the first character of IFS is used to create $*, 4683# except with old shells: 4684build_os=$* 4685IFS=$ac_save_IFS 4686case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4687 4688 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4690$as_echo_n "checking host system type... " >&6; } 4691if ${ac_cv_host+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 if test "x$host_alias" = x; then 4695 ac_cv_host=$ac_cv_build 4696else 4697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4699fi 4700 4701fi 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4703$as_echo "$ac_cv_host" >&6; } 4704case $ac_cv_host in 4705*-*-*) ;; 4706*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4707esac 4708host=$ac_cv_host 4709ac_save_IFS=$IFS; IFS='-' 4710set x $ac_cv_host 4711shift 4712host_cpu=$1 4713host_vendor=$2 4714shift; shift 4715# Remember, the first character of IFS is used to create $*, 4716# except with old shells: 4717host_os=$* 4718IFS=$ac_save_IFS 4719case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4720 4721 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4723$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4724if ${ac_cv_path_SED+:} false; then : 4725 $as_echo_n "(cached) " >&6 4726else 4727 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4728 for ac_i in 1 2 3 4 5 6 7; do 4729 ac_script="$ac_script$as_nl$ac_script" 4730 done 4731 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4732 { ac_script=; unset ac_script;} 4733 if test -z "$SED"; then 4734 ac_path_SED_found=false 4735 # Loop through the user's path and test for each of PROGNAME-LIST 4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH 4738do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_prog in sed gsed; do 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4744 as_fn_executable_p "$ac_path_SED" || continue 4745# Check for GNU ac_path_SED and select it if it is found. 4746 # Check for GNU $ac_path_SED 4747case `"$ac_path_SED" --version 2>&1` in 4748*GNU*) 4749 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4750*) 4751 ac_count=0 4752 $as_echo_n 0123456789 >"conftest.in" 4753 while : 4754 do 4755 cat "conftest.in" "conftest.in" >"conftest.tmp" 4756 mv "conftest.tmp" "conftest.in" 4757 cp "conftest.in" "conftest.nl" 4758 $as_echo '' >> "conftest.nl" 4759 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4761 as_fn_arith $ac_count + 1 && ac_count=$as_val 4762 if test $ac_count -gt ${ac_path_SED_max-0}; then 4763 # Best one so far, save it but keep looking for a better one 4764 ac_cv_path_SED="$ac_path_SED" 4765 ac_path_SED_max=$ac_count 4766 fi 4767 # 10*(2^10) chars as input seems more than enough 4768 test $ac_count -gt 10 && break 4769 done 4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4771esac 4772 4773 $ac_path_SED_found && break 3 4774 done 4775 done 4776 done 4777IFS=$as_save_IFS 4778 if test -z "$ac_cv_path_SED"; then 4779 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4780 fi 4781else 4782 ac_cv_path_SED=$SED 4783fi 4784 4785fi 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4787$as_echo "$ac_cv_path_SED" >&6; } 4788 SED="$ac_cv_path_SED" 4789 rm -f conftest.sed 4790 4791 4792 4793 4794 4795 4796# Check whether --enable-selective-werror was given. 4797if test "${enable_selective_werror+set}" = set; then : 4798 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4799else 4800 SELECTIVE_WERROR=yes 4801fi 4802 4803 4804 4805 4806 4807# -v is too short to test reliably with XORG_TESTSET_CFLAG 4808if test "x$SUNCC" = "xyes"; then 4809 BASE_CFLAGS="-v" 4810else 4811 BASE_CFLAGS="" 4812fi 4813 4814# This chunk of warnings were those that existed in the legacy CWARNFLAGS 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 -Wall" 4893 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4895$as_echo_n "checking if $CC supports-Wall... " >&6; } 4896 cacheid=xorg_cv_cc_flag__Wall 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 -Wall" 4928 found="yes" 4929 fi 4930 fi 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946xorg_testset_save_CFLAGS="$CFLAGS" 4947 4948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4956/* end confdefs.h. */ 4957int i; 4958_ACEOF 4959if ac_fn_c_try_compile "$LINENO"; then : 4960 xorg_cv_cc_flag_unknown_warning_option=yes 4961else 4962 xorg_cv_cc_flag_unknown_warning_option=no 4963fi 4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4965fi 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4969 CFLAGS="$xorg_testset_save_CFLAGS" 4970fi 4971 4972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4975 fi 4976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984int i; 4985_ACEOF 4986if ac_fn_c_try_compile "$LINENO"; then : 4987 xorg_cv_cc_flag_unused_command_line_argument=yes 4988else 4989 xorg_cv_cc_flag_unused_command_line_argument=no 4990fi 4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4996 CFLAGS="$xorg_testset_save_CFLAGS" 4997fi 4998 4999found="no" 5000 5001 if test $found = "no" ; then 5002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5004 fi 5005 5006 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5008 fi 5009 5010 CFLAGS="$CFLAGS -Wpointer-arith" 5011 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 5013$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 5014 cacheid=xorg_cv_cc_flag__Wpointer_arith 5015 if eval \${$cacheid+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020int i; 5021int 5022main () 5023{ 5024 5025 ; 5026 return 0; 5027} 5028_ACEOF 5029if ac_fn_c_try_link "$LINENO"; then : 5030 eval $cacheid=yes 5031else 5032 eval $cacheid=no 5033fi 5034rm -f core conftest.err conftest.$ac_objext \ 5035 conftest$ac_exeext conftest.$ac_ext 5036fi 5037 5038 5039 CFLAGS="$xorg_testset_save_CFLAGS" 5040 5041 eval supported=\$$cacheid 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5043$as_echo "$supported" >&6; } 5044 if test "$supported" = "yes" ; then 5045 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5046 found="yes" 5047 fi 5048 fi 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064xorg_testset_save_CFLAGS="$CFLAGS" 5065 5066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072else 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075int i; 5076_ACEOF 5077if ac_fn_c_try_compile "$LINENO"; then : 5078 xorg_cv_cc_flag_unknown_warning_option=yes 5079else 5080 xorg_cv_cc_flag_unknown_warning_option=no 5081fi 5082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5083fi 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5087 CFLAGS="$xorg_testset_save_CFLAGS" 5088fi 5089 5090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5093 fi 5094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103_ACEOF 5104if ac_fn_c_try_compile "$LINENO"; then : 5105 xorg_cv_cc_flag_unused_command_line_argument=yes 5106else 5107 xorg_cv_cc_flag_unused_command_line_argument=no 5108fi 5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5110fi 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5114 CFLAGS="$xorg_testset_save_CFLAGS" 5115fi 5116 5117found="no" 5118 5119 if test $found = "no" ; then 5120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5122 fi 5123 5124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5126 fi 5127 5128 CFLAGS="$CFLAGS -Wmissing-declarations" 5129 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 5131$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 5132 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5133 if eval \${$cacheid+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138int i; 5139int 5140main () 5141{ 5142 5143 ; 5144 return 0; 5145} 5146_ACEOF 5147if ac_fn_c_try_link "$LINENO"; then : 5148 eval $cacheid=yes 5149else 5150 eval $cacheid=no 5151fi 5152rm -f core conftest.err conftest.$ac_objext \ 5153 conftest$ac_exeext conftest.$ac_ext 5154fi 5155 5156 5157 CFLAGS="$xorg_testset_save_CFLAGS" 5158 5159 eval supported=\$$cacheid 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5161$as_echo "$supported" >&6; } 5162 if test "$supported" = "yes" ; then 5163 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5164 found="yes" 5165 fi 5166 fi 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182xorg_testset_save_CFLAGS="$CFLAGS" 5183 5184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193int i; 5194_ACEOF 5195if ac_fn_c_try_compile "$LINENO"; then : 5196 xorg_cv_cc_flag_unknown_warning_option=yes 5197else 5198 xorg_cv_cc_flag_unknown_warning_option=no 5199fi 5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5201fi 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5205 CFLAGS="$xorg_testset_save_CFLAGS" 5206fi 5207 5208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5211 fi 5212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219/* end confdefs.h. */ 5220int i; 5221_ACEOF 5222if ac_fn_c_try_compile "$LINENO"; then : 5223 xorg_cv_cc_flag_unused_command_line_argument=yes 5224else 5225 xorg_cv_cc_flag_unused_command_line_argument=no 5226fi 5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5228fi 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5232 CFLAGS="$xorg_testset_save_CFLAGS" 5233fi 5234 5235found="no" 5236 5237 if test $found = "no" ; then 5238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240 fi 5241 5242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5244 fi 5245 5246 CFLAGS="$CFLAGS -Wformat=2" 5247 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5249$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5250 cacheid=xorg_cv_cc_flag__Wformat_2 5251 if eval \${$cacheid+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257int 5258main () 5259{ 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265if ac_fn_c_try_link "$LINENO"; then : 5266 eval $cacheid=yes 5267else 5268 eval $cacheid=no 5269fi 5270rm -f core conftest.err conftest.$ac_objext \ 5271 conftest$ac_exeext conftest.$ac_ext 5272fi 5273 5274 5275 CFLAGS="$xorg_testset_save_CFLAGS" 5276 5277 eval supported=\$$cacheid 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5279$as_echo "$supported" >&6; } 5280 if test "$supported" = "yes" ; then 5281 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5282 found="yes" 5283 fi 5284 fi 5285 5286 if test $found = "no" ; then 5287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5289 fi 5290 5291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5293 fi 5294 5295 CFLAGS="$CFLAGS -Wformat" 5296 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5298$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5299 cacheid=xorg_cv_cc_flag__Wformat 5300 if eval \${$cacheid+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305int i; 5306int 5307main () 5308{ 5309 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314if ac_fn_c_try_link "$LINENO"; then : 5315 eval $cacheid=yes 5316else 5317 eval $cacheid=no 5318fi 5319rm -f core conftest.err conftest.$ac_objext \ 5320 conftest$ac_exeext conftest.$ac_ext 5321fi 5322 5323 5324 CFLAGS="$xorg_testset_save_CFLAGS" 5325 5326 eval supported=\$$cacheid 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5328$as_echo "$supported" >&6; } 5329 if test "$supported" = "yes" ; then 5330 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5331 found="yes" 5332 fi 5333 fi 5334 5335 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 -Wstrict-prototypes" 5416 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5418$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5419 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 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 -Wstrict-prototypes" 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 -Wmissing-prototypes" 5534 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5536$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5537 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 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 -Wmissing-prototypes" 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 -Wnested-externs" 5652 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5654$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5655 cacheid=xorg_cv_cc_flag__Wnested_externs 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 -Wnested-externs" 5687 found="yes" 5688 fi 5689 fi 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705xorg_testset_save_CFLAGS="$CFLAGS" 5706 5707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715/* end confdefs.h. */ 5716int i; 5717_ACEOF 5718if ac_fn_c_try_compile "$LINENO"; then : 5719 xorg_cv_cc_flag_unknown_warning_option=yes 5720else 5721 xorg_cv_cc_flag_unknown_warning_option=no 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724fi 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5728 CFLAGS="$xorg_testset_save_CFLAGS" 5729fi 5730 5731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5734 fi 5735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743int i; 5744_ACEOF 5745if ac_fn_c_try_compile "$LINENO"; then : 5746 xorg_cv_cc_flag_unused_command_line_argument=yes 5747else 5748 xorg_cv_cc_flag_unused_command_line_argument=no 5749fi 5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5751fi 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5755 CFLAGS="$xorg_testset_save_CFLAGS" 5756fi 5757 5758found="no" 5759 5760 if test $found = "no" ; then 5761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5763 fi 5764 5765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5767 fi 5768 5769 CFLAGS="$CFLAGS -Wbad-function-cast" 5770 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5772$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5773 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5774 if eval \${$cacheid+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780int 5781main () 5782{ 5783 5784 ; 5785 return 0; 5786} 5787_ACEOF 5788if ac_fn_c_try_link "$LINENO"; then : 5789 eval $cacheid=yes 5790else 5791 eval $cacheid=no 5792fi 5793rm -f core conftest.err conftest.$ac_objext \ 5794 conftest$ac_exeext conftest.$ac_ext 5795fi 5796 5797 5798 CFLAGS="$xorg_testset_save_CFLAGS" 5799 5800 eval supported=\$$cacheid 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5802$as_echo "$supported" >&6; } 5803 if test "$supported" = "yes" ; then 5804 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5805 found="yes" 5806 fi 5807 fi 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823xorg_testset_save_CFLAGS="$CFLAGS" 5824 5825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834int i; 5835_ACEOF 5836if ac_fn_c_try_compile "$LINENO"; then : 5837 xorg_cv_cc_flag_unknown_warning_option=yes 5838else 5839 xorg_cv_cc_flag_unknown_warning_option=no 5840fi 5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5842fi 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847fi 5848 5849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5852 fi 5853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5860/* end confdefs.h. */ 5861int i; 5862_ACEOF 5863if ac_fn_c_try_compile "$LINENO"; then : 5864 xorg_cv_cc_flag_unused_command_line_argument=yes 5865else 5866 xorg_cv_cc_flag_unused_command_line_argument=no 5867fi 5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5869fi 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5873 CFLAGS="$xorg_testset_save_CFLAGS" 5874fi 5875 5876found="no" 5877 5878 if test $found = "no" ; then 5879 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5881 fi 5882 5883 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5885 fi 5886 5887 CFLAGS="$CFLAGS -Wold-style-definition" 5888 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5890$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5891 cacheid=xorg_cv_cc_flag__Wold_style_definition 5892 if eval \${$cacheid+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898int 5899main () 5900{ 5901 5902 ; 5903 return 0; 5904} 5905_ACEOF 5906if ac_fn_c_try_link "$LINENO"; then : 5907 eval $cacheid=yes 5908else 5909 eval $cacheid=no 5910fi 5911rm -f core conftest.err conftest.$ac_objext \ 5912 conftest$ac_exeext conftest.$ac_ext 5913fi 5914 5915 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917 5918 eval supported=\$$cacheid 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5920$as_echo "$supported" >&6; } 5921 if test "$supported" = "yes" ; then 5922 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5923 found="yes" 5924 fi 5925 fi 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941xorg_testset_save_CFLAGS="$CFLAGS" 5942 5943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952int i; 5953_ACEOF 5954if ac_fn_c_try_compile "$LINENO"; then : 5955 xorg_cv_cc_flag_unknown_warning_option=yes 5956else 5957 xorg_cv_cc_flag_unknown_warning_option=no 5958fi 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960fi 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5964 CFLAGS="$xorg_testset_save_CFLAGS" 5965fi 5966 5967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 fi 5971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO"; then : 5982 xorg_cv_cc_flag_unused_command_line_argument=yes 5983else 5984 xorg_cv_cc_flag_unused_command_line_argument=no 5985fi 5986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5987fi 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5991 CFLAGS="$xorg_testset_save_CFLAGS" 5992fi 5993 5994found="no" 5995 5996 if test $found = "no" ; then 5997 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5999 fi 6000 6001 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6003 fi 6004 6005 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6006 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 6008$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 6009 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6010 if eval \${$cacheid+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6014/* end confdefs.h. */ 6015int i; 6016int 6017main () 6018{ 6019 6020 ; 6021 return 0; 6022} 6023_ACEOF 6024if ac_fn_c_try_link "$LINENO"; then : 6025 eval $cacheid=yes 6026else 6027 eval $cacheid=no 6028fi 6029rm -f core conftest.err conftest.$ac_objext \ 6030 conftest$ac_exeext conftest.$ac_ext 6031fi 6032 6033 6034 CFLAGS="$xorg_testset_save_CFLAGS" 6035 6036 eval supported=\$$cacheid 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6038$as_echo "$supported" >&6; } 6039 if test "$supported" = "yes" ; then 6040 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6041 found="yes" 6042 fi 6043 fi 6044 6045 6046 6047 6048 6049# This chunk adds additional warnings that could catch undesired effects. 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 -Wunused" 6128 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 6130$as_echo_n "checking if $CC supports-Wunused... " >&6; } 6131 cacheid=xorg_cv_cc_flag__Wunused 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 -Wunused" 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 -Wuninitialized" 6246 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6248$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6249 cacheid=xorg_cv_cc_flag__Wuninitialized 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 -Wuninitialized" 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 -Wshadow" 6364 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6366$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6367 cacheid=xorg_cv_cc_flag__Wshadow 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 -Wshadow" 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 -Wcast-qual" 6482 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6484$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6485 cacheid=xorg_cv_cc_flag__Wcast_qual 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 -Wcast-qual" 6517 found="yes" 6518 fi 6519 fi 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535xorg_testset_save_CFLAGS="$CFLAGS" 6536 6537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546int i; 6547_ACEOF 6548if ac_fn_c_try_compile "$LINENO"; then : 6549 xorg_cv_cc_flag_unknown_warning_option=yes 6550else 6551 xorg_cv_cc_flag_unknown_warning_option=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6554fi 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559fi 6560 6561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573int i; 6574_ACEOF 6575if ac_fn_c_try_compile "$LINENO"; then : 6576 xorg_cv_cc_flag_unused_command_line_argument=yes 6577else 6578 xorg_cv_cc_flag_unused_command_line_argument=no 6579fi 6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6581fi 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6585 CFLAGS="$xorg_testset_save_CFLAGS" 6586fi 6587 6588found="no" 6589 6590 if test $found = "no" ; then 6591 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6593 fi 6594 6595 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6597 fi 6598 6599 CFLAGS="$CFLAGS -Wmissing-noreturn" 6600 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6602$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6603 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6604 if eval \${$cacheid+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609int i; 6610int 6611main () 6612{ 6613 6614 ; 6615 return 0; 6616} 6617_ACEOF 6618if ac_fn_c_try_link "$LINENO"; then : 6619 eval $cacheid=yes 6620else 6621 eval $cacheid=no 6622fi 6623rm -f core conftest.err conftest.$ac_objext \ 6624 conftest$ac_exeext conftest.$ac_ext 6625fi 6626 6627 6628 CFLAGS="$xorg_testset_save_CFLAGS" 6629 6630 eval supported=\$$cacheid 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6632$as_echo "$supported" >&6; } 6633 if test "$supported" = "yes" ; then 6634 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6635 found="yes" 6636 fi 6637 fi 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653xorg_testset_save_CFLAGS="$CFLAGS" 6654 6655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6663/* end confdefs.h. */ 6664int i; 6665_ACEOF 6666if ac_fn_c_try_compile "$LINENO"; then : 6667 xorg_cv_cc_flag_unknown_warning_option=yes 6668else 6669 xorg_cv_cc_flag_unknown_warning_option=no 6670fi 6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6672fi 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6676 CFLAGS="$xorg_testset_save_CFLAGS" 6677fi 6678 6679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6682 fi 6683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691int i; 6692_ACEOF 6693if ac_fn_c_try_compile "$LINENO"; then : 6694 xorg_cv_cc_flag_unused_command_line_argument=yes 6695else 6696 xorg_cv_cc_flag_unused_command_line_argument=no 6697fi 6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6699fi 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6703 CFLAGS="$xorg_testset_save_CFLAGS" 6704fi 6705 6706found="no" 6707 6708 if test $found = "no" ; then 6709 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6711 fi 6712 6713 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6715 fi 6716 6717 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6718 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6720$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6721 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6722 if eval \${$cacheid+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727int i; 6728int 6729main () 6730{ 6731 6732 ; 6733 return 0; 6734} 6735_ACEOF 6736if ac_fn_c_try_link "$LINENO"; then : 6737 eval $cacheid=yes 6738else 6739 eval $cacheid=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext \ 6742 conftest$ac_exeext conftest.$ac_ext 6743fi 6744 6745 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747 6748 eval supported=\$$cacheid 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6750$as_echo "$supported" >&6; } 6751 if test "$supported" = "yes" ; then 6752 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6753 found="yes" 6754 fi 6755 fi 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771xorg_testset_save_CFLAGS="$CFLAGS" 6772 6773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781/* end confdefs.h. */ 6782int i; 6783_ACEOF 6784if ac_fn_c_try_compile "$LINENO"; then : 6785 xorg_cv_cc_flag_unknown_warning_option=yes 6786else 6787 xorg_cv_cc_flag_unknown_warning_option=no 6788fi 6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6790fi 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6794 CFLAGS="$xorg_testset_save_CFLAGS" 6795fi 6796 6797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 fi 6801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809int i; 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO"; then : 6812 xorg_cv_cc_flag_unused_command_line_argument=yes 6813else 6814 xorg_cv_cc_flag_unused_command_line_argument=no 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6817fi 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6821 CFLAGS="$xorg_testset_save_CFLAGS" 6822fi 6823 6824found="no" 6825 6826 if test $found = "no" ; then 6827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6829 fi 6830 6831 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6833 fi 6834 6835 CFLAGS="$CFLAGS -Wredundant-decls" 6836 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6838$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6839 cacheid=xorg_cv_cc_flag__Wredundant_decls 6840 if eval \${$cacheid+:} false; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845int i; 6846int 6847main () 6848{ 6849 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854if ac_fn_c_try_link "$LINENO"; then : 6855 eval $cacheid=yes 6856else 6857 eval $cacheid=no 6858fi 6859rm -f core conftest.err conftest.$ac_objext \ 6860 conftest$ac_exeext conftest.$ac_ext 6861fi 6862 6863 6864 CFLAGS="$xorg_testset_save_CFLAGS" 6865 6866 eval supported=\$$cacheid 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6868$as_echo "$supported" >&6; } 6869 if test "$supported" = "yes" ; then 6870 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6871 found="yes" 6872 fi 6873 fi 6874 6875 6876 6877# These are currently disabled because they are noisy. They will be enabled 6878# in the future once the codebase is sufficiently modernized to silence 6879# them. For now, I don't want them to drown out the other warnings. 6880# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6881# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6882# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6883 6884# Turn some warnings into errors, so we don't accidently get successful builds 6885# when there are problems that should be fixed. 6886 6887if test "x$SELECTIVE_WERROR" = "xyes" ; then 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901xorg_testset_save_CFLAGS="$CFLAGS" 6902 6903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6908 $as_echo_n "(cached) " >&6 6909else 6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6911/* end confdefs.h. */ 6912int i; 6913_ACEOF 6914if ac_fn_c_try_compile "$LINENO"; then : 6915 xorg_cv_cc_flag_unknown_warning_option=yes 6916else 6917 xorg_cv_cc_flag_unknown_warning_option=no 6918fi 6919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6920fi 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6924 CFLAGS="$xorg_testset_save_CFLAGS" 6925fi 6926 6927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6930 fi 6931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939int i; 6940_ACEOF 6941if ac_fn_c_try_compile "$LINENO"; then : 6942 xorg_cv_cc_flag_unused_command_line_argument=yes 6943else 6944 xorg_cv_cc_flag_unused_command_line_argument=no 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947fi 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6951 CFLAGS="$xorg_testset_save_CFLAGS" 6952fi 6953 6954found="no" 6955 6956 if test $found = "no" ; then 6957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6959 fi 6960 6961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6963 fi 6964 6965 CFLAGS="$CFLAGS -Werror=implicit" 6966 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 6968$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 6969 cacheid=xorg_cv_cc_flag__Werror_implicit 6970 if eval \${$cacheid+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976int 6977main () 6978{ 6979 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_link "$LINENO"; then : 6985 eval $cacheid=yes 6986else 6987 eval $cacheid=no 6988fi 6989rm -f core conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991fi 6992 6993 6994 CFLAGS="$xorg_testset_save_CFLAGS" 6995 6996 eval supported=\$$cacheid 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6998$as_echo "$supported" >&6; } 6999 if test "$supported" = "yes" ; then 7000 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7001 found="yes" 7002 fi 7003 fi 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 -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7015 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7017$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7018 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 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 -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 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=nonnull" 7133 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 7135$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 7136 cacheid=xorg_cv_cc_flag__Werror_nonnull 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=nonnull" 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=init-self" 7251 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7253$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7254 cacheid=xorg_cv_cc_flag__Werror_init_self 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=init-self" 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=main" 7369 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7371$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7372 cacheid=xorg_cv_cc_flag__Werror_main 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=main" 7404 found="yes" 7405 fi 7406 fi 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422xorg_testset_save_CFLAGS="$CFLAGS" 7423 7424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433int i; 7434_ACEOF 7435if ac_fn_c_try_compile "$LINENO"; then : 7436 xorg_cv_cc_flag_unknown_warning_option=yes 7437else 7438 xorg_cv_cc_flag_unknown_warning_option=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7441fi 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 fi 7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO"; then : 7463 xorg_cv_cc_flag_unused_command_line_argument=yes 7464else 7465 xorg_cv_cc_flag_unused_command_line_argument=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7472 CFLAGS="$xorg_testset_save_CFLAGS" 7473fi 7474 7475found="no" 7476 7477 if test $found = "no" ; then 7478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7480 fi 7481 7482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7484 fi 7485 7486 CFLAGS="$CFLAGS -Werror=missing-braces" 7487 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7489$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7490 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7491 if eval \${$cacheid+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496int i; 7497int 7498main () 7499{ 7500 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505if ac_fn_c_try_link "$LINENO"; then : 7506 eval $cacheid=yes 7507else 7508 eval $cacheid=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext \ 7511 conftest$ac_exeext conftest.$ac_ext 7512fi 7513 7514 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 7517 eval supported=\$$cacheid 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7519$as_echo "$supported" >&6; } 7520 if test "$supported" = "yes" ; then 7521 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7522 found="yes" 7523 fi 7524 fi 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540xorg_testset_save_CFLAGS="$CFLAGS" 7541 7542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548else 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552_ACEOF 7553if ac_fn_c_try_compile "$LINENO"; then : 7554 xorg_cv_cc_flag_unknown_warning_option=yes 7555else 7556 xorg_cv_cc_flag_unknown_warning_option=no 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7559fi 7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564fi 7565 7566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 fi 7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578int i; 7579_ACEOF 7580if ac_fn_c_try_compile "$LINENO"; then : 7581 xorg_cv_cc_flag_unused_command_line_argument=yes 7582else 7583 xorg_cv_cc_flag_unused_command_line_argument=no 7584fi 7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7590 CFLAGS="$xorg_testset_save_CFLAGS" 7591fi 7592 7593found="no" 7594 7595 if test $found = "no" ; then 7596 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7598 fi 7599 7600 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7602 fi 7603 7604 CFLAGS="$CFLAGS -Werror=sequence-point" 7605 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7607$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7608 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7609 if eval \${$cacheid+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614int i; 7615int 7616main () 7617{ 7618 7619 ; 7620 return 0; 7621} 7622_ACEOF 7623if ac_fn_c_try_link "$LINENO"; then : 7624 eval $cacheid=yes 7625else 7626 eval $cacheid=no 7627fi 7628rm -f core conftest.err conftest.$ac_objext \ 7629 conftest$ac_exeext conftest.$ac_ext 7630fi 7631 7632 7633 CFLAGS="$xorg_testset_save_CFLAGS" 7634 7635 eval supported=\$$cacheid 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7637$as_echo "$supported" >&6; } 7638 if test "$supported" = "yes" ; then 7639 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7640 found="yes" 7641 fi 7642 fi 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658xorg_testset_save_CFLAGS="$CFLAGS" 7659 7660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7665 $as_echo_n "(cached) " >&6 7666else 7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7668/* end confdefs.h. */ 7669int i; 7670_ACEOF 7671if ac_fn_c_try_compile "$LINENO"; then : 7672 xorg_cv_cc_flag_unknown_warning_option=yes 7673else 7674 xorg_cv_cc_flag_unknown_warning_option=no 7675fi 7676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7677fi 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682fi 7683 7684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 fi 7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696int i; 7697_ACEOF 7698if ac_fn_c_try_compile "$LINENO"; then : 7699 xorg_cv_cc_flag_unused_command_line_argument=yes 7700else 7701 xorg_cv_cc_flag_unused_command_line_argument=no 7702fi 7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7708 CFLAGS="$xorg_testset_save_CFLAGS" 7709fi 7710 7711found="no" 7712 7713 if test $found = "no" ; then 7714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 fi 7717 7718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7720 fi 7721 7722 CFLAGS="$CFLAGS -Werror=return-type" 7723 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7725$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7726 cacheid=xorg_cv_cc_flag__Werror_return_type 7727 if eval \${$cacheid+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7731/* end confdefs.h. */ 7732int i; 7733int 7734main () 7735{ 7736 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741if ac_fn_c_try_link "$LINENO"; then : 7742 eval $cacheid=yes 7743else 7744 eval $cacheid=no 7745fi 7746rm -f core conftest.err conftest.$ac_objext \ 7747 conftest$ac_exeext conftest.$ac_ext 7748fi 7749 7750 7751 CFLAGS="$xorg_testset_save_CFLAGS" 7752 7753 eval supported=\$$cacheid 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7755$as_echo "$supported" >&6; } 7756 if test "$supported" = "yes" ; then 7757 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7758 found="yes" 7759 fi 7760 fi 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 -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7772 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7774$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7775 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 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 -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 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=trigraphs" 7890 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7892$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7893 cacheid=xorg_cv_cc_flag__Werror_trigraphs 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=trigraphs" 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=array-bounds" 8008 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 8010$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 8011 cacheid=xorg_cv_cc_flag__Werror_array_bounds 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=array-bounds" 8043 found="yes" 8044 fi 8045 fi 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061xorg_testset_save_CFLAGS="$CFLAGS" 8062 8063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072int i; 8073_ACEOF 8074if ac_fn_c_try_compile "$LINENO"; then : 8075 xorg_cv_cc_flag_unknown_warning_option=yes 8076else 8077 xorg_cv_cc_flag_unknown_warning_option=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8080fi 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099int i; 8100_ACEOF 8101if ac_fn_c_try_compile "$LINENO"; then : 8102 xorg_cv_cc_flag_unused_command_line_argument=yes 8103else 8104 xorg_cv_cc_flag_unused_command_line_argument=no 8105fi 8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8111 CFLAGS="$xorg_testset_save_CFLAGS" 8112fi 8113 8114found="no" 8115 8116 if test $found = "no" ; then 8117 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 8121 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 fi 8124 8125 CFLAGS="$CFLAGS -Werror=write-strings" 8126 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 8128$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 8129 cacheid=xorg_cv_cc_flag__Werror_write_strings 8130 if eval \${$cacheid+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136int 8137main () 8138{ 8139 8140 ; 8141 return 0; 8142} 8143_ACEOF 8144if ac_fn_c_try_link "$LINENO"; then : 8145 eval $cacheid=yes 8146else 8147 eval $cacheid=no 8148fi 8149rm -f core conftest.err conftest.$ac_objext \ 8150 conftest$ac_exeext conftest.$ac_ext 8151fi 8152 8153 8154 CFLAGS="$xorg_testset_save_CFLAGS" 8155 8156 eval supported=\$$cacheid 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8158$as_echo "$supported" >&6; } 8159 if test "$supported" = "yes" ; then 8160 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8161 found="yes" 8162 fi 8163 fi 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179xorg_testset_save_CFLAGS="$CFLAGS" 8180 8181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8189/* end confdefs.h. */ 8190int i; 8191_ACEOF 8192if ac_fn_c_try_compile "$LINENO"; then : 8193 xorg_cv_cc_flag_unknown_warning_option=yes 8194else 8195 xorg_cv_cc_flag_unknown_warning_option=no 8196fi 8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8202 CFLAGS="$xorg_testset_save_CFLAGS" 8203fi 8204 8205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 fi 8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217int i; 8218_ACEOF 8219if ac_fn_c_try_compile "$LINENO"; then : 8220 xorg_cv_cc_flag_unused_command_line_argument=yes 8221else 8222 xorg_cv_cc_flag_unused_command_line_argument=no 8223fi 8224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8229 CFLAGS="$xorg_testset_save_CFLAGS" 8230fi 8231 8232found="no" 8233 8234 if test $found = "no" ; then 8235 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8237 fi 8238 8239 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8241 fi 8242 8243 CFLAGS="$CFLAGS -Werror=address" 8244 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8246$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8247 cacheid=xorg_cv_cc_flag__Werror_address 8248 if eval \${$cacheid+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253int i; 8254int 8255main () 8256{ 8257 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_link "$LINENO"; then : 8263 eval $cacheid=yes 8264else 8265 eval $cacheid=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext \ 8268 conftest$ac_exeext conftest.$ac_ext 8269fi 8270 8271 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273 8274 eval supported=\$$cacheid 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8276$as_echo "$supported" >&6; } 8277 if test "$supported" = "yes" ; then 8278 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8279 found="yes" 8280 fi 8281 fi 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297xorg_testset_save_CFLAGS="$CFLAGS" 8298 8299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8304 $as_echo_n "(cached) " >&6 8305else 8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307/* end confdefs.h. */ 8308int i; 8309_ACEOF 8310if ac_fn_c_try_compile "$LINENO"; then : 8311 xorg_cv_cc_flag_unknown_warning_option=yes 8312else 8313 xorg_cv_cc_flag_unknown_warning_option=no 8314fi 8315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8316fi 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8320 CFLAGS="$xorg_testset_save_CFLAGS" 8321fi 8322 8323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8326 fi 8327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334/* end confdefs.h. */ 8335int i; 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO"; then : 8338 xorg_cv_cc_flag_unused_command_line_argument=yes 8339else 8340 xorg_cv_cc_flag_unused_command_line_argument=no 8341fi 8342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8347 CFLAGS="$xorg_testset_save_CFLAGS" 8348fi 8349 8350found="no" 8351 8352 if test $found = "no" ; then 8353 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8355 fi 8356 8357 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8359 fi 8360 8361 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8362 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8364$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8365 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8366 if eval \${$cacheid+:} false; then : 8367 $as_echo_n "(cached) " >&6 8368else 8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370/* end confdefs.h. */ 8371int i; 8372int 8373main () 8374{ 8375 8376 ; 8377 return 0; 8378} 8379_ACEOF 8380if ac_fn_c_try_link "$LINENO"; then : 8381 eval $cacheid=yes 8382else 8383 eval $cacheid=no 8384fi 8385rm -f core conftest.err conftest.$ac_objext \ 8386 conftest$ac_exeext conftest.$ac_ext 8387fi 8388 8389 8390 CFLAGS="$xorg_testset_save_CFLAGS" 8391 8392 eval supported=\$$cacheid 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8394$as_echo "$supported" >&6; } 8395 if test "$supported" = "yes" ; then 8396 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8397 found="yes" 8398 fi 8399 fi 8400 8401 if test $found = "no" ; then 8402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 fi 8405 8406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 fi 8409 8410 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8411 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8413$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8414 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8415 if eval \${$cacheid+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420int i; 8421int 8422main () 8423{ 8424 8425 ; 8426 return 0; 8427} 8428_ACEOF 8429if ac_fn_c_try_link "$LINENO"; then : 8430 eval $cacheid=yes 8431else 8432 eval $cacheid=no 8433fi 8434rm -f core conftest.err conftest.$ac_objext \ 8435 conftest$ac_exeext conftest.$ac_ext 8436fi 8437 8438 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440 8441 eval supported=\$$cacheid 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8443$as_echo "$supported" >&6; } 8444 if test "$supported" = "yes" ; then 8445 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8446 found="yes" 8447 fi 8448 fi 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464xorg_testset_save_CFLAGS="$CFLAGS" 8465 8466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8469$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8470if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO"; then : 8478 xorg_cv_cc_flag_unknown_warning_option=yes 8479else 8480 xorg_cv_cc_flag_unknown_warning_option=no 8481fi 8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483fi 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8485$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8487 CFLAGS="$xorg_testset_save_CFLAGS" 8488fi 8489 8490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8493 fi 8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8496$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8497if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502int i; 8503_ACEOF 8504if ac_fn_c_try_compile "$LINENO"; then : 8505 xorg_cv_cc_flag_unused_command_line_argument=yes 8506else 8507 xorg_cv_cc_flag_unused_command_line_argument=no 8508fi 8509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8510fi 8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8512$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515fi 8516 8517found="no" 8518 8519 if test $found = "no" ; then 8520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 fi 8523 8524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8526 fi 8527 8528 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8529 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8531$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8532 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8533 if eval \${$cacheid+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537/* end confdefs.h. */ 8538int i; 8539int 8540main () 8541{ 8542 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547if ac_fn_c_try_link "$LINENO"; then : 8548 eval $cacheid=yes 8549else 8550 eval $cacheid=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext \ 8553 conftest$ac_exeext conftest.$ac_ext 8554fi 8555 8556 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558 8559 eval supported=\$$cacheid 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8561$as_echo "$supported" >&6; } 8562 if test "$supported" = "yes" ; then 8563 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8564 found="yes" 8565 fi 8566 fi 8567 8568 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8569else 8570{ $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 8571$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;} 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 -Wimplicit" 8650 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8652$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8653 cacheid=xorg_cv_cc_flag__Wimplicit 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 -Wimplicit" 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 -Wnonnull" 8768 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8770$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8771 cacheid=xorg_cv_cc_flag__Wnonnull 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 -Wnonnull" 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 -Winit-self" 8886 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8888$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8889 cacheid=xorg_cv_cc_flag__Winit_self 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 -Winit-self" 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 -Wmain" 9004 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 9006$as_echo_n "checking if $CC supports-Wmain... " >&6; } 9007 cacheid=xorg_cv_cc_flag__Wmain 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 -Wmain" 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 -Wmissing-braces" 9122 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 9124$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 9125 cacheid=xorg_cv_cc_flag__Wmissing_braces 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 -Wmissing-braces" 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 -Wsequence-point" 9240 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9242$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9243 cacheid=xorg_cv_cc_flag__Wsequence_point 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 -Wsequence-point" 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 -Wreturn-type" 9358 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9360$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9361 cacheid=xorg_cv_cc_flag__Wreturn_type 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 -Wreturn-type" 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 -Wtrigraphs" 9476 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9478$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9479 cacheid=xorg_cv_cc_flag__Wtrigraphs 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 -Wtrigraphs" 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 -Warray-bounds" 9594 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9596$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9597 cacheid=xorg_cv_cc_flag__Warray_bounds 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 -Warray-bounds" 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 -Wwrite-strings" 9712 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9714$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9715 cacheid=xorg_cv_cc_flag__Wwrite_strings 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 -Wwrite-strings" 9747 found="yes" 9748 fi 9749 fi 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765xorg_testset_save_CFLAGS="$CFLAGS" 9766 9767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776int i; 9777_ACEOF 9778if ac_fn_c_try_compile "$LINENO"; then : 9779 xorg_cv_cc_flag_unknown_warning_option=yes 9780else 9781 xorg_cv_cc_flag_unknown_warning_option=no 9782fi 9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9788 CFLAGS="$xorg_testset_save_CFLAGS" 9789fi 9790 9791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9794 fi 9795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9799 $as_echo_n "(cached) " >&6 9800else 9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9802/* end confdefs.h. */ 9803int i; 9804_ACEOF 9805if ac_fn_c_try_compile "$LINENO"; then : 9806 xorg_cv_cc_flag_unused_command_line_argument=yes 9807else 9808 xorg_cv_cc_flag_unused_command_line_argument=no 9809fi 9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9811fi 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9815 CFLAGS="$xorg_testset_save_CFLAGS" 9816fi 9817 9818found="no" 9819 9820 if test $found = "no" ; then 9821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9823 fi 9824 9825 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9827 fi 9828 9829 CFLAGS="$CFLAGS -Waddress" 9830 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9832$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9833 cacheid=xorg_cv_cc_flag__Waddress 9834 if eval \${$cacheid+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840int 9841main () 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848if ac_fn_c_try_link "$LINENO"; then : 9849 eval $cacheid=yes 9850else 9851 eval $cacheid=no 9852fi 9853rm -f core conftest.err conftest.$ac_objext \ 9854 conftest$ac_exeext conftest.$ac_ext 9855fi 9856 9857 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859 9860 eval supported=\$$cacheid 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9862$as_echo "$supported" >&6; } 9863 if test "$supported" = "yes" ; then 9864 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9865 found="yes" 9866 fi 9867 fi 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883xorg_testset_save_CFLAGS="$CFLAGS" 9884 9885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9890 $as_echo_n "(cached) " >&6 9891else 9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893/* end confdefs.h. */ 9894int i; 9895_ACEOF 9896if ac_fn_c_try_compile "$LINENO"; then : 9897 xorg_cv_cc_flag_unknown_warning_option=yes 9898else 9899 xorg_cv_cc_flag_unknown_warning_option=no 9900fi 9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9902fi 9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907fi 9908 9909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 fi 9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920/* end confdefs.h. */ 9921int i; 9922_ACEOF 9923if ac_fn_c_try_compile "$LINENO"; then : 9924 xorg_cv_cc_flag_unused_command_line_argument=yes 9925else 9926 xorg_cv_cc_flag_unused_command_line_argument=no 9927fi 9928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9929fi 9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9933 CFLAGS="$xorg_testset_save_CFLAGS" 9934fi 9935 9936found="no" 9937 9938 if test $found = "no" ; then 9939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9941 fi 9942 9943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9945 fi 9946 9947 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9948 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9950$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 9951 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9952 if eval \${$cacheid+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9956/* end confdefs.h. */ 9957int i; 9958int 9959main () 9960{ 9961 9962 ; 9963 return 0; 9964} 9965_ACEOF 9966if ac_fn_c_try_link "$LINENO"; then : 9967 eval $cacheid=yes 9968else 9969 eval $cacheid=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext \ 9972 conftest$ac_exeext conftest.$ac_ext 9973fi 9974 9975 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977 9978 eval supported=\$$cacheid 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9980$as_echo "$supported" >&6; } 9981 if test "$supported" = "yes" ; then 9982 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9983 found="yes" 9984 fi 9985 fi 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001xorg_testset_save_CFLAGS="$CFLAGS" 10002 10003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012int i; 10013_ACEOF 10014if ac_fn_c_try_compile "$LINENO"; then : 10015 xorg_cv_cc_flag_unknown_warning_option=yes 10016else 10017 xorg_cv_cc_flag_unknown_warning_option=no 10018fi 10019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10020fi 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10024 CFLAGS="$xorg_testset_save_CFLAGS" 10025fi 10026 10027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10030 fi 10031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036else 10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040_ACEOF 10041if ac_fn_c_try_compile "$LINENO"; then : 10042 xorg_cv_cc_flag_unused_command_line_argument=yes 10043else 10044 xorg_cv_cc_flag_unused_command_line_argument=no 10045fi 10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10047fi 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10051 CFLAGS="$xorg_testset_save_CFLAGS" 10052fi 10053 10054found="no" 10055 10056 if test $found = "no" ; then 10057 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10059 fi 10060 10061 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10063 fi 10064 10065 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10066 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 10068$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 10069 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10070 if eval \${$cacheid+:} false; then : 10071 $as_echo_n "(cached) " >&6 10072else 10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10074/* end confdefs.h. */ 10075int i; 10076int 10077main () 10078{ 10079 10080 ; 10081 return 0; 10082} 10083_ACEOF 10084if ac_fn_c_try_link "$LINENO"; then : 10085 eval $cacheid=yes 10086else 10087 eval $cacheid=no 10088fi 10089rm -f core conftest.err conftest.$ac_objext \ 10090 conftest$ac_exeext conftest.$ac_ext 10091fi 10092 10093 10094 CFLAGS="$xorg_testset_save_CFLAGS" 10095 10096 eval supported=\$$cacheid 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10098$as_echo "$supported" >&6; } 10099 if test "$supported" = "yes" ; then 10100 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10101 found="yes" 10102 fi 10103 fi 10104 10105 10106fi 10107 10108 10109 10110 10111 10112 10113 10114 CWARNFLAGS="$BASE_CFLAGS" 10115 if test "x$GCC" = xyes ; then 10116 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10117 fi 10118 10119 10120 10121 10122 10123 10124 10125 10126# Check whether --enable-strict-compilation was given. 10127if test "${enable_strict_compilation+set}" = set; then : 10128 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10129else 10130 STRICT_COMPILE=no 10131fi 10132 10133 10134 10135 10136 10137 10138STRICT_CFLAGS="" 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152xorg_testset_save_CFLAGS="$CFLAGS" 10153 10154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10159 $as_echo_n "(cached) " >&6 10160else 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164_ACEOF 10165if ac_fn_c_try_compile "$LINENO"; then : 10166 xorg_cv_cc_flag_unknown_warning_option=yes 10167else 10168 xorg_cv_cc_flag_unknown_warning_option=no 10169fi 10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10171fi 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10175 CFLAGS="$xorg_testset_save_CFLAGS" 10176fi 10177 10178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 fi 10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10186 $as_echo_n "(cached) " >&6 10187else 10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10189/* end confdefs.h. */ 10190int i; 10191_ACEOF 10192if ac_fn_c_try_compile "$LINENO"; then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194else 10195 xorg_cv_cc_flag_unused_command_line_argument=no 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10198fi 10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203fi 10204 10205found="no" 10206 10207 if test $found = "no" ; then 10208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 10212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10214 fi 10215 10216 CFLAGS="$CFLAGS -pedantic" 10217 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10219$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10220 cacheid=xorg_cv_cc_flag__pedantic 10221 if eval \${$cacheid+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225/* end confdefs.h. */ 10226int i; 10227int 10228main () 10229{ 10230 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_link "$LINENO"; then : 10236 eval $cacheid=yes 10237else 10238 eval $cacheid=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext \ 10241 conftest$ac_exeext conftest.$ac_ext 10242fi 10243 10244 10245 CFLAGS="$xorg_testset_save_CFLAGS" 10246 10247 eval supported=\$$cacheid 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10249$as_echo "$supported" >&6; } 10250 if test "$supported" = "yes" ; then 10251 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10252 found="yes" 10253 fi 10254 fi 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270xorg_testset_save_CFLAGS="$CFLAGS" 10271 10272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281int i; 10282_ACEOF 10283if ac_fn_c_try_compile "$LINENO"; then : 10284 xorg_cv_cc_flag_unknown_warning_option=yes 10285else 10286 xorg_cv_cc_flag_unknown_warning_option=no 10287fi 10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10289fi 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10293 CFLAGS="$xorg_testset_save_CFLAGS" 10294fi 10295 10296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10299 fi 10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10307/* end confdefs.h. */ 10308int i; 10309_ACEOF 10310if ac_fn_c_try_compile "$LINENO"; then : 10311 xorg_cv_cc_flag_unused_command_line_argument=yes 10312else 10313 xorg_cv_cc_flag_unused_command_line_argument=no 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321fi 10322 10323found="no" 10324 10325 if test $found = "no" ; then 10326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 10330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10332 fi 10333 10334 CFLAGS="$CFLAGS -Werror" 10335 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10337$as_echo_n "checking if $CC supports-Werror... " >&6; } 10338 cacheid=xorg_cv_cc_flag__Werror 10339 if eval \${$cacheid+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341else 10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344int i; 10345int 10346main () 10347{ 10348 10349 ; 10350 return 0; 10351} 10352_ACEOF 10353if ac_fn_c_try_link "$LINENO"; then : 10354 eval $cacheid=yes 10355else 10356 eval $cacheid=no 10357fi 10358rm -f core conftest.err conftest.$ac_objext \ 10359 conftest$ac_exeext conftest.$ac_ext 10360fi 10361 10362 10363 CFLAGS="$xorg_testset_save_CFLAGS" 10364 10365 eval supported=\$$cacheid 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10367$as_echo "$supported" >&6; } 10368 if test "$supported" = "yes" ; then 10369 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10370 found="yes" 10371 fi 10372 fi 10373 10374 if test $found = "no" ; then 10375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10377 fi 10378 10379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381 fi 10382 10383 CFLAGS="$CFLAGS -errwarn" 10384 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10386$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10387 cacheid=xorg_cv_cc_flag__errwarn 10388 if eval \${$cacheid+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393int i; 10394int 10395main () 10396{ 10397 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402if ac_fn_c_try_link "$LINENO"; then : 10403 eval $cacheid=yes 10404else 10405 eval $cacheid=no 10406fi 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409fi 10410 10411 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10413 10414 eval supported=\$$cacheid 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10416$as_echo "$supported" >&6; } 10417 if test "$supported" = "yes" ; then 10418 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10419 found="yes" 10420 fi 10421 fi 10422 10423 10424 10425# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10426# activate it with -Werror, so we add it here explicitly. 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440xorg_testset_save_CFLAGS="$CFLAGS" 10441 10442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450/* end confdefs.h. */ 10451int i; 10452_ACEOF 10453if ac_fn_c_try_compile "$LINENO"; then : 10454 xorg_cv_cc_flag_unknown_warning_option=yes 10455else 10456 xorg_cv_cc_flag_unknown_warning_option=no 10457fi 10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10459fi 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10463 CFLAGS="$xorg_testset_save_CFLAGS" 10464fi 10465 10466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10469 fi 10470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10474 $as_echo_n "(cached) " >&6 10475else 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478int i; 10479_ACEOF 10480if ac_fn_c_try_compile "$LINENO"; then : 10481 xorg_cv_cc_flag_unused_command_line_argument=yes 10482else 10483 xorg_cv_cc_flag_unused_command_line_argument=no 10484fi 10485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10486fi 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10490 CFLAGS="$xorg_testset_save_CFLAGS" 10491fi 10492 10493found="no" 10494 10495 if test $found = "no" ; then 10496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 fi 10499 10500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10502 fi 10503 10504 CFLAGS="$CFLAGS -Werror=attributes" 10505 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10507$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10508 cacheid=xorg_cv_cc_flag__Werror_attributes 10509 if eval \${$cacheid+:} false; then : 10510 $as_echo_n "(cached) " >&6 10511else 10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10513/* end confdefs.h. */ 10514int i; 10515int 10516main () 10517{ 10518 10519 ; 10520 return 0; 10521} 10522_ACEOF 10523if ac_fn_c_try_link "$LINENO"; then : 10524 eval $cacheid=yes 10525else 10526 eval $cacheid=no 10527fi 10528rm -f core conftest.err conftest.$ac_objext \ 10529 conftest$ac_exeext conftest.$ac_ext 10530fi 10531 10532 10533 CFLAGS="$xorg_testset_save_CFLAGS" 10534 10535 eval supported=\$$cacheid 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10537$as_echo "$supported" >&6; } 10538 if test "$supported" = "yes" ; then 10539 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10540 found="yes" 10541 fi 10542 fi 10543 10544 10545 10546if test "x$STRICT_COMPILE" = "xyes"; then 10547 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10548 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10549fi 10550 10551 10552 10553 10554 10555 10556cat >>confdefs.h <<_ACEOF 10557#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10558_ACEOF 10559 10560 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10561 if test "x$PVM" = "x"; then 10562 PVM="0" 10563 fi 10564 10565cat >>confdefs.h <<_ACEOF 10566#define PACKAGE_VERSION_MINOR $PVM 10567_ACEOF 10568 10569 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10570 if test "x$PVP" = "x"; then 10571 PVP="0" 10572 fi 10573 10574cat >>confdefs.h <<_ACEOF 10575#define PACKAGE_VERSION_PATCHLEVEL $PVP 10576_ACEOF 10577 10578 10579 10580CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10581mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10582|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10583echo 'git directory not found: installing possibly empty changelog.' >&2)" 10584 10585 10586 10587 10588macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10589INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10590mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10591|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10592echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10593 10594 10595 10596 10597 10598 10599if test x$APP_MAN_SUFFIX = x ; then 10600 APP_MAN_SUFFIX=1 10601fi 10602if test x$APP_MAN_DIR = x ; then 10603 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10604fi 10605 10606if test x$LIB_MAN_SUFFIX = x ; then 10607 LIB_MAN_SUFFIX=3 10608fi 10609if test x$LIB_MAN_DIR = x ; then 10610 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10611fi 10612 10613if test x$FILE_MAN_SUFFIX = x ; then 10614 case $host_os in 10615 solaris*) FILE_MAN_SUFFIX=4 ;; 10616 *) FILE_MAN_SUFFIX=5 ;; 10617 esac 10618fi 10619if test x$FILE_MAN_DIR = x ; then 10620 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10621fi 10622 10623if test x$MISC_MAN_SUFFIX = x ; then 10624 case $host_os in 10625 solaris*) MISC_MAN_SUFFIX=5 ;; 10626 *) MISC_MAN_SUFFIX=7 ;; 10627 esac 10628fi 10629if test x$MISC_MAN_DIR = x ; then 10630 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10631fi 10632 10633if test x$DRIVER_MAN_SUFFIX = x ; then 10634 case $host_os in 10635 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10636 *) DRIVER_MAN_SUFFIX=4 ;; 10637 esac 10638fi 10639if test x$DRIVER_MAN_DIR = x ; then 10640 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10641fi 10642 10643if test x$ADMIN_MAN_SUFFIX = x ; then 10644 case $host_os in 10645 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10646 *) ADMIN_MAN_SUFFIX=8 ;; 10647 esac 10648fi 10649if test x$ADMIN_MAN_DIR = x ; then 10650 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10651fi 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667XORG_MAN_PAGE="X Version 11" 10668 10669MAN_SUBSTS="\ 10670 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10671 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10672 -e 's|__xservername__|Xorg|g' \ 10673 -e 's|__xconfigfile__|xorg.conf|g' \ 10674 -e 's|__projectroot__|\$(prefix)|g' \ 10675 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10676 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10677 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10678 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10679 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10680 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10681 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10682 10683 10684 10685# Check whether --enable-silent-rules was given. 10686if test "${enable_silent_rules+set}" = set; then : 10687 enableval=$enable_silent_rules; 10688fi 10689 10690case $enable_silent_rules in # ((( 10691 yes) AM_DEFAULT_VERBOSITY=0;; 10692 no) AM_DEFAULT_VERBOSITY=1;; 10693 *) AM_DEFAULT_VERBOSITY=0;; 10694esac 10695am_make=${MAKE-make} 10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10697$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10698if ${am_cv_make_support_nested_variables+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 if $as_echo 'TRUE=$(BAR$(V)) 10702BAR0=false 10703BAR1=true 10704V=1 10705am__doit: 10706 @$(TRUE) 10707.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10708 am_cv_make_support_nested_variables=yes 10709else 10710 am_cv_make_support_nested_variables=no 10711fi 10712fi 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10714$as_echo "$am_cv_make_support_nested_variables" >&6; } 10715if test $am_cv_make_support_nested_variables = yes; then 10716 AM_V='$(V)' 10717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10718else 10719 AM_V=$AM_DEFAULT_VERBOSITY 10720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10721fi 10722AM_BACKSLASH='\' 10723 10724 10725 10726for ac_header in net/errno.h 10727do : 10728 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 10729if test "x$ac_cv_header_net_errno_h" = xyes; then : 10730 cat >>confdefs.h <<_ACEOF 10731#define HAVE_NET_ERRNO_H 1 10732_ACEOF 10733 10734fi 10735 10736done 10737 10738 10739for ac_func in strlcpy 10740do : 10741 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 10742if test "x$ac_cv_func_strlcpy" = xyes; then : 10743 cat >>confdefs.h <<_ACEOF 10744#define HAVE_STRLCPY 1 10745_ACEOF 10746 10747fi 10748done 10749 10750 10751# Checks for pkg-config packages 10752 10753pkg_failed=no 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 10755$as_echo_n "checking for XAUTH... " >&6; } 10756 10757if test -n "$XAUTH_CFLAGS"; then 10758 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 10759 elif test -n "$PKG_CONFIG"; then 10760 if test -n "$PKG_CONFIG" && \ 10761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 10762 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 10763 ac_status=$? 10764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10765 test $ac_status = 0; }; then 10766 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 10767 test "x$?" != "x0" && pkg_failed=yes 10768else 10769 pkg_failed=yes 10770fi 10771 else 10772 pkg_failed=untried 10773fi 10774if test -n "$XAUTH_LIBS"; then 10775 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 10776 elif test -n "$PKG_CONFIG"; then 10777 if test -n "$PKG_CONFIG" && \ 10778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 10779 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 10780 ac_status=$? 10781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10782 test $ac_status = 0; }; then 10783 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 10784 test "x$?" != "x0" && pkg_failed=yes 10785else 10786 pkg_failed=yes 10787fi 10788 else 10789 pkg_failed=untried 10790fi 10791 10792 10793 10794if test $pkg_failed = yes; then 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10796$as_echo "no" >&6; } 10797 10798if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10799 _pkg_short_errors_supported=yes 10800else 10801 _pkg_short_errors_supported=no 10802fi 10803 if test $_pkg_short_errors_supported = yes; then 10804 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 10805 else 10806 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 10807 fi 10808 # Put the nasty error message in config.log where it belongs 10809 echo "$XAUTH_PKG_ERRORS" >&5 10810 10811 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met: 10812 10813$XAUTH_PKG_ERRORS 10814 10815Consider adjusting the PKG_CONFIG_PATH environment variable if you 10816installed software in a non-standard prefix. 10817 10818Alternatively, you may set the environment variables XAUTH_CFLAGS 10819and XAUTH_LIBS to avoid the need to call pkg-config. 10820See the pkg-config man page for more details." "$LINENO" 5 10821elif test $pkg_failed = untried; then 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10823$as_echo "no" >&6; } 10824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10826as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10827is in your PATH or set the PKG_CONFIG environment variable to the full 10828path to pkg-config. 10829 10830Alternatively, you may set the environment variables XAUTH_CFLAGS 10831and XAUTH_LIBS to avoid the need to call pkg-config. 10832See the pkg-config man page for more details. 10833 10834To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10835See \`config.log' for more details" "$LINENO" 5; } 10836else 10837 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 10838 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10840$as_echo "yes" >&6; } 10841 10842fi 10843 10844# Transport selection macro from xtrans.m4 10845# Needed to set *CONN defines for gethost.c & parsedpy.c 10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 10847$as_echo_n "checking return type of signal handlers... " >&6; } 10848if ${ac_cv_type_signal+:} false; then : 10849 $as_echo_n "(cached) " >&6 10850else 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853#include <sys/types.h> 10854#include <signal.h> 10855 10856int 10857main () 10858{ 10859return *(signal (0, 0)) (0) == 1; 10860 ; 10861 return 0; 10862} 10863_ACEOF 10864if ac_fn_c_try_compile "$LINENO"; then : 10865 ac_cv_type_signal=int 10866else 10867 ac_cv_type_signal=void 10868fi 10869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10870fi 10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 10872$as_echo "$ac_cv_type_signal" >&6; } 10873 10874cat >>confdefs.h <<_ACEOF 10875#define RETSIGTYPE $ac_cv_type_signal 10876_ACEOF 10877 10878 10879 10880 10881 10882 case $host_os in 10883 mingw*) unixdef="no" ;; 10884 *) unixdef="yes" ;; 10885 esac 10886 # Check whether --enable-unix-transport was given. 10887if test "${enable_unix_transport+set}" = set; then : 10888 enableval=$enable_unix_transport; UNIXCONN=$enableval 10889else 10890 UNIXCONN=$unixdef 10891fi 10892 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 10894$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 10895 if test "$UNIXCONN" = "yes"; then 10896 10897$as_echo "#define UNIXCONN 1" >>confdefs.h 10898 10899 fi 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 10901$as_echo "$UNIXCONN" >&6; } 10902 # Check whether --enable-tcp-transport was given. 10903if test "${enable_tcp_transport+set}" = set; then : 10904 enableval=$enable_tcp_transport; TCPCONN=$enableval 10905else 10906 TCPCONN=yes 10907fi 10908 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 10910$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 10912$as_echo "$TCPCONN" >&6; } 10913 if test "$TCPCONN" = "yes"; then 10914 10915$as_echo "#define TCPCONN 1" >>confdefs.h 10916 10917 10918 # SVR4 hides these in libraries other than libc 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 10920$as_echo_n "checking for library containing socket... " >&6; } 10921if ${ac_cv_search_socket+:} false; then : 10922 $as_echo_n "(cached) " >&6 10923else 10924 ac_func_search_save_LIBS=$LIBS 10925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10926/* end confdefs.h. */ 10927 10928/* Override any GCC internal prototype to avoid an error. 10929 Use char because int might match the return type of a GCC 10930 builtin and then its argument prototype would still apply. */ 10931#ifdef __cplusplus 10932extern "C" 10933#endif 10934char socket (); 10935int 10936main () 10937{ 10938return socket (); 10939 ; 10940 return 0; 10941} 10942_ACEOF 10943for ac_lib in '' socket; do 10944 if test -z "$ac_lib"; then 10945 ac_res="none required" 10946 else 10947 ac_res=-l$ac_lib 10948 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10949 fi 10950 if ac_fn_c_try_link "$LINENO"; then : 10951 ac_cv_search_socket=$ac_res 10952fi 10953rm -f core conftest.err conftest.$ac_objext \ 10954 conftest$ac_exeext 10955 if ${ac_cv_search_socket+:} false; then : 10956 break 10957fi 10958done 10959if ${ac_cv_search_socket+:} false; then : 10960 10961else 10962 ac_cv_search_socket=no 10963fi 10964rm conftest.$ac_ext 10965LIBS=$ac_func_search_save_LIBS 10966fi 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 10968$as_echo "$ac_cv_search_socket" >&6; } 10969ac_res=$ac_cv_search_socket 10970if test "$ac_res" != no; then : 10971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10972 10973fi 10974 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 10976$as_echo_n "checking for library containing gethostbyname... " >&6; } 10977if ${ac_cv_search_gethostbyname+:} false; then : 10978 $as_echo_n "(cached) " >&6 10979else 10980 ac_func_search_save_LIBS=$LIBS 10981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10982/* end confdefs.h. */ 10983 10984/* Override any GCC internal prototype to avoid an error. 10985 Use char because int might match the return type of a GCC 10986 builtin and then its argument prototype would still apply. */ 10987#ifdef __cplusplus 10988extern "C" 10989#endif 10990char gethostbyname (); 10991int 10992main () 10993{ 10994return gethostbyname (); 10995 ; 10996 return 0; 10997} 10998_ACEOF 10999for ac_lib in '' nsl; do 11000 if test -z "$ac_lib"; then 11001 ac_res="none required" 11002 else 11003 ac_res=-l$ac_lib 11004 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11005 fi 11006 if ac_fn_c_try_link "$LINENO"; then : 11007 ac_cv_search_gethostbyname=$ac_res 11008fi 11009rm -f core conftest.err conftest.$ac_objext \ 11010 conftest$ac_exeext 11011 if ${ac_cv_search_gethostbyname+:} false; then : 11012 break 11013fi 11014done 11015if ${ac_cv_search_gethostbyname+:} false; then : 11016 11017else 11018 ac_cv_search_gethostbyname=no 11019fi 11020rm conftest.$ac_ext 11021LIBS=$ac_func_search_save_LIBS 11022fi 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 11024$as_echo "$ac_cv_search_gethostbyname" >&6; } 11025ac_res=$ac_cv_search_gethostbyname 11026if test "$ac_res" != no; then : 11027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11028 11029fi 11030 11031 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 11033$as_echo_n "checking for main in -lws2_32... " >&6; } 11034if ${ac_cv_lib_ws2_32_main+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 ac_check_lib_save_LIBS=$LIBS 11038LIBS="-lws2_32 $LIBS" 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042 11043int 11044main () 11045{ 11046return main (); 11047 ; 11048 return 0; 11049} 11050_ACEOF 11051if ac_fn_c_try_link "$LINENO"; then : 11052 ac_cv_lib_ws2_32_main=yes 11053else 11054 ac_cv_lib_ws2_32_main=no 11055fi 11056rm -f core conftest.err conftest.$ac_objext \ 11057 conftest$ac_exeext conftest.$ac_ext 11058LIBS=$ac_check_lib_save_LIBS 11059fi 11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 11061$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 11062if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 11063 cat >>confdefs.h <<_ACEOF 11064#define HAVE_LIBWS2_32 1 11065_ACEOF 11066 11067 LIBS="-lws2_32 $LIBS" 11068 11069fi 11070ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 11071 11072 fi 11073 11074 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 11075 # Check whether --enable-ipv6 was given. 11076if test "${enable_ipv6+set}" = set; then : 11077 enableval=$enable_ipv6; IPV6CONN=$enableval 11078else 11079 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 11080if test "x$ac_cv_func_getaddrinfo" = xyes; then : 11081 IPV6CONN=yes 11082else 11083 IPV6CONN=no 11084fi 11085 11086fi 11087 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 11089$as_echo_n "checking if IPv6 support should be built... " >&6; } 11090 if test "$IPV6CONN" = "yes"; then 11091 11092$as_echo "#define IPv6 1" >>confdefs.h 11093 11094 fi 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 11096$as_echo "$IPV6CONN" >&6; } 11097 11098 # 4.3BSD-Reno added a new member to struct sockaddr_in 11099 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 11100#include <sys/types.h> 11101#include <sys/socket.h> 11102#include <netinet/in.h> 11103 11104" 11105if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 11106 11107$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 11108 11109fi 11110 11111 11112 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 11113 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 11114$ac_includes_default 11115#include <sys/socket.h> 11116" 11117if test "x$ac_cv_type_socklen_t" = xyes; then : 11118 11119cat >>confdefs.h <<_ACEOF 11120#define HAVE_SOCKLEN_T 1 11121_ACEOF 11122 11123 11124fi 11125 11126 11127 11128 fi 11129 case $host_os in 11130 solaris*|sco*|sysv4*) localdef="yes" ;; 11131 *) localdef="no" ;; 11132 esac 11133 # Check whether --enable-local-transport was given. 11134if test "${enable_local_transport+set}" = set; then : 11135 enableval=$enable_local_transport; LOCALCONN=$enableval 11136else 11137 LOCALCONN=$localdef 11138fi 11139 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 11141$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 11143$as_echo "$LOCALCONN" >&6; } 11144 if test "$LOCALCONN" = "yes"; then 11145 11146$as_echo "#define LOCALCONN 1" >>confdefs.h 11147 11148 fi 11149 11150 11151 11152 11153 11154 11155 11156 11157# Check whether --with-lint was given. 11158if test "${with_lint+set}" = set; then : 11159 withval=$with_lint; use_lint=$withval 11160else 11161 use_lint=no 11162fi 11163 11164 11165# Obtain platform specific info like program name and options 11166# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11167case $host_os in 11168 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11169 lint_name=splint 11170 lint_options="-badflag" 11171 ;; 11172 *freebsd* | *netbsd*) 11173 lint_name=lint 11174 lint_options="-u -b" 11175 ;; 11176 *solaris*) 11177 lint_name=lint 11178 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11179 ;; 11180esac 11181 11182# Test for the presence of the program (either guessed by the code or spelled out by the user) 11183if test "x$use_lint" = x"yes" ; then 11184 # Extract the first word of "$lint_name", so it can be a program name with args. 11185set dummy $lint_name; ac_word=$2 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11187$as_echo_n "checking for $ac_word... " >&6; } 11188if ${ac_cv_path_LINT+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 case $LINT in 11192 [\\/]* | ?:[\\/]*) 11193 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11194 ;; 11195 *) 11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11197for as_dir in $PATH 11198do 11199 IFS=$as_save_IFS 11200 test -z "$as_dir" && as_dir=. 11201 for ac_exec_ext in '' $ac_executable_extensions; do 11202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11203 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11205 break 2 11206 fi 11207done 11208 done 11209IFS=$as_save_IFS 11210 11211 ;; 11212esac 11213fi 11214LINT=$ac_cv_path_LINT 11215if test -n "$LINT"; then 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11217$as_echo "$LINT" >&6; } 11218else 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11220$as_echo "no" >&6; } 11221fi 11222 11223 11224 if test "x$LINT" = "x"; then 11225 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11226 fi 11227elif test "x$use_lint" = x"no" ; then 11228 if test "x$LINT" != "x"; then 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11230$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11231 fi 11232else 11233 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11234fi 11235 11236# User supplied flags override default flags 11237if test "x$LINT_FLAGS" != "x"; then 11238 lint_options=$LINT_FLAGS 11239fi 11240 11241LINT_FLAGS=$lint_options 11242 11243 if test "x$LINT" != x; then 11244 LINT_TRUE= 11245 LINT_FALSE='#' 11246else 11247 LINT_TRUE='#' 11248 LINT_FALSE= 11249fi 11250 11251 11252 11253 11254ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile" 11255 11256cat >confcache <<\_ACEOF 11257# This file is a shell script that caches the results of configure 11258# tests run on this system so they can be shared between configure 11259# scripts and configure runs, see configure's option --config-cache. 11260# It is not useful on other systems. If it contains results you don't 11261# want to keep, you may remove or edit it. 11262# 11263# config.status only pays attention to the cache file if you give it 11264# the --recheck option to rerun configure. 11265# 11266# `ac_cv_env_foo' variables (set or unset) will be overridden when 11267# loading this file, other *unset* `ac_cv_foo' will be assigned the 11268# following values. 11269 11270_ACEOF 11271 11272# The following way of writing the cache mishandles newlines in values, 11273# but we know of no workaround that is simple, portable, and efficient. 11274# So, we kill variables containing newlines. 11275# Ultrix sh set writes to stderr and can't be redirected directly, 11276# and sets the high bit in the cache file unless we assign to the vars. 11277( 11278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11279 eval ac_val=\$$ac_var 11280 case $ac_val in #( 11281 *${as_nl}*) 11282 case $ac_var in #( 11283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11285 esac 11286 case $ac_var in #( 11287 _ | IFS | as_nl) ;; #( 11288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11289 *) { eval $ac_var=; unset $ac_var;} ;; 11290 esac ;; 11291 esac 11292 done 11293 11294 (set) 2>&1 | 11295 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11296 *${as_nl}ac_space=\ *) 11297 # `set' does not quote correctly, so add quotes: double-quote 11298 # substitution turns \\\\ into \\, and sed turns \\ into \. 11299 sed -n \ 11300 "s/'/'\\\\''/g; 11301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11302 ;; #( 11303 *) 11304 # `set' quotes correctly as required by POSIX, so do not add quotes. 11305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11306 ;; 11307 esac | 11308 sort 11309) | 11310 sed ' 11311 /^ac_cv_env_/b end 11312 t clear 11313 :clear 11314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11315 t end 11316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11317 :end' >>confcache 11318if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11319 if test -w "$cache_file"; then 11320 if test "x$cache_file" != "x/dev/null"; then 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11322$as_echo "$as_me: updating cache $cache_file" >&6;} 11323 if test ! -f "$cache_file" || test -h "$cache_file"; then 11324 cat confcache >"$cache_file" 11325 else 11326 case $cache_file in #( 11327 */* | ?:*) 11328 mv -f confcache "$cache_file"$$ && 11329 mv -f "$cache_file"$$ "$cache_file" ;; #( 11330 *) 11331 mv -f confcache "$cache_file" ;; 11332 esac 11333 fi 11334 fi 11335 else 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11337$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11338 fi 11339fi 11340rm -f confcache 11341 11342test "x$prefix" = xNONE && prefix=$ac_default_prefix 11343# Let make expand exec_prefix. 11344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11345 11346DEFS=-DHAVE_CONFIG_H 11347 11348ac_libobjs= 11349ac_ltlibobjs= 11350U= 11351for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11352 # 1. Remove the extension, and $U if already installed. 11353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11356 # will be set to the directory where LIBOBJS objects are built. 11357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11359done 11360LIBOBJS=$ac_libobjs 11361 11362LTLIBOBJS=$ac_ltlibobjs 11363 11364 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11366$as_echo_n "checking that generated files are newer than configure... " >&6; } 11367 if test -n "$am_sleep_pid"; then 11368 # Hide warnings about reused PIDs. 11369 wait $am_sleep_pid 2>/dev/null 11370 fi 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11372$as_echo "done" >&6; } 11373 if test -n "$EXEEXT"; then 11374 am__EXEEXT_TRUE= 11375 am__EXEEXT_FALSE='#' 11376else 11377 am__EXEEXT_TRUE='#' 11378 am__EXEEXT_FALSE= 11379fi 11380 11381if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11382 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11383Usually this means the macro was only invoked conditionally." "$LINENO" 5 11384fi 11385if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11386 as_fn_error $? "conditional \"AMDEP\" was never defined. 11387Usually this means the macro was only invoked conditionally." "$LINENO" 5 11388fi 11389if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11390 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11391Usually this means the macro was only invoked conditionally." "$LINENO" 5 11392fi 11393if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11394 as_fn_error $? "conditional \"LINT\" was never defined. 11395Usually this means the macro was only invoked conditionally." "$LINENO" 5 11396fi 11397 11398: "${CONFIG_STATUS=./config.status}" 11399ac_write_fail=0 11400ac_clean_files_save=$ac_clean_files 11401ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11403$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11404as_write_fail=0 11405cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11406#! $SHELL 11407# Generated by $as_me. 11408# Run this file to recreate the current configuration. 11409# Compiler output produced by configure, useful for debugging 11410# configure, is in config.log if it exists. 11411 11412debug=false 11413ac_cs_recheck=false 11414ac_cs_silent=false 11415 11416SHELL=\${CONFIG_SHELL-$SHELL} 11417export SHELL 11418_ASEOF 11419cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11420## -------------------- ## 11421## M4sh Initialization. ## 11422## -------------------- ## 11423 11424# Be more Bourne compatible 11425DUALCASE=1; export DUALCASE # for MKS sh 11426if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11427 emulate sh 11428 NULLCMD=: 11429 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11430 # is contrary to our usage. Disable this feature. 11431 alias -g '${1+"$@"}'='"$@"' 11432 setopt NO_GLOB_SUBST 11433else 11434 case `(set -o) 2>/dev/null` in #( 11435 *posix*) : 11436 set -o posix ;; #( 11437 *) : 11438 ;; 11439esac 11440fi 11441 11442 11443as_nl=' 11444' 11445export as_nl 11446# Printing a long string crashes Solaris 7 /usr/bin/printf. 11447as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11448as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11449as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11450# Prefer a ksh shell builtin over an external printf program on Solaris, 11451# but without wasting forks for bash or zsh. 11452if test -z "$BASH_VERSION$ZSH_VERSION" \ 11453 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11454 as_echo='print -r --' 11455 as_echo_n='print -rn --' 11456elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11457 as_echo='printf %s\n' 11458 as_echo_n='printf %s' 11459else 11460 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11461 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11462 as_echo_n='/usr/ucb/echo -n' 11463 else 11464 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11465 as_echo_n_body='eval 11466 arg=$1; 11467 case $arg in #( 11468 *"$as_nl"*) 11469 expr "X$arg" : "X\\(.*\\)$as_nl"; 11470 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11471 esac; 11472 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11473 ' 11474 export as_echo_n_body 11475 as_echo_n='sh -c $as_echo_n_body as_echo' 11476 fi 11477 export as_echo_body 11478 as_echo='sh -c $as_echo_body as_echo' 11479fi 11480 11481# The user is always right. 11482if test "${PATH_SEPARATOR+set}" != set; then 11483 PATH_SEPARATOR=: 11484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11485 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11486 PATH_SEPARATOR=';' 11487 } 11488fi 11489 11490 11491# IFS 11492# We need space, tab and new line, in precisely that order. Quoting is 11493# there to prevent editors from complaining about space-tab. 11494# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11495# splitting by setting IFS to empty value.) 11496IFS=" "" $as_nl" 11497 11498# Find who we are. Look in the path if we contain no directory separator. 11499as_myself= 11500case $0 in #(( 11501 *[\\/]* ) as_myself=$0 ;; 11502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11503for as_dir in $PATH 11504do 11505 IFS=$as_save_IFS 11506 test -z "$as_dir" && as_dir=. 11507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11508 done 11509IFS=$as_save_IFS 11510 11511 ;; 11512esac 11513# We did not find ourselves, most probably we were run as `sh COMMAND' 11514# in which case we are not to be found in the path. 11515if test "x$as_myself" = x; then 11516 as_myself=$0 11517fi 11518if test ! -f "$as_myself"; then 11519 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11520 exit 1 11521fi 11522 11523# Unset variables that we do not need and which cause bugs (e.g. in 11524# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11525# suppresses any "Segmentation fault" message there. '((' could 11526# trigger a bug in pdksh 5.2.14. 11527for as_var in BASH_ENV ENV MAIL MAILPATH 11528do eval test x\${$as_var+set} = xset \ 11529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11530done 11531PS1='$ ' 11532PS2='> ' 11533PS4='+ ' 11534 11535# NLS nuisances. 11536LC_ALL=C 11537export LC_ALL 11538LANGUAGE=C 11539export LANGUAGE 11540 11541# CDPATH. 11542(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11543 11544 11545# as_fn_error STATUS ERROR [LINENO LOG_FD] 11546# ---------------------------------------- 11547# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11548# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11549# script with STATUS, using 1 if that was 0. 11550as_fn_error () 11551{ 11552 as_status=$1; test $as_status -eq 0 && as_status=1 11553 if test "$4"; then 11554 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11555 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11556 fi 11557 $as_echo "$as_me: error: $2" >&2 11558 as_fn_exit $as_status 11559} # as_fn_error 11560 11561 11562# as_fn_set_status STATUS 11563# ----------------------- 11564# Set $? to STATUS, without forking. 11565as_fn_set_status () 11566{ 11567 return $1 11568} # as_fn_set_status 11569 11570# as_fn_exit STATUS 11571# ----------------- 11572# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11573as_fn_exit () 11574{ 11575 set +e 11576 as_fn_set_status $1 11577 exit $1 11578} # as_fn_exit 11579 11580# as_fn_unset VAR 11581# --------------- 11582# Portably unset VAR. 11583as_fn_unset () 11584{ 11585 { eval $1=; unset $1;} 11586} 11587as_unset=as_fn_unset 11588# as_fn_append VAR VALUE 11589# ---------------------- 11590# Append the text in VALUE to the end of the definition contained in VAR. Take 11591# advantage of any shell optimizations that allow amortized linear growth over 11592# repeated appends, instead of the typical quadratic growth present in naive 11593# implementations. 11594if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11595 eval 'as_fn_append () 11596 { 11597 eval $1+=\$2 11598 }' 11599else 11600 as_fn_append () 11601 { 11602 eval $1=\$$1\$2 11603 } 11604fi # as_fn_append 11605 11606# as_fn_arith ARG... 11607# ------------------ 11608# Perform arithmetic evaluation on the ARGs, and store the result in the 11609# global $as_val. Take advantage of shells that can avoid forks. The arguments 11610# must be portable across $(()) and expr. 11611if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11612 eval 'as_fn_arith () 11613 { 11614 as_val=$(( $* )) 11615 }' 11616else 11617 as_fn_arith () 11618 { 11619 as_val=`expr "$@" || test $? -eq 1` 11620 } 11621fi # as_fn_arith 11622 11623 11624if expr a : '\(a\)' >/dev/null 2>&1 && 11625 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11626 as_expr=expr 11627else 11628 as_expr=false 11629fi 11630 11631if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11632 as_basename=basename 11633else 11634 as_basename=false 11635fi 11636 11637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11638 as_dirname=dirname 11639else 11640 as_dirname=false 11641fi 11642 11643as_me=`$as_basename -- "$0" || 11644$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11645 X"$0" : 'X\(//\)$' \| \ 11646 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11647$as_echo X/"$0" | 11648 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11649 s//\1/ 11650 q 11651 } 11652 /^X\/\(\/\/\)$/{ 11653 s//\1/ 11654 q 11655 } 11656 /^X\/\(\/\).*/{ 11657 s//\1/ 11658 q 11659 } 11660 s/.*/./; q'` 11661 11662# Avoid depending upon Character Ranges. 11663as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11664as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11665as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11666as_cr_digits='0123456789' 11667as_cr_alnum=$as_cr_Letters$as_cr_digits 11668 11669ECHO_C= ECHO_N= ECHO_T= 11670case `echo -n x` in #((((( 11671-n*) 11672 case `echo 'xy\c'` in 11673 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11674 xy) ECHO_C='\c';; 11675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11676 ECHO_T=' ';; 11677 esac;; 11678*) 11679 ECHO_N='-n';; 11680esac 11681 11682rm -f conf$$ conf$$.exe conf$$.file 11683if test -d conf$$.dir; then 11684 rm -f conf$$.dir/conf$$.file 11685else 11686 rm -f conf$$.dir 11687 mkdir conf$$.dir 2>/dev/null 11688fi 11689if (echo >conf$$.file) 2>/dev/null; then 11690 if ln -s conf$$.file conf$$ 2>/dev/null; then 11691 as_ln_s='ln -s' 11692 # ... but there are two gotchas: 11693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11695 # In both cases, we have to default to `cp -pR'. 11696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11697 as_ln_s='cp -pR' 11698 elif ln conf$$.file conf$$ 2>/dev/null; then 11699 as_ln_s=ln 11700 else 11701 as_ln_s='cp -pR' 11702 fi 11703else 11704 as_ln_s='cp -pR' 11705fi 11706rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11707rmdir conf$$.dir 2>/dev/null 11708 11709 11710# as_fn_mkdir_p 11711# ------------- 11712# Create "$as_dir" as a directory, including parents if necessary. 11713as_fn_mkdir_p () 11714{ 11715 11716 case $as_dir in #( 11717 -*) as_dir=./$as_dir;; 11718 esac 11719 test -d "$as_dir" || eval $as_mkdir_p || { 11720 as_dirs= 11721 while :; do 11722 case $as_dir in #( 11723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11724 *) as_qdir=$as_dir;; 11725 esac 11726 as_dirs="'$as_qdir' $as_dirs" 11727 as_dir=`$as_dirname -- "$as_dir" || 11728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11729 X"$as_dir" : 'X\(//\)[^/]' \| \ 11730 X"$as_dir" : 'X\(//\)$' \| \ 11731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11732$as_echo X"$as_dir" | 11733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11734 s//\1/ 11735 q 11736 } 11737 /^X\(\/\/\)[^/].*/{ 11738 s//\1/ 11739 q 11740 } 11741 /^X\(\/\/\)$/{ 11742 s//\1/ 11743 q 11744 } 11745 /^X\(\/\).*/{ 11746 s//\1/ 11747 q 11748 } 11749 s/.*/./; q'` 11750 test -d "$as_dir" && break 11751 done 11752 test -z "$as_dirs" || eval "mkdir $as_dirs" 11753 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11754 11755 11756} # as_fn_mkdir_p 11757if mkdir -p . 2>/dev/null; then 11758 as_mkdir_p='mkdir -p "$as_dir"' 11759else 11760 test -d ./-p && rmdir ./-p 11761 as_mkdir_p=false 11762fi 11763 11764 11765# as_fn_executable_p FILE 11766# ----------------------- 11767# Test if FILE is an executable regular file. 11768as_fn_executable_p () 11769{ 11770 test -f "$1" && test -x "$1" 11771} # as_fn_executable_p 11772as_test_x='test -x' 11773as_executable_p=as_fn_executable_p 11774 11775# Sed expression to map a string onto a valid CPP name. 11776as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11777 11778# Sed expression to map a string onto a valid variable name. 11779as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11780 11781 11782exec 6>&1 11783## ----------------------------------- ## 11784## Main body of $CONFIG_STATUS script. ## 11785## ----------------------------------- ## 11786_ASEOF 11787test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11788 11789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11790# Save the log message, to keep $0 and so on meaningful, and to 11791# report actual input values of CONFIG_FILES etc. instead of their 11792# values after options handling. 11793ac_log=" 11794This file was extended by xauth $as_me 1.0.8, which was 11795generated by GNU Autoconf 2.69. Invocation command line was 11796 11797 CONFIG_FILES = $CONFIG_FILES 11798 CONFIG_HEADERS = $CONFIG_HEADERS 11799 CONFIG_LINKS = $CONFIG_LINKS 11800 CONFIG_COMMANDS = $CONFIG_COMMANDS 11801 $ $0 $@ 11802 11803on `(hostname || uname -n) 2>/dev/null | sed 1q` 11804" 11805 11806_ACEOF 11807 11808case $ac_config_files in *" 11809"*) set x $ac_config_files; shift; ac_config_files=$*;; 11810esac 11811 11812case $ac_config_headers in *" 11813"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11814esac 11815 11816 11817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11818# Files that config.status was made for. 11819config_files="$ac_config_files" 11820config_headers="$ac_config_headers" 11821config_commands="$ac_config_commands" 11822 11823_ACEOF 11824 11825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11826ac_cs_usage="\ 11827\`$as_me' instantiates files and other configuration actions 11828from templates according to the current configuration. Unless the files 11829and actions are specified as TAGs, all are instantiated by default. 11830 11831Usage: $0 [OPTION]... [TAG]... 11832 11833 -h, --help print this help, then exit 11834 -V, --version print version number and configuration settings, then exit 11835 --config print configuration, then exit 11836 -q, --quiet, --silent 11837 do not print progress messages 11838 -d, --debug don't remove temporary files 11839 --recheck update $as_me by reconfiguring in the same conditions 11840 --file=FILE[:TEMPLATE] 11841 instantiate the configuration file FILE 11842 --header=FILE[:TEMPLATE] 11843 instantiate the configuration header FILE 11844 11845Configuration files: 11846$config_files 11847 11848Configuration headers: 11849$config_headers 11850 11851Configuration commands: 11852$config_commands 11853 11854Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11855 11856_ACEOF 11857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11858ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11859ac_cs_version="\\ 11860xauth config.status 1.0.8 11861configured by $0, generated by GNU Autoconf 2.69, 11862 with options \\"\$ac_cs_config\\" 11863 11864Copyright (C) 2012 Free Software Foundation, Inc. 11865This config.status script is free software; the Free Software Foundation 11866gives unlimited permission to copy, distribute and modify it." 11867 11868ac_pwd='$ac_pwd' 11869srcdir='$srcdir' 11870INSTALL='$INSTALL' 11871MKDIR_P='$MKDIR_P' 11872AWK='$AWK' 11873test -n "\$AWK" || AWK=awk 11874_ACEOF 11875 11876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11877# The default lists apply if the user does not specify any file. 11878ac_need_defaults=: 11879while test $# != 0 11880do 11881 case $1 in 11882 --*=?*) 11883 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11884 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11885 ac_shift=: 11886 ;; 11887 --*=) 11888 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11889 ac_optarg= 11890 ac_shift=: 11891 ;; 11892 *) 11893 ac_option=$1 11894 ac_optarg=$2 11895 ac_shift=shift 11896 ;; 11897 esac 11898 11899 case $ac_option in 11900 # Handling of the options. 11901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11902 ac_cs_recheck=: ;; 11903 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11904 $as_echo "$ac_cs_version"; exit ;; 11905 --config | --confi | --conf | --con | --co | --c ) 11906 $as_echo "$ac_cs_config"; exit ;; 11907 --debug | --debu | --deb | --de | --d | -d ) 11908 debug=: ;; 11909 --file | --fil | --fi | --f ) 11910 $ac_shift 11911 case $ac_optarg in 11912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11913 '') as_fn_error $? "missing file argument" ;; 11914 esac 11915 as_fn_append CONFIG_FILES " '$ac_optarg'" 11916 ac_need_defaults=false;; 11917 --header | --heade | --head | --hea ) 11918 $ac_shift 11919 case $ac_optarg in 11920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11921 esac 11922 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11923 ac_need_defaults=false;; 11924 --he | --h) 11925 # Conflict between --help and --header 11926 as_fn_error $? "ambiguous option: \`$1' 11927Try \`$0 --help' for more information.";; 11928 --help | --hel | -h ) 11929 $as_echo "$ac_cs_usage"; exit ;; 11930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11931 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11932 ac_cs_silent=: ;; 11933 11934 # This is an error. 11935 -*) as_fn_error $? "unrecognized option: \`$1' 11936Try \`$0 --help' for more information." ;; 11937 11938 *) as_fn_append ac_config_targets " $1" 11939 ac_need_defaults=false ;; 11940 11941 esac 11942 shift 11943done 11944 11945ac_configure_extra_args= 11946 11947if $ac_cs_silent; then 11948 exec 6>/dev/null 11949 ac_configure_extra_args="$ac_configure_extra_args --silent" 11950fi 11951 11952_ACEOF 11953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11954if \$ac_cs_recheck; then 11955 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11956 shift 11957 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11958 CONFIG_SHELL='$SHELL' 11959 export CONFIG_SHELL 11960 exec "\$@" 11961fi 11962 11963_ACEOF 11964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11965exec 5>>config.log 11966{ 11967 echo 11968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11969## Running $as_me. ## 11970_ASBOX 11971 $as_echo "$ac_log" 11972} >&5 11973 11974_ACEOF 11975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11976# 11977# INIT-COMMANDS 11978# 11979AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11980 11981_ACEOF 11982 11983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11984 11985# Handling of arguments. 11986for ac_config_target in $ac_config_targets 11987do 11988 case $ac_config_target in 11989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11991 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11992 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 11993 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11994 11995 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11996 esac 11997done 11998 11999 12000# If the user did not use the arguments to specify the items to instantiate, 12001# then the envvar interface is used. Set only those that are not. 12002# We use the long form for the default assignment because of an extremely 12003# bizarre bug on SunOS 4.1.3. 12004if $ac_need_defaults; then 12005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12008fi 12009 12010# Have a temporary directory for convenience. Make it in the build tree 12011# simply because there is no reason against having it here, and in addition, 12012# creating and moving files from /tmp can sometimes cause problems. 12013# Hook for its removal unless debugging. 12014# Note that there is a small window in which the directory will not be cleaned: 12015# after its creation but before its name has been assigned to `$tmp'. 12016$debug || 12017{ 12018 tmp= ac_tmp= 12019 trap 'exit_status=$? 12020 : "${ac_tmp:=$tmp}" 12021 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12022' 0 12023 trap 'as_fn_exit 1' 1 2 13 15 12024} 12025# Create a (secure) tmp directory for tmp files. 12026 12027{ 12028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12029 test -d "$tmp" 12030} || 12031{ 12032 tmp=./conf$$-$RANDOM 12033 (umask 077 && mkdir "$tmp") 12034} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12035ac_tmp=$tmp 12036 12037# Set up the scripts for CONFIG_FILES section. 12038# No need to generate them if there are no CONFIG_FILES. 12039# This happens for instance with `./config.status config.h'. 12040if test -n "$CONFIG_FILES"; then 12041 12042 12043ac_cr=`echo X | tr X '\015'` 12044# On cygwin, bash can eat \r inside `` if the user requested igncr. 12045# But we know of no other shell where ac_cr would be empty at this 12046# point, so we can use a bashism as a fallback. 12047if test "x$ac_cr" = x; then 12048 eval ac_cr=\$\'\\r\' 12049fi 12050ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12051if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12052 ac_cs_awk_cr='\\r' 12053else 12054 ac_cs_awk_cr=$ac_cr 12055fi 12056 12057echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12058_ACEOF 12059 12060 12061{ 12062 echo "cat >conf$$subs.awk <<_ACEOF" && 12063 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12064 echo "_ACEOF" 12065} >conf$$subs.sh || 12066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12067ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12068ac_delim='%!_!# ' 12069for ac_last_try in false false false false false :; do 12070 . ./conf$$subs.sh || 12071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12072 12073 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12074 if test $ac_delim_n = $ac_delim_num; then 12075 break 12076 elif $ac_last_try; then 12077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12078 else 12079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12080 fi 12081done 12082rm -f conf$$subs.sh 12083 12084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12085cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12086_ACEOF 12087sed -n ' 12088h 12089s/^/S["/; s/!.*/"]=/ 12090p 12091g 12092s/^[^!]*!// 12093:repl 12094t repl 12095s/'"$ac_delim"'$// 12096t delim 12097:nl 12098h 12099s/\(.\{148\}\)..*/\1/ 12100t more1 12101s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12102p 12103n 12104b repl 12105:more1 12106s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12107p 12108g 12109s/.\{148\}// 12110t nl 12111:delim 12112h 12113s/\(.\{148\}\)..*/\1/ 12114t more2 12115s/["\\]/\\&/g; s/^/"/; s/$/"/ 12116p 12117b 12118:more2 12119s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12120p 12121g 12122s/.\{148\}// 12123t delim 12124' <conf$$subs.awk | sed ' 12125/^[^""]/{ 12126 N 12127 s/\n// 12128} 12129' >>$CONFIG_STATUS || ac_write_fail=1 12130rm -f conf$$subs.awk 12131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12132_ACAWK 12133cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12134 for (key in S) S_is_set[key] = 1 12135 FS = "" 12136 12137} 12138{ 12139 line = $ 0 12140 nfields = split(line, field, "@") 12141 substed = 0 12142 len = length(field[1]) 12143 for (i = 2; i < nfields; i++) { 12144 key = field[i] 12145 keylen = length(key) 12146 if (S_is_set[key]) { 12147 value = S[key] 12148 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12149 len += length(value) + length(field[++i]) 12150 substed = 1 12151 } else 12152 len += 1 + keylen 12153 } 12154 12155 print line 12156} 12157 12158_ACAWK 12159_ACEOF 12160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12161if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12162 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12163else 12164 cat 12165fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12166 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12167_ACEOF 12168 12169# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12170# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12171# trailing colons and then remove the whole line if VPATH becomes empty 12172# (actually we leave an empty line to preserve line numbers). 12173if test "x$srcdir" = x.; then 12174 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12175h 12176s/// 12177s/^/:/ 12178s/[ ]*$/:/ 12179s/:\$(srcdir):/:/g 12180s/:\${srcdir}:/:/g 12181s/:@srcdir@:/:/g 12182s/^:*// 12183s/:*$// 12184x 12185s/\(=[ ]*\).*/\1/ 12186G 12187s/\n// 12188s/^[^=]*=[ ]*$// 12189}' 12190fi 12191 12192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12193fi # test -n "$CONFIG_FILES" 12194 12195# Set up the scripts for CONFIG_HEADERS section. 12196# No need to generate them if there are no CONFIG_HEADERS. 12197# This happens for instance with `./config.status Makefile'. 12198if test -n "$CONFIG_HEADERS"; then 12199cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12200BEGIN { 12201_ACEOF 12202 12203# Transform confdefs.h into an awk script `defines.awk', embedded as 12204# here-document in config.status, that substitutes the proper values into 12205# config.h.in to produce config.h. 12206 12207# Create a delimiter string that does not exist in confdefs.h, to ease 12208# handling of long lines. 12209ac_delim='%!_!# ' 12210for ac_last_try in false false :; do 12211 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12212 if test -z "$ac_tt"; then 12213 break 12214 elif $ac_last_try; then 12215 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12216 else 12217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12218 fi 12219done 12220 12221# For the awk script, D is an array of macro values keyed by name, 12222# likewise P contains macro parameters if any. Preserve backslash 12223# newline sequences. 12224 12225ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12226sed -n ' 12227s/.\{148\}/&'"$ac_delim"'/g 12228t rset 12229:rset 12230s/^[ ]*#[ ]*define[ ][ ]*/ / 12231t def 12232d 12233:def 12234s/\\$// 12235t bsnl 12236s/["\\]/\\&/g 12237s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12238D["\1"]=" \3"/p 12239s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12240d 12241:bsnl 12242s/["\\]/\\&/g 12243s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12244D["\1"]=" \3\\\\\\n"\\/p 12245t cont 12246s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12247t cont 12248d 12249:cont 12250n 12251s/.\{148\}/&'"$ac_delim"'/g 12252t clear 12253:clear 12254s/\\$// 12255t bsnlc 12256s/["\\]/\\&/g; s/^/"/; s/$/"/p 12257d 12258:bsnlc 12259s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12260b cont 12261' <confdefs.h | sed ' 12262s/'"$ac_delim"'/"\\\ 12263"/g' >>$CONFIG_STATUS || ac_write_fail=1 12264 12265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12266 for (key in D) D_is_set[key] = 1 12267 FS = "" 12268} 12269/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12270 line = \$ 0 12271 split(line, arg, " ") 12272 if (arg[1] == "#") { 12273 defundef = arg[2] 12274 mac1 = arg[3] 12275 } else { 12276 defundef = substr(arg[1], 2) 12277 mac1 = arg[2] 12278 } 12279 split(mac1, mac2, "(") #) 12280 macro = mac2[1] 12281 prefix = substr(line, 1, index(line, defundef) - 1) 12282 if (D_is_set[macro]) { 12283 # Preserve the white space surrounding the "#". 12284 print prefix "define", macro P[macro] D[macro] 12285 next 12286 } else { 12287 # Replace #undef with comments. This is necessary, for example, 12288 # in the case of _POSIX_SOURCE, which is predefined and required 12289 # on some systems where configure will not decide to define it. 12290 if (defundef == "undef") { 12291 print "/*", prefix defundef, macro, "*/" 12292 next 12293 } 12294 } 12295} 12296{ print } 12297_ACAWK 12298_ACEOF 12299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12300 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12301fi # test -n "$CONFIG_HEADERS" 12302 12303 12304eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12305shift 12306for ac_tag 12307do 12308 case $ac_tag in 12309 :[FHLC]) ac_mode=$ac_tag; continue;; 12310 esac 12311 case $ac_mode$ac_tag in 12312 :[FHL]*:*);; 12313 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12314 :[FH]-) ac_tag=-:-;; 12315 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12316 esac 12317 ac_save_IFS=$IFS 12318 IFS=: 12319 set x $ac_tag 12320 IFS=$ac_save_IFS 12321 shift 12322 ac_file=$1 12323 shift 12324 12325 case $ac_mode in 12326 :L) ac_source=$1;; 12327 :[FH]) 12328 ac_file_inputs= 12329 for ac_f 12330 do 12331 case $ac_f in 12332 -) ac_f="$ac_tmp/stdin";; 12333 *) # Look for the file first in the build tree, then in the source tree 12334 # (if the path is not absolute). The absolute path cannot be DOS-style, 12335 # because $ac_f cannot contain `:'. 12336 test -f "$ac_f" || 12337 case $ac_f in 12338 [\\/$]*) false;; 12339 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12340 esac || 12341 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12342 esac 12343 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12344 as_fn_append ac_file_inputs " '$ac_f'" 12345 done 12346 12347 # Let's still pretend it is `configure' which instantiates (i.e., don't 12348 # use $as_me), people would be surprised to read: 12349 # /* config.h. Generated by config.status. */ 12350 configure_input='Generated from '` 12351 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12352 `' by configure.' 12353 if test x"$ac_file" != x-; then 12354 configure_input="$ac_file. $configure_input" 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12356$as_echo "$as_me: creating $ac_file" >&6;} 12357 fi 12358 # Neutralize special characters interpreted by sed in replacement strings. 12359 case $configure_input in #( 12360 *\&* | *\|* | *\\* ) 12361 ac_sed_conf_input=`$as_echo "$configure_input" | 12362 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12363 *) ac_sed_conf_input=$configure_input;; 12364 esac 12365 12366 case $ac_tag in 12367 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12369 esac 12370 ;; 12371 esac 12372 12373 ac_dir=`$as_dirname -- "$ac_file" || 12374$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12375 X"$ac_file" : 'X\(//\)[^/]' \| \ 12376 X"$ac_file" : 'X\(//\)$' \| \ 12377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12378$as_echo X"$ac_file" | 12379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12380 s//\1/ 12381 q 12382 } 12383 /^X\(\/\/\)[^/].*/{ 12384 s//\1/ 12385 q 12386 } 12387 /^X\(\/\/\)$/{ 12388 s//\1/ 12389 q 12390 } 12391 /^X\(\/\).*/{ 12392 s//\1/ 12393 q 12394 } 12395 s/.*/./; q'` 12396 as_dir="$ac_dir"; as_fn_mkdir_p 12397 ac_builddir=. 12398 12399case "$ac_dir" in 12400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12401*) 12402 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12403 # A ".." for each directory in $ac_dir_suffix. 12404 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12405 case $ac_top_builddir_sub in 12406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12408 esac ;; 12409esac 12410ac_abs_top_builddir=$ac_pwd 12411ac_abs_builddir=$ac_pwd$ac_dir_suffix 12412# for backward compatibility: 12413ac_top_builddir=$ac_top_build_prefix 12414 12415case $srcdir in 12416 .) # We are building in place. 12417 ac_srcdir=. 12418 ac_top_srcdir=$ac_top_builddir_sub 12419 ac_abs_top_srcdir=$ac_pwd ;; 12420 [\\/]* | ?:[\\/]* ) # Absolute name. 12421 ac_srcdir=$srcdir$ac_dir_suffix; 12422 ac_top_srcdir=$srcdir 12423 ac_abs_top_srcdir=$srcdir ;; 12424 *) # Relative name. 12425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12426 ac_top_srcdir=$ac_top_build_prefix$srcdir 12427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12428esac 12429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12430 12431 12432 case $ac_mode in 12433 :F) 12434 # 12435 # CONFIG_FILE 12436 # 12437 12438 case $INSTALL in 12439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12440 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12441 esac 12442 ac_MKDIR_P=$MKDIR_P 12443 case $MKDIR_P in 12444 [\\/$]* | ?:[\\/]* ) ;; 12445 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12446 esac 12447_ACEOF 12448 12449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12450# If the template does not know about datarootdir, expand it. 12451# FIXME: This hack should be removed a few years after 2.60. 12452ac_datarootdir_hack=; ac_datarootdir_seen= 12453ac_sed_dataroot=' 12454/datarootdir/ { 12455 p 12456 q 12457} 12458/@datadir@/p 12459/@docdir@/p 12460/@infodir@/p 12461/@localedir@/p 12462/@mandir@/p' 12463case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12464*datarootdir*) ac_datarootdir_seen=yes;; 12465*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12467$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12468_ACEOF 12469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12470 ac_datarootdir_hack=' 12471 s&@datadir@&$datadir&g 12472 s&@docdir@&$docdir&g 12473 s&@infodir@&$infodir&g 12474 s&@localedir@&$localedir&g 12475 s&@mandir@&$mandir&g 12476 s&\\\${datarootdir}&$datarootdir&g' ;; 12477esac 12478_ACEOF 12479 12480# Neutralize VPATH when `$srcdir' = `.'. 12481# Shell code in configure.ac might set extrasub. 12482# FIXME: do we really want to maintain this feature? 12483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12484ac_sed_extra="$ac_vpsub 12485$extrasub 12486_ACEOF 12487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12488:t 12489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12490s|@configure_input@|$ac_sed_conf_input|;t t 12491s&@top_builddir@&$ac_top_builddir_sub&;t t 12492s&@top_build_prefix@&$ac_top_build_prefix&;t t 12493s&@srcdir@&$ac_srcdir&;t t 12494s&@abs_srcdir@&$ac_abs_srcdir&;t t 12495s&@top_srcdir@&$ac_top_srcdir&;t t 12496s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12497s&@builddir@&$ac_builddir&;t t 12498s&@abs_builddir@&$ac_abs_builddir&;t t 12499s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12500s&@INSTALL@&$ac_INSTALL&;t t 12501s&@MKDIR_P@&$ac_MKDIR_P&;t t 12502$ac_datarootdir_hack 12503" 12504eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12505 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12506 12507test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12508 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12510 "$ac_tmp/out"`; test -z "$ac_out"; } && 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12512which seems to be undefined. Please make sure it is defined" >&5 12513$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12514which seems to be undefined. Please make sure it is defined" >&2;} 12515 12516 rm -f "$ac_tmp/stdin" 12517 case $ac_file in 12518 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12519 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12520 esac \ 12521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12522 ;; 12523 :H) 12524 # 12525 # CONFIG_HEADER 12526 # 12527 if test x"$ac_file" != x-; then 12528 { 12529 $as_echo "/* $configure_input */" \ 12530 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12531 } >"$ac_tmp/config.h" \ 12532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12533 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12535$as_echo "$as_me: $ac_file is unchanged" >&6;} 12536 else 12537 rm -f "$ac_file" 12538 mv "$ac_tmp/config.h" "$ac_file" \ 12539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12540 fi 12541 else 12542 $as_echo "/* $configure_input */" \ 12543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12544 || as_fn_error $? "could not create -" "$LINENO" 5 12545 fi 12546# Compute "$ac_file"'s index in $config_headers. 12547_am_arg="$ac_file" 12548_am_stamp_count=1 12549for _am_header in $config_headers :; do 12550 case $_am_header in 12551 $_am_arg | $_am_arg:* ) 12552 break ;; 12553 * ) 12554 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12555 esac 12556done 12557echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12558$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12559 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12560 X"$_am_arg" : 'X\(//\)$' \| \ 12561 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12562$as_echo X"$_am_arg" | 12563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12564 s//\1/ 12565 q 12566 } 12567 /^X\(\/\/\)[^/].*/{ 12568 s//\1/ 12569 q 12570 } 12571 /^X\(\/\/\)$/{ 12572 s//\1/ 12573 q 12574 } 12575 /^X\(\/\).*/{ 12576 s//\1/ 12577 q 12578 } 12579 s/.*/./; q'`/stamp-h$_am_stamp_count 12580 ;; 12581 12582 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12583$as_echo "$as_me: executing $ac_file commands" >&6;} 12584 ;; 12585 esac 12586 12587 12588 case $ac_file$ac_mode in 12589 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12590 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12591 # are listed without --file. Let's play safe and only enable the eval 12592 # if we detect the quoting. 12593 case $CONFIG_FILES in 12594 *\'*) eval set x "$CONFIG_FILES" ;; 12595 *) set x $CONFIG_FILES ;; 12596 esac 12597 shift 12598 for mf 12599 do 12600 # Strip MF so we end up with the name of the file. 12601 mf=`echo "$mf" | sed -e 's/:.*$//'` 12602 # Check whether this is an Automake generated Makefile or not. 12603 # We used to match only the files named 'Makefile.in', but 12604 # some people rename them; so instead we look at the file content. 12605 # Grep'ing the first line is not enough: some people post-process 12606 # each Makefile.in and add a new line on top of each file to say so. 12607 # Grep'ing the whole file is not good either: AIX grep has a line 12608 # limit of 2048, but all sed's we know have understand at least 4000. 12609 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12610 dirpart=`$as_dirname -- "$mf" || 12611$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12612 X"$mf" : 'X\(//\)[^/]' \| \ 12613 X"$mf" : 'X\(//\)$' \| \ 12614 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12615$as_echo X"$mf" | 12616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12617 s//\1/ 12618 q 12619 } 12620 /^X\(\/\/\)[^/].*/{ 12621 s//\1/ 12622 q 12623 } 12624 /^X\(\/\/\)$/{ 12625 s//\1/ 12626 q 12627 } 12628 /^X\(\/\).*/{ 12629 s//\1/ 12630 q 12631 } 12632 s/.*/./; q'` 12633 else 12634 continue 12635 fi 12636 # Extract the definition of DEPDIR, am__include, and am__quote 12637 # from the Makefile without running 'make'. 12638 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12639 test -z "$DEPDIR" && continue 12640 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12641 test -z "am__include" && continue 12642 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12643 # Find all dependency output files, they are included files with 12644 # $(DEPDIR) in their names. We invoke sed twice because it is the 12645 # simplest approach to changing $(DEPDIR) to its actual value in the 12646 # expansion. 12647 for file in `sed -n " 12648 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12649 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12650 # Make sure the directory exists. 12651 test -f "$dirpart/$file" && continue 12652 fdir=`$as_dirname -- "$file" || 12653$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12654 X"$file" : 'X\(//\)[^/]' \| \ 12655 X"$file" : 'X\(//\)$' \| \ 12656 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12657$as_echo X"$file" | 12658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12659 s//\1/ 12660 q 12661 } 12662 /^X\(\/\/\)[^/].*/{ 12663 s//\1/ 12664 q 12665 } 12666 /^X\(\/\/\)$/{ 12667 s//\1/ 12668 q 12669 } 12670 /^X\(\/\).*/{ 12671 s//\1/ 12672 q 12673 } 12674 s/.*/./; q'` 12675 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12676 # echo "creating $dirpart/$file" 12677 echo '# dummy' > "$dirpart/$file" 12678 done 12679 done 12680} 12681 ;; 12682 12683 esac 12684done # for ac_tag 12685 12686 12687as_fn_exit 0 12688_ACEOF 12689ac_clean_files=$ac_clean_files_save 12690 12691test $ac_write_fail = 0 || 12692 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12693 12694 12695# configure is writing to config.log, and then calls config.status. 12696# config.status does its own redirection, appending to config.log. 12697# Unfortunately, on DOS this fails, as config.log is still kept open 12698# by configure, so config.status won't be able to write to it; its 12699# output is simply discarded. So we exec the FD to /dev/null, 12700# effectively closing config.log, so it can be properly (re)opened and 12701# appended to by config.status. When coming back to configure, we 12702# need to make the FD available again. 12703if test "$no_create" != yes; then 12704 ac_cs_success=: 12705 ac_config_status_args= 12706 test "$silent" = yes && 12707 ac_config_status_args="$ac_config_status_args --quiet" 12708 exec 5>/dev/null 12709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12710 exec 5>>config.log 12711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12712 # would make configure fail if this is the last instruction. 12713 $ac_cs_success || as_fn_exit 1 12714fi 12715if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12717$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12718fi 12719 12720