configure revision 9a011757
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xauth 1.0.9. 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.9' 585PACKAGE_STRING='xauth 1.0.9' 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 635MAN_SUBSTS 636XORG_MAN_PAGE 637ADMIN_MAN_DIR 638DRIVER_MAN_DIR 639MISC_MAN_DIR 640FILE_MAN_DIR 641LIB_MAN_DIR 642APP_MAN_DIR 643ADMIN_MAN_SUFFIX 644DRIVER_MAN_SUFFIX 645MISC_MAN_SUFFIX 646FILE_MAN_SUFFIX 647LIB_MAN_SUFFIX 648APP_MAN_SUFFIX 649SED 650host_os 651host_vendor 652host_cpu 653host 654build_os 655build_vendor 656build_cpu 657build 658INSTALL_CMD 659PKG_CONFIG_LIBDIR 660PKG_CONFIG_PATH 661PKG_CONFIG 662CHANGELOG_CMD 663STRICT_CFLAGS 664CWARNFLAGS 665BASE_CFLAGS 666EGREP 667GREP 668CPP 669am__fastdepCC_FALSE 670am__fastdepCC_TRUE 671CCDEPMODE 672am__nodep 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__quote 677am__include 678DEPDIR 679OBJEXT 680EXEEXT 681ac_ct_CC 682CPPFLAGS 683LDFLAGS 684CFLAGS 685CC 686MAINT 687MAINTAINER_MODE_FALSE 688MAINTAINER_MODE_TRUE 689AM_BACKSLASH 690AM_DEFAULT_VERBOSITY 691AM_DEFAULT_V 692AM_V 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_maintainer_mode 759enable_dependency_tracking 760enable_selective_werror 761enable_strict_compilation 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.9 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.9:";; 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-silent-rules less verbose build output (undo: "make V=1") 1403 --disable-silent-rules verbose build output (undo: "make V=0") 1404 --enable-maintainer-mode 1405 enable make rules and dependencies not useful (and 1406 sometimes confusing) to the casual installer 1407 --enable-dependency-tracking 1408 do not reject slow dependency extractors 1409 --disable-dependency-tracking 1410 speeds up one-time build 1411 --disable-selective-werror 1412 Turn off selective compiler errors. (default: 1413 enabled) 1414 --enable-strict-compilation 1415 Enable all warnings from compiler and make them 1416 errors (default: disabled) 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.9 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_try_cpp LINENO 1568# ---------------------- 1569# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1570ac_fn_c_try_cpp () 1571{ 1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1573 if { { ac_try="$ac_cpp conftest.$ac_ext" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } > conftest.i && { 1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 }; then : 1592 ac_retval=0 1593else 1594 $as_echo "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1600 as_fn_set_status $ac_retval 1601 1602} # ac_fn_c_try_cpp 1603 1604# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1605# ------------------------------------------------------- 1606# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1607# the include files in INCLUDES and setting the cache variable VAR 1608# accordingly. 1609ac_fn_c_check_header_mongrel () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 if eval \${$3+:} false; then : 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1614$as_echo_n "checking for $2... " >&6; } 1615if eval \${$3+:} false; then : 1616 $as_echo_n "(cached) " >&6 1617fi 1618eval ac_res=\$$3 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1620$as_echo "$ac_res" >&6; } 1621else 1622 # Is the header compilable? 1623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1624$as_echo_n "checking $2 usability... " >&6; } 1625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1626/* end confdefs.h. */ 1627$4 1628#include <$2> 1629_ACEOF 1630if ac_fn_c_try_compile "$LINENO"; then : 1631 ac_header_compiler=yes 1632else 1633 ac_header_compiler=no 1634fi 1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1637$as_echo "$ac_header_compiler" >&6; } 1638 1639# Is the header present? 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1641$as_echo_n "checking $2 presence... " >&6; } 1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644#include <$2> 1645_ACEOF 1646if ac_fn_c_try_cpp "$LINENO"; then : 1647 ac_header_preproc=yes 1648else 1649 ac_header_preproc=no 1650fi 1651rm -f conftest.err conftest.i conftest.$ac_ext 1652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1653$as_echo "$ac_header_preproc" >&6; } 1654 1655# So? What about this header? 1656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1657 yes:no: ) 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1659$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1662 ;; 1663 no:yes:* ) 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1665$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1667$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1669$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1671$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1674( $as_echo "## ---------------------------------------------------------------------- ## 1675## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1676## ---------------------------------------------------------------------- ##" 1677 ) | sed "s/^/$as_me: WARNING: /" >&2 1678 ;; 1679esac 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1681$as_echo_n "checking for $2... " >&6; } 1682if eval \${$3+:} false; then : 1683 $as_echo_n "(cached) " >&6 1684else 1685 eval "$3=\$ac_header_compiler" 1686fi 1687eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689$as_echo "$ac_res" >&6; } 1690fi 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 1693} # ac_fn_c_check_header_mongrel 1694 1695# ac_fn_c_try_run LINENO 1696# ---------------------- 1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1698# that executables *can* be run. 1699ac_fn_c_try_run () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 if { { ac_try="$ac_link" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_link") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1713 { { case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_try") 2>&5 1720 ac_status=$? 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; }; }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: program exited with status $ac_status" >&5 1726 $as_echo "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=$ac_status 1730fi 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_run 1736 1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1738# ------------------------------------------------------- 1739# Tests whether HEADER exists and can be compiled using the include files in 1740# INCLUDES, setting the cache variable VAR accordingly. 1741ac_fn_c_check_header_compile () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751$4 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_compile "$LINENO"; then : 1755 eval "$3=yes" 1756else 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 1766} # ac_fn_c_check_header_compile 1767 1768# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1769# --------------------------------------------- 1770# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1771# accordingly. 1772ac_fn_c_check_decl () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 as_decl_name=`echo $2|sed 's/ *(.*//'` 1776 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1778$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1779if eval \${$3+:} false; then : 1780 $as_echo_n "(cached) " >&6 1781else 1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1783/* end confdefs.h. */ 1784$4 1785int 1786main () 1787{ 1788#ifndef $as_decl_name 1789#ifdef __cplusplus 1790 (void) $as_decl_use; 1791#else 1792 (void) $as_decl_name; 1793#endif 1794#endif 1795 1796 ; 1797 return 0; 1798} 1799_ACEOF 1800if ac_fn_c_try_compile "$LINENO"; then : 1801 eval "$3=yes" 1802else 1803 eval "$3=no" 1804fi 1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1806fi 1807eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809$as_echo "$ac_res" >&6; } 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 1812} # ac_fn_c_check_decl 1813 1814# ac_fn_c_try_link LINENO 1815# ----------------------- 1816# Try to link conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_c_try_link () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 rm -f conftest.$ac_objext conftest$ac_exeext 1821 if { { ac_try="$ac_link" 1822case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825esac 1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827$as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_link") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { 1837 test -z "$ac_c_werror_flag" || 1838 test ! -s conftest.err 1839 } && test -s conftest$ac_exeext && { 1840 test "$cross_compiling" = yes || 1841 test -x conftest$ac_exeext 1842 }; then : 1843 ac_retval=0 1844else 1845 $as_echo "$as_me: failed program was:" >&5 1846sed 's/^/| /' conftest.$ac_ext >&5 1847 1848 ac_retval=1 1849fi 1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1852 # interfere with the next link command; also delete a directory that is 1853 # left behind by Apple's compiler. We do this before executing the actions. 1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 as_fn_set_status $ac_retval 1857 1858} # ac_fn_c_try_link 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.9, 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.13' 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 --is-lightweight"; then 2603 am_missing_run="$MISSING " 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 2843# Check whether --enable-silent-rules was given. 2844if test "${enable_silent_rules+set}" = set; then : 2845 enableval=$enable_silent_rules; 2846fi 2847 2848case $enable_silent_rules in # ((( 2849 yes) AM_DEFAULT_VERBOSITY=0;; 2850 no) AM_DEFAULT_VERBOSITY=1;; 2851 *) AM_DEFAULT_VERBOSITY=1;; 2852esac 2853am_make=${MAKE-make} 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2855$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2856if ${am_cv_make_support_nested_variables+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if $as_echo 'TRUE=$(BAR$(V)) 2860BAR0=false 2861BAR1=true 2862V=1 2863am__doit: 2864 @$(TRUE) 2865.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2866 am_cv_make_support_nested_variables=yes 2867else 2868 am_cv_make_support_nested_variables=no 2869fi 2870fi 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2872$as_echo "$am_cv_make_support_nested_variables" >&6; } 2873if test $am_cv_make_support_nested_variables = yes; then 2874 AM_V='$(V)' 2875 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2876else 2877 AM_V=$AM_DEFAULT_VERBOSITY 2878 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2879fi 2880AM_BACKSLASH='\' 2881 2882if test "`cd $srcdir && pwd`" != "`pwd`"; then 2883 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2884 # is not polluted with repeated "-I." 2885 am__isrc=' -I$(srcdir)' 2886 # test to see if srcdir already configured 2887 if test -f $srcdir/config.status; then 2888 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2889 fi 2890fi 2891 2892# test whether we have cygpath 2893if test -z "$CYGPATH_W"; then 2894 if (cygpath --version) >/dev/null 2>/dev/null; then 2895 CYGPATH_W='cygpath -w' 2896 else 2897 CYGPATH_W=echo 2898 fi 2899fi 2900 2901 2902# Define the identity of the package. 2903 PACKAGE='xauth' 2904 VERSION='1.0.9' 2905 2906 2907cat >>confdefs.h <<_ACEOF 2908#define PACKAGE "$PACKAGE" 2909_ACEOF 2910 2911 2912cat >>confdefs.h <<_ACEOF 2913#define VERSION "$VERSION" 2914_ACEOF 2915 2916# Some tools Automake needs. 2917 2918ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2919 2920 2921AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2922 2923 2924AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2925 2926 2927AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2928 2929 2930MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2931 2932# For better backward compatibility. To be removed once Automake 1.9.x 2933# dies out for good. For more background, see: 2934# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2935# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2936mkdir_p='$(MKDIR_P)' 2937 2938# We need awk for the "check" target. The system "awk" is bad on 2939# some platforms. 2940# Always define AMTAR for backward compatibility. Yes, it's still used 2941# in the wild :-( We should find a proper way to deprecate it ... 2942AMTAR='$${TAR-tar}' 2943 2944 2945# We'll loop over all known methods to create a tar archive until one works. 2946_am_tools='gnutar pax cpio none' 2947 2948am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2949 2950 2951 2952 2953 2954 2955 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2957$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2958 # Check whether --enable-maintainer-mode was given. 2959if test "${enable_maintainer_mode+set}" = set; then : 2960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2961else 2962 USE_MAINTAINER_MODE=no 2963fi 2964 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2966$as_echo "$USE_MAINTAINER_MODE" >&6; } 2967 if test $USE_MAINTAINER_MODE = yes; then 2968 MAINTAINER_MODE_TRUE= 2969 MAINTAINER_MODE_FALSE='#' 2970else 2971 MAINTAINER_MODE_TRUE='#' 2972 MAINTAINER_MODE_FALSE= 2973fi 2974 2975 MAINT=$MAINTAINER_MODE_TRUE 2976 2977 2978 2979ac_config_headers="$ac_config_headers config.h" 2980 2981 2982# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2983# Must be called before any macros that run the compiler (like 2984# AC_PROG_LIBTOOL) to avoid autoconf errors. 2985DEPDIR="${am__leading_dot}deps" 2986 2987ac_config_commands="$ac_config_commands depfiles" 2988 2989 2990am_make=${MAKE-make} 2991cat > confinc << 'END' 2992am__doit: 2993 @echo this is the am__doit target 2994.PHONY: am__doit 2995END 2996# If we don't find an include directive, just comment out the code. 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2998$as_echo_n "checking for style of include used by $am_make... " >&6; } 2999am__include="#" 3000am__quote= 3001_am_result=none 3002# First try GNU make style include. 3003echo "include confinc" > confmf 3004# Ignore all kinds of additional output from 'make'. 3005case `$am_make -s -f confmf 2> /dev/null` in #( 3006*the\ am__doit\ target*) 3007 am__include=include 3008 am__quote= 3009 _am_result=GNU 3010 ;; 3011esac 3012# Now try BSD make style include. 3013if test "$am__include" = "#"; then 3014 echo '.include "confinc"' > confmf 3015 case `$am_make -s -f confmf 2> /dev/null` in #( 3016 *the\ am__doit\ target*) 3017 am__include=.include 3018 am__quote="\"" 3019 _am_result=BSD 3020 ;; 3021 esac 3022fi 3023 3024 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3026$as_echo "$_am_result" >&6; } 3027rm -f confinc confmf 3028 3029# Check whether --enable-dependency-tracking was given. 3030if test "${enable_dependency_tracking+set}" = set; then : 3031 enableval=$enable_dependency_tracking; 3032fi 3033 3034if test "x$enable_dependency_tracking" != xno; then 3035 am_depcomp="$ac_aux_dir/depcomp" 3036 AMDEPBACKSLASH='\' 3037 am__nodep='_no' 3038fi 3039 if test "x$enable_dependency_tracking" != xno; then 3040 AMDEP_TRUE= 3041 AMDEP_FALSE='#' 3042else 3043 AMDEP_TRUE='#' 3044 AMDEP_FALSE= 3045fi 3046 3047 3048ac_ext=c 3049ac_cpp='$CPP $CPPFLAGS' 3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053if test -n "$ac_tool_prefix"; then 3054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3055set dummy ${ac_tool_prefix}gcc; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if ${ac_cv_prog_CC+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063else 3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3071 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079fi 3080fi 3081CC=$ac_cv_prog_CC 3082if test -n "$CC"; then 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3084$as_echo "$CC" >&6; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087$as_echo "no" >&6; } 3088fi 3089 3090 3091fi 3092if test -z "$ac_cv_prog_CC"; then 3093 ac_ct_CC=$CC 3094 # Extract the first word of "gcc", so it can be a program name with args. 3095set dummy gcc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_ac_ct_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$ac_ct_CC"; then 3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_ac_ct_CC="gcc" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121ac_ct_CC=$ac_cv_prog_ac_ct_CC 3122if test -n "$ac_ct_CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3124$as_echo "$ac_ct_CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 if test "x$ac_ct_CC" = x; then 3131 CC="" 3132 else 3133 case $cross_compiling:$ac_tool_warned in 3134yes:) 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3137ac_tool_warned=yes ;; 3138esac 3139 CC=$ac_ct_CC 3140 fi 3141else 3142 CC="$ac_cv_prog_CC" 3143fi 3144 3145if test -z "$CC"; then 3146 if test -n "$ac_tool_prefix"; then 3147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3148set dummy ${ac_tool_prefix}cc; ac_word=$2 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3150$as_echo_n "checking for $ac_word... " >&6; } 3151if ${ac_cv_prog_CC+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153else 3154 if test -n "$CC"; then 3155 ac_cv_prog_CC="$CC" # Let the user override the test. 3156else 3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3158for as_dir in $PATH 3159do 3160 IFS=$as_save_IFS 3161 test -z "$as_dir" && as_dir=. 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3164 ac_cv_prog_CC="${ac_tool_prefix}cc" 3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3166 break 2 3167 fi 3168done 3169 done 3170IFS=$as_save_IFS 3171 3172fi 3173fi 3174CC=$ac_cv_prog_CC 3175if test -n "$CC"; then 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3177$as_echo "$CC" >&6; } 3178else 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3180$as_echo "no" >&6; } 3181fi 3182 3183 3184 fi 3185fi 3186if test -z "$CC"; then 3187 # Extract the first word of "cc", so it can be a program name with args. 3188set dummy cc; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if ${ac_cv_prog_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196else 3197 ac_prog_rejected=no 3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3199for as_dir in $PATH 3200do 3201 IFS=$as_save_IFS 3202 test -z "$as_dir" && as_dir=. 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3206 ac_prog_rejected=yes 3207 continue 3208 fi 3209 ac_cv_prog_CC="cc" 3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3211 break 2 3212 fi 3213done 3214 done 3215IFS=$as_save_IFS 3216 3217if test $ac_prog_rejected = yes; then 3218 # We found a bogon in the path, so make sure we never use it. 3219 set dummy $ac_cv_prog_CC 3220 shift 3221 if test $# != 0; then 3222 # We chose a different compiler from the bogus one. 3223 # However, it has the same basename, so the bogon will be chosen 3224 # first if we set CC to just the basename; use the full file name. 3225 shift 3226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3227 fi 3228fi 3229fi 3230fi 3231CC=$ac_cv_prog_CC 3232if test -n "$CC"; then 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3234$as_echo "$CC" >&6; } 3235else 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237$as_echo "no" >&6; } 3238fi 3239 3240 3241fi 3242if test -z "$CC"; then 3243 if test -n "$ac_tool_prefix"; then 3244 for ac_prog in cl.exe 3245 do 3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3249$as_echo_n "checking for $ac_word... " >&6; } 3250if ${ac_cv_prog_CC+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if test -n "$CC"; then 3254 ac_cv_prog_CC="$CC" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi 3272fi 3273CC=$ac_cv_prog_CC 3274if test -n "$CC"; then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3276$as_echo "$CC" >&6; } 3277else 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280fi 3281 3282 3283 test -n "$CC" && break 3284 done 3285fi 3286if test -z "$CC"; then 3287 ac_ct_CC=$CC 3288 for ac_prog in cl.exe 3289do 3290 # Extract the first word of "$ac_prog", so it can be a program name with args. 3291set dummy $ac_prog; ac_word=$2 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3293$as_echo_n "checking for $ac_word... " >&6; } 3294if ${ac_cv_prog_ac_ct_CC+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 if test -n "$ac_ct_CC"; then 3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3307 ac_cv_prog_ac_ct_CC="$ac_prog" 3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3309 break 2 3310 fi 3311done 3312 done 3313IFS=$as_save_IFS 3314 3315fi 3316fi 3317ac_ct_CC=$ac_cv_prog_ac_ct_CC 3318if test -n "$ac_ct_CC"; then 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3320$as_echo "$ac_ct_CC" >&6; } 3321else 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323$as_echo "no" >&6; } 3324fi 3325 3326 3327 test -n "$ac_ct_CC" && break 3328done 3329 3330 if test "x$ac_ct_CC" = x; then 3331 CC="" 3332 else 3333 case $cross_compiling:$ac_tool_warned in 3334yes:) 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3337ac_tool_warned=yes ;; 3338esac 3339 CC=$ac_ct_CC 3340 fi 3341fi 3342 3343fi 3344 3345 3346test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3348as_fn_error $? "no acceptable C compiler found in \$PATH 3349See \`config.log' for more details" "$LINENO" 5; } 3350 3351# Provide some information about the compiler. 3352$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3353set X $ac_compile 3354ac_compiler=$2 3355for ac_option in --version -v -V -qversion; do 3356 { { ac_try="$ac_compiler $ac_option >&5" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362$as_echo "$ac_try_echo"; } >&5 3363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3364 ac_status=$? 3365 if test -s conftest.err; then 3366 sed '10a\ 3367... rest of stderr output deleted ... 3368 10q' conftest.err >conftest.er1 3369 cat conftest.er1 >&5 3370 fi 3371 rm -f conftest.er1 conftest.err 3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3373 test $ac_status = 0; } 3374done 3375 3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387ac_clean_files_save=$ac_clean_files 3388ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3389# Try to create an executable without -o first, disregard a.out. 3390# It will help us diagnose broken compilers, and finding out an intuition 3391# of exeext. 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3393$as_echo_n "checking whether the C compiler works... " >&6; } 3394ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3395 3396# The possible output files: 3397ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3398 3399ac_rmfiles= 3400for ac_file in $ac_files 3401do 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3404 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3405 esac 3406done 3407rm -f $ac_rmfiles 3408 3409if { { ac_try="$ac_link_default" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3415$as_echo "$ac_try_echo"; } >&5 3416 (eval "$ac_link_default") 2>&5 3417 ac_status=$? 3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3419 test $ac_status = 0; }; then : 3420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3421# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3422# in a Makefile. We should not override ac_cv_exeext if it was cached, 3423# so that the user can short-circuit this test for compilers unknown to 3424# Autoconf. 3425for ac_file in $ac_files '' 3426do 3427 test -f "$ac_file" || continue 3428 case $ac_file in 3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3430 ;; 3431 [ab].out ) 3432 # We found the default executable, but exeext='' is most 3433 # certainly right. 3434 break;; 3435 *.* ) 3436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3437 then :; else 3438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3439 fi 3440 # We set ac_cv_exeext here because the later test for it is not 3441 # safe: cross compilers may not add the suffix if given an `-o' 3442 # argument, so we may need to know it at that point already. 3443 # Even if this section looks crufty: it has the advantage of 3444 # actually working. 3445 break;; 3446 * ) 3447 break;; 3448 esac 3449done 3450test "$ac_cv_exeext" = no && ac_cv_exeext= 3451 3452else 3453 ac_file='' 3454fi 3455if test -z "$ac_file"; then : 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3457$as_echo "no" >&6; } 3458$as_echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3463as_fn_error 77 "C compiler cannot create executables 3464See \`config.log' for more details" "$LINENO" 5; } 3465else 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3467$as_echo "yes" >&6; } 3468fi 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3470$as_echo_n "checking for C compiler default output file name... " >&6; } 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3472$as_echo "$ac_file" >&6; } 3473ac_exeext=$ac_cv_exeext 3474 3475rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3476ac_clean_files=$ac_clean_files_save 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3478$as_echo_n "checking for suffix of executables... " >&6; } 3479if { { ac_try="$ac_link" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3485$as_echo "$ac_try_echo"; } >&5 3486 (eval "$ac_link") 2>&5 3487 ac_status=$? 3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 test $ac_status = 0; }; then : 3490 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3491# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3492# work properly (i.e., refer to `conftest.exe'), while it won't with 3493# `rm'. 3494for ac_file in conftest.exe conftest conftest.*; do 3495 test -f "$ac_file" || continue 3496 case $ac_file in 3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3499 break;; 3500 * ) break;; 3501 esac 3502done 3503else 3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3506as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3507See \`config.log' for more details" "$LINENO" 5; } 3508fi 3509rm -f conftest conftest$ac_cv_exeext 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3511$as_echo "$ac_cv_exeext" >&6; } 3512 3513rm -f conftest.$ac_ext 3514EXEEXT=$ac_cv_exeext 3515ac_exeext=$EXEEXT 3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518#include <stdio.h> 3519int 3520main () 3521{ 3522FILE *f = fopen ("conftest.out", "w"); 3523 return ferror (f) || fclose (f) != 0; 3524 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529ac_clean_files="$ac_clean_files conftest.out" 3530# Check that the compiler produces executables we can run. If not, either 3531# the compiler is broken, or we cross compile. 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3533$as_echo_n "checking whether we are cross compiling... " >&6; } 3534if test "$cross_compiling" != yes; then 3535 { { ac_try="$ac_link" 3536case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3541$as_echo "$ac_try_echo"; } >&5 3542 (eval "$ac_link") 2>&5 3543 ac_status=$? 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; } 3546 if { ac_try='./conftest$ac_cv_exeext' 3547 { { case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552$as_echo "$ac_try_echo"; } >&5 3553 (eval "$ac_try") 2>&5 3554 ac_status=$? 3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556 test $ac_status = 0; }; }; then 3557 cross_compiling=no 3558 else 3559 if test "$cross_compiling" = maybe; then 3560 cross_compiling=yes 3561 else 3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error $? "cannot run C compiled programs. 3565If you meant to cross compile, use \`--host'. 3566See \`config.log' for more details" "$LINENO" 5; } 3567 fi 3568 fi 3569fi 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3571$as_echo "$cross_compiling" >&6; } 3572 3573rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3574ac_clean_files=$ac_clean_files_save 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3576$as_echo_n "checking for suffix of object files... " >&6; } 3577if ${ac_cv_objext+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582 3583int 3584main () 3585{ 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591rm -f conftest.o conftest.obj 3592if { { ac_try="$ac_compile" 3593case "(($ac_try" in 3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3595 *) ac_try_echo=$ac_try;; 3596esac 3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3598$as_echo "$ac_try_echo"; } >&5 3599 (eval "$ac_compile") 2>&5 3600 ac_status=$? 3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3602 test $ac_status = 0; }; then : 3603 for ac_file in conftest.o conftest.obj conftest.*; do 3604 test -f "$ac_file" || continue; 3605 case $ac_file in 3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3608 break;; 3609 esac 3610done 3611else 3612 $as_echo "$as_me: failed program was:" >&5 3613sed 's/^/| /' conftest.$ac_ext >&5 3614 3615{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3617as_fn_error $? "cannot compute suffix of object files: cannot compile 3618See \`config.log' for more details" "$LINENO" 5; } 3619fi 3620rm -f conftest.$ac_cv_objext conftest.$ac_ext 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3623$as_echo "$ac_cv_objext" >&6; } 3624OBJEXT=$ac_cv_objext 3625ac_objext=$OBJEXT 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3627$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3628if ${ac_cv_c_compiler_gnu+:} false; then : 3629 $as_echo_n "(cached) " >&6 3630else 3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3632/* end confdefs.h. */ 3633 3634int 3635main () 3636{ 3637#ifndef __GNUC__ 3638 choke me 3639#endif 3640 3641 ; 3642 return 0; 3643} 3644_ACEOF 3645if ac_fn_c_try_compile "$LINENO"; then : 3646 ac_compiler_gnu=yes 3647else 3648 ac_compiler_gnu=no 3649fi 3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3651ac_cv_c_compiler_gnu=$ac_compiler_gnu 3652 3653fi 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3655$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3656if test $ac_compiler_gnu = yes; then 3657 GCC=yes 3658else 3659 GCC= 3660fi 3661ac_test_CFLAGS=${CFLAGS+set} 3662ac_save_CFLAGS=$CFLAGS 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3664$as_echo_n "checking whether $CC accepts -g... " >&6; } 3665if ${ac_cv_prog_cc_g+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 ac_save_c_werror_flag=$ac_c_werror_flag 3669 ac_c_werror_flag=yes 3670 ac_cv_prog_cc_g=no 3671 CFLAGS="-g" 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675int 3676main () 3677{ 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683if ac_fn_c_try_compile "$LINENO"; then : 3684 ac_cv_prog_cc_g=yes 3685else 3686 CFLAGS="" 3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689 3690int 3691main () 3692{ 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698if ac_fn_c_try_compile "$LINENO"; then : 3699 3700else 3701 ac_c_werror_flag=$ac_save_c_werror_flag 3702 CFLAGS="-g" 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714if ac_fn_c_try_compile "$LINENO"; then : 3715 ac_cv_prog_cc_g=yes 3716fi 3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718fi 3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3720fi 3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3722 ac_c_werror_flag=$ac_save_c_werror_flag 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3725$as_echo "$ac_cv_prog_cc_g" >&6; } 3726if test "$ac_test_CFLAGS" = set; then 3727 CFLAGS=$ac_save_CFLAGS 3728elif test $ac_cv_prog_cc_g = yes; then 3729 if test "$GCC" = yes; then 3730 CFLAGS="-g -O2" 3731 else 3732 CFLAGS="-g" 3733 fi 3734else 3735 if test "$GCC" = yes; then 3736 CFLAGS="-O2" 3737 else 3738 CFLAGS= 3739 fi 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3742$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3743if ${ac_cv_prog_cc_c89+:} false; then : 3744 $as_echo_n "(cached) " >&6 3745else 3746 ac_cv_prog_cc_c89=no 3747ac_save_CC=$CC 3748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750#include <stdarg.h> 3751#include <stdio.h> 3752struct stat; 3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3754struct buf { int x; }; 3755FILE * (*rcsopen) (struct buf *, struct stat *, int); 3756static char *e (p, i) 3757 char **p; 3758 int i; 3759{ 3760 return p[i]; 3761} 3762static char *f (char * (*g) (char **, int), char **p, ...) 3763{ 3764 char *s; 3765 va_list v; 3766 va_start (v,p); 3767 s = g (p, va_arg (v,int)); 3768 va_end (v); 3769 return s; 3770} 3771 3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3773 function prototypes and stuff, but not '\xHH' hex character constants. 3774 These don't provoke an error unfortunately, instead are silently treated 3775 as 'x'. The following induces an error, until -std is added to get 3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3777 array size at least. It's necessary to write '\x00'==0 to get something 3778 that's true only with -std. */ 3779int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3780 3781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3782 inside strings and character constants. */ 3783#define FOO(x) 'x' 3784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3785 3786int test (int i, double x); 3787struct s1 {int (*f) (int a);}; 3788struct s2 {int (*f) (double a);}; 3789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3790int argc; 3791char **argv; 3792int 3793main () 3794{ 3795return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3802do 3803 CC="$ac_save_CC $ac_arg" 3804 if ac_fn_c_try_compile "$LINENO"; then : 3805 ac_cv_prog_cc_c89=$ac_arg 3806fi 3807rm -f core conftest.err conftest.$ac_objext 3808 test "x$ac_cv_prog_cc_c89" != "xno" && break 3809done 3810rm -f conftest.$ac_ext 3811CC=$ac_save_CC 3812 3813fi 3814# AC_CACHE_VAL 3815case "x$ac_cv_prog_cc_c89" in 3816 x) 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3818$as_echo "none needed" >&6; } ;; 3819 xno) 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3821$as_echo "unsupported" >&6; } ;; 3822 *) 3823 CC="$CC $ac_cv_prog_cc_c89" 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3825$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3826esac 3827if test "x$ac_cv_prog_cc_c89" != xno; then : 3828 3829fi 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837depcc="$CC" am_compiler_list= 3838 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3840$as_echo_n "checking dependency style of $depcc... " >&6; } 3841if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3845 # We make a subdir and do the tests there. Otherwise we can end up 3846 # making bogus files that we don't know about and never remove. For 3847 # instance it was reported that on HP-UX the gcc test will end up 3848 # making a dummy file named 'D' -- because '-MD' means "put the output 3849 # in D". 3850 rm -rf conftest.dir 3851 mkdir conftest.dir 3852 # Copy depcomp to subdir because otherwise we won't find it if we're 3853 # using a relative directory. 3854 cp "$am_depcomp" conftest.dir 3855 cd conftest.dir 3856 # We will build objects and dependencies in a subdirectory because 3857 # it helps to detect inapplicable dependency modes. For instance 3858 # both Tru64's cc and ICC support -MD to output dependencies as a 3859 # side effect of compilation, but ICC will put the dependencies in 3860 # the current directory while Tru64 will put them in the object 3861 # directory. 3862 mkdir sub 3863 3864 am_cv_CC_dependencies_compiler_type=none 3865 if test "$am_compiler_list" = ""; then 3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3867 fi 3868 am__universal=false 3869 case " $depcc " in #( 3870 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3871 esac 3872 3873 for depmode in $am_compiler_list; do 3874 # Setup a source with many dependencies, because some compilers 3875 # like to wrap large dependency lists on column 80 (with \), and 3876 # we should not choose a depcomp mode which is confused by this. 3877 # 3878 # We need to recreate these files for each test, as the compiler may 3879 # overwrite some of them when testing with obscure command lines. 3880 # This happens at least with the AIX C compiler. 3881 : > sub/conftest.c 3882 for i in 1 2 3 4 5 6; do 3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3885 # Solaris 10 /bin/sh. 3886 echo '/* dummy */' > sub/conftst$i.h 3887 done 3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3889 3890 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3891 # mode. It turns out that the SunPro C++ compiler does not properly 3892 # handle '-M -o', and we need to detect this. Also, some Intel 3893 # versions had trouble with output in subdirs. 3894 am__obj=sub/conftest.${OBJEXT-o} 3895 am__minus_obj="-o $am__obj" 3896 case $depmode in 3897 gcc) 3898 # This depmode causes a compiler race in universal mode. 3899 test "$am__universal" = false || continue 3900 ;; 3901 nosideeffect) 3902 # After this tag, mechanisms are not by side-effect, so they'll 3903 # only be used when explicitly requested. 3904 if test "x$enable_dependency_tracking" = xyes; then 3905 continue 3906 else 3907 break 3908 fi 3909 ;; 3910 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3911 # This compiler won't grok '-c -o', but also, the minuso test has 3912 # not run yet. These depmodes are late enough in the game, and 3913 # so weak that their functioning should not be impacted. 3914 am__obj=conftest.${OBJEXT-o} 3915 am__minus_obj= 3916 ;; 3917 none) break ;; 3918 esac 3919 if depmode=$depmode \ 3920 source=sub/conftest.c object=$am__obj \ 3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3923 >/dev/null 2>conftest.err && 3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3928 # icc doesn't choke on unknown options, it will just issue warnings 3929 # or remarks (even with -Werror). So we grep stderr for any message 3930 # that says an option was ignored or not supported. 3931 # When given -MP, icc 7.0 and 7.1 complain thusly: 3932 # icc: Command line warning: ignoring option '-M'; no argument required 3933 # The diagnosis changed in icc 8.0: 3934 # icc: Command line remark: option '-MP' not supported 3935 if (grep 'ignoring option' conftest.err || 3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3937 am_cv_CC_dependencies_compiler_type=$depmode 3938 break 3939 fi 3940 fi 3941 done 3942 3943 cd .. 3944 rm -rf conftest.dir 3945else 3946 am_cv_CC_dependencies_compiler_type=none 3947fi 3948 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3951$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3952CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3953 3954 if 3955 test "x$enable_dependency_tracking" != xno \ 3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3957 am__fastdepCC_TRUE= 3958 am__fastdepCC_FALSE='#' 3959else 3960 am__fastdepCC_TRUE='#' 3961 am__fastdepCC_FALSE= 3962fi 3963 3964 3965 3966ac_ext=c 3967ac_cpp='$CPP $CPPFLAGS' 3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3970ac_compiler_gnu=$ac_cv_c_compiler_gnu 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3972$as_echo_n "checking how to run the C preprocessor... " >&6; } 3973# On Suns, sometimes $CPP names a directory. 3974if test -n "$CPP" && test -d "$CPP"; then 3975 CPP= 3976fi 3977if test -z "$CPP"; then 3978 if ${ac_cv_prog_CPP+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 # Double quotes because CPP needs to be expanded 3982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3983 do 3984 ac_preproc_ok=false 3985for ac_c_preproc_warn_flag in '' yes 3986do 3987 # Use a header file that comes with gcc, so configuring glibc 3988 # with a fresh cross-compiler works. 3989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3990 # <limits.h> exists even on freestanding compilers. 3991 # On the NeXT, cc -E runs the code through the compiler's parser, 3992 # not just through cpp. "Syntax error" is here to catch this case. 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995#ifdef __STDC__ 3996# include <limits.h> 3997#else 3998# include <assert.h> 3999#endif 4000 Syntax error 4001_ACEOF 4002if ac_fn_c_try_cpp "$LINENO"; then : 4003 4004else 4005 # Broken: fails on valid input. 4006continue 4007fi 4008rm -f conftest.err conftest.i conftest.$ac_ext 4009 4010 # OK, works on sane cases. Now check whether nonexistent headers 4011 # can be detected and how. 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014#include <ac_nonexistent.h> 4015_ACEOF 4016if ac_fn_c_try_cpp "$LINENO"; then : 4017 # Broken: success on invalid input. 4018continue 4019else 4020 # Passes both tests. 4021ac_preproc_ok=: 4022break 4023fi 4024rm -f conftest.err conftest.i conftest.$ac_ext 4025 4026done 4027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4028rm -f conftest.i conftest.err conftest.$ac_ext 4029if $ac_preproc_ok; then : 4030 break 4031fi 4032 4033 done 4034 ac_cv_prog_CPP=$CPP 4035 4036fi 4037 CPP=$ac_cv_prog_CPP 4038else 4039 ac_cv_prog_CPP=$CPP 4040fi 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4042$as_echo "$CPP" >&6; } 4043ac_preproc_ok=false 4044for ac_c_preproc_warn_flag in '' yes 4045do 4046 # Use a header file that comes with gcc, so configuring glibc 4047 # with a fresh cross-compiler works. 4048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4049 # <limits.h> exists even on freestanding compilers. 4050 # On the NeXT, cc -E runs the code through the compiler's parser, 4051 # not just through cpp. "Syntax error" is here to catch this case. 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054#ifdef __STDC__ 4055# include <limits.h> 4056#else 4057# include <assert.h> 4058#endif 4059 Syntax error 4060_ACEOF 4061if ac_fn_c_try_cpp "$LINENO"; then : 4062 4063else 4064 # Broken: fails on valid input. 4065continue 4066fi 4067rm -f conftest.err conftest.i conftest.$ac_ext 4068 4069 # OK, works on sane cases. Now check whether nonexistent headers 4070 # can be detected and how. 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073#include <ac_nonexistent.h> 4074_ACEOF 4075if ac_fn_c_try_cpp "$LINENO"; then : 4076 # Broken: success on invalid input. 4077continue 4078else 4079 # Passes both tests. 4080ac_preproc_ok=: 4081break 4082fi 4083rm -f conftest.err conftest.i conftest.$ac_ext 4084 4085done 4086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4087rm -f conftest.i conftest.err conftest.$ac_ext 4088if $ac_preproc_ok; then : 4089 4090else 4091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4093as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4094See \`config.log' for more details" "$LINENO" 5; } 4095fi 4096 4097ac_ext=c 4098ac_cpp='$CPP $CPPFLAGS' 4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4101ac_compiler_gnu=$ac_cv_c_compiler_gnu 4102 4103 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4105$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4106if ${ac_cv_path_GREP+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 if test -z "$GREP"; then 4110 ac_path_GREP_found=false 4111 # Loop through the user's path and test for each of PROGNAME-LIST 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4113for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4114do 4115 IFS=$as_save_IFS 4116 test -z "$as_dir" && as_dir=. 4117 for ac_prog in grep ggrep; do 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4120 as_fn_executable_p "$ac_path_GREP" || continue 4121# Check for GNU ac_path_GREP and select it if it is found. 4122 # Check for GNU $ac_path_GREP 4123case `"$ac_path_GREP" --version 2>&1` in 4124*GNU*) 4125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4126*) 4127 ac_count=0 4128 $as_echo_n 0123456789 >"conftest.in" 4129 while : 4130 do 4131 cat "conftest.in" "conftest.in" >"conftest.tmp" 4132 mv "conftest.tmp" "conftest.in" 4133 cp "conftest.in" "conftest.nl" 4134 $as_echo 'GREP' >> "conftest.nl" 4135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4137 as_fn_arith $ac_count + 1 && ac_count=$as_val 4138 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4139 # Best one so far, save it but keep looking for a better one 4140 ac_cv_path_GREP="$ac_path_GREP" 4141 ac_path_GREP_max=$ac_count 4142 fi 4143 # 10*(2^10) chars as input seems more than enough 4144 test $ac_count -gt 10 && break 4145 done 4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4147esac 4148 4149 $ac_path_GREP_found && break 3 4150 done 4151 done 4152 done 4153IFS=$as_save_IFS 4154 if test -z "$ac_cv_path_GREP"; then 4155 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4156 fi 4157else 4158 ac_cv_path_GREP=$GREP 4159fi 4160 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4163$as_echo "$ac_cv_path_GREP" >&6; } 4164 GREP="$ac_cv_path_GREP" 4165 4166 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4168$as_echo_n "checking for egrep... " >&6; } 4169if ${ac_cv_path_EGREP+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4173 then ac_cv_path_EGREP="$GREP -E" 4174 else 4175 if test -z "$EGREP"; then 4176 ac_path_EGREP_found=false 4177 # Loop through the user's path and test for each of PROGNAME-LIST 4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4180do 4181 IFS=$as_save_IFS 4182 test -z "$as_dir" && as_dir=. 4183 for ac_prog in egrep; do 4184 for ac_exec_ext in '' $ac_executable_extensions; do 4185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4186 as_fn_executable_p "$ac_path_EGREP" || continue 4187# Check for GNU ac_path_EGREP and select it if it is found. 4188 # Check for GNU $ac_path_EGREP 4189case `"$ac_path_EGREP" --version 2>&1` in 4190*GNU*) 4191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4192*) 4193 ac_count=0 4194 $as_echo_n 0123456789 >"conftest.in" 4195 while : 4196 do 4197 cat "conftest.in" "conftest.in" >"conftest.tmp" 4198 mv "conftest.tmp" "conftest.in" 4199 cp "conftest.in" "conftest.nl" 4200 $as_echo 'EGREP' >> "conftest.nl" 4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4203 as_fn_arith $ac_count + 1 && ac_count=$as_val 4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4205 # Best one so far, save it but keep looking for a better one 4206 ac_cv_path_EGREP="$ac_path_EGREP" 4207 ac_path_EGREP_max=$ac_count 4208 fi 4209 # 10*(2^10) chars as input seems more than enough 4210 test $ac_count -gt 10 && break 4211 done 4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4213esac 4214 4215 $ac_path_EGREP_found && break 3 4216 done 4217 done 4218 done 4219IFS=$as_save_IFS 4220 if test -z "$ac_cv_path_EGREP"; then 4221 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4222 fi 4223else 4224 ac_cv_path_EGREP=$EGREP 4225fi 4226 4227 fi 4228fi 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4230$as_echo "$ac_cv_path_EGREP" >&6; } 4231 EGREP="$ac_cv_path_EGREP" 4232 4233 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4235$as_echo_n "checking for ANSI C header files... " >&6; } 4236if ${ac_cv_header_stdc+:} false; then : 4237 $as_echo_n "(cached) " >&6 4238else 4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241#include <stdlib.h> 4242#include <stdarg.h> 4243#include <string.h> 4244#include <float.h> 4245 4246int 4247main () 4248{ 4249 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_header_stdc=yes 4256else 4257 ac_cv_header_stdc=no 4258fi 4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4260 4261if test $ac_cv_header_stdc = yes; then 4262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265#include <string.h> 4266 4267_ACEOF 4268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4269 $EGREP "memchr" >/dev/null 2>&1; then : 4270 4271else 4272 ac_cv_header_stdc=no 4273fi 4274rm -f conftest* 4275 4276fi 4277 4278if test $ac_cv_header_stdc = yes; then 4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282#include <stdlib.h> 4283 4284_ACEOF 4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4286 $EGREP "free" >/dev/null 2>&1; then : 4287 4288else 4289 ac_cv_header_stdc=no 4290fi 4291rm -f conftest* 4292 4293fi 4294 4295if test $ac_cv_header_stdc = yes; then 4296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4297 if test "$cross_compiling" = yes; then : 4298 : 4299else 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301/* end confdefs.h. */ 4302#include <ctype.h> 4303#include <stdlib.h> 4304#if ((' ' & 0x0FF) == 0x020) 4305# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4306# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4307#else 4308# define ISLOWER(c) \ 4309 (('a' <= (c) && (c) <= 'i') \ 4310 || ('j' <= (c) && (c) <= 'r') \ 4311 || ('s' <= (c) && (c) <= 'z')) 4312# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4313#endif 4314 4315#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4316int 4317main () 4318{ 4319 int i; 4320 for (i = 0; i < 256; i++) 4321 if (XOR (islower (i), ISLOWER (i)) 4322 || toupper (i) != TOUPPER (i)) 4323 return 2; 4324 return 0; 4325} 4326_ACEOF 4327if ac_fn_c_try_run "$LINENO"; then : 4328 4329else 4330 ac_cv_header_stdc=no 4331fi 4332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4333 conftest.$ac_objext conftest.beam conftest.$ac_ext 4334fi 4335 4336fi 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4339$as_echo "$ac_cv_header_stdc" >&6; } 4340if test $ac_cv_header_stdc = yes; then 4341 4342$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4343 4344fi 4345 4346# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4347for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4348 inttypes.h stdint.h unistd.h 4349do : 4350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4351ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4352" 4353if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4354 cat >>confdefs.h <<_ACEOF 4355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4356_ACEOF 4357 4358fi 4359 4360done 4361 4362 4363 4364 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4365if test "x$ac_cv_header_minix_config_h" = xyes; then : 4366 MINIX=yes 4367else 4368 MINIX= 4369fi 4370 4371 4372 if test "$MINIX" = yes; then 4373 4374$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4375 4376 4377$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4378 4379 4380$as_echo "#define _MINIX 1" >>confdefs.h 4381 4382 fi 4383 4384 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4386$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4387if ${ac_cv_safe_to_define___extensions__+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392 4393# define __EXTENSIONS__ 1 4394 $ac_includes_default 4395int 4396main () 4397{ 4398 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403if ac_fn_c_try_compile "$LINENO"; then : 4404 ac_cv_safe_to_define___extensions__=yes 4405else 4406 ac_cv_safe_to_define___extensions__=no 4407fi 4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4409fi 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4411$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4412 test $ac_cv_safe_to_define___extensions__ = yes && 4413 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4414 4415 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4416 4417 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4418 4419 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4420 4421 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4422 4423 4424 4425# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4438$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4439if ${ac_cv_prog_cc_c99+:} false; then : 4440 $as_echo_n "(cached) " >&6 4441else 4442 ac_cv_prog_cc_c99=no 4443ac_save_CC=$CC 4444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446#include <stdarg.h> 4447#include <stdbool.h> 4448#include <stdlib.h> 4449#include <wchar.h> 4450#include <stdio.h> 4451 4452// Check varargs macros. These examples are taken from C99 6.10.3.5. 4453#define debug(...) fprintf (stderr, __VA_ARGS__) 4454#define showlist(...) puts (#__VA_ARGS__) 4455#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4456static void 4457test_varargs_macros (void) 4458{ 4459 int x = 1234; 4460 int y = 5678; 4461 debug ("Flag"); 4462 debug ("X = %d\n", x); 4463 showlist (The first, second, and third items.); 4464 report (x>y, "x is %d but y is %d", x, y); 4465} 4466 4467// Check long long types. 4468#define BIG64 18446744073709551615ull 4469#define BIG32 4294967295ul 4470#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4471#if !BIG_OK 4472 your preprocessor is broken; 4473#endif 4474#if BIG_OK 4475#else 4476 your preprocessor is broken; 4477#endif 4478static long long int bignum = -9223372036854775807LL; 4479static unsigned long long int ubignum = BIG64; 4480 4481struct incomplete_array 4482{ 4483 int datasize; 4484 double data[]; 4485}; 4486 4487struct named_init { 4488 int number; 4489 const wchar_t *name; 4490 double average; 4491}; 4492 4493typedef const char *ccp; 4494 4495static inline int 4496test_restrict (ccp restrict text) 4497{ 4498 // See if C++-style comments work. 4499 // Iterate through items via the restricted pointer. 4500 // Also check for declarations in for loops. 4501 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4502 continue; 4503 return 0; 4504} 4505 4506// Check varargs and va_copy. 4507static void 4508test_varargs (const char *format, ...) 4509{ 4510 va_list args; 4511 va_start (args, format); 4512 va_list args_copy; 4513 va_copy (args_copy, args); 4514 4515 const char *str; 4516 int number; 4517 float fnumber; 4518 4519 while (*format) 4520 { 4521 switch (*format++) 4522 { 4523 case 's': // string 4524 str = va_arg (args_copy, const char *); 4525 break; 4526 case 'd': // int 4527 number = va_arg (args_copy, int); 4528 break; 4529 case 'f': // float 4530 fnumber = va_arg (args_copy, double); 4531 break; 4532 default: 4533 break; 4534 } 4535 } 4536 va_end (args_copy); 4537 va_end (args); 4538} 4539 4540int 4541main () 4542{ 4543 4544 // Check bool. 4545 _Bool success = false; 4546 4547 // Check restrict. 4548 if (test_restrict ("String literal") == 0) 4549 success = true; 4550 char *restrict newvar = "Another string"; 4551 4552 // Check varargs. 4553 test_varargs ("s, d' f .", "string", 65, 34.234); 4554 test_varargs_macros (); 4555 4556 // Check flexible array members. 4557 struct incomplete_array *ia = 4558 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4559 ia->datasize = 10; 4560 for (int i = 0; i < ia->datasize; ++i) 4561 ia->data[i] = i * 1.234; 4562 4563 // Check named initializers. 4564 struct named_init ni = { 4565 .number = 34, 4566 .name = L"Test wide string", 4567 .average = 543.34343, 4568 }; 4569 4570 ni.number = 58; 4571 4572 int dynamic_array[ni.number]; 4573 dynamic_array[ni.number - 1] = 543; 4574 4575 // work around unused variable warnings 4576 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4577 || dynamic_array[ni.number - 1] != 543); 4578 4579 ; 4580 return 0; 4581} 4582_ACEOF 4583for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4584do 4585 CC="$ac_save_CC $ac_arg" 4586 if ac_fn_c_try_compile "$LINENO"; then : 4587 ac_cv_prog_cc_c99=$ac_arg 4588fi 4589rm -f core conftest.err conftest.$ac_objext 4590 test "x$ac_cv_prog_cc_c99" != "xno" && break 4591done 4592rm -f conftest.$ac_ext 4593CC=$ac_save_CC 4594 4595fi 4596# AC_CACHE_VAL 4597case "x$ac_cv_prog_cc_c99" in 4598 x) 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4600$as_echo "none needed" >&6; } ;; 4601 xno) 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4603$as_echo "unsupported" >&6; } ;; 4604 *) 4605 CC="$CC $ac_cv_prog_cc_c99" 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4607$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4608esac 4609if test "x$ac_cv_prog_cc_c99" != xno; then : 4610 4611fi 4612 4613 4614 4615 4616 4617 4618ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4619if test "x$ac_cv_have_decl___clang__" = xyes; then : 4620 CLANGCC="yes" 4621else 4622 CLANGCC="no" 4623fi 4624 4625ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4626if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4627 INTELCC="yes" 4628else 4629 INTELCC="no" 4630fi 4631 4632ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4633if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4634 SUNCC="yes" 4635else 4636 SUNCC="no" 4637fi 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4648 if test -n "$ac_tool_prefix"; then 4649 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4650set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_path_PKG_CONFIG+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 case $PKG_CONFIG in 4657 [\\/]* | ?:[\\/]*) 4658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4659 ;; 4660 *) 4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4662for as_dir in $PATH 4663do 4664 IFS=$as_save_IFS 4665 test -z "$as_dir" && as_dir=. 4666 for ac_exec_ext in '' $ac_executable_extensions; do 4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4670 break 2 4671 fi 4672done 4673 done 4674IFS=$as_save_IFS 4675 4676 ;; 4677esac 4678fi 4679PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4680if test -n "$PKG_CONFIG"; then 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4682$as_echo "$PKG_CONFIG" >&6; } 4683else 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4685$as_echo "no" >&6; } 4686fi 4687 4688 4689fi 4690if test -z "$ac_cv_path_PKG_CONFIG"; then 4691 ac_pt_PKG_CONFIG=$PKG_CONFIG 4692 # Extract the first word of "pkg-config", so it can be a program name with args. 4693set dummy pkg-config; ac_word=$2 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4695$as_echo_n "checking for $ac_word... " >&6; } 4696if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 case $ac_pt_PKG_CONFIG in 4700 [\\/]* | ?:[\\/]*) 4701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4702 ;; 4703 *) 4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4705for as_dir in $PATH 4706do 4707 IFS=$as_save_IFS 4708 test -z "$as_dir" && as_dir=. 4709 for ac_exec_ext in '' $ac_executable_extensions; do 4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4713 break 2 4714 fi 4715done 4716 done 4717IFS=$as_save_IFS 4718 4719 ;; 4720esac 4721fi 4722ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4723if test -n "$ac_pt_PKG_CONFIG"; then 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4725$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4726else 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4728$as_echo "no" >&6; } 4729fi 4730 4731 if test "x$ac_pt_PKG_CONFIG" = x; then 4732 PKG_CONFIG="" 4733 else 4734 case $cross_compiling:$ac_tool_warned in 4735yes:) 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4738ac_tool_warned=yes ;; 4739esac 4740 PKG_CONFIG=$ac_pt_PKG_CONFIG 4741 fi 4742else 4743 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4744fi 4745 4746fi 4747if test -n "$PKG_CONFIG"; then 4748 _pkg_min_version=0.9.0 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4750$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4751 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4753$as_echo "yes" >&6; } 4754 else 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4756$as_echo "no" >&6; } 4757 PKG_CONFIG="" 4758 fi 4759fi 4760# Make sure we can run config.sub. 4761$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4763 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4765$as_echo_n "checking build system type... " >&6; } 4766if ${ac_cv_build+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768else 4769 ac_build_alias=$build_alias 4770test "x$ac_build_alias" = x && 4771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4772test "x$ac_build_alias" = x && 4773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4774ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4776 4777fi 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4779$as_echo "$ac_cv_build" >&6; } 4780case $ac_cv_build in 4781*-*-*) ;; 4782*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4783esac 4784build=$ac_cv_build 4785ac_save_IFS=$IFS; IFS='-' 4786set x $ac_cv_build 4787shift 4788build_cpu=$1 4789build_vendor=$2 4790shift; shift 4791# Remember, the first character of IFS is used to create $*, 4792# except with old shells: 4793build_os=$* 4794IFS=$ac_save_IFS 4795case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4796 4797 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4799$as_echo_n "checking host system type... " >&6; } 4800if ${ac_cv_host+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 if test "x$host_alias" = x; then 4804 ac_cv_host=$ac_cv_build 4805else 4806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4808fi 4809 4810fi 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4812$as_echo "$ac_cv_host" >&6; } 4813case $ac_cv_host in 4814*-*-*) ;; 4815*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4816esac 4817host=$ac_cv_host 4818ac_save_IFS=$IFS; IFS='-' 4819set x $ac_cv_host 4820shift 4821host_cpu=$1 4822host_vendor=$2 4823shift; shift 4824# Remember, the first character of IFS is used to create $*, 4825# except with old shells: 4826host_os=$* 4827IFS=$ac_save_IFS 4828case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4832$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4833if ${ac_cv_path_SED+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4837 for ac_i in 1 2 3 4 5 6 7; do 4838 ac_script="$ac_script$as_nl$ac_script" 4839 done 4840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4841 { ac_script=; unset ac_script;} 4842 if test -z "$SED"; then 4843 ac_path_SED_found=false 4844 # Loop through the user's path and test for each of PROGNAME-LIST 4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4846for as_dir in $PATH 4847do 4848 IFS=$as_save_IFS 4849 test -z "$as_dir" && as_dir=. 4850 for ac_prog in sed gsed; do 4851 for ac_exec_ext in '' $ac_executable_extensions; do 4852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4853 as_fn_executable_p "$ac_path_SED" || continue 4854# Check for GNU ac_path_SED and select it if it is found. 4855 # Check for GNU $ac_path_SED 4856case `"$ac_path_SED" --version 2>&1` in 4857*GNU*) 4858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4859*) 4860 ac_count=0 4861 $as_echo_n 0123456789 >"conftest.in" 4862 while : 4863 do 4864 cat "conftest.in" "conftest.in" >"conftest.tmp" 4865 mv "conftest.tmp" "conftest.in" 4866 cp "conftest.in" "conftest.nl" 4867 $as_echo '' >> "conftest.nl" 4868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4870 as_fn_arith $ac_count + 1 && ac_count=$as_val 4871 if test $ac_count -gt ${ac_path_SED_max-0}; then 4872 # Best one so far, save it but keep looking for a better one 4873 ac_cv_path_SED="$ac_path_SED" 4874 ac_path_SED_max=$ac_count 4875 fi 4876 # 10*(2^10) chars as input seems more than enough 4877 test $ac_count -gt 10 && break 4878 done 4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4880esac 4881 4882 $ac_path_SED_found && break 3 4883 done 4884 done 4885 done 4886IFS=$as_save_IFS 4887 if test -z "$ac_cv_path_SED"; then 4888 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4889 fi 4890else 4891 ac_cv_path_SED=$SED 4892fi 4893 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4896$as_echo "$ac_cv_path_SED" >&6; } 4897 SED="$ac_cv_path_SED" 4898 rm -f conftest.sed 4899 4900 4901 4902 4903 4904 4905# Check whether --enable-selective-werror was given. 4906if test "${enable_selective_werror+set}" = set; then : 4907 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4908else 4909 SELECTIVE_WERROR=yes 4910fi 4911 4912 4913 4914 4915 4916# -v is too short to test reliably with XORG_TESTSET_CFLAG 4917if test "x$SUNCC" = "xyes"; then 4918 BASE_CFLAGS="-v" 4919else 4920 BASE_CFLAGS="" 4921fi 4922 4923# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937xorg_testset_save_CFLAGS="$CFLAGS" 4938 4939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948int i; 4949_ACEOF 4950if ac_fn_c_try_compile "$LINENO"; then : 4951 xorg_cv_cc_flag_unknown_warning_option=yes 4952else 4953 xorg_cv_cc_flag_unknown_warning_option=no 4954fi 4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4960 CFLAGS="$xorg_testset_save_CFLAGS" 4961fi 4962 4963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4966 fi 4967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974/* end confdefs.h. */ 4975int i; 4976_ACEOF 4977if ac_fn_c_try_compile "$LINENO"; then : 4978 xorg_cv_cc_flag_unused_command_line_argument=yes 4979else 4980 xorg_cv_cc_flag_unused_command_line_argument=no 4981fi 4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4987 CFLAGS="$xorg_testset_save_CFLAGS" 4988fi 4989 4990found="no" 4991 4992 if test $found = "no" ; then 4993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4995 fi 4996 4997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4999 fi 5000 5001 CFLAGS="$CFLAGS -Wall" 5002 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 5004$as_echo_n "checking if $CC supports-Wall... " >&6; } 5005 cacheid=xorg_cv_cc_flag__Wall 5006 if eval \${$cacheid+:} false; then : 5007 $as_echo_n "(cached) " >&6 5008else 5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5010/* end confdefs.h. */ 5011int i; 5012int 5013main () 5014{ 5015 5016 ; 5017 return 0; 5018} 5019_ACEOF 5020if ac_fn_c_try_link "$LINENO"; then : 5021 eval $cacheid=yes 5022else 5023 eval $cacheid=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext \ 5026 conftest$ac_exeext conftest.$ac_ext 5027fi 5028 5029 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031 5032 eval supported=\$$cacheid 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5034$as_echo "$supported" >&6; } 5035 if test "$supported" = "yes" ; then 5036 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5037 found="yes" 5038 fi 5039 fi 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055xorg_testset_save_CFLAGS="$CFLAGS" 5056 5057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 xorg_cv_cc_flag_unknown_warning_option=yes 5070else 5071 xorg_cv_cc_flag_unknown_warning_option=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5084 fi 5085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093int i; 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO"; then : 5096 xorg_cv_cc_flag_unused_command_line_argument=yes 5097else 5098 xorg_cv_cc_flag_unused_command_line_argument=no 5099fi 5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5105 CFLAGS="$xorg_testset_save_CFLAGS" 5106fi 5107 5108found="no" 5109 5110 if test $found = "no" ; then 5111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 fi 5114 5115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5117 fi 5118 5119 CFLAGS="$CFLAGS -Wpointer-arith" 5120 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 5122$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 5123 cacheid=xorg_cv_cc_flag__Wpointer_arith 5124 if eval \${$cacheid+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129int i; 5130int 5131main () 5132{ 5133 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138if ac_fn_c_try_link "$LINENO"; then : 5139 eval $cacheid=yes 5140else 5141 eval $cacheid=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext \ 5144 conftest$ac_exeext conftest.$ac_ext 5145fi 5146 5147 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149 5150 eval supported=\$$cacheid 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5152$as_echo "$supported" >&6; } 5153 if test "$supported" = "yes" ; then 5154 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5155 found="yes" 5156 fi 5157 fi 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173xorg_testset_save_CFLAGS="$CFLAGS" 5174 5175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO"; then : 5187 xorg_cv_cc_flag_unknown_warning_option=yes 5188else 5189 xorg_cv_cc_flag_unknown_warning_option=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5196 CFLAGS="$xorg_testset_save_CFLAGS" 5197fi 5198 5199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5202 fi 5203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211int i; 5212_ACEOF 5213if ac_fn_c_try_compile "$LINENO"; then : 5214 xorg_cv_cc_flag_unused_command_line_argument=yes 5215else 5216 xorg_cv_cc_flag_unused_command_line_argument=no 5217fi 5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5223 CFLAGS="$xorg_testset_save_CFLAGS" 5224fi 5225 5226found="no" 5227 5228 if test $found = "no" ; then 5229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5231 fi 5232 5233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5235 fi 5236 5237 CFLAGS="$CFLAGS -Wmissing-declarations" 5238 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 5240$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 5241 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5242 if eval \${$cacheid+:} false; then : 5243 $as_echo_n "(cached) " >&6 5244else 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246/* end confdefs.h. */ 5247int i; 5248int 5249main () 5250{ 5251 5252 ; 5253 return 0; 5254} 5255_ACEOF 5256if ac_fn_c_try_link "$LINENO"; then : 5257 eval $cacheid=yes 5258else 5259 eval $cacheid=no 5260fi 5261rm -f core conftest.err conftest.$ac_objext \ 5262 conftest$ac_exeext conftest.$ac_ext 5263fi 5264 5265 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267 5268 eval supported=\$$cacheid 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5270$as_echo "$supported" >&6; } 5271 if test "$supported" = "yes" ; then 5272 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5273 found="yes" 5274 fi 5275 fi 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291xorg_testset_save_CFLAGS="$CFLAGS" 5292 5293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303_ACEOF 5304if ac_fn_c_try_compile "$LINENO"; then : 5305 xorg_cv_cc_flag_unknown_warning_option=yes 5306else 5307 xorg_cv_cc_flag_unknown_warning_option=no 5308fi 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310fi 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5314 CFLAGS="$xorg_testset_save_CFLAGS" 5315fi 5316 5317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5320 fi 5321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328/* end confdefs.h. */ 5329int i; 5330_ACEOF 5331if ac_fn_c_try_compile "$LINENO"; then : 5332 xorg_cv_cc_flag_unused_command_line_argument=yes 5333else 5334 xorg_cv_cc_flag_unused_command_line_argument=no 5335fi 5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5341 CFLAGS="$xorg_testset_save_CFLAGS" 5342fi 5343 5344found="no" 5345 5346 if test $found = "no" ; then 5347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5349 fi 5350 5351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5353 fi 5354 5355 CFLAGS="$CFLAGS -Wformat=2" 5356 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5358$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5359 cacheid=xorg_cv_cc_flag__Wformat_2 5360 if eval \${$cacheid+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365int i; 5366int 5367main () 5368{ 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374if ac_fn_c_try_link "$LINENO"; then : 5375 eval $cacheid=yes 5376else 5377 eval $cacheid=no 5378fi 5379rm -f core conftest.err conftest.$ac_objext \ 5380 conftest$ac_exeext conftest.$ac_ext 5381fi 5382 5383 5384 CFLAGS="$xorg_testset_save_CFLAGS" 5385 5386 eval supported=\$$cacheid 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5388$as_echo "$supported" >&6; } 5389 if test "$supported" = "yes" ; then 5390 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5391 found="yes" 5392 fi 5393 fi 5394 5395 if test $found = "no" ; then 5396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5398 fi 5399 5400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5402 fi 5403 5404 CFLAGS="$CFLAGS -Wformat" 5405 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5407$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5408 cacheid=xorg_cv_cc_flag__Wformat 5409 if eval \${$cacheid+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414int i; 5415int 5416main () 5417{ 5418 5419 ; 5420 return 0; 5421} 5422_ACEOF 5423if ac_fn_c_try_link "$LINENO"; then : 5424 eval $cacheid=yes 5425else 5426 eval $cacheid=no 5427fi 5428rm -f core conftest.err conftest.$ac_objext \ 5429 conftest$ac_exeext conftest.$ac_ext 5430fi 5431 5432 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434 5435 eval supported=\$$cacheid 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5437$as_echo "$supported" >&6; } 5438 if test "$supported" = "yes" ; then 5439 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5440 found="yes" 5441 fi 5442 fi 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460xorg_testset_save_CFLAGS="$CFLAGS" 5461 5462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO"; then : 5474 xorg_cv_cc_flag_unknown_warning_option=yes 5475else 5476 xorg_cv_cc_flag_unknown_warning_option=no 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5483 CFLAGS="$xorg_testset_save_CFLAGS" 5484fi 5485 5486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5489 fi 5490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497/* end confdefs.h. */ 5498int i; 5499_ACEOF 5500if ac_fn_c_try_compile "$LINENO"; then : 5501 xorg_cv_cc_flag_unused_command_line_argument=yes 5502else 5503 xorg_cv_cc_flag_unused_command_line_argument=no 5504fi 5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5506fi 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5510 CFLAGS="$xorg_testset_save_CFLAGS" 5511fi 5512 5513found="no" 5514 5515 if test $found = "no" ; then 5516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5518 fi 5519 5520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5522 fi 5523 5524 CFLAGS="$CFLAGS -Wstrict-prototypes" 5525 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5527$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5528 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5529 if eval \${$cacheid+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5533/* end confdefs.h. */ 5534int i; 5535int 5536main () 5537{ 5538 5539 ; 5540 return 0; 5541} 5542_ACEOF 5543if ac_fn_c_try_link "$LINENO"; then : 5544 eval $cacheid=yes 5545else 5546 eval $cacheid=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext \ 5549 conftest$ac_exeext conftest.$ac_ext 5550fi 5551 5552 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554 5555 eval supported=\$$cacheid 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5557$as_echo "$supported" >&6; } 5558 if test "$supported" = "yes" ; then 5559 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5560 found="yes" 5561 fi 5562 fi 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578xorg_testset_save_CFLAGS="$CFLAGS" 5579 5580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589int i; 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 xorg_cv_cc_flag_unknown_warning_option=yes 5593else 5594 xorg_cv_cc_flag_unknown_warning_option=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602fi 5603 5604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5607 fi 5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615/* end confdefs.h. */ 5616int i; 5617_ACEOF 5618if ac_fn_c_try_compile "$LINENO"; then : 5619 xorg_cv_cc_flag_unused_command_line_argument=yes 5620else 5621 xorg_cv_cc_flag_unused_command_line_argument=no 5622fi 5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5628 CFLAGS="$xorg_testset_save_CFLAGS" 5629fi 5630 5631found="no" 5632 5633 if test $found = "no" ; then 5634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5636 fi 5637 5638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5640 fi 5641 5642 CFLAGS="$CFLAGS -Wmissing-prototypes" 5643 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5645$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5646 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5647 if eval \${$cacheid+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5651/* end confdefs.h. */ 5652int i; 5653int 5654main () 5655{ 5656 5657 ; 5658 return 0; 5659} 5660_ACEOF 5661if ac_fn_c_try_link "$LINENO"; then : 5662 eval $cacheid=yes 5663else 5664 eval $cacheid=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext \ 5667 conftest$ac_exeext conftest.$ac_ext 5668fi 5669 5670 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672 5673 eval supported=\$$cacheid 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5675$as_echo "$supported" >&6; } 5676 if test "$supported" = "yes" ; then 5677 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5678 found="yes" 5679 fi 5680 fi 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696xorg_testset_save_CFLAGS="$CFLAGS" 5697 5698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 xorg_cv_cc_flag_unknown_warning_option=yes 5711else 5712 xorg_cv_cc_flag_unknown_warning_option=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720fi 5721 5722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5725 fi 5726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734int i; 5735_ACEOF 5736if ac_fn_c_try_compile "$LINENO"; then : 5737 xorg_cv_cc_flag_unused_command_line_argument=yes 5738else 5739 xorg_cv_cc_flag_unused_command_line_argument=no 5740fi 5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5742fi 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5746 CFLAGS="$xorg_testset_save_CFLAGS" 5747fi 5748 5749found="no" 5750 5751 if test $found = "no" ; then 5752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 5756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5758 fi 5759 5760 CFLAGS="$CFLAGS -Wnested-externs" 5761 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5763$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5764 cacheid=xorg_cv_cc_flag__Wnested_externs 5765 if eval \${$cacheid+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771int 5772main () 5773{ 5774 5775 ; 5776 return 0; 5777} 5778_ACEOF 5779if ac_fn_c_try_link "$LINENO"; then : 5780 eval $cacheid=yes 5781else 5782 eval $cacheid=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext \ 5785 conftest$ac_exeext conftest.$ac_ext 5786fi 5787 5788 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790 5791 eval supported=\$$cacheid 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5793$as_echo "$supported" >&6; } 5794 if test "$supported" = "yes" ; then 5795 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5796 found="yes" 5797 fi 5798 fi 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 xorg_cv_cc_flag_unknown_warning_option=yes 5829else 5830 xorg_cv_cc_flag_unknown_warning_option=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838fi 5839 5840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5843 fi 5844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 xorg_cv_cc_flag_unused_command_line_argument=yes 5856else 5857 xorg_cv_cc_flag_unused_command_line_argument=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wbad-function-cast" 5879 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5881$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5883 if eval \${$cacheid+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888int i; 5889int 5890main () 5891{ 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897if ac_fn_c_try_link "$LINENO"; then : 5898 eval $cacheid=yes 5899else 5900 eval $cacheid=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext \ 5903 conftest$ac_exeext conftest.$ac_ext 5904fi 5905 5906 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908 5909 eval supported=\$$cacheid 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911$as_echo "$supported" >&6; } 5912 if test "$supported" = "yes" ; then 5913 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5914 found="yes" 5915 fi 5916 fi 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932xorg_testset_save_CFLAGS="$CFLAGS" 5933 5934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5942/* end confdefs.h. */ 5943int i; 5944_ACEOF 5945if ac_fn_c_try_compile "$LINENO"; then : 5946 xorg_cv_cc_flag_unknown_warning_option=yes 5947else 5948 xorg_cv_cc_flag_unknown_warning_option=no 5949fi 5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5951fi 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5955 CFLAGS="$xorg_testset_save_CFLAGS" 5956fi 5957 5958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 fi 5962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970int i; 5971_ACEOF 5972if ac_fn_c_try_compile "$LINENO"; then : 5973 xorg_cv_cc_flag_unused_command_line_argument=yes 5974else 5975 xorg_cv_cc_flag_unused_command_line_argument=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985found="no" 5986 5987 if test $found = "no" ; then 5988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 fi 5991 5992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5994 fi 5995 5996 CFLAGS="$CFLAGS -Wold-style-definition" 5997 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5999$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 6000 cacheid=xorg_cv_cc_flag__Wold_style_definition 6001 if eval \${$cacheid+:} false; then : 6002 $as_echo_n "(cached) " >&6 6003else 6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006int i; 6007int 6008main () 6009{ 6010 6011 ; 6012 return 0; 6013} 6014_ACEOF 6015if ac_fn_c_try_link "$LINENO"; then : 6016 eval $cacheid=yes 6017else 6018 eval $cacheid=no 6019fi 6020rm -f core conftest.err conftest.$ac_objext \ 6021 conftest$ac_exeext conftest.$ac_ext 6022fi 6023 6024 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026 6027 eval supported=\$$cacheid 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6029$as_echo "$supported" >&6; } 6030 if test "$supported" = "yes" ; then 6031 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6032 found="yes" 6033 fi 6034 fi 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050xorg_testset_save_CFLAGS="$CFLAGS" 6051 6052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO"; then : 6064 xorg_cv_cc_flag_unknown_warning_option=yes 6065else 6066 xorg_cv_cc_flag_unknown_warning_option=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6069fi 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088int i; 6089_ACEOF 6090if ac_fn_c_try_compile "$LINENO"; then : 6091 xorg_cv_cc_flag_unused_command_line_argument=yes 6092else 6093 xorg_cv_cc_flag_unused_command_line_argument=no 6094fi 6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6096fi 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6100 CFLAGS="$xorg_testset_save_CFLAGS" 6101fi 6102 6103found="no" 6104 6105 if test $found = "no" ; then 6106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6108 fi 6109 6110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6112 fi 6113 6114 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6115 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 6117$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 6118 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6119 if eval \${$cacheid+:} false; then : 6120 $as_echo_n "(cached) " >&6 6121else 6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6123/* end confdefs.h. */ 6124int i; 6125int 6126main () 6127{ 6128 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133if ac_fn_c_try_link "$LINENO"; then : 6134 eval $cacheid=yes 6135else 6136 eval $cacheid=no 6137fi 6138rm -f core conftest.err conftest.$ac_objext \ 6139 conftest$ac_exeext conftest.$ac_ext 6140fi 6141 6142 6143 CFLAGS="$xorg_testset_save_CFLAGS" 6144 6145 eval supported=\$$cacheid 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6147$as_echo "$supported" >&6; } 6148 if test "$supported" = "yes" ; then 6149 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6150 found="yes" 6151 fi 6152 fi 6153 6154 6155 6156 6157 6158# This chunk adds additional warnings that could catch undesired effects. 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172xorg_testset_save_CFLAGS="$CFLAGS" 6173 6174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO"; then : 6186 xorg_cv_cc_flag_unknown_warning_option=yes 6187else 6188 xorg_cv_cc_flag_unknown_warning_option=no 6189fi 6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6191fi 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6195 CFLAGS="$xorg_testset_save_CFLAGS" 6196fi 6197 6198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6201 fi 6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 xorg_cv_cc_flag_unused_command_line_argument=yes 6214else 6215 xorg_cv_cc_flag_unused_command_line_argument=no 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6222 CFLAGS="$xorg_testset_save_CFLAGS" 6223fi 6224 6225found="no" 6226 6227 if test $found = "no" ; then 6228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 6232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 fi 6235 6236 CFLAGS="$CFLAGS -Wunused" 6237 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 6239$as_echo_n "checking if $CC supports-Wunused... " >&6; } 6240 cacheid=xorg_cv_cc_flag__Wunused 6241 if eval \${$cacheid+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245/* end confdefs.h. */ 6246int i; 6247int 6248main () 6249{ 6250 6251 ; 6252 return 0; 6253} 6254_ACEOF 6255if ac_fn_c_try_link "$LINENO"; then : 6256 eval $cacheid=yes 6257else 6258 eval $cacheid=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext \ 6261 conftest$ac_exeext conftest.$ac_ext 6262fi 6263 6264 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266 6267 eval supported=\$$cacheid 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6269$as_echo "$supported" >&6; } 6270 if test "$supported" = "yes" ; then 6271 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6272 found="yes" 6273 fi 6274 fi 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290xorg_testset_save_CFLAGS="$CFLAGS" 6291 6292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301int i; 6302_ACEOF 6303if ac_fn_c_try_compile "$LINENO"; then : 6304 xorg_cv_cc_flag_unknown_warning_option=yes 6305else 6306 xorg_cv_cc_flag_unknown_warning_option=no 6307fi 6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6309fi 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6313 CFLAGS="$xorg_testset_save_CFLAGS" 6314fi 6315 6316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6319 fi 6320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO"; then : 6331 xorg_cv_cc_flag_unused_command_line_argument=yes 6332else 6333 xorg_cv_cc_flag_unused_command_line_argument=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343found="no" 6344 6345 if test $found = "no" ; then 6346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 fi 6349 6350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6352 fi 6353 6354 CFLAGS="$CFLAGS -Wuninitialized" 6355 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6357$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6358 cacheid=xorg_cv_cc_flag__Wuninitialized 6359 if eval \${$cacheid+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365int 6366main () 6367{ 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_link "$LINENO"; then : 6374 eval $cacheid=yes 6375else 6376 eval $cacheid=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext \ 6379 conftest$ac_exeext conftest.$ac_ext 6380fi 6381 6382 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384 6385 eval supported=\$$cacheid 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6387$as_echo "$supported" >&6; } 6388 if test "$supported" = "yes" ; then 6389 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6390 found="yes" 6391 fi 6392 fi 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408xorg_testset_save_CFLAGS="$CFLAGS" 6409 6410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419int i; 6420_ACEOF 6421if ac_fn_c_try_compile "$LINENO"; then : 6422 xorg_cv_cc_flag_unknown_warning_option=yes 6423else 6424 xorg_cv_cc_flag_unknown_warning_option=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6427fi 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432fi 6433 6434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6437 fi 6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446int i; 6447_ACEOF 6448if ac_fn_c_try_compile "$LINENO"; then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450else 6451 xorg_cv_cc_flag_unused_command_line_argument=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459fi 6460 6461found="no" 6462 6463 if test $found = "no" ; then 6464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 6468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 fi 6471 6472 CFLAGS="$CFLAGS -Wshadow" 6473 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6475$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6476 cacheid=xorg_cv_cc_flag__Wshadow 6477 if eval \${$cacheid+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482int i; 6483int 6484main () 6485{ 6486 6487 ; 6488 return 0; 6489} 6490_ACEOF 6491if ac_fn_c_try_link "$LINENO"; then : 6492 eval $cacheid=yes 6493else 6494 eval $cacheid=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext conftest.$ac_ext 6498fi 6499 6500 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502 6503 eval supported=\$$cacheid 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6505$as_echo "$supported" >&6; } 6506 if test "$supported" = "yes" ; then 6507 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6508 found="yes" 6509 fi 6510 fi 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526xorg_testset_save_CFLAGS="$CFLAGS" 6527 6528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537int i; 6538_ACEOF 6539if ac_fn_c_try_compile "$LINENO"; then : 6540 xorg_cv_cc_flag_unknown_warning_option=yes 6541else 6542 xorg_cv_cc_flag_unknown_warning_option=no 6543fi 6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6545fi 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6549 CFLAGS="$xorg_testset_save_CFLAGS" 6550fi 6551 6552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6555 fi 6556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564int i; 6565_ACEOF 6566if ac_fn_c_try_compile "$LINENO"; then : 6567 xorg_cv_cc_flag_unused_command_line_argument=yes 6568else 6569 xorg_cv_cc_flag_unused_command_line_argument=no 6570fi 6571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577fi 6578 6579found="no" 6580 6581 if test $found = "no" ; then 6582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 6586 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 fi 6589 6590 CFLAGS="$CFLAGS -Wcast-qual" 6591 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6593$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6594 cacheid=xorg_cv_cc_flag__Wcast_qual 6595 if eval \${$cacheid+:} false; then : 6596 $as_echo_n "(cached) " >&6 6597else 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599/* end confdefs.h. */ 6600int i; 6601int 6602main () 6603{ 6604 6605 ; 6606 return 0; 6607} 6608_ACEOF 6609if ac_fn_c_try_link "$LINENO"; then : 6610 eval $cacheid=yes 6611else 6612 eval $cacheid=no 6613fi 6614rm -f core conftest.err conftest.$ac_objext \ 6615 conftest$ac_exeext conftest.$ac_ext 6616fi 6617 6618 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620 6621 eval supported=\$$cacheid 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6623$as_echo "$supported" >&6; } 6624 if test "$supported" = "yes" ; then 6625 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6626 found="yes" 6627 fi 6628 fi 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644xorg_testset_save_CFLAGS="$CFLAGS" 6645 6646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655int i; 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO"; then : 6658 xorg_cv_cc_flag_unknown_warning_option=yes 6659else 6660 xorg_cv_cc_flag_unknown_warning_option=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6663fi 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668fi 6669 6670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6673 fi 6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683_ACEOF 6684if ac_fn_c_try_compile "$LINENO"; then : 6685 xorg_cv_cc_flag_unused_command_line_argument=yes 6686else 6687 xorg_cv_cc_flag_unused_command_line_argument=no 6688fi 6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6694 CFLAGS="$xorg_testset_save_CFLAGS" 6695fi 6696 6697found="no" 6698 6699 if test $found = "no" ; then 6700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 6704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 fi 6707 6708 CFLAGS="$CFLAGS -Wmissing-noreturn" 6709 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6711$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6712 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6713 if eval \${$cacheid+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718int i; 6719int 6720main () 6721{ 6722 6723 ; 6724 return 0; 6725} 6726_ACEOF 6727if ac_fn_c_try_link "$LINENO"; then : 6728 eval $cacheid=yes 6729else 6730 eval $cacheid=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext \ 6733 conftest$ac_exeext conftest.$ac_ext 6734fi 6735 6736 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738 6739 eval supported=\$$cacheid 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6741$as_echo "$supported" >&6; } 6742 if test "$supported" = "yes" ; then 6743 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6744 found="yes" 6745 fi 6746 fi 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762xorg_testset_save_CFLAGS="$CFLAGS" 6763 6764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6769 $as_echo_n "(cached) " >&6 6770else 6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773int i; 6774_ACEOF 6775if ac_fn_c_try_compile "$LINENO"; then : 6776 xorg_cv_cc_flag_unknown_warning_option=yes 6777else 6778 xorg_cv_cc_flag_unknown_warning_option=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6781fi 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6785 CFLAGS="$xorg_testset_save_CFLAGS" 6786fi 6787 6788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6791 fi 6792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800int i; 6801_ACEOF 6802if ac_fn_c_try_compile "$LINENO"; then : 6803 xorg_cv_cc_flag_unused_command_line_argument=yes 6804else 6805 xorg_cv_cc_flag_unused_command_line_argument=no 6806fi 6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6808fi 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6812 CFLAGS="$xorg_testset_save_CFLAGS" 6813fi 6814 6815found="no" 6816 6817 if test $found = "no" ; then 6818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6820 fi 6821 6822 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 fi 6825 6826 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6827 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6829$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6830 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6831 if eval \${$cacheid+:} false; then : 6832 $as_echo_n "(cached) " >&6 6833else 6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836int i; 6837int 6838main () 6839{ 6840 6841 ; 6842 return 0; 6843} 6844_ACEOF 6845if ac_fn_c_try_link "$LINENO"; then : 6846 eval $cacheid=yes 6847else 6848 eval $cacheid=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext \ 6851 conftest$ac_exeext conftest.$ac_ext 6852fi 6853 6854 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856 6857 eval supported=\$$cacheid 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6859$as_echo "$supported" >&6; } 6860 if test "$supported" = "yes" ; then 6861 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6862 found="yes" 6863 fi 6864 fi 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880xorg_testset_save_CFLAGS="$CFLAGS" 6881 6882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891int i; 6892_ACEOF 6893if ac_fn_c_try_compile "$LINENO"; then : 6894 xorg_cv_cc_flag_unknown_warning_option=yes 6895else 6896 xorg_cv_cc_flag_unknown_warning_option=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6899fi 6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904fi 6905 6906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6909 fi 6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int i; 6919_ACEOF 6920if ac_fn_c_try_compile "$LINENO"; then : 6921 xorg_cv_cc_flag_unused_command_line_argument=yes 6922else 6923 xorg_cv_cc_flag_unused_command_line_argument=no 6924fi 6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6926fi 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6930 CFLAGS="$xorg_testset_save_CFLAGS" 6931fi 6932 6933found="no" 6934 6935 if test $found = "no" ; then 6936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6938 fi 6939 6940 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6942 fi 6943 6944 CFLAGS="$CFLAGS -Wredundant-decls" 6945 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6947$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6948 cacheid=xorg_cv_cc_flag__Wredundant_decls 6949 if eval \${$cacheid+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6953/* end confdefs.h. */ 6954int i; 6955int 6956main () 6957{ 6958 6959 ; 6960 return 0; 6961} 6962_ACEOF 6963if ac_fn_c_try_link "$LINENO"; then : 6964 eval $cacheid=yes 6965else 6966 eval $cacheid=no 6967fi 6968rm -f core conftest.err conftest.$ac_objext \ 6969 conftest$ac_exeext conftest.$ac_ext 6970fi 6971 6972 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974 6975 eval supported=\$$cacheid 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6977$as_echo "$supported" >&6; } 6978 if test "$supported" = "yes" ; then 6979 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6980 found="yes" 6981 fi 6982 fi 6983 6984 6985 6986# These are currently disabled because they are noisy. They will be enabled 6987# in the future once the codebase is sufficiently modernized to silence 6988# them. For now, I don't want them to drown out the other warnings. 6989# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6990# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6991# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6992 6993# Turn some warnings into errors, so we don't accidently get successful builds 6994# when there are problems that should be fixed. 6995 6996if test "x$SELECTIVE_WERROR" = "xyes" ; then 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010xorg_testset_save_CFLAGS="$CFLAGS" 7011 7012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7017 $as_echo_n "(cached) " >&6 7018else 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021int i; 7022_ACEOF 7023if ac_fn_c_try_compile "$LINENO"; then : 7024 xorg_cv_cc_flag_unknown_warning_option=yes 7025else 7026 xorg_cv_cc_flag_unknown_warning_option=no 7027fi 7028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7029fi 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7033 CFLAGS="$xorg_testset_save_CFLAGS" 7034fi 7035 7036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7039 fi 7040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7044 $as_echo_n "(cached) " >&6 7045else 7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7047/* end confdefs.h. */ 7048int i; 7049_ACEOF 7050if ac_fn_c_try_compile "$LINENO"; then : 7051 xorg_cv_cc_flag_unused_command_line_argument=yes 7052else 7053 xorg_cv_cc_flag_unused_command_line_argument=no 7054fi 7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7056fi 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7060 CFLAGS="$xorg_testset_save_CFLAGS" 7061fi 7062 7063found="no" 7064 7065 if test $found = "no" ; then 7066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7068 fi 7069 7070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7072 fi 7073 7074 CFLAGS="$CFLAGS -Werror=implicit" 7075 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 7077$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 7078 cacheid=xorg_cv_cc_flag__Werror_implicit 7079 if eval \${$cacheid+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084int i; 7085int 7086main () 7087{ 7088 7089 ; 7090 return 0; 7091} 7092_ACEOF 7093if ac_fn_c_try_link "$LINENO"; then : 7094 eval $cacheid=yes 7095else 7096 eval $cacheid=no 7097fi 7098rm -f core conftest.err conftest.$ac_objext \ 7099 conftest$ac_exeext conftest.$ac_ext 7100fi 7101 7102 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104 7105 eval supported=\$$cacheid 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7107$as_echo "$supported" >&6; } 7108 if test "$supported" = "yes" ; then 7109 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7110 found="yes" 7111 fi 7112 fi 7113 7114 if test $found = "no" ; then 7115 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 7119 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 fi 7122 7123 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7124 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7126$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7127 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7128 if eval \${$cacheid+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134int 7135main () 7136{ 7137 7138 ; 7139 return 0; 7140} 7141_ACEOF 7142if ac_fn_c_try_link "$LINENO"; then : 7143 eval $cacheid=yes 7144else 7145 eval $cacheid=no 7146fi 7147rm -f core conftest.err conftest.$ac_objext \ 7148 conftest$ac_exeext conftest.$ac_ext 7149fi 7150 7151 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153 7154 eval supported=\$$cacheid 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7156$as_echo "$supported" >&6; } 7157 if test "$supported" = "yes" ; then 7158 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7159 found="yes" 7160 fi 7161 fi 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177xorg_testset_save_CFLAGS="$CFLAGS" 7178 7179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189_ACEOF 7190if ac_fn_c_try_compile "$LINENO"; then : 7191 xorg_cv_cc_flag_unknown_warning_option=yes 7192else 7193 xorg_cv_cc_flag_unknown_warning_option=no 7194fi 7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7200 CFLAGS="$xorg_testset_save_CFLAGS" 7201fi 7202 7203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7206 fi 7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 xorg_cv_cc_flag_unused_command_line_argument=yes 7219else 7220 xorg_cv_cc_flag_unused_command_line_argument=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228fi 7229 7230found="no" 7231 7232 if test $found = "no" ; then 7233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 fi 7236 7237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7239 fi 7240 7241 CFLAGS="$CFLAGS -Werror=nonnull" 7242 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 7244$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 7245 cacheid=xorg_cv_cc_flag__Werror_nonnull 7246 if eval \${$cacheid+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252int 7253main () 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO"; then : 7261 eval $cacheid=yes 7262else 7263 eval $cacheid=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext \ 7266 conftest$ac_exeext conftest.$ac_ext 7267fi 7268 7269 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271 7272 eval supported=\$$cacheid 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7274$as_echo "$supported" >&6; } 7275 if test "$supported" = "yes" ; then 7276 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7277 found="yes" 7278 fi 7279 fi 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295xorg_testset_save_CFLAGS="$CFLAGS" 7296 7297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307_ACEOF 7308if ac_fn_c_try_compile "$LINENO"; then : 7309 xorg_cv_cc_flag_unknown_warning_option=yes 7310else 7311 xorg_cv_cc_flag_unknown_warning_option=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7314fi 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319fi 7320 7321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 fi 7325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333int i; 7334_ACEOF 7335if ac_fn_c_try_compile "$LINENO"; then : 7336 xorg_cv_cc_flag_unused_command_line_argument=yes 7337else 7338 xorg_cv_cc_flag_unused_command_line_argument=no 7339fi 7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7341fi 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7345 CFLAGS="$xorg_testset_save_CFLAGS" 7346fi 7347 7348found="no" 7349 7350 if test $found = "no" ; then 7351 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7353 fi 7354 7355 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7357 fi 7358 7359 CFLAGS="$CFLAGS -Werror=init-self" 7360 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7362$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7363 cacheid=xorg_cv_cc_flag__Werror_init_self 7364 if eval \${$cacheid+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370int 7371main () 7372{ 7373 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_link "$LINENO"; then : 7379 eval $cacheid=yes 7380else 7381 eval $cacheid=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext \ 7384 conftest$ac_exeext conftest.$ac_ext 7385fi 7386 7387 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389 7390 eval supported=\$$cacheid 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7392$as_echo "$supported" >&6; } 7393 if test "$supported" = "yes" ; then 7394 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7395 found="yes" 7396 fi 7397 fi 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413xorg_testset_save_CFLAGS="$CFLAGS" 7414 7415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424int i; 7425_ACEOF 7426if ac_fn_c_try_compile "$LINENO"; then : 7427 xorg_cv_cc_flag_unknown_warning_option=yes 7428else 7429 xorg_cv_cc_flag_unknown_warning_option=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437fi 7438 7439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 fi 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO"; then : 7454 xorg_cv_cc_flag_unused_command_line_argument=yes 7455else 7456 xorg_cv_cc_flag_unused_command_line_argument=no 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7459fi 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464fi 7465 7466found="no" 7467 7468 if test $found = "no" ; then 7469 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 fi 7472 7473 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7475 fi 7476 7477 CFLAGS="$CFLAGS -Werror=main" 7478 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7480$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7481 cacheid=xorg_cv_cc_flag__Werror_main 7482 if eval \${$cacheid+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484else 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487int i; 7488int 7489main () 7490{ 7491 7492 ; 7493 return 0; 7494} 7495_ACEOF 7496if ac_fn_c_try_link "$LINENO"; then : 7497 eval $cacheid=yes 7498else 7499 eval $cacheid=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext \ 7502 conftest$ac_exeext conftest.$ac_ext 7503fi 7504 7505 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507 7508 eval supported=\$$cacheid 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7510$as_echo "$supported" >&6; } 7511 if test "$supported" = "yes" ; then 7512 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7513 found="yes" 7514 fi 7515 fi 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531xorg_testset_save_CFLAGS="$CFLAGS" 7532 7533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7541/* end confdefs.h. */ 7542int i; 7543_ACEOF 7544if ac_fn_c_try_compile "$LINENO"; then : 7545 xorg_cv_cc_flag_unknown_warning_option=yes 7546else 7547 xorg_cv_cc_flag_unknown_warning_option=no 7548fi 7549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7550fi 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7554 CFLAGS="$xorg_testset_save_CFLAGS" 7555fi 7556 7557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 fi 7561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569int i; 7570_ACEOF 7571if ac_fn_c_try_compile "$LINENO"; then : 7572 xorg_cv_cc_flag_unused_command_line_argument=yes 7573else 7574 xorg_cv_cc_flag_unused_command_line_argument=no 7575fi 7576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7577fi 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7581 CFLAGS="$xorg_testset_save_CFLAGS" 7582fi 7583 7584found="no" 7585 7586 if test $found = "no" ; then 7587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7589 fi 7590 7591 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 fi 7594 7595 CFLAGS="$CFLAGS -Werror=missing-braces" 7596 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7598$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7599 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7600 if eval \${$cacheid+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7604/* end confdefs.h. */ 7605int i; 7606int 7607main () 7608{ 7609 7610 ; 7611 return 0; 7612} 7613_ACEOF 7614if ac_fn_c_try_link "$LINENO"; then : 7615 eval $cacheid=yes 7616else 7617 eval $cacheid=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext \ 7620 conftest$ac_exeext conftest.$ac_ext 7621fi 7622 7623 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625 7626 eval supported=\$$cacheid 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7628$as_echo "$supported" >&6; } 7629 if test "$supported" = "yes" ; then 7630 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7631 found="yes" 7632 fi 7633 fi 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649xorg_testset_save_CFLAGS="$CFLAGS" 7650 7651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660int i; 7661_ACEOF 7662if ac_fn_c_try_compile "$LINENO"; then : 7663 xorg_cv_cc_flag_unknown_warning_option=yes 7664else 7665 xorg_cv_cc_flag_unknown_warning_option=no 7666fi 7667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7668fi 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673fi 7674 7675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7678 fi 7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7686/* end confdefs.h. */ 7687int i; 7688_ACEOF 7689if ac_fn_c_try_compile "$LINENO"; then : 7690 xorg_cv_cc_flag_unused_command_line_argument=yes 7691else 7692 xorg_cv_cc_flag_unused_command_line_argument=no 7693fi 7694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7695fi 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7699 CFLAGS="$xorg_testset_save_CFLAGS" 7700fi 7701 7702found="no" 7703 7704 if test $found = "no" ; then 7705 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7707 fi 7708 7709 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7711 fi 7712 7713 CFLAGS="$CFLAGS -Werror=sequence-point" 7714 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7716$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7717 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7718 if eval \${$cacheid+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723int i; 7724int 7725main () 7726{ 7727 7728 ; 7729 return 0; 7730} 7731_ACEOF 7732if ac_fn_c_try_link "$LINENO"; then : 7733 eval $cacheid=yes 7734else 7735 eval $cacheid=no 7736fi 7737rm -f core conftest.err conftest.$ac_objext \ 7738 conftest$ac_exeext conftest.$ac_ext 7739fi 7740 7741 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743 7744 eval supported=\$$cacheid 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7746$as_echo "$supported" >&6; } 7747 if test "$supported" = "yes" ; then 7748 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7749 found="yes" 7750 fi 7751 fi 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767xorg_testset_save_CFLAGS="$CFLAGS" 7768 7769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775else 7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777/* end confdefs.h. */ 7778int i; 7779_ACEOF 7780if ac_fn_c_try_compile "$LINENO"; then : 7781 xorg_cv_cc_flag_unknown_warning_option=yes 7782else 7783 xorg_cv_cc_flag_unknown_warning_option=no 7784fi 7785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7786fi 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7790 CFLAGS="$xorg_testset_save_CFLAGS" 7791fi 7792 7793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 fi 7797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7801 $as_echo_n "(cached) " >&6 7802else 7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7804/* end confdefs.h. */ 7805int i; 7806_ACEOF 7807if ac_fn_c_try_compile "$LINENO"; then : 7808 xorg_cv_cc_flag_unused_command_line_argument=yes 7809else 7810 xorg_cv_cc_flag_unused_command_line_argument=no 7811fi 7812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7813fi 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7817 CFLAGS="$xorg_testset_save_CFLAGS" 7818fi 7819 7820found="no" 7821 7822 if test $found = "no" ; then 7823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7825 fi 7826 7827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7829 fi 7830 7831 CFLAGS="$CFLAGS -Werror=return-type" 7832 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7834$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7835 cacheid=xorg_cv_cc_flag__Werror_return_type 7836 if eval \${$cacheid+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841int i; 7842int 7843main () 7844{ 7845 7846 ; 7847 return 0; 7848} 7849_ACEOF 7850if ac_fn_c_try_link "$LINENO"; then : 7851 eval $cacheid=yes 7852else 7853 eval $cacheid=no 7854fi 7855rm -f core conftest.err conftest.$ac_objext \ 7856 conftest$ac_exeext conftest.$ac_ext 7857fi 7858 7859 7860 CFLAGS="$xorg_testset_save_CFLAGS" 7861 7862 eval supported=\$$cacheid 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7864$as_echo "$supported" >&6; } 7865 if test "$supported" = "yes" ; then 7866 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7867 found="yes" 7868 fi 7869 fi 7870 7871 if test $found = "no" ; then 7872 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 7876 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 fi 7879 7880 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7883$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7884 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7885 if eval \${$cacheid+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891int 7892main () 7893{ 7894 7895 ; 7896 return 0; 7897} 7898_ACEOF 7899if ac_fn_c_try_link "$LINENO"; then : 7900 eval $cacheid=yes 7901else 7902 eval $cacheid=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext \ 7905 conftest$ac_exeext conftest.$ac_ext 7906fi 7907 7908 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910 7911 eval supported=\$$cacheid 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7913$as_echo "$supported" >&6; } 7914 if test "$supported" = "yes" ; then 7915 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7916 found="yes" 7917 fi 7918 fi 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934xorg_testset_save_CFLAGS="$CFLAGS" 7935 7936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO"; then : 7948 xorg_cv_cc_flag_unknown_warning_option=yes 7949else 7950 xorg_cv_cc_flag_unknown_warning_option=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7953fi 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958fi 7959 7960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO"; then : 7975 xorg_cv_cc_flag_unused_command_line_argument=yes 7976else 7977 xorg_cv_cc_flag_unused_command_line_argument=no 7978fi 7979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987found="no" 7988 7989 if test $found = "no" ; then 7990 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 fi 7993 7994 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7996 fi 7997 7998 CFLAGS="$CFLAGS -Werror=trigraphs" 7999 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 8001$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 8002 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8003 if eval \${$cacheid+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009int 8010main () 8011{ 8012 8013 ; 8014 return 0; 8015} 8016_ACEOF 8017if ac_fn_c_try_link "$LINENO"; then : 8018 eval $cacheid=yes 8019else 8020 eval $cacheid=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext \ 8023 conftest$ac_exeext conftest.$ac_ext 8024fi 8025 8026 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028 8029 eval supported=\$$cacheid 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8031$as_echo "$supported" >&6; } 8032 if test "$supported" = "yes" ; then 8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8034 found="yes" 8035 fi 8036 fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052xorg_testset_save_CFLAGS="$CFLAGS" 8053 8054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064_ACEOF 8065if ac_fn_c_try_compile "$LINENO"; then : 8066 xorg_cv_cc_flag_unknown_warning_option=yes 8067else 8068 xorg_cv_cc_flag_unknown_warning_option=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076fi 8077 8078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8081 fi 8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090int i; 8091_ACEOF 8092if ac_fn_c_try_compile "$LINENO"; then : 8093 xorg_cv_cc_flag_unused_command_line_argument=yes 8094else 8095 xorg_cv_cc_flag_unused_command_line_argument=no 8096fi 8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8098fi 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8102 CFLAGS="$xorg_testset_save_CFLAGS" 8103fi 8104 8105found="no" 8106 8107 if test $found = "no" ; then 8108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 fi 8111 8112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8114 fi 8115 8116 CFLAGS="$CFLAGS -Werror=array-bounds" 8117 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 8119$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 8120 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8121 if eval \${$cacheid+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127int 8128main () 8129{ 8130 8131 ; 8132 return 0; 8133} 8134_ACEOF 8135if ac_fn_c_try_link "$LINENO"; then : 8136 eval $cacheid=yes 8137else 8138 eval $cacheid=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext conftest.$ac_ext 8142fi 8143 8144 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146 8147 eval supported=\$$cacheid 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8149$as_echo "$supported" >&6; } 8150 if test "$supported" = "yes" ; then 8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8152 found="yes" 8153 fi 8154 fi 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170xorg_testset_save_CFLAGS="$CFLAGS" 8171 8172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182_ACEOF 8183if ac_fn_c_try_compile "$LINENO"; then : 8184 xorg_cv_cc_flag_unknown_warning_option=yes 8185else 8186 xorg_cv_cc_flag_unknown_warning_option=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8189fi 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194fi 8195 8196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 fi 8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208int i; 8209_ACEOF 8210if ac_fn_c_try_compile "$LINENO"; then : 8211 xorg_cv_cc_flag_unused_command_line_argument=yes 8212else 8213 xorg_cv_cc_flag_unused_command_line_argument=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8216fi 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223found="no" 8224 8225 if test $found = "no" ; then 8226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8228 fi 8229 8230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 fi 8233 8234 CFLAGS="$CFLAGS -Werror=write-strings" 8235 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 8237$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 8238 cacheid=xorg_cv_cc_flag__Werror_write_strings 8239 if eval \${$cacheid+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245int 8246main () 8247{ 8248 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253if ac_fn_c_try_link "$LINENO"; then : 8254 eval $cacheid=yes 8255else 8256 eval $cacheid=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext \ 8259 conftest$ac_exeext conftest.$ac_ext 8260fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267$as_echo "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8270 found="yes" 8271 fi 8272 fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288xorg_testset_save_CFLAGS="$CFLAGS" 8289 8290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8295 $as_echo_n "(cached) " >&6 8296else 8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8298/* end confdefs.h. */ 8299int i; 8300_ACEOF 8301if ac_fn_c_try_compile "$LINENO"; then : 8302 xorg_cv_cc_flag_unknown_warning_option=yes 8303else 8304 xorg_cv_cc_flag_unknown_warning_option=no 8305fi 8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8307fi 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8311 CFLAGS="$xorg_testset_save_CFLAGS" 8312fi 8313 8314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8317 fi 8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8325/* end confdefs.h. */ 8326int i; 8327_ACEOF 8328if ac_fn_c_try_compile "$LINENO"; then : 8329 xorg_cv_cc_flag_unused_command_line_argument=yes 8330else 8331 xorg_cv_cc_flag_unused_command_line_argument=no 8332fi 8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8334fi 8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8338 CFLAGS="$xorg_testset_save_CFLAGS" 8339fi 8340 8341found="no" 8342 8343 if test $found = "no" ; then 8344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8346 fi 8347 8348 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8350 fi 8351 8352 CFLAGS="$CFLAGS -Werror=address" 8353 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8355$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8356 cacheid=xorg_cv_cc_flag__Werror_address 8357 if eval \${$cacheid+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362int i; 8363int 8364main () 8365{ 8366 8367 ; 8368 return 0; 8369} 8370_ACEOF 8371if ac_fn_c_try_link "$LINENO"; then : 8372 eval $cacheid=yes 8373else 8374 eval $cacheid=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext \ 8377 conftest$ac_exeext conftest.$ac_ext 8378fi 8379 8380 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382 8383 eval supported=\$$cacheid 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8385$as_echo "$supported" >&6; } 8386 if test "$supported" = "yes" ; then 8387 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8388 found="yes" 8389 fi 8390 fi 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406xorg_testset_save_CFLAGS="$CFLAGS" 8407 8408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8416/* end confdefs.h. */ 8417int i; 8418_ACEOF 8419if ac_fn_c_try_compile "$LINENO"; then : 8420 xorg_cv_cc_flag_unknown_warning_option=yes 8421else 8422 xorg_cv_cc_flag_unknown_warning_option=no 8423fi 8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8425fi 8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430fi 8431 8432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8435 fi 8436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8443/* end confdefs.h. */ 8444int i; 8445_ACEOF 8446if ac_fn_c_try_compile "$LINENO"; then : 8447 xorg_cv_cc_flag_unused_command_line_argument=yes 8448else 8449 xorg_cv_cc_flag_unused_command_line_argument=no 8450fi 8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8452fi 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8456 CFLAGS="$xorg_testset_save_CFLAGS" 8457fi 8458 8459found="no" 8460 8461 if test $found = "no" ; then 8462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8464 fi 8465 8466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8468 fi 8469 8470 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8471 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8473$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8474 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8475 if eval \${$cacheid+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477else 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8479/* end confdefs.h. */ 8480int i; 8481int 8482main () 8483{ 8484 8485 ; 8486 return 0; 8487} 8488_ACEOF 8489if ac_fn_c_try_link "$LINENO"; then : 8490 eval $cacheid=yes 8491else 8492 eval $cacheid=no 8493fi 8494rm -f core conftest.err conftest.$ac_objext \ 8495 conftest$ac_exeext conftest.$ac_ext 8496fi 8497 8498 8499 CFLAGS="$xorg_testset_save_CFLAGS" 8500 8501 eval supported=\$$cacheid 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8503$as_echo "$supported" >&6; } 8504 if test "$supported" = "yes" ; then 8505 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8506 found="yes" 8507 fi 8508 fi 8509 8510 if test $found = "no" ; then 8511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8513 fi 8514 8515 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8517 fi 8518 8519 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8520 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8522$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8523 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8524 if eval \${$cacheid+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8528/* end confdefs.h. */ 8529int i; 8530int 8531main () 8532{ 8533 8534 ; 8535 return 0; 8536} 8537_ACEOF 8538if ac_fn_c_try_link "$LINENO"; then : 8539 eval $cacheid=yes 8540else 8541 eval $cacheid=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext \ 8544 conftest$ac_exeext conftest.$ac_ext 8545fi 8546 8547 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549 8550 eval supported=\$$cacheid 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8552$as_echo "$supported" >&6; } 8553 if test "$supported" = "yes" ; then 8554 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8555 found="yes" 8556 fi 8557 fi 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573xorg_testset_save_CFLAGS="$CFLAGS" 8574 8575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584int i; 8585_ACEOF 8586if ac_fn_c_try_compile "$LINENO"; then : 8587 xorg_cv_cc_flag_unknown_warning_option=yes 8588else 8589 xorg_cv_cc_flag_unknown_warning_option=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8592fi 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597fi 8598 8599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 fi 8603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8607 $as_echo_n "(cached) " >&6 8608else 8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610/* end confdefs.h. */ 8611int i; 8612_ACEOF 8613if ac_fn_c_try_compile "$LINENO"; then : 8614 xorg_cv_cc_flag_unused_command_line_argument=yes 8615else 8616 xorg_cv_cc_flag_unused_command_line_argument=no 8617fi 8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8619fi 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8623 CFLAGS="$xorg_testset_save_CFLAGS" 8624fi 8625 8626found="no" 8627 8628 if test $found = "no" ; then 8629 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8631 fi 8632 8633 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 fi 8636 8637 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8638 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8640$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8641 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8642 if eval \${$cacheid+:} false; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647int i; 8648int 8649main () 8650{ 8651 8652 ; 8653 return 0; 8654} 8655_ACEOF 8656if ac_fn_c_try_link "$LINENO"; then : 8657 eval $cacheid=yes 8658else 8659 eval $cacheid=no 8660fi 8661rm -f core conftest.err conftest.$ac_objext \ 8662 conftest$ac_exeext conftest.$ac_ext 8663fi 8664 8665 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667 8668 eval supported=\$$cacheid 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8670$as_echo "$supported" >&6; } 8671 if test "$supported" = "yes" ; then 8672 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8673 found="yes" 8674 fi 8675 fi 8676 8677 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8678else 8679{ $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 8680$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;} 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694xorg_testset_save_CFLAGS="$CFLAGS" 8695 8696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8701 $as_echo_n "(cached) " >&6 8702else 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706_ACEOF 8707if ac_fn_c_try_compile "$LINENO"; then : 8708 xorg_cv_cc_flag_unknown_warning_option=yes 8709else 8710 xorg_cv_cc_flag_unknown_warning_option=no 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8713fi 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718fi 8719 8720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 fi 8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732int i; 8733_ACEOF 8734if ac_fn_c_try_compile "$LINENO"; then : 8735 xorg_cv_cc_flag_unused_command_line_argument=yes 8736else 8737 xorg_cv_cc_flag_unused_command_line_argument=no 8738fi 8739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8740fi 8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8744 CFLAGS="$xorg_testset_save_CFLAGS" 8745fi 8746 8747found="no" 8748 8749 if test $found = "no" ; then 8750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 fi 8753 8754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 fi 8757 8758 CFLAGS="$CFLAGS -Wimplicit" 8759 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8761$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8762 cacheid=xorg_cv_cc_flag__Wimplicit 8763 if eval \${$cacheid+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768int i; 8769int 8770main () 8771{ 8772 8773 ; 8774 return 0; 8775} 8776_ACEOF 8777if ac_fn_c_try_link "$LINENO"; then : 8778 eval $cacheid=yes 8779else 8780 eval $cacheid=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext \ 8783 conftest$ac_exeext conftest.$ac_ext 8784fi 8785 8786 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788 8789 eval supported=\$$cacheid 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8791$as_echo "$supported" >&6; } 8792 if test "$supported" = "yes" ; then 8793 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8794 found="yes" 8795 fi 8796 fi 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812xorg_testset_save_CFLAGS="$CFLAGS" 8813 8814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823int i; 8824_ACEOF 8825if ac_fn_c_try_compile "$LINENO"; then : 8826 xorg_cv_cc_flag_unknown_warning_option=yes 8827else 8828 xorg_cv_cc_flag_unknown_warning_option=no 8829fi 8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8831fi 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836fi 8837 8838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 fi 8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850int i; 8851_ACEOF 8852if ac_fn_c_try_compile "$LINENO"; then : 8853 xorg_cv_cc_flag_unused_command_line_argument=yes 8854else 8855 xorg_cv_cc_flag_unused_command_line_argument=no 8856fi 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8862 CFLAGS="$xorg_testset_save_CFLAGS" 8863fi 8864 8865found="no" 8866 8867 if test $found = "no" ; then 8868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 fi 8871 8872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8874 fi 8875 8876 CFLAGS="$CFLAGS -Wnonnull" 8877 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8879$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8880 cacheid=xorg_cv_cc_flag__Wnonnull 8881 if eval \${$cacheid+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886int i; 8887int 8888main () 8889{ 8890 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895if ac_fn_c_try_link "$LINENO"; then : 8896 eval $cacheid=yes 8897else 8898 eval $cacheid=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext \ 8901 conftest$ac_exeext conftest.$ac_ext 8902fi 8903 8904 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 8907 eval supported=\$$cacheid 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8909$as_echo "$supported" >&6; } 8910 if test "$supported" = "yes" ; then 8911 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8912 found="yes" 8913 fi 8914 fi 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930xorg_testset_save_CFLAGS="$CFLAGS" 8931 8932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941int i; 8942_ACEOF 8943if ac_fn_c_try_compile "$LINENO"; then : 8944 xorg_cv_cc_flag_unknown_warning_option=yes 8945else 8946 xorg_cv_cc_flag_unknown_warning_option=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8949fi 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954fi 8955 8956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 fi 8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968int i; 8969_ACEOF 8970if ac_fn_c_try_compile "$LINENO"; then : 8971 xorg_cv_cc_flag_unused_command_line_argument=yes 8972else 8973 xorg_cv_cc_flag_unused_command_line_argument=no 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8976fi 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8980 CFLAGS="$xorg_testset_save_CFLAGS" 8981fi 8982 8983found="no" 8984 8985 if test $found = "no" ; then 8986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8988 fi 8989 8990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 fi 8993 8994 CFLAGS="$CFLAGS -Winit-self" 8995 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8997$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8998 cacheid=xorg_cv_cc_flag__Winit_self 8999 if eval \${$cacheid+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004int i; 9005int 9006main () 9007{ 9008 9009 ; 9010 return 0; 9011} 9012_ACEOF 9013if ac_fn_c_try_link "$LINENO"; then : 9014 eval $cacheid=yes 9015else 9016 eval $cacheid=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext \ 9019 conftest$ac_exeext conftest.$ac_ext 9020fi 9021 9022 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024 9025 eval supported=\$$cacheid 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9027$as_echo "$supported" >&6; } 9028 if test "$supported" = "yes" ; then 9029 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9030 found="yes" 9031 fi 9032 fi 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048xorg_testset_save_CFLAGS="$CFLAGS" 9049 9050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059int i; 9060_ACEOF 9061if ac_fn_c_try_compile "$LINENO"; then : 9062 xorg_cv_cc_flag_unknown_warning_option=yes 9063else 9064 xorg_cv_cc_flag_unknown_warning_option=no 9065fi 9066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9067fi 9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072fi 9073 9074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 fi 9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9082 $as_echo_n "(cached) " >&6 9083else 9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087_ACEOF 9088if ac_fn_c_try_compile "$LINENO"; then : 9089 xorg_cv_cc_flag_unused_command_line_argument=yes 9090else 9091 xorg_cv_cc_flag_unused_command_line_argument=no 9092fi 9093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9094fi 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9098 CFLAGS="$xorg_testset_save_CFLAGS" 9099fi 9100 9101found="no" 9102 9103 if test $found = "no" ; then 9104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106 fi 9107 9108 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110 fi 9111 9112 CFLAGS="$CFLAGS -Wmain" 9113 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 9115$as_echo_n "checking if $CC supports-Wmain... " >&6; } 9116 cacheid=xorg_cv_cc_flag__Wmain 9117 if eval \${$cacheid+:} false; then : 9118 $as_echo_n "(cached) " >&6 9119else 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122int i; 9123int 9124main () 9125{ 9126 9127 ; 9128 return 0; 9129} 9130_ACEOF 9131if ac_fn_c_try_link "$LINENO"; then : 9132 eval $cacheid=yes 9133else 9134 eval $cacheid=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext \ 9137 conftest$ac_exeext conftest.$ac_ext 9138fi 9139 9140 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142 9143 eval supported=\$$cacheid 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9145$as_echo "$supported" >&6; } 9146 if test "$supported" = "yes" ; then 9147 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9148 found="yes" 9149 fi 9150 fi 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166xorg_testset_save_CFLAGS="$CFLAGS" 9167 9168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177int i; 9178_ACEOF 9179if ac_fn_c_try_compile "$LINENO"; then : 9180 xorg_cv_cc_flag_unknown_warning_option=yes 9181else 9182 xorg_cv_cc_flag_unknown_warning_option=no 9183fi 9184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9185fi 9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190fi 9191 9192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 fi 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204int i; 9205_ACEOF 9206if ac_fn_c_try_compile "$LINENO"; then : 9207 xorg_cv_cc_flag_unused_command_line_argument=yes 9208else 9209 xorg_cv_cc_flag_unused_command_line_argument=no 9210fi 9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9212fi 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9216 CFLAGS="$xorg_testset_save_CFLAGS" 9217fi 9218 9219found="no" 9220 9221 if test $found = "no" ; then 9222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9224 fi 9225 9226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9228 fi 9229 9230 CFLAGS="$CFLAGS -Wmissing-braces" 9231 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 9233$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 9234 cacheid=xorg_cv_cc_flag__Wmissing_braces 9235 if eval \${$cacheid+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241int 9242main () 9243{ 9244 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_c_try_link "$LINENO"; then : 9250 eval $cacheid=yes 9251else 9252 eval $cacheid=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext \ 9255 conftest$ac_exeext conftest.$ac_ext 9256fi 9257 9258 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260 9261 eval supported=\$$cacheid 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9263$as_echo "$supported" >&6; } 9264 if test "$supported" = "yes" ; then 9265 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9266 found="yes" 9267 fi 9268 fi 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284xorg_testset_save_CFLAGS="$CFLAGS" 9285 9286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295int i; 9296_ACEOF 9297if ac_fn_c_try_compile "$LINENO"; then : 9298 xorg_cv_cc_flag_unknown_warning_option=yes 9299else 9300 xorg_cv_cc_flag_unknown_warning_option=no 9301fi 9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9303fi 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9307 CFLAGS="$xorg_testset_save_CFLAGS" 9308fi 9309 9310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 fi 9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319else 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9321/* end confdefs.h. */ 9322int i; 9323_ACEOF 9324if ac_fn_c_try_compile "$LINENO"; then : 9325 xorg_cv_cc_flag_unused_command_line_argument=yes 9326else 9327 xorg_cv_cc_flag_unused_command_line_argument=no 9328fi 9329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9330fi 9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335fi 9336 9337found="no" 9338 9339 if test $found = "no" ; then 9340 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 9344 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 fi 9347 9348 CFLAGS="$CFLAGS -Wsequence-point" 9349 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9351$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9352 cacheid=xorg_cv_cc_flag__Wsequence_point 9353 if eval \${$cacheid+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358int i; 9359int 9360main () 9361{ 9362 9363 ; 9364 return 0; 9365} 9366_ACEOF 9367if ac_fn_c_try_link "$LINENO"; then : 9368 eval $cacheid=yes 9369else 9370 eval $cacheid=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext \ 9373 conftest$ac_exeext conftest.$ac_ext 9374fi 9375 9376 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378 9379 eval supported=\$$cacheid 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9381$as_echo "$supported" >&6; } 9382 if test "$supported" = "yes" ; then 9383 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9384 found="yes" 9385 fi 9386 fi 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402xorg_testset_save_CFLAGS="$CFLAGS" 9403 9404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9412/* end confdefs.h. */ 9413int i; 9414_ACEOF 9415if ac_fn_c_try_compile "$LINENO"; then : 9416 xorg_cv_cc_flag_unknown_warning_option=yes 9417else 9418 xorg_cv_cc_flag_unknown_warning_option=no 9419fi 9420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9421fi 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426fi 9427 9428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440int i; 9441_ACEOF 9442if ac_fn_c_try_compile "$LINENO"; then : 9443 xorg_cv_cc_flag_unused_command_line_argument=yes 9444else 9445 xorg_cv_cc_flag_unused_command_line_argument=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9448fi 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9452 CFLAGS="$xorg_testset_save_CFLAGS" 9453fi 9454 9455found="no" 9456 9457 if test $found = "no" ; then 9458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9460 fi 9461 9462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 fi 9465 9466 CFLAGS="$CFLAGS -Wreturn-type" 9467 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9469$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9470 cacheid=xorg_cv_cc_flag__Wreturn_type 9471 if eval \${$cacheid+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473else 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477int 9478main () 9479{ 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO"; then : 9486 eval $cacheid=yes 9487else 9488 eval $cacheid=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext \ 9491 conftest$ac_exeext conftest.$ac_ext 9492fi 9493 9494 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496 9497 eval supported=\$$cacheid 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9499$as_echo "$supported" >&6; } 9500 if test "$supported" = "yes" ; then 9501 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9502 found="yes" 9503 fi 9504 fi 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520xorg_testset_save_CFLAGS="$CFLAGS" 9521 9522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9527 $as_echo_n "(cached) " >&6 9528else 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531int i; 9532_ACEOF 9533if ac_fn_c_try_compile "$LINENO"; then : 9534 xorg_cv_cc_flag_unknown_warning_option=yes 9535else 9536 xorg_cv_cc_flag_unknown_warning_option=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9539fi 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544fi 9545 9546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9549 fi 9550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9554 $as_echo_n "(cached) " >&6 9555else 9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557/* end confdefs.h. */ 9558int i; 9559_ACEOF 9560if ac_fn_c_try_compile "$LINENO"; then : 9561 xorg_cv_cc_flag_unused_command_line_argument=yes 9562else 9563 xorg_cv_cc_flag_unused_command_line_argument=no 9564fi 9565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9566fi 9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9570 CFLAGS="$xorg_testset_save_CFLAGS" 9571fi 9572 9573found="no" 9574 9575 if test $found = "no" ; then 9576 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9578 fi 9579 9580 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 fi 9583 9584 CFLAGS="$CFLAGS -Wtrigraphs" 9585 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9587$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9588 cacheid=xorg_cv_cc_flag__Wtrigraphs 9589 if eval \${$cacheid+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591else 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int i; 9595int 9596main () 9597{ 9598 9599 ; 9600 return 0; 9601} 9602_ACEOF 9603if ac_fn_c_try_link "$LINENO"; then : 9604 eval $cacheid=yes 9605else 9606 eval $cacheid=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext \ 9609 conftest$ac_exeext conftest.$ac_ext 9610fi 9611 9612 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614 9615 eval supported=\$$cacheid 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9617$as_echo "$supported" >&6; } 9618 if test "$supported" = "yes" ; then 9619 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9620 found="yes" 9621 fi 9622 fi 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638xorg_testset_save_CFLAGS="$CFLAGS" 9639 9640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650_ACEOF 9651if ac_fn_c_try_compile "$LINENO"; then : 9652 xorg_cv_cc_flag_unknown_warning_option=yes 9653else 9654 xorg_cv_cc_flag_unknown_warning_option=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9657fi 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662fi 9663 9664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9667 fi 9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676int i; 9677_ACEOF 9678if ac_fn_c_try_compile "$LINENO"; then : 9679 xorg_cv_cc_flag_unused_command_line_argument=yes 9680else 9681 xorg_cv_cc_flag_unused_command_line_argument=no 9682fi 9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9688 CFLAGS="$xorg_testset_save_CFLAGS" 9689fi 9690 9691found="no" 9692 9693 if test $found = "no" ; then 9694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 fi 9697 9698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9700 fi 9701 9702 CFLAGS="$CFLAGS -Warray-bounds" 9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9705$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9706 cacheid=xorg_cv_cc_flag__Warray_bounds 9707 if eval \${$cacheid+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713int 9714main () 9715{ 9716 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO"; then : 9722 eval $cacheid=yes 9723else 9724 eval $cacheid=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext \ 9727 conftest$ac_exeext conftest.$ac_ext 9728fi 9729 9730 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732 9733 eval supported=\$$cacheid 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9735$as_echo "$supported" >&6; } 9736 if test "$supported" = "yes" ; then 9737 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9738 found="yes" 9739 fi 9740 fi 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756xorg_testset_save_CFLAGS="$CFLAGS" 9757 9758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9763 $as_echo_n "(cached) " >&6 9764else 9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767int i; 9768_ACEOF 9769if ac_fn_c_try_compile "$LINENO"; then : 9770 xorg_cv_cc_flag_unknown_warning_option=yes 9771else 9772 xorg_cv_cc_flag_unknown_warning_option=no 9773fi 9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9775fi 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780fi 9781 9782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794int i; 9795_ACEOF 9796if ac_fn_c_try_compile "$LINENO"; then : 9797 xorg_cv_cc_flag_unused_command_line_argument=yes 9798else 9799 xorg_cv_cc_flag_unused_command_line_argument=no 9800fi 9801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9802fi 9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9806 CFLAGS="$xorg_testset_save_CFLAGS" 9807fi 9808 9809found="no" 9810 9811 if test $found = "no" ; then 9812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 fi 9815 9816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9818 fi 9819 9820 CFLAGS="$CFLAGS -Wwrite-strings" 9821 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9823$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9824 cacheid=xorg_cv_cc_flag__Wwrite_strings 9825 if eval \${$cacheid+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830int i; 9831int 9832main () 9833{ 9834 9835 ; 9836 return 0; 9837} 9838_ACEOF 9839if ac_fn_c_try_link "$LINENO"; then : 9840 eval $cacheid=yes 9841else 9842 eval $cacheid=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext \ 9845 conftest$ac_exeext conftest.$ac_ext 9846fi 9847 9848 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850 9851 eval supported=\$$cacheid 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9853$as_echo "$supported" >&6; } 9854 if test "$supported" = "yes" ; then 9855 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9856 found="yes" 9857 fi 9858 fi 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874xorg_testset_save_CFLAGS="$CFLAGS" 9875 9876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9881 $as_echo_n "(cached) " >&6 9882else 9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884/* end confdefs.h. */ 9885int i; 9886_ACEOF 9887if ac_fn_c_try_compile "$LINENO"; then : 9888 xorg_cv_cc_flag_unknown_warning_option=yes 9889else 9890 xorg_cv_cc_flag_unknown_warning_option=no 9891fi 9892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9893fi 9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9897 CFLAGS="$xorg_testset_save_CFLAGS" 9898fi 9899 9900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9903 fi 9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913_ACEOF 9914if ac_fn_c_try_compile "$LINENO"; then : 9915 xorg_cv_cc_flag_unused_command_line_argument=yes 9916else 9917 xorg_cv_cc_flag_unused_command_line_argument=no 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9920fi 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9924 CFLAGS="$xorg_testset_save_CFLAGS" 9925fi 9926 9927found="no" 9928 9929 if test $found = "no" ; then 9930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 9934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9936 fi 9937 9938 CFLAGS="$CFLAGS -Waddress" 9939 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9941$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9942 cacheid=xorg_cv_cc_flag__Waddress 9943 if eval \${$cacheid+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int i; 9949int 9950main () 9951{ 9952 9953 ; 9954 return 0; 9955} 9956_ACEOF 9957if ac_fn_c_try_link "$LINENO"; then : 9958 eval $cacheid=yes 9959else 9960 eval $cacheid=no 9961fi 9962rm -f core conftest.err conftest.$ac_objext \ 9963 conftest$ac_exeext conftest.$ac_ext 9964fi 9965 9966 9967 CFLAGS="$xorg_testset_save_CFLAGS" 9968 9969 eval supported=\$$cacheid 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9971$as_echo "$supported" >&6; } 9972 if test "$supported" = "yes" ; then 9973 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9974 found="yes" 9975 fi 9976 fi 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992xorg_testset_save_CFLAGS="$CFLAGS" 9993 9994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10002/* end confdefs.h. */ 10003int i; 10004_ACEOF 10005if ac_fn_c_try_compile "$LINENO"; then : 10006 xorg_cv_cc_flag_unknown_warning_option=yes 10007else 10008 xorg_cv_cc_flag_unknown_warning_option=no 10009fi 10010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10011fi 10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016fi 10017 10018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030int i; 10031_ACEOF 10032if ac_fn_c_try_compile "$LINENO"; then : 10033 xorg_cv_cc_flag_unused_command_line_argument=yes 10034else 10035 xorg_cv_cc_flag_unused_command_line_argument=no 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10038fi 10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043fi 10044 10045found="no" 10046 10047 if test $found = "no" ; then 10048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10050 fi 10051 10052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 fi 10055 10056 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10057 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 10059$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 10060 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10061 if eval \${$cacheid+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063else 10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10065/* end confdefs.h. */ 10066int i; 10067int 10068main () 10069{ 10070 10071 ; 10072 return 0; 10073} 10074_ACEOF 10075if ac_fn_c_try_link "$LINENO"; then : 10076 eval $cacheid=yes 10077else 10078 eval $cacheid=no 10079fi 10080rm -f core conftest.err conftest.$ac_objext \ 10081 conftest$ac_exeext conftest.$ac_ext 10082fi 10083 10084 10085 CFLAGS="$xorg_testset_save_CFLAGS" 10086 10087 eval supported=\$$cacheid 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10089$as_echo "$supported" >&6; } 10090 if test "$supported" = "yes" ; then 10091 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10092 found="yes" 10093 fi 10094 fi 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110xorg_testset_save_CFLAGS="$CFLAGS" 10111 10112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122_ACEOF 10123if ac_fn_c_try_compile "$LINENO"; then : 10124 xorg_cv_cc_flag_unknown_warning_option=yes 10125else 10126 xorg_cv_cc_flag_unknown_warning_option=no 10127fi 10128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10129fi 10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10133 CFLAGS="$xorg_testset_save_CFLAGS" 10134fi 10135 10136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10139 fi 10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10144 $as_echo_n "(cached) " >&6 10145else 10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10147/* end confdefs.h. */ 10148int i; 10149_ACEOF 10150if ac_fn_c_try_compile "$LINENO"; then : 10151 xorg_cv_cc_flag_unused_command_line_argument=yes 10152else 10153 xorg_cv_cc_flag_unused_command_line_argument=no 10154fi 10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10156fi 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10160 CFLAGS="$xorg_testset_save_CFLAGS" 10161fi 10162 10163found="no" 10164 10165 if test $found = "no" ; then 10166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10168 fi 10169 10170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10172 fi 10173 10174 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10175 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 10177$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 10178 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10179 if eval \${$cacheid+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181else 10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183/* end confdefs.h. */ 10184int i; 10185int 10186main () 10187{ 10188 10189 ; 10190 return 0; 10191} 10192_ACEOF 10193if ac_fn_c_try_link "$LINENO"; then : 10194 eval $cacheid=yes 10195else 10196 eval $cacheid=no 10197fi 10198rm -f core conftest.err conftest.$ac_objext \ 10199 conftest$ac_exeext conftest.$ac_ext 10200fi 10201 10202 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204 10205 eval supported=\$$cacheid 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10207$as_echo "$supported" >&6; } 10208 if test "$supported" = "yes" ; then 10209 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10210 found="yes" 10211 fi 10212 fi 10213 10214 10215fi 10216 10217 10218 10219 10220 10221 10222 10223 CWARNFLAGS="$BASE_CFLAGS" 10224 if test "x$GCC" = xyes ; then 10225 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10226 fi 10227 10228 10229 10230 10231 10232 10233 10234 10235# Check whether --enable-strict-compilation was given. 10236if test "${enable_strict_compilation+set}" = set; then : 10237 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10238else 10239 STRICT_COMPILE=no 10240fi 10241 10242 10243 10244 10245 10246 10247STRICT_CFLAGS="" 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261xorg_testset_save_CFLAGS="$CFLAGS" 10262 10263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272int i; 10273_ACEOF 10274if ac_fn_c_try_compile "$LINENO"; then : 10275 xorg_cv_cc_flag_unknown_warning_option=yes 10276else 10277 xorg_cv_cc_flag_unknown_warning_option=no 10278fi 10279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10280fi 10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10284 CFLAGS="$xorg_testset_save_CFLAGS" 10285fi 10286 10287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10290 fi 10291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299int i; 10300_ACEOF 10301if ac_fn_c_try_compile "$LINENO"; then : 10302 xorg_cv_cc_flag_unused_command_line_argument=yes 10303else 10304 xorg_cv_cc_flag_unused_command_line_argument=no 10305fi 10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10307fi 10308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10311 CFLAGS="$xorg_testset_save_CFLAGS" 10312fi 10313 10314found="no" 10315 10316 if test $found = "no" ; then 10317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10319 fi 10320 10321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10323 fi 10324 10325 CFLAGS="$CFLAGS -pedantic" 10326 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10328$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10329 cacheid=xorg_cv_cc_flag__pedantic 10330 if eval \${$cacheid+:} false; then : 10331 $as_echo_n "(cached) " >&6 10332else 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336int 10337main () 10338{ 10339 10340 ; 10341 return 0; 10342} 10343_ACEOF 10344if ac_fn_c_try_link "$LINENO"; then : 10345 eval $cacheid=yes 10346else 10347 eval $cacheid=no 10348fi 10349rm -f core conftest.err conftest.$ac_objext \ 10350 conftest$ac_exeext conftest.$ac_ext 10351fi 10352 10353 10354 CFLAGS="$xorg_testset_save_CFLAGS" 10355 10356 eval supported=\$$cacheid 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10358$as_echo "$supported" >&6; } 10359 if test "$supported" = "yes" ; then 10360 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10361 found="yes" 10362 fi 10363 fi 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379xorg_testset_save_CFLAGS="$CFLAGS" 10380 10381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390int i; 10391_ACEOF 10392if ac_fn_c_try_compile "$LINENO"; then : 10393 xorg_cv_cc_flag_unknown_warning_option=yes 10394else 10395 xorg_cv_cc_flag_unknown_warning_option=no 10396fi 10397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10398fi 10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403fi 10404 10405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10408 fi 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417int i; 10418_ACEOF 10419if ac_fn_c_try_compile "$LINENO"; then : 10420 xorg_cv_cc_flag_unused_command_line_argument=yes 10421else 10422 xorg_cv_cc_flag_unused_command_line_argument=no 10423fi 10424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10425fi 10426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10429 CFLAGS="$xorg_testset_save_CFLAGS" 10430fi 10431 10432found="no" 10433 10434 if test $found = "no" ; then 10435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10437 fi 10438 10439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10441 fi 10442 10443 CFLAGS="$CFLAGS -Werror" 10444 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10446$as_echo_n "checking if $CC supports-Werror... " >&6; } 10447 cacheid=xorg_cv_cc_flag__Werror 10448 if eval \${$cacheid+:} false; then : 10449 $as_echo_n "(cached) " >&6 10450else 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453int i; 10454int 10455main () 10456{ 10457 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462if ac_fn_c_try_link "$LINENO"; then : 10463 eval $cacheid=yes 10464else 10465 eval $cacheid=no 10466fi 10467rm -f core conftest.err conftest.$ac_objext \ 10468 conftest$ac_exeext conftest.$ac_ext 10469fi 10470 10471 10472 CFLAGS="$xorg_testset_save_CFLAGS" 10473 10474 eval supported=\$$cacheid 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10476$as_echo "$supported" >&6; } 10477 if test "$supported" = "yes" ; then 10478 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10479 found="yes" 10480 fi 10481 fi 10482 10483 if test $found = "no" ; then 10484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10486 fi 10487 10488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10490 fi 10491 10492 CFLAGS="$CFLAGS -errwarn" 10493 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10495$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10496 cacheid=xorg_cv_cc_flag__errwarn 10497 if eval \${$cacheid+:} false; then : 10498 $as_echo_n "(cached) " >&6 10499else 10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10501/* end confdefs.h. */ 10502int i; 10503int 10504main () 10505{ 10506 10507 ; 10508 return 0; 10509} 10510_ACEOF 10511if ac_fn_c_try_link "$LINENO"; then : 10512 eval $cacheid=yes 10513else 10514 eval $cacheid=no 10515fi 10516rm -f core conftest.err conftest.$ac_objext \ 10517 conftest$ac_exeext conftest.$ac_ext 10518fi 10519 10520 10521 CFLAGS="$xorg_testset_save_CFLAGS" 10522 10523 eval supported=\$$cacheid 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10525$as_echo "$supported" >&6; } 10526 if test "$supported" = "yes" ; then 10527 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10528 found="yes" 10529 fi 10530 fi 10531 10532 10533 10534# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10535# activate it with -Werror, so we add it here explicitly. 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549xorg_testset_save_CFLAGS="$CFLAGS" 10550 10551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10556 $as_echo_n "(cached) " >&6 10557else 10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559/* end confdefs.h. */ 10560int i; 10561_ACEOF 10562if ac_fn_c_try_compile "$LINENO"; then : 10563 xorg_cv_cc_flag_unknown_warning_option=yes 10564else 10565 xorg_cv_cc_flag_unknown_warning_option=no 10566fi 10567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10568fi 10569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10572 CFLAGS="$xorg_testset_save_CFLAGS" 10573fi 10574 10575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10578 fi 10579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10583 $as_echo_n "(cached) " >&6 10584else 10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10586/* end confdefs.h. */ 10587int i; 10588_ACEOF 10589if ac_fn_c_try_compile "$LINENO"; then : 10590 xorg_cv_cc_flag_unused_command_line_argument=yes 10591else 10592 xorg_cv_cc_flag_unused_command_line_argument=no 10593fi 10594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10595fi 10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10599 CFLAGS="$xorg_testset_save_CFLAGS" 10600fi 10601 10602found="no" 10603 10604 if test $found = "no" ; then 10605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10607 fi 10608 10609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10611 fi 10612 10613 CFLAGS="$CFLAGS -Werror=attributes" 10614 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10616$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10617 cacheid=xorg_cv_cc_flag__Werror_attributes 10618 if eval \${$cacheid+:} false; then : 10619 $as_echo_n "(cached) " >&6 10620else 10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10622/* end confdefs.h. */ 10623int i; 10624int 10625main () 10626{ 10627 10628 ; 10629 return 0; 10630} 10631_ACEOF 10632if ac_fn_c_try_link "$LINENO"; then : 10633 eval $cacheid=yes 10634else 10635 eval $cacheid=no 10636fi 10637rm -f core conftest.err conftest.$ac_objext \ 10638 conftest$ac_exeext conftest.$ac_ext 10639fi 10640 10641 10642 CFLAGS="$xorg_testset_save_CFLAGS" 10643 10644 eval supported=\$$cacheid 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10646$as_echo "$supported" >&6; } 10647 if test "$supported" = "yes" ; then 10648 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10649 found="yes" 10650 fi 10651 fi 10652 10653 10654 10655if test "x$STRICT_COMPILE" = "xyes"; then 10656 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10657 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10658fi 10659 10660 10661 10662 10663 10664 10665cat >>confdefs.h <<_ACEOF 10666#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10667_ACEOF 10668 10669 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10670 if test "x$PVM" = "x"; then 10671 PVM="0" 10672 fi 10673 10674cat >>confdefs.h <<_ACEOF 10675#define PACKAGE_VERSION_MINOR $PVM 10676_ACEOF 10677 10678 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10679 if test "x$PVP" = "x"; then 10680 PVP="0" 10681 fi 10682 10683cat >>confdefs.h <<_ACEOF 10684#define PACKAGE_VERSION_PATCHLEVEL $PVP 10685_ACEOF 10686 10687 10688 10689CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10690mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10691|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10692echo 'git directory not found: installing possibly empty changelog.' >&2)" 10693 10694 10695 10696 10697macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10698INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10699mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10700|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10701echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10702 10703 10704 10705 10706 10707 10708if test x$APP_MAN_SUFFIX = x ; then 10709 APP_MAN_SUFFIX=1 10710fi 10711if test x$APP_MAN_DIR = x ; then 10712 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10713fi 10714 10715if test x$LIB_MAN_SUFFIX = x ; then 10716 LIB_MAN_SUFFIX=3 10717fi 10718if test x$LIB_MAN_DIR = x ; then 10719 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10720fi 10721 10722if test x$FILE_MAN_SUFFIX = x ; then 10723 case $host_os in 10724 solaris*) FILE_MAN_SUFFIX=4 ;; 10725 *) FILE_MAN_SUFFIX=5 ;; 10726 esac 10727fi 10728if test x$FILE_MAN_DIR = x ; then 10729 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10730fi 10731 10732if test x$MISC_MAN_SUFFIX = x ; then 10733 case $host_os in 10734 solaris*) MISC_MAN_SUFFIX=5 ;; 10735 *) MISC_MAN_SUFFIX=7 ;; 10736 esac 10737fi 10738if test x$MISC_MAN_DIR = x ; then 10739 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10740fi 10741 10742if test x$DRIVER_MAN_SUFFIX = x ; then 10743 case $host_os in 10744 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10745 *) DRIVER_MAN_SUFFIX=4 ;; 10746 esac 10747fi 10748if test x$DRIVER_MAN_DIR = x ; then 10749 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10750fi 10751 10752if test x$ADMIN_MAN_SUFFIX = x ; then 10753 case $host_os in 10754 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10755 *) ADMIN_MAN_SUFFIX=8 ;; 10756 esac 10757fi 10758if test x$ADMIN_MAN_DIR = x ; then 10759 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10760fi 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776XORG_MAN_PAGE="X Version 11" 10777 10778MAN_SUBSTS="\ 10779 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10780 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10781 -e 's|__xservername__|Xorg|g' \ 10782 -e 's|__xconfigfile__|xorg.conf|g' \ 10783 -e 's|__projectroot__|\$(prefix)|g' \ 10784 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10785 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10786 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10787 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10788 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10789 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10790 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10791 10792 10793 10794# Check whether --enable-silent-rules was given. 10795if test "${enable_silent_rules+set}" = set; then : 10796 enableval=$enable_silent_rules; 10797fi 10798 10799case $enable_silent_rules in # ((( 10800 yes) AM_DEFAULT_VERBOSITY=0;; 10801 no) AM_DEFAULT_VERBOSITY=1;; 10802 *) AM_DEFAULT_VERBOSITY=0;; 10803esac 10804am_make=${MAKE-make} 10805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10806$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10807if ${am_cv_make_support_nested_variables+:} false; then : 10808 $as_echo_n "(cached) " >&6 10809else 10810 if $as_echo 'TRUE=$(BAR$(V)) 10811BAR0=false 10812BAR1=true 10813V=1 10814am__doit: 10815 @$(TRUE) 10816.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10817 am_cv_make_support_nested_variables=yes 10818else 10819 am_cv_make_support_nested_variables=no 10820fi 10821fi 10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10823$as_echo "$am_cv_make_support_nested_variables" >&6; } 10824if test $am_cv_make_support_nested_variables = yes; then 10825 AM_V='$(V)' 10826 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10827else 10828 AM_V=$AM_DEFAULT_VERBOSITY 10829 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10830fi 10831AM_BACKSLASH='\' 10832 10833 10834 10835for ac_header in net/errno.h 10836do : 10837 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 10838if test "x$ac_cv_header_net_errno_h" = xyes; then : 10839 cat >>confdefs.h <<_ACEOF 10840#define HAVE_NET_ERRNO_H 1 10841_ACEOF 10842 10843fi 10844 10845done 10846 10847 10848for ac_func in strlcpy 10849do : 10850 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 10851if test "x$ac_cv_func_strlcpy" = xyes; then : 10852 cat >>confdefs.h <<_ACEOF 10853#define HAVE_STRLCPY 1 10854_ACEOF 10855 10856fi 10857done 10858 10859 10860# Checks for pkg-config packages 10861 10862pkg_failed=no 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 10864$as_echo_n "checking for XAUTH... " >&6; } 10865 10866if test -n "$XAUTH_CFLAGS"; then 10867 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 10868 elif test -n "$PKG_CONFIG"; then 10869 if test -n "$PKG_CONFIG" && \ 10870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 10871 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 10872 ac_status=$? 10873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10874 test $ac_status = 0; }; then 10875 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 10876 test "x$?" != "x0" && pkg_failed=yes 10877else 10878 pkg_failed=yes 10879fi 10880 else 10881 pkg_failed=untried 10882fi 10883if test -n "$XAUTH_LIBS"; then 10884 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 10885 elif test -n "$PKG_CONFIG"; then 10886 if test -n "$PKG_CONFIG" && \ 10887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 10888 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 10889 ac_status=$? 10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10891 test $ac_status = 0; }; then 10892 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 10893 test "x$?" != "x0" && pkg_failed=yes 10894else 10895 pkg_failed=yes 10896fi 10897 else 10898 pkg_failed=untried 10899fi 10900 10901 10902 10903if test $pkg_failed = yes; then 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10905$as_echo "no" >&6; } 10906 10907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10908 _pkg_short_errors_supported=yes 10909else 10910 _pkg_short_errors_supported=no 10911fi 10912 if test $_pkg_short_errors_supported = yes; then 10913 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 10914 else 10915 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 10916 fi 10917 # Put the nasty error message in config.log where it belongs 10918 echo "$XAUTH_PKG_ERRORS" >&5 10919 10920 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met: 10921 10922$XAUTH_PKG_ERRORS 10923 10924Consider adjusting the PKG_CONFIG_PATH environment variable if you 10925installed software in a non-standard prefix. 10926 10927Alternatively, you may set the environment variables XAUTH_CFLAGS 10928and XAUTH_LIBS to avoid the need to call pkg-config. 10929See the pkg-config man page for more details." "$LINENO" 5 10930elif test $pkg_failed = untried; then 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10932$as_echo "no" >&6; } 10933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10935as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10936is in your PATH or set the PKG_CONFIG environment variable to the full 10937path to pkg-config. 10938 10939Alternatively, you may set the environment variables XAUTH_CFLAGS 10940and XAUTH_LIBS to avoid the need to call pkg-config. 10941See the pkg-config man page for more details. 10942 10943To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10944See \`config.log' for more details" "$LINENO" 5; } 10945else 10946 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 10947 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10949$as_echo "yes" >&6; } 10950 10951fi 10952 10953# Transport selection macro from xtrans.m4 10954# Needed to set *CONN defines for gethost.c & parsedpy.c 10955 10956 10957 case $host_os in 10958 mingw*) unixdef="no" ;; 10959 *) unixdef="yes" ;; 10960 esac 10961 # Check whether --enable-unix-transport was given. 10962if test "${enable_unix_transport+set}" = set; then : 10963 enableval=$enable_unix_transport; UNIXCONN=$enableval 10964else 10965 UNIXCONN=$unixdef 10966fi 10967 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 10969$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 10970 if test "$UNIXCONN" = "yes"; then 10971 10972$as_echo "#define UNIXCONN 1" >>confdefs.h 10973 10974 fi 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 10976$as_echo "$UNIXCONN" >&6; } 10977 # Check whether --enable-tcp-transport was given. 10978if test "${enable_tcp_transport+set}" = set; then : 10979 enableval=$enable_tcp_transport; TCPCONN=$enableval 10980else 10981 TCPCONN=yes 10982fi 10983 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 10985$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 10987$as_echo "$TCPCONN" >&6; } 10988 if test "$TCPCONN" = "yes"; then 10989 10990$as_echo "#define TCPCONN 1" >>confdefs.h 10991 10992 10993 # SVR4 hides these in libraries other than libc 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 10995$as_echo_n "checking for library containing socket... " >&6; } 10996if ${ac_cv_search_socket+:} false; then : 10997 $as_echo_n "(cached) " >&6 10998else 10999 ac_func_search_save_LIBS=$LIBS 11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003/* Override any GCC internal prototype to avoid an error. 11004 Use char because int might match the return type of a GCC 11005 builtin and then its argument prototype would still apply. */ 11006#ifdef __cplusplus 11007extern "C" 11008#endif 11009char socket (); 11010int 11011main () 11012{ 11013return socket (); 11014 ; 11015 return 0; 11016} 11017_ACEOF 11018for ac_lib in '' socket; do 11019 if test -z "$ac_lib"; then 11020 ac_res="none required" 11021 else 11022 ac_res=-l$ac_lib 11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11024 fi 11025 if ac_fn_c_try_link "$LINENO"; then : 11026 ac_cv_search_socket=$ac_res 11027fi 11028rm -f core conftest.err conftest.$ac_objext \ 11029 conftest$ac_exeext 11030 if ${ac_cv_search_socket+:} false; then : 11031 break 11032fi 11033done 11034if ${ac_cv_search_socket+:} false; then : 11035 11036else 11037 ac_cv_search_socket=no 11038fi 11039rm conftest.$ac_ext 11040LIBS=$ac_func_search_save_LIBS 11041fi 11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 11043$as_echo "$ac_cv_search_socket" >&6; } 11044ac_res=$ac_cv_search_socket 11045if test "$ac_res" != no; then : 11046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11047 11048fi 11049 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 11051$as_echo_n "checking for library containing gethostbyname... " >&6; } 11052if ${ac_cv_search_gethostbyname+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054else 11055 ac_func_search_save_LIBS=$LIBS 11056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058 11059/* Override any GCC internal prototype to avoid an error. 11060 Use char because int might match the return type of a GCC 11061 builtin and then its argument prototype would still apply. */ 11062#ifdef __cplusplus 11063extern "C" 11064#endif 11065char gethostbyname (); 11066int 11067main () 11068{ 11069return gethostbyname (); 11070 ; 11071 return 0; 11072} 11073_ACEOF 11074for ac_lib in '' nsl; do 11075 if test -z "$ac_lib"; then 11076 ac_res="none required" 11077 else 11078 ac_res=-l$ac_lib 11079 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11080 fi 11081 if ac_fn_c_try_link "$LINENO"; then : 11082 ac_cv_search_gethostbyname=$ac_res 11083fi 11084rm -f core conftest.err conftest.$ac_objext \ 11085 conftest$ac_exeext 11086 if ${ac_cv_search_gethostbyname+:} false; then : 11087 break 11088fi 11089done 11090if ${ac_cv_search_gethostbyname+:} false; then : 11091 11092else 11093 ac_cv_search_gethostbyname=no 11094fi 11095rm conftest.$ac_ext 11096LIBS=$ac_func_search_save_LIBS 11097fi 11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 11099$as_echo "$ac_cv_search_gethostbyname" >&6; } 11100ac_res=$ac_cv_search_gethostbyname 11101if test "$ac_res" != no; then : 11102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11103 11104fi 11105 11106 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 11108$as_echo_n "checking for main in -lws2_32... " >&6; } 11109if ${ac_cv_lib_ws2_32_main+:} false; then : 11110 $as_echo_n "(cached) " >&6 11111else 11112 ac_check_lib_save_LIBS=$LIBS 11113LIBS="-lws2_32 $LIBS" 11114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11115/* end confdefs.h. */ 11116 11117 11118int 11119main () 11120{ 11121return main (); 11122 ; 11123 return 0; 11124} 11125_ACEOF 11126if ac_fn_c_try_link "$LINENO"; then : 11127 ac_cv_lib_ws2_32_main=yes 11128else 11129 ac_cv_lib_ws2_32_main=no 11130fi 11131rm -f core conftest.err conftest.$ac_objext \ 11132 conftest$ac_exeext conftest.$ac_ext 11133LIBS=$ac_check_lib_save_LIBS 11134fi 11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 11136$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 11137if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 11138 cat >>confdefs.h <<_ACEOF 11139#define HAVE_LIBWS2_32 1 11140_ACEOF 11141 11142 LIBS="-lws2_32 $LIBS" 11143 11144fi 11145 11146 fi 11147 11148 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 11149 # Check whether --enable-ipv6 was given. 11150if test "${enable_ipv6+set}" = set; then : 11151 enableval=$enable_ipv6; IPV6CONN=$enableval 11152else 11153 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 11154if test "x$ac_cv_func_getaddrinfo" = xyes; then : 11155 IPV6CONN=yes 11156else 11157 IPV6CONN=no 11158fi 11159 11160fi 11161 11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 11163$as_echo_n "checking if IPv6 support should be built... " >&6; } 11164 if test "$IPV6CONN" = "yes"; then 11165 11166$as_echo "#define IPv6 1" >>confdefs.h 11167 11168 fi 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 11170$as_echo "$IPV6CONN" >&6; } 11171 11172 # 4.3BSD-Reno added a new member to struct sockaddr_in 11173 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 11174#include <sys/types.h> 11175#include <sys/socket.h> 11176#include <netinet/in.h> 11177 11178" 11179if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 11180 11181$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 11182 11183fi 11184 11185 11186 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 11187 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 11188$ac_includes_default 11189#include <sys/socket.h> 11190" 11191if test "x$ac_cv_type_socklen_t" = xyes; then : 11192 11193cat >>confdefs.h <<_ACEOF 11194#define HAVE_SOCKLEN_T 1 11195_ACEOF 11196 11197 11198fi 11199 11200 11201 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 11202 # _XOPEN_SOURCE to get it (such as on Solaris) 11203 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 11204$ac_includes_default 11205#include <sys/socket.h> 11206 11207" 11208if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 11209 11210fi 11211 11212 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 11213 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 11214 unset ac_cv_member_struct_msghdr_msg_control 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 11216$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 11217 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 11218#define _XOPEN_SOURCE 600 11219$ac_includes_default 11220#include <sys/socket.h> 11221 11222" 11223if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 11224 11225$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 11226 11227 11228fi 11229 11230 fi 11231 # If that didn't work, fall back to XPG5/UNIX98 with C89 11232 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 11233 unset ac_cv_member_struct_msghdr_msg_control 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 11235$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 11236 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 11237#define _XOPEN_SOURCE 500 11238$ac_includes_default 11239#include <sys/socket.h> 11240 11241" 11242if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 11243 11244$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 11245 11246 11247fi 11248 11249 fi 11250 11251 11252 11253 fi 11254 case $host_os in 11255 solaris*|sco*|sysv4*) localdef="yes" ;; 11256 *) localdef="no" ;; 11257 esac 11258 # Check whether --enable-local-transport was given. 11259if test "${enable_local_transport+set}" = set; then : 11260 enableval=$enable_local_transport; LOCALCONN=$enableval 11261else 11262 LOCALCONN=$localdef 11263fi 11264 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 11266$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 11268$as_echo "$LOCALCONN" >&6; } 11269 if test "$LOCALCONN" = "yes"; then 11270 11271$as_echo "#define LOCALCONN 1" >>confdefs.h 11272 11273 fi 11274 11275 11276 11277 11278 11279 11280 11281 11282# Check whether --with-lint was given. 11283if test "${with_lint+set}" = set; then : 11284 withval=$with_lint; use_lint=$withval 11285else 11286 use_lint=no 11287fi 11288 11289 11290# Obtain platform specific info like program name and options 11291# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11292case $host_os in 11293 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11294 lint_name=splint 11295 lint_options="-badflag" 11296 ;; 11297 *freebsd* | *netbsd*) 11298 lint_name=lint 11299 lint_options="-u -b" 11300 ;; 11301 *solaris*) 11302 lint_name=lint 11303 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11304 ;; 11305esac 11306 11307# Test for the presence of the program (either guessed by the code or spelled out by the user) 11308if test "x$use_lint" = x"yes" ; then 11309 # Extract the first word of "$lint_name", so it can be a program name with args. 11310set dummy $lint_name; ac_word=$2 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11312$as_echo_n "checking for $ac_word... " >&6; } 11313if ${ac_cv_path_LINT+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315else 11316 case $LINT in 11317 [\\/]* | ?:[\\/]*) 11318 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11319 ;; 11320 *) 11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11322for as_dir in $PATH 11323do 11324 IFS=$as_save_IFS 11325 test -z "$as_dir" && as_dir=. 11326 for ac_exec_ext in '' $ac_executable_extensions; do 11327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11328 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11330 break 2 11331 fi 11332done 11333 done 11334IFS=$as_save_IFS 11335 11336 ;; 11337esac 11338fi 11339LINT=$ac_cv_path_LINT 11340if test -n "$LINT"; then 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11342$as_echo "$LINT" >&6; } 11343else 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11345$as_echo "no" >&6; } 11346fi 11347 11348 11349 if test "x$LINT" = "x"; then 11350 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11351 fi 11352elif test "x$use_lint" = x"no" ; then 11353 if test "x$LINT" != "x"; then 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11355$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11356 fi 11357else 11358 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11359fi 11360 11361# User supplied flags override default flags 11362if test "x$LINT_FLAGS" != "x"; then 11363 lint_options=$LINT_FLAGS 11364fi 11365 11366LINT_FLAGS=$lint_options 11367 11368 if test "x$LINT" != x; then 11369 LINT_TRUE= 11370 LINT_FALSE='#' 11371else 11372 LINT_TRUE='#' 11373 LINT_FALSE= 11374fi 11375 11376 11377 11378 11379ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile" 11380 11381cat >confcache <<\_ACEOF 11382# This file is a shell script that caches the results of configure 11383# tests run on this system so they can be shared between configure 11384# scripts and configure runs, see configure's option --config-cache. 11385# It is not useful on other systems. If it contains results you don't 11386# want to keep, you may remove or edit it. 11387# 11388# config.status only pays attention to the cache file if you give it 11389# the --recheck option to rerun configure. 11390# 11391# `ac_cv_env_foo' variables (set or unset) will be overridden when 11392# loading this file, other *unset* `ac_cv_foo' will be assigned the 11393# following values. 11394 11395_ACEOF 11396 11397# The following way of writing the cache mishandles newlines in values, 11398# but we know of no workaround that is simple, portable, and efficient. 11399# So, we kill variables containing newlines. 11400# Ultrix sh set writes to stderr and can't be redirected directly, 11401# and sets the high bit in the cache file unless we assign to the vars. 11402( 11403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11404 eval ac_val=\$$ac_var 11405 case $ac_val in #( 11406 *${as_nl}*) 11407 case $ac_var in #( 11408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11410 esac 11411 case $ac_var in #( 11412 _ | IFS | as_nl) ;; #( 11413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11414 *) { eval $ac_var=; unset $ac_var;} ;; 11415 esac ;; 11416 esac 11417 done 11418 11419 (set) 2>&1 | 11420 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11421 *${as_nl}ac_space=\ *) 11422 # `set' does not quote correctly, so add quotes: double-quote 11423 # substitution turns \\\\ into \\, and sed turns \\ into \. 11424 sed -n \ 11425 "s/'/'\\\\''/g; 11426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11427 ;; #( 11428 *) 11429 # `set' quotes correctly as required by POSIX, so do not add quotes. 11430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11431 ;; 11432 esac | 11433 sort 11434) | 11435 sed ' 11436 /^ac_cv_env_/b end 11437 t clear 11438 :clear 11439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11440 t end 11441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11442 :end' >>confcache 11443if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11444 if test -w "$cache_file"; then 11445 if test "x$cache_file" != "x/dev/null"; then 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11447$as_echo "$as_me: updating cache $cache_file" >&6;} 11448 if test ! -f "$cache_file" || test -h "$cache_file"; then 11449 cat confcache >"$cache_file" 11450 else 11451 case $cache_file in #( 11452 */* | ?:*) 11453 mv -f confcache "$cache_file"$$ && 11454 mv -f "$cache_file"$$ "$cache_file" ;; #( 11455 *) 11456 mv -f confcache "$cache_file" ;; 11457 esac 11458 fi 11459 fi 11460 else 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11462$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11463 fi 11464fi 11465rm -f confcache 11466 11467test "x$prefix" = xNONE && prefix=$ac_default_prefix 11468# Let make expand exec_prefix. 11469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11470 11471DEFS=-DHAVE_CONFIG_H 11472 11473ac_libobjs= 11474ac_ltlibobjs= 11475U= 11476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11477 # 1. Remove the extension, and $U if already installed. 11478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11481 # will be set to the directory where LIBOBJS objects are built. 11482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11484done 11485LIBOBJS=$ac_libobjs 11486 11487LTLIBOBJS=$ac_ltlibobjs 11488 11489 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11491$as_echo_n "checking that generated files are newer than configure... " >&6; } 11492 if test -n "$am_sleep_pid"; then 11493 # Hide warnings about reused PIDs. 11494 wait $am_sleep_pid 2>/dev/null 11495 fi 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11497$as_echo "done" >&6; } 11498 if test -n "$EXEEXT"; then 11499 am__EXEEXT_TRUE= 11500 am__EXEEXT_FALSE='#' 11501else 11502 am__EXEEXT_TRUE='#' 11503 am__EXEEXT_FALSE= 11504fi 11505 11506if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11507 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11508Usually this means the macro was only invoked conditionally." "$LINENO" 5 11509fi 11510if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11511 as_fn_error $? "conditional \"AMDEP\" was never defined. 11512Usually this means the macro was only invoked conditionally." "$LINENO" 5 11513fi 11514if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11515 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11516Usually this means the macro was only invoked conditionally." "$LINENO" 5 11517fi 11518if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11519 as_fn_error $? "conditional \"LINT\" was never defined. 11520Usually this means the macro was only invoked conditionally." "$LINENO" 5 11521fi 11522 11523: "${CONFIG_STATUS=./config.status}" 11524ac_write_fail=0 11525ac_clean_files_save=$ac_clean_files 11526ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11528$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11529as_write_fail=0 11530cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11531#! $SHELL 11532# Generated by $as_me. 11533# Run this file to recreate the current configuration. 11534# Compiler output produced by configure, useful for debugging 11535# configure, is in config.log if it exists. 11536 11537debug=false 11538ac_cs_recheck=false 11539ac_cs_silent=false 11540 11541SHELL=\${CONFIG_SHELL-$SHELL} 11542export SHELL 11543_ASEOF 11544cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11545## -------------------- ## 11546## M4sh Initialization. ## 11547## -------------------- ## 11548 11549# Be more Bourne compatible 11550DUALCASE=1; export DUALCASE # for MKS sh 11551if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11552 emulate sh 11553 NULLCMD=: 11554 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11555 # is contrary to our usage. Disable this feature. 11556 alias -g '${1+"$@"}'='"$@"' 11557 setopt NO_GLOB_SUBST 11558else 11559 case `(set -o) 2>/dev/null` in #( 11560 *posix*) : 11561 set -o posix ;; #( 11562 *) : 11563 ;; 11564esac 11565fi 11566 11567 11568as_nl=' 11569' 11570export as_nl 11571# Printing a long string crashes Solaris 7 /usr/bin/printf. 11572as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11573as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11574as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11575# Prefer a ksh shell builtin over an external printf program on Solaris, 11576# but without wasting forks for bash or zsh. 11577if test -z "$BASH_VERSION$ZSH_VERSION" \ 11578 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11579 as_echo='print -r --' 11580 as_echo_n='print -rn --' 11581elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11582 as_echo='printf %s\n' 11583 as_echo_n='printf %s' 11584else 11585 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11586 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11587 as_echo_n='/usr/ucb/echo -n' 11588 else 11589 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11590 as_echo_n_body='eval 11591 arg=$1; 11592 case $arg in #( 11593 *"$as_nl"*) 11594 expr "X$arg" : "X\\(.*\\)$as_nl"; 11595 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11596 esac; 11597 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11598 ' 11599 export as_echo_n_body 11600 as_echo_n='sh -c $as_echo_n_body as_echo' 11601 fi 11602 export as_echo_body 11603 as_echo='sh -c $as_echo_body as_echo' 11604fi 11605 11606# The user is always right. 11607if test "${PATH_SEPARATOR+set}" != set; then 11608 PATH_SEPARATOR=: 11609 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11610 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11611 PATH_SEPARATOR=';' 11612 } 11613fi 11614 11615 11616# IFS 11617# We need space, tab and new line, in precisely that order. Quoting is 11618# there to prevent editors from complaining about space-tab. 11619# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11620# splitting by setting IFS to empty value.) 11621IFS=" "" $as_nl" 11622 11623# Find who we are. Look in the path if we contain no directory separator. 11624as_myself= 11625case $0 in #(( 11626 *[\\/]* ) as_myself=$0 ;; 11627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11628for as_dir in $PATH 11629do 11630 IFS=$as_save_IFS 11631 test -z "$as_dir" && as_dir=. 11632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11633 done 11634IFS=$as_save_IFS 11635 11636 ;; 11637esac 11638# We did not find ourselves, most probably we were run as `sh COMMAND' 11639# in which case we are not to be found in the path. 11640if test "x$as_myself" = x; then 11641 as_myself=$0 11642fi 11643if test ! -f "$as_myself"; then 11644 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11645 exit 1 11646fi 11647 11648# Unset variables that we do not need and which cause bugs (e.g. in 11649# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11650# suppresses any "Segmentation fault" message there. '((' could 11651# trigger a bug in pdksh 5.2.14. 11652for as_var in BASH_ENV ENV MAIL MAILPATH 11653do eval test x\${$as_var+set} = xset \ 11654 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11655done 11656PS1='$ ' 11657PS2='> ' 11658PS4='+ ' 11659 11660# NLS nuisances. 11661LC_ALL=C 11662export LC_ALL 11663LANGUAGE=C 11664export LANGUAGE 11665 11666# CDPATH. 11667(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11668 11669 11670# as_fn_error STATUS ERROR [LINENO LOG_FD] 11671# ---------------------------------------- 11672# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11673# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11674# script with STATUS, using 1 if that was 0. 11675as_fn_error () 11676{ 11677 as_status=$1; test $as_status -eq 0 && as_status=1 11678 if test "$4"; then 11679 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11680 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11681 fi 11682 $as_echo "$as_me: error: $2" >&2 11683 as_fn_exit $as_status 11684} # as_fn_error 11685 11686 11687# as_fn_set_status STATUS 11688# ----------------------- 11689# Set $? to STATUS, without forking. 11690as_fn_set_status () 11691{ 11692 return $1 11693} # as_fn_set_status 11694 11695# as_fn_exit STATUS 11696# ----------------- 11697# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11698as_fn_exit () 11699{ 11700 set +e 11701 as_fn_set_status $1 11702 exit $1 11703} # as_fn_exit 11704 11705# as_fn_unset VAR 11706# --------------- 11707# Portably unset VAR. 11708as_fn_unset () 11709{ 11710 { eval $1=; unset $1;} 11711} 11712as_unset=as_fn_unset 11713# as_fn_append VAR VALUE 11714# ---------------------- 11715# Append the text in VALUE to the end of the definition contained in VAR. Take 11716# advantage of any shell optimizations that allow amortized linear growth over 11717# repeated appends, instead of the typical quadratic growth present in naive 11718# implementations. 11719if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11720 eval 'as_fn_append () 11721 { 11722 eval $1+=\$2 11723 }' 11724else 11725 as_fn_append () 11726 { 11727 eval $1=\$$1\$2 11728 } 11729fi # as_fn_append 11730 11731# as_fn_arith ARG... 11732# ------------------ 11733# Perform arithmetic evaluation on the ARGs, and store the result in the 11734# global $as_val. Take advantage of shells that can avoid forks. The arguments 11735# must be portable across $(()) and expr. 11736if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11737 eval 'as_fn_arith () 11738 { 11739 as_val=$(( $* )) 11740 }' 11741else 11742 as_fn_arith () 11743 { 11744 as_val=`expr "$@" || test $? -eq 1` 11745 } 11746fi # as_fn_arith 11747 11748 11749if expr a : '\(a\)' >/dev/null 2>&1 && 11750 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11751 as_expr=expr 11752else 11753 as_expr=false 11754fi 11755 11756if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11757 as_basename=basename 11758else 11759 as_basename=false 11760fi 11761 11762if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11763 as_dirname=dirname 11764else 11765 as_dirname=false 11766fi 11767 11768as_me=`$as_basename -- "$0" || 11769$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11770 X"$0" : 'X\(//\)$' \| \ 11771 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11772$as_echo X/"$0" | 11773 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11774 s//\1/ 11775 q 11776 } 11777 /^X\/\(\/\/\)$/{ 11778 s//\1/ 11779 q 11780 } 11781 /^X\/\(\/\).*/{ 11782 s//\1/ 11783 q 11784 } 11785 s/.*/./; q'` 11786 11787# Avoid depending upon Character Ranges. 11788as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11789as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11790as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11791as_cr_digits='0123456789' 11792as_cr_alnum=$as_cr_Letters$as_cr_digits 11793 11794ECHO_C= ECHO_N= ECHO_T= 11795case `echo -n x` in #((((( 11796-n*) 11797 case `echo 'xy\c'` in 11798 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11799 xy) ECHO_C='\c';; 11800 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11801 ECHO_T=' ';; 11802 esac;; 11803*) 11804 ECHO_N='-n';; 11805esac 11806 11807rm -f conf$$ conf$$.exe conf$$.file 11808if test -d conf$$.dir; then 11809 rm -f conf$$.dir/conf$$.file 11810else 11811 rm -f conf$$.dir 11812 mkdir conf$$.dir 2>/dev/null 11813fi 11814if (echo >conf$$.file) 2>/dev/null; then 11815 if ln -s conf$$.file conf$$ 2>/dev/null; then 11816 as_ln_s='ln -s' 11817 # ... but there are two gotchas: 11818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11820 # In both cases, we have to default to `cp -pR'. 11821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11822 as_ln_s='cp -pR' 11823 elif ln conf$$.file conf$$ 2>/dev/null; then 11824 as_ln_s=ln 11825 else 11826 as_ln_s='cp -pR' 11827 fi 11828else 11829 as_ln_s='cp -pR' 11830fi 11831rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11832rmdir conf$$.dir 2>/dev/null 11833 11834 11835# as_fn_mkdir_p 11836# ------------- 11837# Create "$as_dir" as a directory, including parents if necessary. 11838as_fn_mkdir_p () 11839{ 11840 11841 case $as_dir in #( 11842 -*) as_dir=./$as_dir;; 11843 esac 11844 test -d "$as_dir" || eval $as_mkdir_p || { 11845 as_dirs= 11846 while :; do 11847 case $as_dir in #( 11848 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11849 *) as_qdir=$as_dir;; 11850 esac 11851 as_dirs="'$as_qdir' $as_dirs" 11852 as_dir=`$as_dirname -- "$as_dir" || 11853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11854 X"$as_dir" : 'X\(//\)[^/]' \| \ 11855 X"$as_dir" : 'X\(//\)$' \| \ 11856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11857$as_echo X"$as_dir" | 11858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11859 s//\1/ 11860 q 11861 } 11862 /^X\(\/\/\)[^/].*/{ 11863 s//\1/ 11864 q 11865 } 11866 /^X\(\/\/\)$/{ 11867 s//\1/ 11868 q 11869 } 11870 /^X\(\/\).*/{ 11871 s//\1/ 11872 q 11873 } 11874 s/.*/./; q'` 11875 test -d "$as_dir" && break 11876 done 11877 test -z "$as_dirs" || eval "mkdir $as_dirs" 11878 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11879 11880 11881} # as_fn_mkdir_p 11882if mkdir -p . 2>/dev/null; then 11883 as_mkdir_p='mkdir -p "$as_dir"' 11884else 11885 test -d ./-p && rmdir ./-p 11886 as_mkdir_p=false 11887fi 11888 11889 11890# as_fn_executable_p FILE 11891# ----------------------- 11892# Test if FILE is an executable regular file. 11893as_fn_executable_p () 11894{ 11895 test -f "$1" && test -x "$1" 11896} # as_fn_executable_p 11897as_test_x='test -x' 11898as_executable_p=as_fn_executable_p 11899 11900# Sed expression to map a string onto a valid CPP name. 11901as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11902 11903# Sed expression to map a string onto a valid variable name. 11904as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11905 11906 11907exec 6>&1 11908## ----------------------------------- ## 11909## Main body of $CONFIG_STATUS script. ## 11910## ----------------------------------- ## 11911_ASEOF 11912test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11913 11914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11915# Save the log message, to keep $0 and so on meaningful, and to 11916# report actual input values of CONFIG_FILES etc. instead of their 11917# values after options handling. 11918ac_log=" 11919This file was extended by xauth $as_me 1.0.9, which was 11920generated by GNU Autoconf 2.69. Invocation command line was 11921 11922 CONFIG_FILES = $CONFIG_FILES 11923 CONFIG_HEADERS = $CONFIG_HEADERS 11924 CONFIG_LINKS = $CONFIG_LINKS 11925 CONFIG_COMMANDS = $CONFIG_COMMANDS 11926 $ $0 $@ 11927 11928on `(hostname || uname -n) 2>/dev/null | sed 1q` 11929" 11930 11931_ACEOF 11932 11933case $ac_config_files in *" 11934"*) set x $ac_config_files; shift; ac_config_files=$*;; 11935esac 11936 11937case $ac_config_headers in *" 11938"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11939esac 11940 11941 11942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11943# Files that config.status was made for. 11944config_files="$ac_config_files" 11945config_headers="$ac_config_headers" 11946config_commands="$ac_config_commands" 11947 11948_ACEOF 11949 11950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11951ac_cs_usage="\ 11952\`$as_me' instantiates files and other configuration actions 11953from templates according to the current configuration. Unless the files 11954and actions are specified as TAGs, all are instantiated by default. 11955 11956Usage: $0 [OPTION]... [TAG]... 11957 11958 -h, --help print this help, then exit 11959 -V, --version print version number and configuration settings, then exit 11960 --config print configuration, then exit 11961 -q, --quiet, --silent 11962 do not print progress messages 11963 -d, --debug don't remove temporary files 11964 --recheck update $as_me by reconfiguring in the same conditions 11965 --file=FILE[:TEMPLATE] 11966 instantiate the configuration file FILE 11967 --header=FILE[:TEMPLATE] 11968 instantiate the configuration header FILE 11969 11970Configuration files: 11971$config_files 11972 11973Configuration headers: 11974$config_headers 11975 11976Configuration commands: 11977$config_commands 11978 11979Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11980 11981_ACEOF 11982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11983ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11984ac_cs_version="\\ 11985xauth config.status 1.0.9 11986configured by $0, generated by GNU Autoconf 2.69, 11987 with options \\"\$ac_cs_config\\" 11988 11989Copyright (C) 2012 Free Software Foundation, Inc. 11990This config.status script is free software; the Free Software Foundation 11991gives unlimited permission to copy, distribute and modify it." 11992 11993ac_pwd='$ac_pwd' 11994srcdir='$srcdir' 11995INSTALL='$INSTALL' 11996MKDIR_P='$MKDIR_P' 11997AWK='$AWK' 11998test -n "\$AWK" || AWK=awk 11999_ACEOF 12000 12001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12002# The default lists apply if the user does not specify any file. 12003ac_need_defaults=: 12004while test $# != 0 12005do 12006 case $1 in 12007 --*=?*) 12008 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12009 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12010 ac_shift=: 12011 ;; 12012 --*=) 12013 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12014 ac_optarg= 12015 ac_shift=: 12016 ;; 12017 *) 12018 ac_option=$1 12019 ac_optarg=$2 12020 ac_shift=shift 12021 ;; 12022 esac 12023 12024 case $ac_option in 12025 # Handling of the options. 12026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12027 ac_cs_recheck=: ;; 12028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12029 $as_echo "$ac_cs_version"; exit ;; 12030 --config | --confi | --conf | --con | --co | --c ) 12031 $as_echo "$ac_cs_config"; exit ;; 12032 --debug | --debu | --deb | --de | --d | -d ) 12033 debug=: ;; 12034 --file | --fil | --fi | --f ) 12035 $ac_shift 12036 case $ac_optarg in 12037 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12038 '') as_fn_error $? "missing file argument" ;; 12039 esac 12040 as_fn_append CONFIG_FILES " '$ac_optarg'" 12041 ac_need_defaults=false;; 12042 --header | --heade | --head | --hea ) 12043 $ac_shift 12044 case $ac_optarg in 12045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12046 esac 12047 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12048 ac_need_defaults=false;; 12049 --he | --h) 12050 # Conflict between --help and --header 12051 as_fn_error $? "ambiguous option: \`$1' 12052Try \`$0 --help' for more information.";; 12053 --help | --hel | -h ) 12054 $as_echo "$ac_cs_usage"; exit ;; 12055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12056 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12057 ac_cs_silent=: ;; 12058 12059 # This is an error. 12060 -*) as_fn_error $? "unrecognized option: \`$1' 12061Try \`$0 --help' for more information." ;; 12062 12063 *) as_fn_append ac_config_targets " $1" 12064 ac_need_defaults=false ;; 12065 12066 esac 12067 shift 12068done 12069 12070ac_configure_extra_args= 12071 12072if $ac_cs_silent; then 12073 exec 6>/dev/null 12074 ac_configure_extra_args="$ac_configure_extra_args --silent" 12075fi 12076 12077_ACEOF 12078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12079if \$ac_cs_recheck; then 12080 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12081 shift 12082 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12083 CONFIG_SHELL='$SHELL' 12084 export CONFIG_SHELL 12085 exec "\$@" 12086fi 12087 12088_ACEOF 12089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12090exec 5>>config.log 12091{ 12092 echo 12093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12094## Running $as_me. ## 12095_ASBOX 12096 $as_echo "$ac_log" 12097} >&5 12098 12099_ACEOF 12100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12101# 12102# INIT-COMMANDS 12103# 12104AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12105 12106_ACEOF 12107 12108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12109 12110# Handling of arguments. 12111for ac_config_target in $ac_config_targets 12112do 12113 case $ac_config_target in 12114 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12115 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12117 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 12118 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12119 12120 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12121 esac 12122done 12123 12124 12125# If the user did not use the arguments to specify the items to instantiate, 12126# then the envvar interface is used. Set only those that are not. 12127# We use the long form for the default assignment because of an extremely 12128# bizarre bug on SunOS 4.1.3. 12129if $ac_need_defaults; then 12130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12133fi 12134 12135# Have a temporary directory for convenience. Make it in the build tree 12136# simply because there is no reason against having it here, and in addition, 12137# creating and moving files from /tmp can sometimes cause problems. 12138# Hook for its removal unless debugging. 12139# Note that there is a small window in which the directory will not be cleaned: 12140# after its creation but before its name has been assigned to `$tmp'. 12141$debug || 12142{ 12143 tmp= ac_tmp= 12144 trap 'exit_status=$? 12145 : "${ac_tmp:=$tmp}" 12146 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12147' 0 12148 trap 'as_fn_exit 1' 1 2 13 15 12149} 12150# Create a (secure) tmp directory for tmp files. 12151 12152{ 12153 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12154 test -d "$tmp" 12155} || 12156{ 12157 tmp=./conf$$-$RANDOM 12158 (umask 077 && mkdir "$tmp") 12159} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12160ac_tmp=$tmp 12161 12162# Set up the scripts for CONFIG_FILES section. 12163# No need to generate them if there are no CONFIG_FILES. 12164# This happens for instance with `./config.status config.h'. 12165if test -n "$CONFIG_FILES"; then 12166 12167 12168ac_cr=`echo X | tr X '\015'` 12169# On cygwin, bash can eat \r inside `` if the user requested igncr. 12170# But we know of no other shell where ac_cr would be empty at this 12171# point, so we can use a bashism as a fallback. 12172if test "x$ac_cr" = x; then 12173 eval ac_cr=\$\'\\r\' 12174fi 12175ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12176if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12177 ac_cs_awk_cr='\\r' 12178else 12179 ac_cs_awk_cr=$ac_cr 12180fi 12181 12182echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12183_ACEOF 12184 12185 12186{ 12187 echo "cat >conf$$subs.awk <<_ACEOF" && 12188 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12189 echo "_ACEOF" 12190} >conf$$subs.sh || 12191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12192ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12193ac_delim='%!_!# ' 12194for ac_last_try in false false false false false :; do 12195 . ./conf$$subs.sh || 12196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12197 12198 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12199 if test $ac_delim_n = $ac_delim_num; then 12200 break 12201 elif $ac_last_try; then 12202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12203 else 12204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12205 fi 12206done 12207rm -f conf$$subs.sh 12208 12209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12210cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12211_ACEOF 12212sed -n ' 12213h 12214s/^/S["/; s/!.*/"]=/ 12215p 12216g 12217s/^[^!]*!// 12218:repl 12219t repl 12220s/'"$ac_delim"'$// 12221t delim 12222:nl 12223h 12224s/\(.\{148\}\)..*/\1/ 12225t more1 12226s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12227p 12228n 12229b repl 12230:more1 12231s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12232p 12233g 12234s/.\{148\}// 12235t nl 12236:delim 12237h 12238s/\(.\{148\}\)..*/\1/ 12239t more2 12240s/["\\]/\\&/g; s/^/"/; s/$/"/ 12241p 12242b 12243:more2 12244s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12245p 12246g 12247s/.\{148\}// 12248t delim 12249' <conf$$subs.awk | sed ' 12250/^[^""]/{ 12251 N 12252 s/\n// 12253} 12254' >>$CONFIG_STATUS || ac_write_fail=1 12255rm -f conf$$subs.awk 12256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12257_ACAWK 12258cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12259 for (key in S) S_is_set[key] = 1 12260 FS = "" 12261 12262} 12263{ 12264 line = $ 0 12265 nfields = split(line, field, "@") 12266 substed = 0 12267 len = length(field[1]) 12268 for (i = 2; i < nfields; i++) { 12269 key = field[i] 12270 keylen = length(key) 12271 if (S_is_set[key]) { 12272 value = S[key] 12273 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12274 len += length(value) + length(field[++i]) 12275 substed = 1 12276 } else 12277 len += 1 + keylen 12278 } 12279 12280 print line 12281} 12282 12283_ACAWK 12284_ACEOF 12285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12286if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12287 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12288else 12289 cat 12290fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12291 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12292_ACEOF 12293 12294# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12295# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12296# trailing colons and then remove the whole line if VPATH becomes empty 12297# (actually we leave an empty line to preserve line numbers). 12298if test "x$srcdir" = x.; then 12299 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12300h 12301s/// 12302s/^/:/ 12303s/[ ]*$/:/ 12304s/:\$(srcdir):/:/g 12305s/:\${srcdir}:/:/g 12306s/:@srcdir@:/:/g 12307s/^:*// 12308s/:*$// 12309x 12310s/\(=[ ]*\).*/\1/ 12311G 12312s/\n// 12313s/^[^=]*=[ ]*$// 12314}' 12315fi 12316 12317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12318fi # test -n "$CONFIG_FILES" 12319 12320# Set up the scripts for CONFIG_HEADERS section. 12321# No need to generate them if there are no CONFIG_HEADERS. 12322# This happens for instance with `./config.status Makefile'. 12323if test -n "$CONFIG_HEADERS"; then 12324cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12325BEGIN { 12326_ACEOF 12327 12328# Transform confdefs.h into an awk script `defines.awk', embedded as 12329# here-document in config.status, that substitutes the proper values into 12330# config.h.in to produce config.h. 12331 12332# Create a delimiter string that does not exist in confdefs.h, to ease 12333# handling of long lines. 12334ac_delim='%!_!# ' 12335for ac_last_try in false false :; do 12336 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12337 if test -z "$ac_tt"; then 12338 break 12339 elif $ac_last_try; then 12340 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12341 else 12342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12343 fi 12344done 12345 12346# For the awk script, D is an array of macro values keyed by name, 12347# likewise P contains macro parameters if any. Preserve backslash 12348# newline sequences. 12349 12350ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12351sed -n ' 12352s/.\{148\}/&'"$ac_delim"'/g 12353t rset 12354:rset 12355s/^[ ]*#[ ]*define[ ][ ]*/ / 12356t def 12357d 12358:def 12359s/\\$// 12360t bsnl 12361s/["\\]/\\&/g 12362s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12363D["\1"]=" \3"/p 12364s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12365d 12366:bsnl 12367s/["\\]/\\&/g 12368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12369D["\1"]=" \3\\\\\\n"\\/p 12370t cont 12371s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12372t cont 12373d 12374:cont 12375n 12376s/.\{148\}/&'"$ac_delim"'/g 12377t clear 12378:clear 12379s/\\$// 12380t bsnlc 12381s/["\\]/\\&/g; s/^/"/; s/$/"/p 12382d 12383:bsnlc 12384s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12385b cont 12386' <confdefs.h | sed ' 12387s/'"$ac_delim"'/"\\\ 12388"/g' >>$CONFIG_STATUS || ac_write_fail=1 12389 12390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12391 for (key in D) D_is_set[key] = 1 12392 FS = "" 12393} 12394/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12395 line = \$ 0 12396 split(line, arg, " ") 12397 if (arg[1] == "#") { 12398 defundef = arg[2] 12399 mac1 = arg[3] 12400 } else { 12401 defundef = substr(arg[1], 2) 12402 mac1 = arg[2] 12403 } 12404 split(mac1, mac2, "(") #) 12405 macro = mac2[1] 12406 prefix = substr(line, 1, index(line, defundef) - 1) 12407 if (D_is_set[macro]) { 12408 # Preserve the white space surrounding the "#". 12409 print prefix "define", macro P[macro] D[macro] 12410 next 12411 } else { 12412 # Replace #undef with comments. This is necessary, for example, 12413 # in the case of _POSIX_SOURCE, which is predefined and required 12414 # on some systems where configure will not decide to define it. 12415 if (defundef == "undef") { 12416 print "/*", prefix defundef, macro, "*/" 12417 next 12418 } 12419 } 12420} 12421{ print } 12422_ACAWK 12423_ACEOF 12424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12425 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12426fi # test -n "$CONFIG_HEADERS" 12427 12428 12429eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12430shift 12431for ac_tag 12432do 12433 case $ac_tag in 12434 :[FHLC]) ac_mode=$ac_tag; continue;; 12435 esac 12436 case $ac_mode$ac_tag in 12437 :[FHL]*:*);; 12438 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12439 :[FH]-) ac_tag=-:-;; 12440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12441 esac 12442 ac_save_IFS=$IFS 12443 IFS=: 12444 set x $ac_tag 12445 IFS=$ac_save_IFS 12446 shift 12447 ac_file=$1 12448 shift 12449 12450 case $ac_mode in 12451 :L) ac_source=$1;; 12452 :[FH]) 12453 ac_file_inputs= 12454 for ac_f 12455 do 12456 case $ac_f in 12457 -) ac_f="$ac_tmp/stdin";; 12458 *) # Look for the file first in the build tree, then in the source tree 12459 # (if the path is not absolute). The absolute path cannot be DOS-style, 12460 # because $ac_f cannot contain `:'. 12461 test -f "$ac_f" || 12462 case $ac_f in 12463 [\\/$]*) false;; 12464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12465 esac || 12466 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12467 esac 12468 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12469 as_fn_append ac_file_inputs " '$ac_f'" 12470 done 12471 12472 # Let's still pretend it is `configure' which instantiates (i.e., don't 12473 # use $as_me), people would be surprised to read: 12474 # /* config.h. Generated by config.status. */ 12475 configure_input='Generated from '` 12476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12477 `' by configure.' 12478 if test x"$ac_file" != x-; then 12479 configure_input="$ac_file. $configure_input" 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12481$as_echo "$as_me: creating $ac_file" >&6;} 12482 fi 12483 # Neutralize special characters interpreted by sed in replacement strings. 12484 case $configure_input in #( 12485 *\&* | *\|* | *\\* ) 12486 ac_sed_conf_input=`$as_echo "$configure_input" | 12487 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12488 *) ac_sed_conf_input=$configure_input;; 12489 esac 12490 12491 case $ac_tag in 12492 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12494 esac 12495 ;; 12496 esac 12497 12498 ac_dir=`$as_dirname -- "$ac_file" || 12499$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12500 X"$ac_file" : 'X\(//\)[^/]' \| \ 12501 X"$ac_file" : 'X\(//\)$' \| \ 12502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12503$as_echo X"$ac_file" | 12504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12505 s//\1/ 12506 q 12507 } 12508 /^X\(\/\/\)[^/].*/{ 12509 s//\1/ 12510 q 12511 } 12512 /^X\(\/\/\)$/{ 12513 s//\1/ 12514 q 12515 } 12516 /^X\(\/\).*/{ 12517 s//\1/ 12518 q 12519 } 12520 s/.*/./; q'` 12521 as_dir="$ac_dir"; as_fn_mkdir_p 12522 ac_builddir=. 12523 12524case "$ac_dir" in 12525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12526*) 12527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12528 # A ".." for each directory in $ac_dir_suffix. 12529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12530 case $ac_top_builddir_sub in 12531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12533 esac ;; 12534esac 12535ac_abs_top_builddir=$ac_pwd 12536ac_abs_builddir=$ac_pwd$ac_dir_suffix 12537# for backward compatibility: 12538ac_top_builddir=$ac_top_build_prefix 12539 12540case $srcdir in 12541 .) # We are building in place. 12542 ac_srcdir=. 12543 ac_top_srcdir=$ac_top_builddir_sub 12544 ac_abs_top_srcdir=$ac_pwd ;; 12545 [\\/]* | ?:[\\/]* ) # Absolute name. 12546 ac_srcdir=$srcdir$ac_dir_suffix; 12547 ac_top_srcdir=$srcdir 12548 ac_abs_top_srcdir=$srcdir ;; 12549 *) # Relative name. 12550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12551 ac_top_srcdir=$ac_top_build_prefix$srcdir 12552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12553esac 12554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12555 12556 12557 case $ac_mode in 12558 :F) 12559 # 12560 # CONFIG_FILE 12561 # 12562 12563 case $INSTALL in 12564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12565 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12566 esac 12567 ac_MKDIR_P=$MKDIR_P 12568 case $MKDIR_P in 12569 [\\/$]* | ?:[\\/]* ) ;; 12570 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12571 esac 12572_ACEOF 12573 12574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12575# If the template does not know about datarootdir, expand it. 12576# FIXME: This hack should be removed a few years after 2.60. 12577ac_datarootdir_hack=; ac_datarootdir_seen= 12578ac_sed_dataroot=' 12579/datarootdir/ { 12580 p 12581 q 12582} 12583/@datadir@/p 12584/@docdir@/p 12585/@infodir@/p 12586/@localedir@/p 12587/@mandir@/p' 12588case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12589*datarootdir*) ac_datarootdir_seen=yes;; 12590*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12592$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12593_ACEOF 12594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12595 ac_datarootdir_hack=' 12596 s&@datadir@&$datadir&g 12597 s&@docdir@&$docdir&g 12598 s&@infodir@&$infodir&g 12599 s&@localedir@&$localedir&g 12600 s&@mandir@&$mandir&g 12601 s&\\\${datarootdir}&$datarootdir&g' ;; 12602esac 12603_ACEOF 12604 12605# Neutralize VPATH when `$srcdir' = `.'. 12606# Shell code in configure.ac might set extrasub. 12607# FIXME: do we really want to maintain this feature? 12608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12609ac_sed_extra="$ac_vpsub 12610$extrasub 12611_ACEOF 12612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12613:t 12614/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12615s|@configure_input@|$ac_sed_conf_input|;t t 12616s&@top_builddir@&$ac_top_builddir_sub&;t t 12617s&@top_build_prefix@&$ac_top_build_prefix&;t t 12618s&@srcdir@&$ac_srcdir&;t t 12619s&@abs_srcdir@&$ac_abs_srcdir&;t t 12620s&@top_srcdir@&$ac_top_srcdir&;t t 12621s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12622s&@builddir@&$ac_builddir&;t t 12623s&@abs_builddir@&$ac_abs_builddir&;t t 12624s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12625s&@INSTALL@&$ac_INSTALL&;t t 12626s&@MKDIR_P@&$ac_MKDIR_P&;t t 12627$ac_datarootdir_hack 12628" 12629eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12630 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12631 12632test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12633 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12635 "$ac_tmp/out"`; test -z "$ac_out"; } && 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12637which seems to be undefined. Please make sure it is defined" >&5 12638$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12639which seems to be undefined. Please make sure it is defined" >&2;} 12640 12641 rm -f "$ac_tmp/stdin" 12642 case $ac_file in 12643 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12644 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12645 esac \ 12646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12647 ;; 12648 :H) 12649 # 12650 # CONFIG_HEADER 12651 # 12652 if test x"$ac_file" != x-; then 12653 { 12654 $as_echo "/* $configure_input */" \ 12655 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12656 } >"$ac_tmp/config.h" \ 12657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12658 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12660$as_echo "$as_me: $ac_file is unchanged" >&6;} 12661 else 12662 rm -f "$ac_file" 12663 mv "$ac_tmp/config.h" "$ac_file" \ 12664 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12665 fi 12666 else 12667 $as_echo "/* $configure_input */" \ 12668 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12669 || as_fn_error $? "could not create -" "$LINENO" 5 12670 fi 12671# Compute "$ac_file"'s index in $config_headers. 12672_am_arg="$ac_file" 12673_am_stamp_count=1 12674for _am_header in $config_headers :; do 12675 case $_am_header in 12676 $_am_arg | $_am_arg:* ) 12677 break ;; 12678 * ) 12679 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12680 esac 12681done 12682echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12683$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12684 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12685 X"$_am_arg" : 'X\(//\)$' \| \ 12686 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12687$as_echo X"$_am_arg" | 12688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12689 s//\1/ 12690 q 12691 } 12692 /^X\(\/\/\)[^/].*/{ 12693 s//\1/ 12694 q 12695 } 12696 /^X\(\/\/\)$/{ 12697 s//\1/ 12698 q 12699 } 12700 /^X\(\/\).*/{ 12701 s//\1/ 12702 q 12703 } 12704 s/.*/./; q'`/stamp-h$_am_stamp_count 12705 ;; 12706 12707 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12708$as_echo "$as_me: executing $ac_file commands" >&6;} 12709 ;; 12710 esac 12711 12712 12713 case $ac_file$ac_mode in 12714 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12715 # Older Autoconf quotes --file arguments for eval, but not when files 12716 # are listed without --file. Let's play safe and only enable the eval 12717 # if we detect the quoting. 12718 case $CONFIG_FILES in 12719 *\'*) eval set x "$CONFIG_FILES" ;; 12720 *) set x $CONFIG_FILES ;; 12721 esac 12722 shift 12723 for mf 12724 do 12725 # Strip MF so we end up with the name of the file. 12726 mf=`echo "$mf" | sed -e 's/:.*$//'` 12727 # Check whether this is an Automake generated Makefile or not. 12728 # We used to match only the files named 'Makefile.in', but 12729 # some people rename them; so instead we look at the file content. 12730 # Grep'ing the first line is not enough: some people post-process 12731 # each Makefile.in and add a new line on top of each file to say so. 12732 # Grep'ing the whole file is not good either: AIX grep has a line 12733 # limit of 2048, but all sed's we know have understand at least 4000. 12734 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12735 dirpart=`$as_dirname -- "$mf" || 12736$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12737 X"$mf" : 'X\(//\)[^/]' \| \ 12738 X"$mf" : 'X\(//\)$' \| \ 12739 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12740$as_echo X"$mf" | 12741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12742 s//\1/ 12743 q 12744 } 12745 /^X\(\/\/\)[^/].*/{ 12746 s//\1/ 12747 q 12748 } 12749 /^X\(\/\/\)$/{ 12750 s//\1/ 12751 q 12752 } 12753 /^X\(\/\).*/{ 12754 s//\1/ 12755 q 12756 } 12757 s/.*/./; q'` 12758 else 12759 continue 12760 fi 12761 # Extract the definition of DEPDIR, am__include, and am__quote 12762 # from the Makefile without running 'make'. 12763 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12764 test -z "$DEPDIR" && continue 12765 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12766 test -z "$am__include" && continue 12767 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12768 # Find all dependency output files, they are included files with 12769 # $(DEPDIR) in their names. We invoke sed twice because it is the 12770 # simplest approach to changing $(DEPDIR) to its actual value in the 12771 # expansion. 12772 for file in `sed -n " 12773 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12774 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12775 # Make sure the directory exists. 12776 test -f "$dirpart/$file" && continue 12777 fdir=`$as_dirname -- "$file" || 12778$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12779 X"$file" : 'X\(//\)[^/]' \| \ 12780 X"$file" : 'X\(//\)$' \| \ 12781 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12782$as_echo X"$file" | 12783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12784 s//\1/ 12785 q 12786 } 12787 /^X\(\/\/\)[^/].*/{ 12788 s//\1/ 12789 q 12790 } 12791 /^X\(\/\/\)$/{ 12792 s//\1/ 12793 q 12794 } 12795 /^X\(\/\).*/{ 12796 s//\1/ 12797 q 12798 } 12799 s/.*/./; q'` 12800 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12801 # echo "creating $dirpart/$file" 12802 echo '# dummy' > "$dirpart/$file" 12803 done 12804 done 12805} 12806 ;; 12807 12808 esac 12809done # for ac_tag 12810 12811 12812as_fn_exit 0 12813_ACEOF 12814ac_clean_files=$ac_clean_files_save 12815 12816test $ac_write_fail = 0 || 12817 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12818 12819 12820# configure is writing to config.log, and then calls config.status. 12821# config.status does its own redirection, appending to config.log. 12822# Unfortunately, on DOS this fails, as config.log is still kept open 12823# by configure, so config.status won't be able to write to it; its 12824# output is simply discarded. So we exec the FD to /dev/null, 12825# effectively closing config.log, so it can be properly (re)opened and 12826# appended to by config.status. When coming back to configure, we 12827# need to make the FD available again. 12828if test "$no_create" != yes; then 12829 ac_cs_success=: 12830 ac_config_status_args= 12831 test "$silent" = yes && 12832 ac_config_status_args="$ac_config_status_args --quiet" 12833 exec 5>/dev/null 12834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12835 exec 5>>config.log 12836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12837 # would make configure fail if this is the last instruction. 12838 $ac_cs_success || as_fn_exit 1 12839fi 12840if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12842$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12843fi 12844 12845