configure revision 89afc689
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xwud 1.0.5. 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='xwud' 583PACKAGE_TARNAME='xwud' 584PACKAGE_VERSION='1.0.5' 585PACKAGE_STRING='xwud 1.0.5' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XWUD_LIBS 631XWUD_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646SED 647host_os 648host_vendor 649host_cpu 650host 651build_os 652build_vendor 653build_cpu 654build 655INSTALL_CMD 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659CHANGELOG_CMD 660STRICT_CFLAGS 661CWARNFLAGS 662BASE_CFLAGS 663EGREP 664GREP 665CPP 666am__fastdepCC_FALSE 667am__fastdepCC_TRUE 668CCDEPMODE 669am__nodep 670AMDEPBACKSLASH 671AMDEP_FALSE 672AMDEP_TRUE 673am__quote 674am__include 675DEPDIR 676OBJEXT 677EXEEXT 678ac_ct_CC 679CPPFLAGS 680LDFLAGS 681CFLAGS 682CC 683AM_BACKSLASH 684AM_DEFAULT_VERBOSITY 685AM_DEFAULT_V 686AM_V 687am__untar 688am__tar 689AMTAR 690am__leading_dot 691SET_MAKE 692AWK 693mkdir_p 694MKDIR_P 695INSTALL_STRIP_PROGRAM 696STRIP 697install_sh 698MAKEINFO 699AUTOHEADER 700AUTOMAKE 701AUTOCONF 702ACLOCAL 703VERSION 704PACKAGE 705CYGPATH_W 706am__isrc 707INSTALL_DATA 708INSTALL_SCRIPT 709INSTALL_PROGRAM 710target_alias 711host_alias 712build_alias 713LIBS 714ECHO_T 715ECHO_N 716ECHO_C 717DEFS 718mandir 719localedir 720libdir 721psdir 722pdfdir 723dvidir 724htmldir 725infodir 726docdir 727oldincludedir 728includedir 729localstatedir 730sharedstatedir 731sysconfdir 732datadir 733datarootdir 734libexecdir 735sbindir 736bindir 737program_transform_name 738prefix 739exec_prefix 740PACKAGE_URL 741PACKAGE_BUGREPORT 742PACKAGE_STRING 743PACKAGE_VERSION 744PACKAGE_TARNAME 745PACKAGE_NAME 746PATH_SEPARATOR 747SHELL' 748ac_subst_files='' 749ac_user_opts=' 750enable_option_checking 751enable_silent_rules 752enable_dependency_tracking 753enable_selective_werror 754enable_strict_compilation 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CPP 765PKG_CONFIG 766PKG_CONFIG_PATH 767PKG_CONFIG_LIBDIR 768XWUD_CFLAGS 769XWUD_LIBS' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *=) ac_optarg= ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error $? "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156Try \`$0 --help' for more information" 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1175 ;; 1176 1177 esac 1178done 1179 1180if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error $? "missing argument to $ac_option" 1183fi 1184 1185if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191fi 1192 1193# Check all directory arguments for consistency. 1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253$as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281fi 1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286# When building in place, set srcdir=. 1287if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289fi 1290# Remove unnecessary trailing slashes from srcdir. 1291# Double slashes in file names in object file debugging info 1292# mess up M-x gdb in Emacs. 1293case $srcdir in 1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295esac 1296for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301done 1302 1303# 1304# Report the --help message. 1305# 1306if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310\`configure' configures xwud 1.0.5 to adapt to many kinds of systems. 1311 1312Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317Defaults for the options are specified in brackets. 1318 1319Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336By default, \`make install' will install all the files in 1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339for instance \`--prefix=\$HOME'. 1340 1341For better control, use the options below. 1342 1343Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/xwud] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367Program names: 1368 --program-prefix=PREFIX prepend PREFIX to installed program names 1369 --program-suffix=SUFFIX append SUFFIX to installed program names 1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1371 1372System types: 1373 --build=BUILD configure for building on BUILD [guessed] 1374 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1375_ACEOF 1376fi 1377 1378if test -n "$ac_init_help"; then 1379 case $ac_init_help in 1380 short | recursive ) echo "Configuration of xwud 1.0.5:";; 1381 esac 1382 cat <<\_ACEOF 1383 1384Optional Features: 1385 --disable-option-checking ignore unrecognized --enable/--with options 1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1388 --enable-silent-rules less verbose build output (undo: "make V=1") 1389 --disable-silent-rules verbose build output (undo: "make V=0") 1390 --enable-dependency-tracking 1391 do not reject slow dependency extractors 1392 --disable-dependency-tracking 1393 speeds up one-time build 1394 --disable-selective-werror 1395 Turn off selective compiler errors. (default: 1396 enabled) 1397 --enable-strict-compilation 1398 Enable all warnings from compiler and make them 1399 errors (default: disabled) 1400 1401Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CPP C preprocessor 1410 PKG_CONFIG path to pkg-config utility 1411 PKG_CONFIG_PATH 1412 directories to add to pkg-config's search path 1413 PKG_CONFIG_LIBDIR 1414 path overriding pkg-config's built-in search path 1415 XWUD_CFLAGS C compiler flags for XWUD, overriding pkg-config 1416 XWUD_LIBS linker flags for XWUD, overriding pkg-config 1417 1418Use these variables to override the choices made by `configure' or to help 1419it to find libraries and programs with nonstandard names/locations. 1420 1421Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1422_ACEOF 1423ac_status=$? 1424fi 1425 1426if test "$ac_init_help" = "recursive"; then 1427 # If there are subdirs, report their specific --help. 1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1429 test -d "$ac_dir" || 1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1431 continue 1432 ac_builddir=. 1433 1434case "$ac_dir" in 1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436*) 1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1438 # A ".." for each directory in $ac_dir_suffix. 1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1440 case $ac_top_builddir_sub in 1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1443 esac ;; 1444esac 1445ac_abs_top_builddir=$ac_pwd 1446ac_abs_builddir=$ac_pwd$ac_dir_suffix 1447# for backward compatibility: 1448ac_top_builddir=$ac_top_build_prefix 1449 1450case $srcdir in 1451 .) # We are building in place. 1452 ac_srcdir=. 1453 ac_top_srcdir=$ac_top_builddir_sub 1454 ac_abs_top_srcdir=$ac_pwd ;; 1455 [\\/]* | ?:[\\/]* ) # Absolute name. 1456 ac_srcdir=$srcdir$ac_dir_suffix; 1457 ac_top_srcdir=$srcdir 1458 ac_abs_top_srcdir=$srcdir ;; 1459 *) # Relative name. 1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1461 ac_top_srcdir=$ac_top_build_prefix$srcdir 1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1463esac 1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1465 1466 cd "$ac_dir" || { ac_status=$?; continue; } 1467 # Check for guested configure. 1468 if test -f "$ac_srcdir/configure.gnu"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1471 elif test -f "$ac_srcdir/configure"; then 1472 echo && 1473 $SHELL "$ac_srcdir/configure" --help=recursive 1474 else 1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1476 fi || ac_status=$? 1477 cd "$ac_pwd" || { ac_status=$?; break; } 1478 done 1479fi 1480 1481test -n "$ac_init_help" && exit $ac_status 1482if $ac_init_version; then 1483 cat <<\_ACEOF 1484xwud configure 1.0.5 1485generated by GNU Autoconf 2.69 1486 1487Copyright (C) 2012 Free Software Foundation, Inc. 1488This configure script is free software; the Free Software Foundation 1489gives unlimited permission to copy, distribute and modify it. 1490_ACEOF 1491 exit 1492fi 1493 1494## ------------------------ ## 1495## Autoconf initialization. ## 1496## ------------------------ ## 1497 1498# ac_fn_c_try_compile LINENO 1499# -------------------------- 1500# Try to compile conftest.$ac_ext, and return whether this succeeded. 1501ac_fn_c_try_compile () 1502{ 1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1504 rm -f conftest.$ac_objext 1505 if { { ac_try="$ac_compile" 1506case "(($ac_try" in 1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1508 *) ac_try_echo=$ac_try;; 1509esac 1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1511$as_echo "$ac_try_echo"; } >&5 1512 (eval "$ac_compile") 2>conftest.err 1513 ac_status=$? 1514 if test -s conftest.err; then 1515 grep -v '^ *+' conftest.err >conftest.er1 1516 cat conftest.er1 >&5 1517 mv -f conftest.er1 conftest.err 1518 fi 1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1520 test $ac_status = 0; } && { 1521 test -z "$ac_c_werror_flag" || 1522 test ! -s conftest.err 1523 } && test -s conftest.$ac_objext; then : 1524 ac_retval=0 1525else 1526 $as_echo "$as_me: failed program was:" >&5 1527sed 's/^/| /' conftest.$ac_ext >&5 1528 1529 ac_retval=1 1530fi 1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1532 as_fn_set_status $ac_retval 1533 1534} # ac_fn_c_try_compile 1535 1536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1537# --------------------------------------------- 1538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1539# accordingly. 1540ac_fn_c_check_decl () 1541{ 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 as_decl_name=`echo $2|sed 's/ *(.*//'` 1544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1546$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1547if eval \${$3+:} false; then : 1548 $as_echo_n "(cached) " >&6 1549else 1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1551/* end confdefs.h. */ 1552$4 1553int 1554main () 1555{ 1556#ifndef $as_decl_name 1557#ifdef __cplusplus 1558 (void) $as_decl_use; 1559#else 1560 (void) $as_decl_name; 1561#endif 1562#endif 1563 1564 ; 1565 return 0; 1566} 1567_ACEOF 1568if ac_fn_c_try_compile "$LINENO"; then : 1569 eval "$3=yes" 1570else 1571 eval "$3=no" 1572fi 1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1574fi 1575eval ac_res=\$$3 1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1577$as_echo "$ac_res" >&6; } 1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 1580} # ac_fn_c_check_decl 1581 1582# ac_fn_c_try_cpp LINENO 1583# ---------------------- 1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_cpp () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 if { { ac_try="$ac_cpp conftest.$ac_ext" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } > conftest.i && { 1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 }; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_cpp 1618 1619# ac_fn_c_try_run LINENO 1620# ---------------------- 1621# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1622# that executables *can* be run. 1623ac_fn_c_try_run () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 if { { ac_try="$ac_link" 1627case "(($ac_try" in 1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 *) ac_try_echo=$ac_try;; 1630esac 1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632$as_echo "$ac_try_echo"; } >&5 1633 (eval "$ac_link") 2>&5 1634 ac_status=$? 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1637 { { case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_try") 2>&5 1644 ac_status=$? 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; }; }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: program exited with status $ac_status" >&5 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=$ac_status 1654fi 1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_run 1660 1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1662# ------------------------------------------------------- 1663# Tests whether HEADER exists and can be compiled using the include files in 1664# INCLUDES, setting the cache variable VAR accordingly. 1665ac_fn_c_check_header_compile () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO"; then : 1679 eval "$3=yes" 1680else 1681 eval "$3=no" 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684fi 1685eval ac_res=\$$3 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1687$as_echo "$ac_res" >&6; } 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 1690} # ac_fn_c_check_header_compile 1691 1692# ac_fn_c_try_link LINENO 1693# ----------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. 1695ac_fn_c_try_link () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 rm -f conftest.$ac_objext conftest$ac_exeext 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { 1715 test -z "$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 } && test -s conftest$ac_exeext && { 1718 test "$cross_compiling" = yes || 1719 test -x conftest$ac_exeext 1720 }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=1 1727fi 1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1730 # interfere with the next link command; also delete a directory that is 1731 # left behind by Apple's compiler. We do this before executing the actions. 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_try_link 1737cat >config.log <<_ACEOF 1738This file contains any messages produced by compilers while 1739running configure, to aid debugging if configure makes a mistake. 1740 1741It was created by xwud $as_me 1.0.5, which was 1742generated by GNU Autoconf 2.69. Invocation command line was 1743 1744 $ $0 $@ 1745 1746_ACEOF 1747exec 5>>config.log 1748{ 1749cat <<_ASUNAME 1750## --------- ## 1751## Platform. ## 1752## --------- ## 1753 1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1755uname -m = `(uname -m) 2>/dev/null || echo unknown` 1756uname -r = `(uname -r) 2>/dev/null || echo unknown` 1757uname -s = `(uname -s) 2>/dev/null || echo unknown` 1758uname -v = `(uname -v) 2>/dev/null || echo unknown` 1759 1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1761/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1762 1763/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1764/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1766/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1767/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1768/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1769/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1770 1771_ASUNAME 1772 1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1774for as_dir in $PATH 1775do 1776 IFS=$as_save_IFS 1777 test -z "$as_dir" && as_dir=. 1778 $as_echo "PATH: $as_dir" 1779 done 1780IFS=$as_save_IFS 1781 1782} >&5 1783 1784cat >&5 <<_ACEOF 1785 1786 1787## ----------- ## 1788## Core tests. ## 1789## ----------- ## 1790 1791_ACEOF 1792 1793 1794# Keep a trace of the command line. 1795# Strip out --no-create and --no-recursion so they do not pile up. 1796# Strip out --silent because we don't want to record it for future runs. 1797# Also quote any args containing shell meta-characters. 1798# Make two passes to allow for proper duplicate-argument suppression. 1799ac_configure_args= 1800ac_configure_args0= 1801ac_configure_args1= 1802ac_must_keep_next=false 1803for ac_pass in 1 2 1804do 1805 for ac_arg 1806 do 1807 case $ac_arg in 1808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1810 | -silent | --silent | --silen | --sile | --sil) 1811 continue ;; 1812 *\'*) 1813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1814 esac 1815 case $ac_pass in 1816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1817 2) 1818 as_fn_append ac_configure_args1 " '$ac_arg'" 1819 if test $ac_must_keep_next = true; then 1820 ac_must_keep_next=false # Got value, back to normal. 1821 else 1822 case $ac_arg in 1823 *=* | --config-cache | -C | -disable-* | --disable-* \ 1824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1826 | -with-* | --with-* | -without-* | --without-* | --x) 1827 case "$ac_configure_args0 " in 1828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1829 esac 1830 ;; 1831 -* ) ac_must_keep_next=true ;; 1832 esac 1833 fi 1834 as_fn_append ac_configure_args " '$ac_arg'" 1835 ;; 1836 esac 1837 done 1838done 1839{ ac_configure_args0=; unset ac_configure_args0;} 1840{ ac_configure_args1=; unset ac_configure_args1;} 1841 1842# When interrupted or exit'd, cleanup temporary files, and complete 1843# config.log. We remove comments because anyway the quotes in there 1844# would cause problems or look ugly. 1845# WARNING: Use '\'' to represent an apostrophe within the trap. 1846# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1847trap 'exit_status=$? 1848 # Save into config.log some information that might help in debugging. 1849 { 1850 echo 1851 1852 $as_echo "## ---------------- ## 1853## Cache variables. ## 1854## ---------------- ##" 1855 echo 1856 # The following way of writing the cache mishandles newlines in values, 1857( 1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1859 eval ac_val=\$$ac_var 1860 case $ac_val in #( 1861 *${as_nl}*) 1862 case $ac_var in #( 1863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1864$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1865 esac 1866 case $ac_var in #( 1867 _ | IFS | as_nl) ;; #( 1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1869 *) { eval $ac_var=; unset $ac_var;} ;; 1870 esac ;; 1871 esac 1872 done 1873 (set) 2>&1 | 1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1875 *${as_nl}ac_space=\ *) 1876 sed -n \ 1877 "s/'\''/'\''\\\\'\'''\''/g; 1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1879 ;; #( 1880 *) 1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1882 ;; 1883 esac | 1884 sort 1885) 1886 echo 1887 1888 $as_echo "## ----------------- ## 1889## Output variables. ## 1890## ----------------- ##" 1891 echo 1892 for ac_var in $ac_subst_vars 1893 do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897 esac 1898 $as_echo "$ac_var='\''$ac_val'\''" 1899 done | sort 1900 echo 1901 1902 if test -n "$ac_subst_files"; then 1903 $as_echo "## ------------------- ## 1904## File substitutions. ## 1905## ------------------- ##" 1906 echo 1907 for ac_var in $ac_subst_files 1908 do 1909 eval ac_val=\$$ac_var 1910 case $ac_val in 1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912 esac 1913 $as_echo "$ac_var='\''$ac_val'\''" 1914 done | sort 1915 echo 1916 fi 1917 1918 if test -s confdefs.h; then 1919 $as_echo "## ----------- ## 1920## confdefs.h. ## 1921## ----------- ##" 1922 echo 1923 cat confdefs.h 1924 echo 1925 fi 1926 test "$ac_signal" != 0 && 1927 $as_echo "$as_me: caught signal $ac_signal" 1928 $as_echo "$as_me: exit $exit_status" 1929 } >&5 1930 rm -f core *.core core.conftest.* && 1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1932 exit $exit_status 1933' 0 1934for ac_signal in 1 2 13 15; do 1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1936done 1937ac_signal=0 1938 1939# confdefs.h avoids OS command line length limits that DEFS can exceed. 1940rm -f -r conftest* confdefs.h 1941 1942$as_echo "/* confdefs.h */" > confdefs.h 1943 1944# Predefined preprocessor variables. 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_NAME "$PACKAGE_NAME" 1948_ACEOF 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1952_ACEOF 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_VERSION "$PACKAGE_VERSION" 1956_ACEOF 1957 1958cat >>confdefs.h <<_ACEOF 1959#define PACKAGE_STRING "$PACKAGE_STRING" 1960_ACEOF 1961 1962cat >>confdefs.h <<_ACEOF 1963#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1964_ACEOF 1965 1966cat >>confdefs.h <<_ACEOF 1967#define PACKAGE_URL "$PACKAGE_URL" 1968_ACEOF 1969 1970 1971# Let the site file select an alternate cache file if it wants to. 1972# Prefer an explicitly selected file to automatically selected ones. 1973ac_site_file1=NONE 1974ac_site_file2=NONE 1975if test -n "$CONFIG_SITE"; then 1976 # We do not want a PATH search for config.site. 1977 case $CONFIG_SITE in #(( 1978 -*) ac_site_file1=./$CONFIG_SITE;; 1979 */*) ac_site_file1=$CONFIG_SITE;; 1980 *) ac_site_file1=./$CONFIG_SITE;; 1981 esac 1982elif test "x$prefix" != xNONE; then 1983 ac_site_file1=$prefix/share/config.site 1984 ac_site_file2=$prefix/etc/config.site 1985else 1986 ac_site_file1=$ac_default_prefix/share/config.site 1987 ac_site_file2=$ac_default_prefix/etc/config.site 1988fi 1989for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1990do 1991 test "x$ac_site_file" = xNONE && continue 1992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1994$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1995 sed 's/^/| /' "$ac_site_file" >&5 1996 . "$ac_site_file" \ 1997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1999as_fn_error $? "failed to load site script $ac_site_file 2000See \`config.log' for more details" "$LINENO" 5; } 2001 fi 2002done 2003 2004if test -r "$cache_file"; then 2005 # Some versions of bash will fail to source /dev/null (special files 2006 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2009$as_echo "$as_me: loading cache $cache_file" >&6;} 2010 case $cache_file in 2011 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2012 *) . "./$cache_file";; 2013 esac 2014 fi 2015else 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2017$as_echo "$as_me: creating cache $cache_file" >&6;} 2018 >$cache_file 2019fi 2020 2021# Check that the precious variables saved in the cache have kept the same 2022# value. 2023ac_cache_corrupted=false 2024for ac_var in $ac_precious_vars; do 2025 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2026 eval ac_new_set=\$ac_env_${ac_var}_set 2027 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2028 eval ac_new_val=\$ac_env_${ac_var}_value 2029 case $ac_old_set,$ac_new_set in 2030 set,) 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2032$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2033 ac_cache_corrupted=: ;; 2034 ,set) 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2036$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2037 ac_cache_corrupted=: ;; 2038 ,);; 2039 *) 2040 if test "x$ac_old_val" != "x$ac_new_val"; then 2041 # differences in whitespace do not lead to failure. 2042 ac_old_val_w=`echo x $ac_old_val` 2043 ac_new_val_w=`echo x $ac_new_val` 2044 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2046$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2047 ac_cache_corrupted=: 2048 else 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2050$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2051 eval $ac_var=\$ac_old_val 2052 fi 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2054$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2056$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2057 fi;; 2058 esac 2059 # Pass precious variables to config.status. 2060 if test "$ac_new_set" = set; then 2061 case $ac_new_val in 2062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2063 *) ac_arg=$ac_var=$ac_new_val ;; 2064 esac 2065 case " $ac_configure_args " in 2066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2067 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2068 esac 2069 fi 2070done 2071if $ac_cache_corrupted; then 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2075$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2076 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2077fi 2078## -------------------- ## 2079## Main body of script. ## 2080## -------------------- ## 2081 2082ac_ext=c 2083ac_cpp='$CPP $CPPFLAGS' 2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2086ac_compiler_gnu=$ac_cv_c_compiler_gnu 2087 2088 2089 2090ac_config_headers="$ac_config_headers config.h" 2091 2092 2093# Initialize Automake 2094am__api_version='1.15' 2095 2096ac_aux_dir= 2097for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2098 if test -f "$ac_dir/install-sh"; then 2099 ac_aux_dir=$ac_dir 2100 ac_install_sh="$ac_aux_dir/install-sh -c" 2101 break 2102 elif test -f "$ac_dir/install.sh"; then 2103 ac_aux_dir=$ac_dir 2104 ac_install_sh="$ac_aux_dir/install.sh -c" 2105 break 2106 elif test -f "$ac_dir/shtool"; then 2107 ac_aux_dir=$ac_dir 2108 ac_install_sh="$ac_aux_dir/shtool install -c" 2109 break 2110 fi 2111done 2112if test -z "$ac_aux_dir"; then 2113 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2114fi 2115 2116# These three variables are undocumented and unsupported, 2117# and are intended to be withdrawn in a future Autoconf release. 2118# They can cause serious problems if a builder's source tree is in a directory 2119# whose full name contains unusual characters. 2120ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2121ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2122ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2123 2124 2125# Find a good install program. We prefer a C program (faster), 2126# so one script is as good as another. But avoid the broken or 2127# incompatible versions: 2128# SysV /etc/install, /usr/sbin/install 2129# SunOS /usr/etc/install 2130# IRIX /sbin/install 2131# AIX /bin/install 2132# AmigaOS /C/install, which installs bootblocks on floppy discs 2133# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2134# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2135# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2136# OS/2's system install, which has a completely different semantic 2137# ./install, which can be erroneously created by make from ./install.sh. 2138# Reject install programs that cannot install multiple files. 2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2140$as_echo_n "checking for a BSD-compatible install... " >&6; } 2141if test -z "$INSTALL"; then 2142if ${ac_cv_path_install+:} false; then : 2143 $as_echo_n "(cached) " >&6 2144else 2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2146for as_dir in $PATH 2147do 2148 IFS=$as_save_IFS 2149 test -z "$as_dir" && as_dir=. 2150 # Account for people who put trailing slashes in PATH elements. 2151case $as_dir/ in #(( 2152 ./ | .// | /[cC]/* | \ 2153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2154 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2155 /usr/ucb/* ) ;; 2156 *) 2157 # OSF1 and SCO ODT 3.0 have their own names for install. 2158 # Don't use installbsd from OSF since it installs stuff as root 2159 # by default. 2160 for ac_prog in ginstall scoinst install; do 2161 for ac_exec_ext in '' $ac_executable_extensions; do 2162 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2163 if test $ac_prog = install && 2164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2165 # AIX install. It has an incompatible calling convention. 2166 : 2167 elif test $ac_prog = install && 2168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2169 # program-specific install script used by HP pwplus--don't use. 2170 : 2171 else 2172 rm -rf conftest.one conftest.two conftest.dir 2173 echo one > conftest.one 2174 echo two > conftest.two 2175 mkdir conftest.dir 2176 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2177 test -s conftest.one && test -s conftest.two && 2178 test -s conftest.dir/conftest.one && 2179 test -s conftest.dir/conftest.two 2180 then 2181 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2182 break 3 2183 fi 2184 fi 2185 fi 2186 done 2187 done 2188 ;; 2189esac 2190 2191 done 2192IFS=$as_save_IFS 2193 2194rm -rf conftest.one conftest.two conftest.dir 2195 2196fi 2197 if test "${ac_cv_path_install+set}" = set; then 2198 INSTALL=$ac_cv_path_install 2199 else 2200 # As a last resort, use the slow shell script. Don't cache a 2201 # value for INSTALL within a source directory, because that will 2202 # break other packages using the cache if that directory is 2203 # removed, or if the value is a relative name. 2204 INSTALL=$ac_install_sh 2205 fi 2206fi 2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2208$as_echo "$INSTALL" >&6; } 2209 2210# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2211# It thinks the first close brace ends the variable substitution. 2212test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2213 2214test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2215 2216test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2217 2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2219$as_echo_n "checking whether build environment is sane... " >&6; } 2220# Reject unsafe characters in $srcdir or the absolute working directory 2221# name. Accept space and tab only in the latter. 2222am_lf=' 2223' 2224case `pwd` in 2225 *[\\\"\#\$\&\'\`$am_lf]*) 2226 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2227esac 2228case $srcdir in 2229 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2230 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2231esac 2232 2233# Do 'set' in a subshell so we don't clobber the current shell's 2234# arguments. Must try -L first in case configure is actually a 2235# symlink; some systems play weird games with the mod time of symlinks 2236# (eg FreeBSD returns the mod time of the symlink's containing 2237# directory). 2238if ( 2239 am_has_slept=no 2240 for am_try in 1 2; do 2241 echo "timestamp, slept: $am_has_slept" > conftest.file 2242 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2243 if test "$*" = "X"; then 2244 # -L didn't work. 2245 set X `ls -t "$srcdir/configure" conftest.file` 2246 fi 2247 if test "$*" != "X $srcdir/configure conftest.file" \ 2248 && test "$*" != "X conftest.file $srcdir/configure"; then 2249 2250 # If neither matched, then we have a broken ls. This can happen 2251 # if, for instance, CONFIG_SHELL is bash and it inherits a 2252 # broken ls alias from the environment. This has actually 2253 # happened. Such a system could not be considered "sane". 2254 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2255 alias in your environment" "$LINENO" 5 2256 fi 2257 if test "$2" = conftest.file || test $am_try -eq 2; then 2258 break 2259 fi 2260 # Just in case. 2261 sleep 1 2262 am_has_slept=yes 2263 done 2264 test "$2" = conftest.file 2265 ) 2266then 2267 # Ok. 2268 : 2269else 2270 as_fn_error $? "newly created file is older than distributed files! 2271Check your system clock" "$LINENO" 5 2272fi 2273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2274$as_echo "yes" >&6; } 2275# If we didn't sleep, we still need to ensure time stamps of config.status and 2276# generated files are strictly newer. 2277am_sleep_pid= 2278if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2279 ( sleep 1 ) & 2280 am_sleep_pid=$! 2281fi 2282 2283rm -f conftest.file 2284 2285test "$program_prefix" != NONE && 2286 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2287# Use a double $ so make ignores it. 2288test "$program_suffix" != NONE && 2289 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2290# Double any \ or $. 2291# By default was `s,x,x', remove it if useless. 2292ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2293program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2294 2295# Expand $ac_aux_dir to an absolute path. 2296am_aux_dir=`cd "$ac_aux_dir" && pwd` 2297 2298if test x"${MISSING+set}" != xset; then 2299 case $am_aux_dir in 2300 *\ * | *\ *) 2301 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2302 *) 2303 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2304 esac 2305fi 2306# Use eval to expand $SHELL 2307if eval "$MISSING --is-lightweight"; then 2308 am_missing_run="$MISSING " 2309else 2310 am_missing_run= 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2312$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2313fi 2314 2315if test x"${install_sh+set}" != xset; then 2316 case $am_aux_dir in 2317 *\ * | *\ *) 2318 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2319 *) 2320 install_sh="\${SHELL} $am_aux_dir/install-sh" 2321 esac 2322fi 2323 2324# Installed binaries are usually stripped using 'strip' when the user 2325# run "make install-strip". However 'strip' might not be the right 2326# tool to use in cross-compilation environments, therefore Automake 2327# will honor the 'STRIP' environment variable to overrule this program. 2328if test "$cross_compiling" != no; then 2329 if test -n "$ac_tool_prefix"; then 2330 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2331set dummy ${ac_tool_prefix}strip; ac_word=$2 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2333$as_echo_n "checking for $ac_word... " >&6; } 2334if ${ac_cv_prog_STRIP+:} false; then : 2335 $as_echo_n "(cached) " >&6 2336else 2337 if test -n "$STRIP"; then 2338 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2339else 2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2341for as_dir in $PATH 2342do 2343 IFS=$as_save_IFS 2344 test -z "$as_dir" && as_dir=. 2345 for ac_exec_ext in '' $ac_executable_extensions; do 2346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2347 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2349 break 2 2350 fi 2351done 2352 done 2353IFS=$as_save_IFS 2354 2355fi 2356fi 2357STRIP=$ac_cv_prog_STRIP 2358if test -n "$STRIP"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2360$as_echo "$STRIP" >&6; } 2361else 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2363$as_echo "no" >&6; } 2364fi 2365 2366 2367fi 2368if test -z "$ac_cv_prog_STRIP"; then 2369 ac_ct_STRIP=$STRIP 2370 # Extract the first word of "strip", so it can be a program name with args. 2371set dummy strip; ac_word=$2 2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2373$as_echo_n "checking for $ac_word... " >&6; } 2374if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2375 $as_echo_n "(cached) " >&6 2376else 2377 if test -n "$ac_ct_STRIP"; then 2378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2379else 2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2381for as_dir in $PATH 2382do 2383 IFS=$as_save_IFS 2384 test -z "$as_dir" && as_dir=. 2385 for ac_exec_ext in '' $ac_executable_extensions; do 2386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2387 ac_cv_prog_ac_ct_STRIP="strip" 2388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2389 break 2 2390 fi 2391done 2392 done 2393IFS=$as_save_IFS 2394 2395fi 2396fi 2397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2398if test -n "$ac_ct_STRIP"; then 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2400$as_echo "$ac_ct_STRIP" >&6; } 2401else 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2403$as_echo "no" >&6; } 2404fi 2405 2406 if test "x$ac_ct_STRIP" = x; then 2407 STRIP=":" 2408 else 2409 case $cross_compiling:$ac_tool_warned in 2410yes:) 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2413ac_tool_warned=yes ;; 2414esac 2415 STRIP=$ac_ct_STRIP 2416 fi 2417else 2418 STRIP="$ac_cv_prog_STRIP" 2419fi 2420 2421fi 2422INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2423 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2425$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2426if test -z "$MKDIR_P"; then 2427 if ${ac_cv_path_mkdir+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2431for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2432do 2433 IFS=$as_save_IFS 2434 test -z "$as_dir" && as_dir=. 2435 for ac_prog in mkdir gmkdir; do 2436 for ac_exec_ext in '' $ac_executable_extensions; do 2437 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2438 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2439 'mkdir (GNU coreutils) '* | \ 2440 'mkdir (coreutils) '* | \ 2441 'mkdir (fileutils) '4.1*) 2442 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2443 break 3;; 2444 esac 2445 done 2446 done 2447 done 2448IFS=$as_save_IFS 2449 2450fi 2451 2452 test -d ./--version && rmdir ./--version 2453 if test "${ac_cv_path_mkdir+set}" = set; then 2454 MKDIR_P="$ac_cv_path_mkdir -p" 2455 else 2456 # As a last resort, use the slow shell script. Don't cache a 2457 # value for MKDIR_P within a source directory, because that will 2458 # break other packages using the cache if that directory is 2459 # removed, or if the value is a relative name. 2460 MKDIR_P="$ac_install_sh -d" 2461 fi 2462fi 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2464$as_echo "$MKDIR_P" >&6; } 2465 2466for ac_prog in gawk mawk nawk awk 2467do 2468 # Extract the first word of "$ac_prog", so it can be a program name with args. 2469set dummy $ac_prog; ac_word=$2 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471$as_echo_n "checking for $ac_word... " >&6; } 2472if ${ac_cv_prog_AWK+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test -n "$AWK"; then 2476 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2485 ac_cv_prog_AWK="$ac_prog" 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490 done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495AWK=$ac_cv_prog_AWK 2496if test -n "$AWK"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2498$as_echo "$AWK" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 2505 test -n "$AWK" && break 2506done 2507 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2510set x ${MAKE-make} 2511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2512if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 cat >conftest.make <<\_ACEOF 2516SHELL = /bin/sh 2517all: 2518 @echo '@@@%%%=$(MAKE)=@@@%%%' 2519_ACEOF 2520# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2521case `${MAKE-make} -f conftest.make 2>/dev/null` in 2522 *@@@%%%=?*=@@@%%%*) 2523 eval ac_cv_prog_make_${ac_make}_set=yes;; 2524 *) 2525 eval ac_cv_prog_make_${ac_make}_set=no;; 2526esac 2527rm -f conftest.make 2528fi 2529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2531$as_echo "yes" >&6; } 2532 SET_MAKE= 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2535$as_echo "no" >&6; } 2536 SET_MAKE="MAKE=${MAKE-make}" 2537fi 2538 2539rm -rf .tst 2>/dev/null 2540mkdir .tst 2>/dev/null 2541if test -d .tst; then 2542 am__leading_dot=. 2543else 2544 am__leading_dot=_ 2545fi 2546rmdir .tst 2>/dev/null 2547 2548# Check whether --enable-silent-rules was given. 2549if test "${enable_silent_rules+set}" = set; then : 2550 enableval=$enable_silent_rules; 2551fi 2552 2553case $enable_silent_rules in # ((( 2554 yes) AM_DEFAULT_VERBOSITY=0;; 2555 no) AM_DEFAULT_VERBOSITY=1;; 2556 *) AM_DEFAULT_VERBOSITY=1;; 2557esac 2558am_make=${MAKE-make} 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2560$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2561if ${am_cv_make_support_nested_variables+:} false; then : 2562 $as_echo_n "(cached) " >&6 2563else 2564 if $as_echo 'TRUE=$(BAR$(V)) 2565BAR0=false 2566BAR1=true 2567V=1 2568am__doit: 2569 @$(TRUE) 2570.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2571 am_cv_make_support_nested_variables=yes 2572else 2573 am_cv_make_support_nested_variables=no 2574fi 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2577$as_echo "$am_cv_make_support_nested_variables" >&6; } 2578if test $am_cv_make_support_nested_variables = yes; then 2579 AM_V='$(V)' 2580 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2581else 2582 AM_V=$AM_DEFAULT_VERBOSITY 2583 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2584fi 2585AM_BACKSLASH='\' 2586 2587if test "`cd $srcdir && pwd`" != "`pwd`"; then 2588 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2589 # is not polluted with repeated "-I." 2590 am__isrc=' -I$(srcdir)' 2591 # test to see if srcdir already configured 2592 if test -f $srcdir/config.status; then 2593 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2594 fi 2595fi 2596 2597# test whether we have cygpath 2598if test -z "$CYGPATH_W"; then 2599 if (cygpath --version) >/dev/null 2>/dev/null; then 2600 CYGPATH_W='cygpath -w' 2601 else 2602 CYGPATH_W=echo 2603 fi 2604fi 2605 2606 2607# Define the identity of the package. 2608 PACKAGE='xwud' 2609 VERSION='1.0.5' 2610 2611 2612cat >>confdefs.h <<_ACEOF 2613#define PACKAGE "$PACKAGE" 2614_ACEOF 2615 2616 2617cat >>confdefs.h <<_ACEOF 2618#define VERSION "$VERSION" 2619_ACEOF 2620 2621# Some tools Automake needs. 2622 2623ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2624 2625 2626AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2627 2628 2629AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2630 2631 2632AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2633 2634 2635MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2636 2637# For better backward compatibility. To be removed once Automake 1.9.x 2638# dies out for good. For more background, see: 2639# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2640# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2641mkdir_p='$(MKDIR_P)' 2642 2643# We need awk for the "check" target (and possibly the TAP driver). The 2644# system "awk" is bad on some platforms. 2645# Always define AMTAR for backward compatibility. Yes, it's still used 2646# in the wild :-( We should find a proper way to deprecate it ... 2647AMTAR='$${TAR-tar}' 2648 2649 2650# We'll loop over all known methods to create a tar archive until one works. 2651_am_tools='gnutar pax cpio none' 2652 2653am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2654 2655 2656 2657 2658 2659 2660# POSIX will say in a future version that running "rm -f" with no argument 2661# is OK; and we want to be able to make that assumption in our Makefile 2662# recipes. So use an aggressive probe to check that the usage we want is 2663# actually supported "in the wild" to an acceptable degree. 2664# See automake bug#10828. 2665# To make any issue more visible, cause the running configure to be aborted 2666# by default if the 'rm' program in use doesn't match our expectations; the 2667# user can still override this though. 2668if rm -f && rm -fr && rm -rf; then : OK; else 2669 cat >&2 <<'END' 2670Oops! 2671 2672Your 'rm' program seems unable to run without file operands specified 2673on the command line, even when the '-f' option is present. This is contrary 2674to the behaviour of most rm programs out there, and not conforming with 2675the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2676 2677Please tell bug-automake@gnu.org about your system, including the value 2678of your $PATH and any error possibly output before this message. This 2679can help us improve future automake versions. 2680 2681END 2682 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2683 echo 'Configuration will proceed anyway, since you have set the' >&2 2684 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2685 echo >&2 2686 else 2687 cat >&2 <<'END' 2688Aborting the configuration process, to ensure you take notice of the issue. 2689 2690You can download and install GNU coreutils to get an 'rm' implementation 2691that behaves properly: <http://www.gnu.org/software/coreutils/>. 2692 2693If you want to complete the configuration process using your problematic 2694'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2695to "yes", and re-run configure. 2696 2697END 2698 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2699 fi 2700fi 2701 2702 2703# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715DEPDIR="${am__leading_dot}deps" 2716 2717ac_config_commands="$ac_config_commands depfiles" 2718 2719 2720am_make=${MAKE-make} 2721cat > confinc << 'END' 2722am__doit: 2723 @echo this is the am__doit target 2724.PHONY: am__doit 2725END 2726# If we don't find an include directive, just comment out the code. 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2728$as_echo_n "checking for style of include used by $am_make... " >&6; } 2729am__include="#" 2730am__quote= 2731_am_result=none 2732# First try GNU make style include. 2733echo "include confinc" > confmf 2734# Ignore all kinds of additional output from 'make'. 2735case `$am_make -s -f confmf 2> /dev/null` in #( 2736*the\ am__doit\ target*) 2737 am__include=include 2738 am__quote= 2739 _am_result=GNU 2740 ;; 2741esac 2742# Now try BSD make style include. 2743if test "$am__include" = "#"; then 2744 echo '.include "confinc"' > confmf 2745 case `$am_make -s -f confmf 2> /dev/null` in #( 2746 *the\ am__doit\ target*) 2747 am__include=.include 2748 am__quote="\"" 2749 _am_result=BSD 2750 ;; 2751 esac 2752fi 2753 2754 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2756$as_echo "$_am_result" >&6; } 2757rm -f confinc confmf 2758 2759# Check whether --enable-dependency-tracking was given. 2760if test "${enable_dependency_tracking+set}" = set; then : 2761 enableval=$enable_dependency_tracking; 2762fi 2763 2764if test "x$enable_dependency_tracking" != xno; then 2765 am_depcomp="$ac_aux_dir/depcomp" 2766 AMDEPBACKSLASH='\' 2767 am__nodep='_no' 2768fi 2769 if test "x$enable_dependency_tracking" != xno; then 2770 AMDEP_TRUE= 2771 AMDEP_FALSE='#' 2772else 2773 AMDEP_TRUE='#' 2774 AMDEP_FALSE= 2775fi 2776 2777 2778ac_ext=c 2779ac_cpp='$CPP $CPPFLAGS' 2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2782ac_compiler_gnu=$ac_cv_c_compiler_gnu 2783if test -n "$ac_tool_prefix"; then 2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2785set dummy ${ac_tool_prefix}gcc; ac_word=$2 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2787$as_echo_n "checking for $ac_word... " >&6; } 2788if ${ac_cv_prog_CC+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 if test -n "$CC"; then 2792 ac_cv_prog_CC="$CC" # Let the user override the test. 2793else 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811CC=$ac_cv_prog_CC 2812if test -n "$CC"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2814$as_echo "$CC" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 2821fi 2822if test -z "$ac_cv_prog_CC"; then 2823 ac_ct_CC=$CC 2824 # Extract the first word of "gcc", so it can be a program name with args. 2825set dummy gcc; ac_word=$2 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827$as_echo_n "checking for $ac_word... " >&6; } 2828if ${ac_cv_prog_ac_ct_CC+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test -n "$ac_ct_CC"; then 2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_ac_ct_CC="gcc" 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851ac_ct_CC=$ac_cv_prog_ac_ct_CC 2852if test -n "$ac_ct_CC"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2854$as_echo "$ac_ct_CC" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 if test "x$ac_ct_CC" = x; then 2861 CC="" 2862 else 2863 case $cross_compiling:$ac_tool_warned in 2864yes:) 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2867ac_tool_warned=yes ;; 2868esac 2869 CC=$ac_ct_CC 2870 fi 2871else 2872 CC="$ac_cv_prog_CC" 2873fi 2874 2875if test -z "$CC"; then 2876 if test -n "$ac_tool_prefix"; then 2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2878set dummy ${ac_tool_prefix}cc; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if ${ac_cv_prog_CC+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 if test -n "$CC"; then 2885 ac_cv_prog_CC="$CC" # Let the user override the test. 2886else 2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_CC="${ac_tool_prefix}cc" 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi 2903fi 2904CC=$ac_cv_prog_CC 2905if test -n "$CC"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2907$as_echo "$CC" >&6; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911fi 2912 2913 2914 fi 2915fi 2916if test -z "$CC"; then 2917 # Extract the first word of "cc", so it can be a program name with args. 2918set dummy cc; ac_word=$2 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920$as_echo_n "checking for $ac_word... " >&6; } 2921if ${ac_cv_prog_CC+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test -n "$CC"; then 2925 ac_cv_prog_CC="$CC" # Let the user override the test. 2926else 2927 ac_prog_rejected=no 2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2929for as_dir in $PATH 2930do 2931 IFS=$as_save_IFS 2932 test -z "$as_dir" && as_dir=. 2933 for ac_exec_ext in '' $ac_executable_extensions; do 2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2936 ac_prog_rejected=yes 2937 continue 2938 fi 2939 ac_cv_prog_CC="cc" 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2941 break 2 2942 fi 2943done 2944 done 2945IFS=$as_save_IFS 2946 2947if test $ac_prog_rejected = yes; then 2948 # We found a bogon in the path, so make sure we never use it. 2949 set dummy $ac_cv_prog_CC 2950 shift 2951 if test $# != 0; then 2952 # We chose a different compiler from the bogus one. 2953 # However, it has the same basename, so the bogon will be chosen 2954 # first if we set CC to just the basename; use the full file name. 2955 shift 2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2957 fi 2958fi 2959fi 2960fi 2961CC=$ac_cv_prog_CC 2962if test -n "$CC"; then 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2964$as_echo "$CC" >&6; } 2965else 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967$as_echo "no" >&6; } 2968fi 2969 2970 2971fi 2972if test -z "$CC"; then 2973 if test -n "$ac_tool_prefix"; then 2974 for ac_prog in cl.exe 2975 do 2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2977set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if ${ac_cv_prog_CC+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$CC"; then 2984 ac_cv_prog_CC="$CC" # Let the user override the test. 2985else 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998 done 2999IFS=$as_save_IFS 3000 3001fi 3002fi 3003CC=$ac_cv_prog_CC 3004if test -n "$CC"; then 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3006$as_echo "$CC" >&6; } 3007else 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3009$as_echo "no" >&6; } 3010fi 3011 3012 3013 test -n "$CC" && break 3014 done 3015fi 3016if test -z "$CC"; then 3017 ac_ct_CC=$CC 3018 for ac_prog in cl.exe 3019do 3020 # Extract the first word of "$ac_prog", so it can be a program name with args. 3021set dummy $ac_prog; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if ${ac_cv_prog_ac_ct_CC+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$ac_ct_CC"; then 3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_ac_ct_CC="$ac_prog" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047ac_ct_CC=$ac_cv_prog_ac_ct_CC 3048if test -n "$ac_ct_CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3050$as_echo "$ac_ct_CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 test -n "$ac_ct_CC" && break 3058done 3059 3060 if test "x$ac_ct_CC" = x; then 3061 CC="" 3062 else 3063 case $cross_compiling:$ac_tool_warned in 3064yes:) 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3067ac_tool_warned=yes ;; 3068esac 3069 CC=$ac_ct_CC 3070 fi 3071fi 3072 3073fi 3074 3075 3076test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3078as_fn_error $? "no acceptable C compiler found in \$PATH 3079See \`config.log' for more details" "$LINENO" 5; } 3080 3081# Provide some information about the compiler. 3082$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3083set X $ac_compile 3084ac_compiler=$2 3085for ac_option in --version -v -V -qversion; do 3086 { { ac_try="$ac_compiler $ac_option >&5" 3087case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090esac 3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3092$as_echo "$ac_try_echo"; } >&5 3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3094 ac_status=$? 3095 if test -s conftest.err; then 3096 sed '10a\ 3097... rest of stderr output deleted ... 3098 10q' conftest.err >conftest.er1 3099 cat conftest.er1 >&5 3100 fi 3101 rm -f conftest.er1 conftest.err 3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3103 test $ac_status = 0; } 3104done 3105 3106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117ac_clean_files_save=$ac_clean_files 3118ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3119# Try to create an executable without -o first, disregard a.out. 3120# It will help us diagnose broken compilers, and finding out an intuition 3121# of exeext. 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3123$as_echo_n "checking whether the C compiler works... " >&6; } 3124ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3125 3126# The possible output files: 3127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3128 3129ac_rmfiles= 3130for ac_file in $ac_files 3131do 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3135 esac 3136done 3137rm -f $ac_rmfiles 3138 3139if { { ac_try="$ac_link_default" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145$as_echo "$ac_try_echo"; } >&5 3146 (eval "$ac_link_default") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; }; then : 3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3151# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3152# in a Makefile. We should not override ac_cv_exeext if it was cached, 3153# so that the user can short-circuit this test for compilers unknown to 3154# Autoconf. 3155for ac_file in $ac_files '' 3156do 3157 test -f "$ac_file" || continue 3158 case $ac_file in 3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3160 ;; 3161 [ab].out ) 3162 # We found the default executable, but exeext='' is most 3163 # certainly right. 3164 break;; 3165 *.* ) 3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3167 then :; else 3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3169 fi 3170 # We set ac_cv_exeext here because the later test for it is not 3171 # safe: cross compilers may not add the suffix if given an `-o' 3172 # argument, so we may need to know it at that point already. 3173 # Even if this section looks crufty: it has the advantage of 3174 # actually working. 3175 break;; 3176 * ) 3177 break;; 3178 esac 3179done 3180test "$ac_cv_exeext" = no && ac_cv_exeext= 3181 3182else 3183 ac_file='' 3184fi 3185if test -z "$ac_file"; then : 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188$as_echo "$as_me: failed program was:" >&5 3189sed 's/^/| /' conftest.$ac_ext >&5 3190 3191{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3193as_fn_error 77 "C compiler cannot create executables 3194See \`config.log' for more details" "$LINENO" 5; } 3195else 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3197$as_echo "yes" >&6; } 3198fi 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3200$as_echo_n "checking for C compiler default output file name... " >&6; } 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3202$as_echo "$ac_file" >&6; } 3203ac_exeext=$ac_cv_exeext 3204 3205rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3206ac_clean_files=$ac_clean_files_save 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3208$as_echo_n "checking for suffix of executables... " >&6; } 3209if { { ac_try="$ac_link" 3210case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3215$as_echo "$ac_try_echo"; } >&5 3216 (eval "$ac_link") 2>&5 3217 ac_status=$? 3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219 test $ac_status = 0; }; then : 3220 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3222# work properly (i.e., refer to `conftest.exe'), while it won't with 3223# `rm'. 3224for ac_file in conftest.exe conftest conftest.*; do 3225 test -f "$ac_file" || continue 3226 case $ac_file in 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3229 break;; 3230 * ) break;; 3231 esac 3232done 3233else 3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3236as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3237See \`config.log' for more details" "$LINENO" 5; } 3238fi 3239rm -f conftest conftest$ac_cv_exeext 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3241$as_echo "$ac_cv_exeext" >&6; } 3242 3243rm -f conftest.$ac_ext 3244EXEEXT=$ac_cv_exeext 3245ac_exeext=$EXEEXT 3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3247/* end confdefs.h. */ 3248#include <stdio.h> 3249int 3250main () 3251{ 3252FILE *f = fopen ("conftest.out", "w"); 3253 return ferror (f) || fclose (f) != 0; 3254 3255 ; 3256 return 0; 3257} 3258_ACEOF 3259ac_clean_files="$ac_clean_files conftest.out" 3260# Check that the compiler produces executables we can run. If not, either 3261# the compiler is broken, or we cross compile. 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3263$as_echo_n "checking whether we are cross compiling... " >&6; } 3264if test "$cross_compiling" != yes; then 3265 { { ac_try="$ac_link" 3266case "(($ac_try" in 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3268 *) ac_try_echo=$ac_try;; 3269esac 3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3271$as_echo "$ac_try_echo"; } >&5 3272 (eval "$ac_link") 2>&5 3273 ac_status=$? 3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3275 test $ac_status = 0; } 3276 if { ac_try='./conftest$ac_cv_exeext' 3277 { { case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282$as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_try") 2>&5 3284 ac_status=$? 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; }; }; then 3287 cross_compiling=no 3288 else 3289 if test "$cross_compiling" = maybe; then 3290 cross_compiling=yes 3291 else 3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3294as_fn_error $? "cannot run C compiled programs. 3295If you meant to cross compile, use \`--host'. 3296See \`config.log' for more details" "$LINENO" 5; } 3297 fi 3298 fi 3299fi 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3301$as_echo "$cross_compiling" >&6; } 3302 3303rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3304ac_clean_files=$ac_clean_files_save 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3306$as_echo_n "checking for suffix of object files... " >&6; } 3307if ${ac_cv_objext+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313int 3314main () 3315{ 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321rm -f conftest.o conftest.obj 3322if { { ac_try="$ac_compile" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3328$as_echo "$ac_try_echo"; } >&5 3329 (eval "$ac_compile") 2>&5 3330 ac_status=$? 3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3332 test $ac_status = 0; }; then : 3333 for ac_file in conftest.o conftest.obj conftest.*; do 3334 test -f "$ac_file" || continue; 3335 case $ac_file in 3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3338 break;; 3339 esac 3340done 3341else 3342 $as_echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3347as_fn_error $? "cannot compute suffix of object files: cannot compile 3348See \`config.log' for more details" "$LINENO" 5; } 3349fi 3350rm -f conftest.$ac_cv_objext conftest.$ac_ext 3351fi 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3353$as_echo "$ac_cv_objext" >&6; } 3354OBJEXT=$ac_cv_objext 3355ac_objext=$OBJEXT 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3357$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3358if ${ac_cv_c_compiler_gnu+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367#ifndef __GNUC__ 3368 choke me 3369#endif 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375if ac_fn_c_try_compile "$LINENO"; then : 3376 ac_compiler_gnu=yes 3377else 3378 ac_compiler_gnu=no 3379fi 3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3381ac_cv_c_compiler_gnu=$ac_compiler_gnu 3382 3383fi 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3385$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3386if test $ac_compiler_gnu = yes; then 3387 GCC=yes 3388else 3389 GCC= 3390fi 3391ac_test_CFLAGS=${CFLAGS+set} 3392ac_save_CFLAGS=$CFLAGS 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3394$as_echo_n "checking whether $CC accepts -g... " >&6; } 3395if ${ac_cv_prog_cc_g+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 ac_save_c_werror_flag=$ac_c_werror_flag 3399 ac_c_werror_flag=yes 3400 ac_cv_prog_cc_g=no 3401 CFLAGS="-g" 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413if ac_fn_c_try_compile "$LINENO"; then : 3414 ac_cv_prog_cc_g=yes 3415else 3416 CFLAGS="" 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418/* end confdefs.h. */ 3419 3420int 3421main () 3422{ 3423 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428if ac_fn_c_try_compile "$LINENO"; then : 3429 3430else 3431 ac_c_werror_flag=$ac_save_c_werror_flag 3432 CFLAGS="-g" 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435 3436int 3437main () 3438{ 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_compile "$LINENO"; then : 3445 ac_cv_prog_cc_g=yes 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452 ac_c_werror_flag=$ac_save_c_werror_flag 3453fi 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3455$as_echo "$ac_cv_prog_cc_g" >&6; } 3456if test "$ac_test_CFLAGS" = set; then 3457 CFLAGS=$ac_save_CFLAGS 3458elif test $ac_cv_prog_cc_g = yes; then 3459 if test "$GCC" = yes; then 3460 CFLAGS="-g -O2" 3461 else 3462 CFLAGS="-g" 3463 fi 3464else 3465 if test "$GCC" = yes; then 3466 CFLAGS="-O2" 3467 else 3468 CFLAGS= 3469 fi 3470fi 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3472$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3473if ${ac_cv_prog_cc_c89+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 ac_cv_prog_cc_c89=no 3477ac_save_CC=$CC 3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480#include <stdarg.h> 3481#include <stdio.h> 3482struct stat; 3483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3484struct buf { int x; }; 3485FILE * (*rcsopen) (struct buf *, struct stat *, int); 3486static char *e (p, i) 3487 char **p; 3488 int i; 3489{ 3490 return p[i]; 3491} 3492static char *f (char * (*g) (char **, int), char **p, ...) 3493{ 3494 char *s; 3495 va_list v; 3496 va_start (v,p); 3497 s = g (p, va_arg (v,int)); 3498 va_end (v); 3499 return s; 3500} 3501 3502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3503 function prototypes and stuff, but not '\xHH' hex character constants. 3504 These don't provoke an error unfortunately, instead are silently treated 3505 as 'x'. The following induces an error, until -std is added to get 3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3507 array size at least. It's necessary to write '\x00'==0 to get something 3508 that's true only with -std. */ 3509int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3510 3511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3512 inside strings and character constants. */ 3513#define FOO(x) 'x' 3514int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3515 3516int test (int i, double x); 3517struct s1 {int (*f) (int a);}; 3518struct s2 {int (*f) (double a);}; 3519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3520int argc; 3521char **argv; 3522int 3523main () 3524{ 3525return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3532do 3533 CC="$ac_save_CC $ac_arg" 3534 if ac_fn_c_try_compile "$LINENO"; then : 3535 ac_cv_prog_cc_c89=$ac_arg 3536fi 3537rm -f core conftest.err conftest.$ac_objext 3538 test "x$ac_cv_prog_cc_c89" != "xno" && break 3539done 3540rm -f conftest.$ac_ext 3541CC=$ac_save_CC 3542 3543fi 3544# AC_CACHE_VAL 3545case "x$ac_cv_prog_cc_c89" in 3546 x) 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3548$as_echo "none needed" >&6; } ;; 3549 xno) 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3551$as_echo "unsupported" >&6; } ;; 3552 *) 3553 CC="$CC $ac_cv_prog_cc_c89" 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3555$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3556esac 3557if test "x$ac_cv_prog_cc_c89" != xno; then : 3558 3559fi 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 3567ac_ext=c 3568ac_cpp='$CPP $CPPFLAGS' 3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3571ac_compiler_gnu=$ac_cv_c_compiler_gnu 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3573$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3574if ${am_cv_prog_cc_c_o+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579 3580int 3581main () 3582{ 3583 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588 # Make sure it works both with $CC and with simple cc. 3589 # Following AC_PROG_CC_C_O, we do the test twice because some 3590 # compilers refuse to overwrite an existing .o file with -o, 3591 # though they will create one. 3592 am_cv_prog_cc_c_o=yes 3593 for am_i in 1 2; do 3594 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3595 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } \ 3599 && test -f conftest2.$ac_objext; then 3600 : OK 3601 else 3602 am_cv_prog_cc_c_o=no 3603 break 3604 fi 3605 done 3606 rm -f core conftest* 3607 unset am_i 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3610$as_echo "$am_cv_prog_cc_c_o" >&6; } 3611if test "$am_cv_prog_cc_c_o" != yes; then 3612 # Losing compiler, so override with the script. 3613 # FIXME: It is wrong to rewrite CC. 3614 # But if we don't then we get into trouble of one sort or another. 3615 # A longer-term fix would be to have automake use am__CC in this case, 3616 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3617 CC="$am_aux_dir/compile $CC" 3618fi 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624 3625 3626depcc="$CC" am_compiler_list= 3627 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3629$as_echo_n "checking dependency style of $depcc... " >&6; } 3630if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3631 $as_echo_n "(cached) " >&6 3632else 3633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3634 # We make a subdir and do the tests there. Otherwise we can end up 3635 # making bogus files that we don't know about and never remove. For 3636 # instance it was reported that on HP-UX the gcc test will end up 3637 # making a dummy file named 'D' -- because '-MD' means "put the output 3638 # in D". 3639 rm -rf conftest.dir 3640 mkdir conftest.dir 3641 # Copy depcomp to subdir because otherwise we won't find it if we're 3642 # using a relative directory. 3643 cp "$am_depcomp" conftest.dir 3644 cd conftest.dir 3645 # We will build objects and dependencies in a subdirectory because 3646 # it helps to detect inapplicable dependency modes. For instance 3647 # both Tru64's cc and ICC support -MD to output dependencies as a 3648 # side effect of compilation, but ICC will put the dependencies in 3649 # the current directory while Tru64 will put them in the object 3650 # directory. 3651 mkdir sub 3652 3653 am_cv_CC_dependencies_compiler_type=none 3654 if test "$am_compiler_list" = ""; then 3655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3656 fi 3657 am__universal=false 3658 case " $depcc " in #( 3659 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3660 esac 3661 3662 for depmode in $am_compiler_list; do 3663 # Setup a source with many dependencies, because some compilers 3664 # like to wrap large dependency lists on column 80 (with \), and 3665 # we should not choose a depcomp mode which is confused by this. 3666 # 3667 # We need to recreate these files for each test, as the compiler may 3668 # overwrite some of them when testing with obscure command lines. 3669 # This happens at least with the AIX C compiler. 3670 : > sub/conftest.c 3671 for i in 1 2 3 4 5 6; do 3672 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3673 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3674 # Solaris 10 /bin/sh. 3675 echo '/* dummy */' > sub/conftst$i.h 3676 done 3677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3678 3679 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3680 # mode. It turns out that the SunPro C++ compiler does not properly 3681 # handle '-M -o', and we need to detect this. Also, some Intel 3682 # versions had trouble with output in subdirs. 3683 am__obj=sub/conftest.${OBJEXT-o} 3684 am__minus_obj="-o $am__obj" 3685 case $depmode in 3686 gcc) 3687 # This depmode causes a compiler race in universal mode. 3688 test "$am__universal" = false || continue 3689 ;; 3690 nosideeffect) 3691 # After this tag, mechanisms are not by side-effect, so they'll 3692 # only be used when explicitly requested. 3693 if test "x$enable_dependency_tracking" = xyes; then 3694 continue 3695 else 3696 break 3697 fi 3698 ;; 3699 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3700 # This compiler won't grok '-c -o', but also, the minuso test has 3701 # not run yet. These depmodes are late enough in the game, and 3702 # so weak that their functioning should not be impacted. 3703 am__obj=conftest.${OBJEXT-o} 3704 am__minus_obj= 3705 ;; 3706 none) break ;; 3707 esac 3708 if depmode=$depmode \ 3709 source=sub/conftest.c object=$am__obj \ 3710 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3711 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3712 >/dev/null 2>conftest.err && 3713 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3715 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3717 # icc doesn't choke on unknown options, it will just issue warnings 3718 # or remarks (even with -Werror). So we grep stderr for any message 3719 # that says an option was ignored or not supported. 3720 # When given -MP, icc 7.0 and 7.1 complain thusly: 3721 # icc: Command line warning: ignoring option '-M'; no argument required 3722 # The diagnosis changed in icc 8.0: 3723 # icc: Command line remark: option '-MP' not supported 3724 if (grep 'ignoring option' conftest.err || 3725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3726 am_cv_CC_dependencies_compiler_type=$depmode 3727 break 3728 fi 3729 fi 3730 done 3731 3732 cd .. 3733 rm -rf conftest.dir 3734else 3735 am_cv_CC_dependencies_compiler_type=none 3736fi 3737 3738fi 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3740$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3741CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3742 3743 if 3744 test "x$enable_dependency_tracking" != xno \ 3745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3746 am__fastdepCC_TRUE= 3747 am__fastdepCC_FALSE='#' 3748else 3749 am__fastdepCC_TRUE='#' 3750 am__fastdepCC_FALSE= 3751fi 3752 3753 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3755$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3756if ${ac_cv_prog_cc_c99+:} false; then : 3757 $as_echo_n "(cached) " >&6 3758else 3759 ac_cv_prog_cc_c99=no 3760ac_save_CC=$CC 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763#include <stdarg.h> 3764#include <stdbool.h> 3765#include <stdlib.h> 3766#include <wchar.h> 3767#include <stdio.h> 3768 3769// Check varargs macros. These examples are taken from C99 6.10.3.5. 3770#define debug(...) fprintf (stderr, __VA_ARGS__) 3771#define showlist(...) puts (#__VA_ARGS__) 3772#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3773static void 3774test_varargs_macros (void) 3775{ 3776 int x = 1234; 3777 int y = 5678; 3778 debug ("Flag"); 3779 debug ("X = %d\n", x); 3780 showlist (The first, second, and third items.); 3781 report (x>y, "x is %d but y is %d", x, y); 3782} 3783 3784// Check long long types. 3785#define BIG64 18446744073709551615ull 3786#define BIG32 4294967295ul 3787#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3788#if !BIG_OK 3789 your preprocessor is broken; 3790#endif 3791#if BIG_OK 3792#else 3793 your preprocessor is broken; 3794#endif 3795static long long int bignum = -9223372036854775807LL; 3796static unsigned long long int ubignum = BIG64; 3797 3798struct incomplete_array 3799{ 3800 int datasize; 3801 double data[]; 3802}; 3803 3804struct named_init { 3805 int number; 3806 const wchar_t *name; 3807 double average; 3808}; 3809 3810typedef const char *ccp; 3811 3812static inline int 3813test_restrict (ccp restrict text) 3814{ 3815 // See if C++-style comments work. 3816 // Iterate through items via the restricted pointer. 3817 // Also check for declarations in for loops. 3818 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3819 continue; 3820 return 0; 3821} 3822 3823// Check varargs and va_copy. 3824static void 3825test_varargs (const char *format, ...) 3826{ 3827 va_list args; 3828 va_start (args, format); 3829 va_list args_copy; 3830 va_copy (args_copy, args); 3831 3832 const char *str; 3833 int number; 3834 float fnumber; 3835 3836 while (*format) 3837 { 3838 switch (*format++) 3839 { 3840 case 's': // string 3841 str = va_arg (args_copy, const char *); 3842 break; 3843 case 'd': // int 3844 number = va_arg (args_copy, int); 3845 break; 3846 case 'f': // float 3847 fnumber = va_arg (args_copy, double); 3848 break; 3849 default: 3850 break; 3851 } 3852 } 3853 va_end (args_copy); 3854 va_end (args); 3855} 3856 3857int 3858main () 3859{ 3860 3861 // Check bool. 3862 _Bool success = false; 3863 3864 // Check restrict. 3865 if (test_restrict ("String literal") == 0) 3866 success = true; 3867 char *restrict newvar = "Another string"; 3868 3869 // Check varargs. 3870 test_varargs ("s, d' f .", "string", 65, 34.234); 3871 test_varargs_macros (); 3872 3873 // Check flexible array members. 3874 struct incomplete_array *ia = 3875 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3876 ia->datasize = 10; 3877 for (int i = 0; i < ia->datasize; ++i) 3878 ia->data[i] = i * 1.234; 3879 3880 // Check named initializers. 3881 struct named_init ni = { 3882 .number = 34, 3883 .name = L"Test wide string", 3884 .average = 543.34343, 3885 }; 3886 3887 ni.number = 58; 3888 3889 int dynamic_array[ni.number]; 3890 dynamic_array[ni.number - 1] = 543; 3891 3892 // work around unused variable warnings 3893 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3894 || dynamic_array[ni.number - 1] != 543); 3895 3896 ; 3897 return 0; 3898} 3899_ACEOF 3900for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3901do 3902 CC="$ac_save_CC $ac_arg" 3903 if ac_fn_c_try_compile "$LINENO"; then : 3904 ac_cv_prog_cc_c99=$ac_arg 3905fi 3906rm -f core conftest.err conftest.$ac_objext 3907 test "x$ac_cv_prog_cc_c99" != "xno" && break 3908done 3909rm -f conftest.$ac_ext 3910CC=$ac_save_CC 3911 3912fi 3913# AC_CACHE_VAL 3914case "x$ac_cv_prog_cc_c99" in 3915 x) 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3917$as_echo "none needed" >&6; } ;; 3918 xno) 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3920$as_echo "unsupported" >&6; } ;; 3921 *) 3922 CC="$CC $ac_cv_prog_cc_c99" 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3924$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3925esac 3926if test "x$ac_cv_prog_cc_c99" != xno; then : 3927 3928fi 3929 3930 3931 3932ac_ext=c 3933ac_cpp='$CPP $CPPFLAGS' 3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3936ac_compiler_gnu=$ac_cv_c_compiler_gnu 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3938$as_echo_n "checking how to run the C preprocessor... " >&6; } 3939# On Suns, sometimes $CPP names a directory. 3940if test -n "$CPP" && test -d "$CPP"; then 3941 CPP= 3942fi 3943if test -z "$CPP"; then 3944 if ${ac_cv_prog_CPP+:} false; then : 3945 $as_echo_n "(cached) " >&6 3946else 3947 # Double quotes because CPP needs to be expanded 3948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3949 do 3950 ac_preproc_ok=false 3951for ac_c_preproc_warn_flag in '' yes 3952do 3953 # Use a header file that comes with gcc, so configuring glibc 3954 # with a fresh cross-compiler works. 3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3956 # <limits.h> exists even on freestanding compilers. 3957 # On the NeXT, cc -E runs the code through the compiler's parser, 3958 # not just through cpp. "Syntax error" is here to catch this case. 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960/* end confdefs.h. */ 3961#ifdef __STDC__ 3962# include <limits.h> 3963#else 3964# include <assert.h> 3965#endif 3966 Syntax error 3967_ACEOF 3968if ac_fn_c_try_cpp "$LINENO"; then : 3969 3970else 3971 # Broken: fails on valid input. 3972continue 3973fi 3974rm -f conftest.err conftest.i conftest.$ac_ext 3975 3976 # OK, works on sane cases. Now check whether nonexistent headers 3977 # can be detected and how. 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980#include <ac_nonexistent.h> 3981_ACEOF 3982if ac_fn_c_try_cpp "$LINENO"; then : 3983 # Broken: success on invalid input. 3984continue 3985else 3986 # Passes both tests. 3987ac_preproc_ok=: 3988break 3989fi 3990rm -f conftest.err conftest.i conftest.$ac_ext 3991 3992done 3993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3994rm -f conftest.i conftest.err conftest.$ac_ext 3995if $ac_preproc_ok; then : 3996 break 3997fi 3998 3999 done 4000 ac_cv_prog_CPP=$CPP 4001 4002fi 4003 CPP=$ac_cv_prog_CPP 4004else 4005 ac_cv_prog_CPP=$CPP 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4008$as_echo "$CPP" >&6; } 4009ac_preproc_ok=false 4010for ac_c_preproc_warn_flag in '' yes 4011do 4012 # Use a header file that comes with gcc, so configuring glibc 4013 # with a fresh cross-compiler works. 4014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4015 # <limits.h> exists even on freestanding compilers. 4016 # On the NeXT, cc -E runs the code through the compiler's parser, 4017 # not just through cpp. "Syntax error" is here to catch this case. 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020#ifdef __STDC__ 4021# include <limits.h> 4022#else 4023# include <assert.h> 4024#endif 4025 Syntax error 4026_ACEOF 4027if ac_fn_c_try_cpp "$LINENO"; then : 4028 4029else 4030 # Broken: fails on valid input. 4031continue 4032fi 4033rm -f conftest.err conftest.i conftest.$ac_ext 4034 4035 # OK, works on sane cases. Now check whether nonexistent headers 4036 # can be detected and how. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#include <ac_nonexistent.h> 4040_ACEOF 4041if ac_fn_c_try_cpp "$LINENO"; then : 4042 # Broken: success on invalid input. 4043continue 4044else 4045 # Passes both tests. 4046ac_preproc_ok=: 4047break 4048fi 4049rm -f conftest.err conftest.i conftest.$ac_ext 4050 4051done 4052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4053rm -f conftest.i conftest.err conftest.$ac_ext 4054if $ac_preproc_ok; then : 4055 4056else 4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4059as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4060See \`config.log' for more details" "$LINENO" 5; } 4061fi 4062 4063ac_ext=c 4064ac_cpp='$CPP $CPPFLAGS' 4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4067ac_compiler_gnu=$ac_cv_c_compiler_gnu 4068 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4071$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4072if ${ac_cv_path_GREP+:} false; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 if test -z "$GREP"; then 4076 ac_path_GREP_found=false 4077 # Loop through the user's path and test for each of PROGNAME-LIST 4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_prog in grep ggrep; do 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4086 as_fn_executable_p "$ac_path_GREP" || continue 4087# Check for GNU ac_path_GREP and select it if it is found. 4088 # Check for GNU $ac_path_GREP 4089case `"$ac_path_GREP" --version 2>&1` in 4090*GNU*) 4091 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4092*) 4093 ac_count=0 4094 $as_echo_n 0123456789 >"conftest.in" 4095 while : 4096 do 4097 cat "conftest.in" "conftest.in" >"conftest.tmp" 4098 mv "conftest.tmp" "conftest.in" 4099 cp "conftest.in" "conftest.nl" 4100 $as_echo 'GREP' >> "conftest.nl" 4101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4103 as_fn_arith $ac_count + 1 && ac_count=$as_val 4104 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4105 # Best one so far, save it but keep looking for a better one 4106 ac_cv_path_GREP="$ac_path_GREP" 4107 ac_path_GREP_max=$ac_count 4108 fi 4109 # 10*(2^10) chars as input seems more than enough 4110 test $ac_count -gt 10 && break 4111 done 4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4113esac 4114 4115 $ac_path_GREP_found && break 3 4116 done 4117 done 4118 done 4119IFS=$as_save_IFS 4120 if test -z "$ac_cv_path_GREP"; then 4121 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4122 fi 4123else 4124 ac_cv_path_GREP=$GREP 4125fi 4126 4127fi 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4129$as_echo "$ac_cv_path_GREP" >&6; } 4130 GREP="$ac_cv_path_GREP" 4131 4132 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4134$as_echo_n "checking for egrep... " >&6; } 4135if ${ac_cv_path_EGREP+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4139 then ac_cv_path_EGREP="$GREP -E" 4140 else 4141 if test -z "$EGREP"; then 4142 ac_path_EGREP_found=false 4143 # Loop through the user's path and test for each of PROGNAME-LIST 4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4146do 4147 IFS=$as_save_IFS 4148 test -z "$as_dir" && as_dir=. 4149 for ac_prog in egrep; do 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4152 as_fn_executable_p "$ac_path_EGREP" || continue 4153# Check for GNU ac_path_EGREP and select it if it is found. 4154 # Check for GNU $ac_path_EGREP 4155case `"$ac_path_EGREP" --version 2>&1` in 4156*GNU*) 4157 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4158*) 4159 ac_count=0 4160 $as_echo_n 0123456789 >"conftest.in" 4161 while : 4162 do 4163 cat "conftest.in" "conftest.in" >"conftest.tmp" 4164 mv "conftest.tmp" "conftest.in" 4165 cp "conftest.in" "conftest.nl" 4166 $as_echo 'EGREP' >> "conftest.nl" 4167 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4169 as_fn_arith $ac_count + 1 && ac_count=$as_val 4170 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4171 # Best one so far, save it but keep looking for a better one 4172 ac_cv_path_EGREP="$ac_path_EGREP" 4173 ac_path_EGREP_max=$ac_count 4174 fi 4175 # 10*(2^10) chars as input seems more than enough 4176 test $ac_count -gt 10 && break 4177 done 4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4179esac 4180 4181 $ac_path_EGREP_found && break 3 4182 done 4183 done 4184 done 4185IFS=$as_save_IFS 4186 if test -z "$ac_cv_path_EGREP"; then 4187 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4188 fi 4189else 4190 ac_cv_path_EGREP=$EGREP 4191fi 4192 4193 fi 4194fi 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4196$as_echo "$ac_cv_path_EGREP" >&6; } 4197 EGREP="$ac_cv_path_EGREP" 4198 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4201$as_echo_n "checking for ANSI C header files... " >&6; } 4202if ${ac_cv_header_stdc+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4206/* end confdefs.h. */ 4207#include <stdlib.h> 4208#include <stdarg.h> 4209#include <string.h> 4210#include <float.h> 4211 4212int 4213main () 4214{ 4215 4216 ; 4217 return 0; 4218} 4219_ACEOF 4220if ac_fn_c_try_compile "$LINENO"; then : 4221 ac_cv_header_stdc=yes 4222else 4223 ac_cv_header_stdc=no 4224fi 4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226 4227if test $ac_cv_header_stdc = yes; then 4228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#include <string.h> 4232 4233_ACEOF 4234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4235 $EGREP "memchr" >/dev/null 2>&1; then : 4236 4237else 4238 ac_cv_header_stdc=no 4239fi 4240rm -f conftest* 4241 4242fi 4243 4244if test $ac_cv_header_stdc = yes; then 4245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248#include <stdlib.h> 4249 4250_ACEOF 4251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4252 $EGREP "free" >/dev/null 2>&1; then : 4253 4254else 4255 ac_cv_header_stdc=no 4256fi 4257rm -f conftest* 4258 4259fi 4260 4261if test $ac_cv_header_stdc = yes; then 4262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4263 if test "$cross_compiling" = yes; then : 4264 : 4265else 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268#include <ctype.h> 4269#include <stdlib.h> 4270#if ((' ' & 0x0FF) == 0x020) 4271# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4272# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4273#else 4274# define ISLOWER(c) \ 4275 (('a' <= (c) && (c) <= 'i') \ 4276 || ('j' <= (c) && (c) <= 'r') \ 4277 || ('s' <= (c) && (c) <= 'z')) 4278# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4279#endif 4280 4281#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4282int 4283main () 4284{ 4285 int i; 4286 for (i = 0; i < 256; i++) 4287 if (XOR (islower (i), ISLOWER (i)) 4288 || toupper (i) != TOUPPER (i)) 4289 return 2; 4290 return 0; 4291} 4292_ACEOF 4293if ac_fn_c_try_run "$LINENO"; then : 4294 4295else 4296 ac_cv_header_stdc=no 4297fi 4298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4299 conftest.$ac_objext conftest.beam conftest.$ac_ext 4300fi 4301 4302fi 4303fi 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4305$as_echo "$ac_cv_header_stdc" >&6; } 4306if test $ac_cv_header_stdc = yes; then 4307 4308$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4309 4310fi 4311 4312# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4313for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4314 inttypes.h stdint.h unistd.h 4315do : 4316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4317ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4318" 4319if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4320 cat >>confdefs.h <<_ACEOF 4321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4322_ACEOF 4323 4324fi 4325 4326done 4327 4328 4329 4330 4331 4332 4333ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4334if test "x$ac_cv_have_decl___clang__" = xyes; then : 4335 CLANGCC="yes" 4336else 4337 CLANGCC="no" 4338fi 4339 4340ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4341if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4342 INTELCC="yes" 4343else 4344 INTELCC="no" 4345fi 4346 4347ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4348if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4349 SUNCC="yes" 4350else 4351 SUNCC="no" 4352fi 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4363 if test -n "$ac_tool_prefix"; then 4364 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4365set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4367$as_echo_n "checking for $ac_word... " >&6; } 4368if ${ac_cv_path_PKG_CONFIG+:} false; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 case $PKG_CONFIG in 4372 [\\/]* | ?:[\\/]*) 4373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4374 ;; 4375 *) 4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4377for as_dir in $PATH 4378do 4379 IFS=$as_save_IFS 4380 test -z "$as_dir" && as_dir=. 4381 for ac_exec_ext in '' $ac_executable_extensions; do 4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4385 break 2 4386 fi 4387done 4388 done 4389IFS=$as_save_IFS 4390 4391 ;; 4392esac 4393fi 4394PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4395if test -n "$PKG_CONFIG"; then 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4397$as_echo "$PKG_CONFIG" >&6; } 4398else 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4400$as_echo "no" >&6; } 4401fi 4402 4403 4404fi 4405if test -z "$ac_cv_path_PKG_CONFIG"; then 4406 ac_pt_PKG_CONFIG=$PKG_CONFIG 4407 # Extract the first word of "pkg-config", so it can be a program name with args. 4408set dummy pkg-config; ac_word=$2 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4410$as_echo_n "checking for $ac_word... " >&6; } 4411if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 case $ac_pt_PKG_CONFIG in 4415 [\\/]* | ?:[\\/]*) 4416 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4417 ;; 4418 *) 4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4426 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4428 break 2 4429 fi 4430done 4431 done 4432IFS=$as_save_IFS 4433 4434 ;; 4435esac 4436fi 4437ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4438if test -n "$ac_pt_PKG_CONFIG"; then 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4440$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4441else 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4443$as_echo "no" >&6; } 4444fi 4445 4446 if test "x$ac_pt_PKG_CONFIG" = x; then 4447 PKG_CONFIG="" 4448 else 4449 case $cross_compiling:$ac_tool_warned in 4450yes:) 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4453ac_tool_warned=yes ;; 4454esac 4455 PKG_CONFIG=$ac_pt_PKG_CONFIG 4456 fi 4457else 4458 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4459fi 4460 4461fi 4462if test -n "$PKG_CONFIG"; then 4463 _pkg_min_version=0.9.0 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4465$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4466 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4468$as_echo "yes" >&6; } 4469 else 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4471$as_echo "no" >&6; } 4472 PKG_CONFIG="" 4473 fi 4474fi 4475# Make sure we can run config.sub. 4476$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4480$as_echo_n "checking build system type... " >&6; } 4481if ${ac_cv_build+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 ac_build_alias=$build_alias 4485test "x$ac_build_alias" = x && 4486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4487test "x$ac_build_alias" = x && 4488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4489ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4491 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4494$as_echo "$ac_cv_build" >&6; } 4495case $ac_cv_build in 4496*-*-*) ;; 4497*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4498esac 4499build=$ac_cv_build 4500ac_save_IFS=$IFS; IFS='-' 4501set x $ac_cv_build 4502shift 4503build_cpu=$1 4504build_vendor=$2 4505shift; shift 4506# Remember, the first character of IFS is used to create $*, 4507# except with old shells: 4508build_os=$* 4509IFS=$ac_save_IFS 4510case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4511 4512 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4514$as_echo_n "checking host system type... " >&6; } 4515if ${ac_cv_host+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test "x$host_alias" = x; then 4519 ac_cv_host=$ac_cv_build 4520else 4521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4523fi 4524 4525fi 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4527$as_echo "$ac_cv_host" >&6; } 4528case $ac_cv_host in 4529*-*-*) ;; 4530*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4531esac 4532host=$ac_cv_host 4533ac_save_IFS=$IFS; IFS='-' 4534set x $ac_cv_host 4535shift 4536host_cpu=$1 4537host_vendor=$2 4538shift; shift 4539# Remember, the first character of IFS is used to create $*, 4540# except with old shells: 4541host_os=$* 4542IFS=$ac_save_IFS 4543case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4544 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4547$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4548if ${ac_cv_path_SED+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4552 for ac_i in 1 2 3 4 5 6 7; do 4553 ac_script="$ac_script$as_nl$ac_script" 4554 done 4555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4556 { ac_script=; unset ac_script;} 4557 if test -z "$SED"; then 4558 ac_path_SED_found=false 4559 # Loop through the user's path and test for each of PROGNAME-LIST 4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_prog in sed gsed; do 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4568 as_fn_executable_p "$ac_path_SED" || continue 4569# Check for GNU ac_path_SED and select it if it is found. 4570 # Check for GNU $ac_path_SED 4571case `"$ac_path_SED" --version 2>&1` in 4572*GNU*) 4573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4574*) 4575 ac_count=0 4576 $as_echo_n 0123456789 >"conftest.in" 4577 while : 4578 do 4579 cat "conftest.in" "conftest.in" >"conftest.tmp" 4580 mv "conftest.tmp" "conftest.in" 4581 cp "conftest.in" "conftest.nl" 4582 $as_echo '' >> "conftest.nl" 4583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4585 as_fn_arith $ac_count + 1 && ac_count=$as_val 4586 if test $ac_count -gt ${ac_path_SED_max-0}; then 4587 # Best one so far, save it but keep looking for a better one 4588 ac_cv_path_SED="$ac_path_SED" 4589 ac_path_SED_max=$ac_count 4590 fi 4591 # 10*(2^10) chars as input seems more than enough 4592 test $ac_count -gt 10 && break 4593 done 4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4595esac 4596 4597 $ac_path_SED_found && break 3 4598 done 4599 done 4600 done 4601IFS=$as_save_IFS 4602 if test -z "$ac_cv_path_SED"; then 4603 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4604 fi 4605else 4606 ac_cv_path_SED=$SED 4607fi 4608 4609fi 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4611$as_echo "$ac_cv_path_SED" >&6; } 4612 SED="$ac_cv_path_SED" 4613 rm -f conftest.sed 4614 4615 4616 4617 4618 4619 4620# Check whether --enable-selective-werror was given. 4621if test "${enable_selective_werror+set}" = set; then : 4622 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4623else 4624 SELECTIVE_WERROR=yes 4625fi 4626 4627 4628 4629 4630 4631# -v is too short to test reliably with XORG_TESTSET_CFLAG 4632if test "x$SUNCC" = "xyes"; then 4633 BASE_CFLAGS="-v" 4634else 4635 BASE_CFLAGS="" 4636fi 4637 4638# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652xorg_testset_save_CFLAGS="$CFLAGS" 4653 4654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663int i; 4664_ACEOF 4665if ac_fn_c_try_compile "$LINENO"; then : 4666 xorg_cv_cc_flag_unknown_warning_option=yes 4667else 4668 xorg_cv_cc_flag_unknown_warning_option=no 4669fi 4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4671fi 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4675 CFLAGS="$xorg_testset_save_CFLAGS" 4676fi 4677 4678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4681 fi 4682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4689/* end confdefs.h. */ 4690int i; 4691_ACEOF 4692if ac_fn_c_try_compile "$LINENO"; then : 4693 xorg_cv_cc_flag_unused_command_line_argument=yes 4694else 4695 xorg_cv_cc_flag_unused_command_line_argument=no 4696fi 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4702 CFLAGS="$xorg_testset_save_CFLAGS" 4703fi 4704 4705found="no" 4706 4707 if test $found = "no" ; then 4708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4710 fi 4711 4712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4714 fi 4715 4716 CFLAGS="$CFLAGS -Wall" 4717 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4719$as_echo_n "checking if $CC supports -Wall... " >&6; } 4720 cacheid=xorg_cv_cc_flag__Wall 4721 if eval \${$cacheid+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4725/* end confdefs.h. */ 4726int i; 4727int 4728main () 4729{ 4730 4731 ; 4732 return 0; 4733} 4734_ACEOF 4735if ac_fn_c_try_link "$LINENO"; then : 4736 eval $cacheid=yes 4737else 4738 eval $cacheid=no 4739fi 4740rm -f core conftest.err conftest.$ac_objext \ 4741 conftest$ac_exeext conftest.$ac_ext 4742fi 4743 4744 4745 CFLAGS="$xorg_testset_save_CFLAGS" 4746 4747 eval supported=\$$cacheid 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4749$as_echo "$supported" >&6; } 4750 if test "$supported" = "yes" ; then 4751 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4752 found="yes" 4753 fi 4754 fi 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770xorg_testset_save_CFLAGS="$CFLAGS" 4771 4772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781int i; 4782_ACEOF 4783if ac_fn_c_try_compile "$LINENO"; then : 4784 xorg_cv_cc_flag_unknown_warning_option=yes 4785else 4786 xorg_cv_cc_flag_unknown_warning_option=no 4787fi 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789fi 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4793 CFLAGS="$xorg_testset_save_CFLAGS" 4794fi 4795 4796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4799 fi 4800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808int i; 4809_ACEOF 4810if ac_fn_c_try_compile "$LINENO"; then : 4811 xorg_cv_cc_flag_unused_command_line_argument=yes 4812else 4813 xorg_cv_cc_flag_unused_command_line_argument=no 4814fi 4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4816fi 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4820 CFLAGS="$xorg_testset_save_CFLAGS" 4821fi 4822 4823found="no" 4824 4825 if test $found = "no" ; then 4826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4828 fi 4829 4830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4832 fi 4833 4834 CFLAGS="$CFLAGS -Wpointer-arith" 4835 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4837$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4838 cacheid=xorg_cv_cc_flag__Wpointer_arith 4839 if eval \${$cacheid+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844int i; 4845int 4846main () 4847{ 4848 4849 ; 4850 return 0; 4851} 4852_ACEOF 4853if ac_fn_c_try_link "$LINENO"; then : 4854 eval $cacheid=yes 4855else 4856 eval $cacheid=no 4857fi 4858rm -f core conftest.err conftest.$ac_objext \ 4859 conftest$ac_exeext conftest.$ac_ext 4860fi 4861 4862 4863 CFLAGS="$xorg_testset_save_CFLAGS" 4864 4865 eval supported=\$$cacheid 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4867$as_echo "$supported" >&6; } 4868 if test "$supported" = "yes" ; then 4869 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4870 found="yes" 4871 fi 4872 fi 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888xorg_testset_save_CFLAGS="$CFLAGS" 4889 4890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898/* end confdefs.h. */ 4899int i; 4900_ACEOF 4901if ac_fn_c_try_compile "$LINENO"; then : 4902 xorg_cv_cc_flag_unknown_warning_option=yes 4903else 4904 xorg_cv_cc_flag_unknown_warning_option=no 4905fi 4906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4911 CFLAGS="$xorg_testset_save_CFLAGS" 4912fi 4913 4914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4917 fi 4918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926int i; 4927_ACEOF 4928if ac_fn_c_try_compile "$LINENO"; then : 4929 xorg_cv_cc_flag_unused_command_line_argument=yes 4930else 4931 xorg_cv_cc_flag_unused_command_line_argument=no 4932fi 4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4938 CFLAGS="$xorg_testset_save_CFLAGS" 4939fi 4940 4941found="no" 4942 4943 if test $found = "no" ; then 4944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4946 fi 4947 4948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4950 fi 4951 4952 CFLAGS="$CFLAGS -Wmissing-declarations" 4953 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4955$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4956 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4957 if eval \${$cacheid+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962int i; 4963int 4964main () 4965{ 4966 4967 ; 4968 return 0; 4969} 4970_ACEOF 4971if ac_fn_c_try_link "$LINENO"; then : 4972 eval $cacheid=yes 4973else 4974 eval $cacheid=no 4975fi 4976rm -f core conftest.err conftest.$ac_objext \ 4977 conftest$ac_exeext conftest.$ac_ext 4978fi 4979 4980 4981 CFLAGS="$xorg_testset_save_CFLAGS" 4982 4983 eval supported=\$$cacheid 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4985$as_echo "$supported" >&6; } 4986 if test "$supported" = "yes" ; then 4987 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4988 found="yes" 4989 fi 4990 fi 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006xorg_testset_save_CFLAGS="$CFLAGS" 5007 5008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017int i; 5018_ACEOF 5019if ac_fn_c_try_compile "$LINENO"; then : 5020 xorg_cv_cc_flag_unknown_warning_option=yes 5021else 5022 xorg_cv_cc_flag_unknown_warning_option=no 5023fi 5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5025fi 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5029 CFLAGS="$xorg_testset_save_CFLAGS" 5030fi 5031 5032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5035 fi 5036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5040 $as_echo_n "(cached) " >&6 5041else 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044int i; 5045_ACEOF 5046if ac_fn_c_try_compile "$LINENO"; then : 5047 xorg_cv_cc_flag_unused_command_line_argument=yes 5048else 5049 xorg_cv_cc_flag_unused_command_line_argument=no 5050fi 5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5052fi 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5056 CFLAGS="$xorg_testset_save_CFLAGS" 5057fi 5058 5059found="no" 5060 5061 if test $found = "no" ; then 5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 fi 5065 5066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5068 fi 5069 5070 CFLAGS="$CFLAGS -Wformat=2" 5071 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5073$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5074 cacheid=xorg_cv_cc_flag__Wformat_2 5075 if eval \${$cacheid+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5079/* end confdefs.h. */ 5080int i; 5081int 5082main () 5083{ 5084 5085 ; 5086 return 0; 5087} 5088_ACEOF 5089if ac_fn_c_try_link "$LINENO"; then : 5090 eval $cacheid=yes 5091else 5092 eval $cacheid=no 5093fi 5094rm -f core conftest.err conftest.$ac_objext \ 5095 conftest$ac_exeext conftest.$ac_ext 5096fi 5097 5098 5099 CFLAGS="$xorg_testset_save_CFLAGS" 5100 5101 eval supported=\$$cacheid 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5103$as_echo "$supported" >&6; } 5104 if test "$supported" = "yes" ; then 5105 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5106 found="yes" 5107 fi 5108 fi 5109 5110 if test $found = "no" ; then 5111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 fi 5114 5115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5117 fi 5118 5119 CFLAGS="$CFLAGS -Wformat" 5120 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5122$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5123 cacheid=xorg_cv_cc_flag__Wformat 5124 if eval \${$cacheid+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129int i; 5130int 5131main () 5132{ 5133 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138if ac_fn_c_try_link "$LINENO"; then : 5139 eval $cacheid=yes 5140else 5141 eval $cacheid=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext \ 5144 conftest$ac_exeext conftest.$ac_ext 5145fi 5146 5147 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149 5150 eval supported=\$$cacheid 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5152$as_echo "$supported" >&6; } 5153 if test "$supported" = "yes" ; then 5154 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5155 found="yes" 5156 fi 5157 fi 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175xorg_testset_save_CFLAGS="$CFLAGS" 5176 5177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5185/* end confdefs.h. */ 5186int i; 5187_ACEOF 5188if ac_fn_c_try_compile "$LINENO"; then : 5189 xorg_cv_cc_flag_unknown_warning_option=yes 5190else 5191 xorg_cv_cc_flag_unknown_warning_option=no 5192fi 5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5194fi 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5198 CFLAGS="$xorg_testset_save_CFLAGS" 5199fi 5200 5201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 fi 5205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213int i; 5214_ACEOF 5215if ac_fn_c_try_compile "$LINENO"; then : 5216 xorg_cv_cc_flag_unused_command_line_argument=yes 5217else 5218 xorg_cv_cc_flag_unused_command_line_argument=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5221fi 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226fi 5227 5228found="no" 5229 5230 if test $found = "no" ; then 5231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5233 fi 5234 5235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5237 fi 5238 5239 CFLAGS="$CFLAGS -Wstrict-prototypes" 5240 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5242$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5243 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5244 if eval \${$cacheid+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249int i; 5250int 5251main () 5252{ 5253 5254 ; 5255 return 0; 5256} 5257_ACEOF 5258if ac_fn_c_try_link "$LINENO"; then : 5259 eval $cacheid=yes 5260else 5261 eval $cacheid=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext \ 5264 conftest$ac_exeext conftest.$ac_ext 5265fi 5266 5267 5268 CFLAGS="$xorg_testset_save_CFLAGS" 5269 5270 eval supported=\$$cacheid 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5272$as_echo "$supported" >&6; } 5273 if test "$supported" = "yes" ; then 5274 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5275 found="yes" 5276 fi 5277 fi 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293xorg_testset_save_CFLAGS="$CFLAGS" 5294 5295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5300 $as_echo_n "(cached) " >&6 5301else 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5303/* end confdefs.h. */ 5304int i; 5305_ACEOF 5306if ac_fn_c_try_compile "$LINENO"; then : 5307 xorg_cv_cc_flag_unknown_warning_option=yes 5308else 5309 xorg_cv_cc_flag_unknown_warning_option=no 5310fi 5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5312fi 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5316 CFLAGS="$xorg_testset_save_CFLAGS" 5317fi 5318 5319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5322 fi 5323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331int i; 5332_ACEOF 5333if ac_fn_c_try_compile "$LINENO"; then : 5334 xorg_cv_cc_flag_unused_command_line_argument=yes 5335else 5336 xorg_cv_cc_flag_unused_command_line_argument=no 5337fi 5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5343 CFLAGS="$xorg_testset_save_CFLAGS" 5344fi 5345 5346found="no" 5347 5348 if test $found = "no" ; then 5349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5351 fi 5352 5353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5355 fi 5356 5357 CFLAGS="$CFLAGS -Wmissing-prototypes" 5358 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5360$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5361 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5362 if eval \${$cacheid+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367int i; 5368int 5369main () 5370{ 5371 5372 ; 5373 return 0; 5374} 5375_ACEOF 5376if ac_fn_c_try_link "$LINENO"; then : 5377 eval $cacheid=yes 5378else 5379 eval $cacheid=no 5380fi 5381rm -f core conftest.err conftest.$ac_objext \ 5382 conftest$ac_exeext conftest.$ac_ext 5383fi 5384 5385 5386 CFLAGS="$xorg_testset_save_CFLAGS" 5387 5388 eval supported=\$$cacheid 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5390$as_echo "$supported" >&6; } 5391 if test "$supported" = "yes" ; then 5392 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5393 found="yes" 5394 fi 5395 fi 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411xorg_testset_save_CFLAGS="$CFLAGS" 5412 5413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422int i; 5423_ACEOF 5424if ac_fn_c_try_compile "$LINENO"; then : 5425 xorg_cv_cc_flag_unknown_warning_option=yes 5426else 5427 xorg_cv_cc_flag_unknown_warning_option=no 5428fi 5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5434 CFLAGS="$xorg_testset_save_CFLAGS" 5435fi 5436 5437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5445 $as_echo_n "(cached) " >&6 5446else 5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448/* end confdefs.h. */ 5449int i; 5450_ACEOF 5451if ac_fn_c_try_compile "$LINENO"; then : 5452 xorg_cv_cc_flag_unused_command_line_argument=yes 5453else 5454 xorg_cv_cc_flag_unused_command_line_argument=no 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457fi 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5461 CFLAGS="$xorg_testset_save_CFLAGS" 5462fi 5463 5464found="no" 5465 5466 if test $found = "no" ; then 5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5469 fi 5470 5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5473 fi 5474 5475 CFLAGS="$CFLAGS -Wnested-externs" 5476 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5478$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5479 cacheid=xorg_cv_cc_flag__Wnested_externs 5480 if eval \${$cacheid+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485int i; 5486int 5487main () 5488{ 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494if ac_fn_c_try_link "$LINENO"; then : 5495 eval $cacheid=yes 5496else 5497 eval $cacheid=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext \ 5500 conftest$ac_exeext conftest.$ac_ext 5501fi 5502 5503 5504 CFLAGS="$xorg_testset_save_CFLAGS" 5505 5506 eval supported=\$$cacheid 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5508$as_echo "$supported" >&6; } 5509 if test "$supported" = "yes" ; then 5510 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5511 found="yes" 5512 fi 5513 fi 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529xorg_testset_save_CFLAGS="$CFLAGS" 5530 5531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540int i; 5541_ACEOF 5542if ac_fn_c_try_compile "$LINENO"; then : 5543 xorg_cv_cc_flag_unknown_warning_option=yes 5544else 5545 xorg_cv_cc_flag_unknown_warning_option=no 5546fi 5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5548fi 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5552 CFLAGS="$xorg_testset_save_CFLAGS" 5553fi 5554 5555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5566/* end confdefs.h. */ 5567int i; 5568_ACEOF 5569if ac_fn_c_try_compile "$LINENO"; then : 5570 xorg_cv_cc_flag_unused_command_line_argument=yes 5571else 5572 xorg_cv_cc_flag_unused_command_line_argument=no 5573fi 5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5575fi 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5579 CFLAGS="$xorg_testset_save_CFLAGS" 5580fi 5581 5582found="no" 5583 5584 if test $found = "no" ; then 5585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5587 fi 5588 5589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5591 fi 5592 5593 CFLAGS="$CFLAGS -Wbad-function-cast" 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5596$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5597 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5598 if eval \${$cacheid+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603int i; 5604int 5605main () 5606{ 5607 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612if ac_fn_c_try_link "$LINENO"; then : 5613 eval $cacheid=yes 5614else 5615 eval $cacheid=no 5616fi 5617rm -f core conftest.err conftest.$ac_objext \ 5618 conftest$ac_exeext conftest.$ac_ext 5619fi 5620 5621 5622 CFLAGS="$xorg_testset_save_CFLAGS" 5623 5624 eval supported=\$$cacheid 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5626$as_echo "$supported" >&6; } 5627 if test "$supported" = "yes" ; then 5628 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5629 found="yes" 5630 fi 5631 fi 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647xorg_testset_save_CFLAGS="$CFLAGS" 5648 5649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658int i; 5659_ACEOF 5660if ac_fn_c_try_compile "$LINENO"; then : 5661 xorg_cv_cc_flag_unknown_warning_option=yes 5662else 5663 xorg_cv_cc_flag_unknown_warning_option=no 5664fi 5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5666fi 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671fi 5672 5673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 fi 5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5684/* end confdefs.h. */ 5685int i; 5686_ACEOF 5687if ac_fn_c_try_compile "$LINENO"; then : 5688 xorg_cv_cc_flag_unused_command_line_argument=yes 5689else 5690 xorg_cv_cc_flag_unused_command_line_argument=no 5691fi 5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5697 CFLAGS="$xorg_testset_save_CFLAGS" 5698fi 5699 5700found="no" 5701 5702 if test $found = "no" ; then 5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5705 fi 5706 5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 fi 5710 5711 CFLAGS="$CFLAGS -Wold-style-definition" 5712 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5714$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5715 cacheid=xorg_cv_cc_flag__Wold_style_definition 5716 if eval \${$cacheid+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721int i; 5722int 5723main () 5724{ 5725 5726 ; 5727 return 0; 5728} 5729_ACEOF 5730if ac_fn_c_try_link "$LINENO"; then : 5731 eval $cacheid=yes 5732else 5733 eval $cacheid=no 5734fi 5735rm -f core conftest.err conftest.$ac_objext \ 5736 conftest$ac_exeext conftest.$ac_ext 5737fi 5738 5739 5740 CFLAGS="$xorg_testset_save_CFLAGS" 5741 5742 eval supported=\$$cacheid 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5744$as_echo "$supported" >&6; } 5745 if test "$supported" = "yes" ; then 5746 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5747 found="yes" 5748 fi 5749 fi 5750 5751 if test $found = "no" ; then 5752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 5756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5758 fi 5759 5760 CFLAGS="$CFLAGS -fd" 5761 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5763$as_echo_n "checking if $CC supports -fd... " >&6; } 5764 cacheid=xorg_cv_cc_flag__fd 5765 if eval \${$cacheid+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771int 5772main () 5773{ 5774 5775 ; 5776 return 0; 5777} 5778_ACEOF 5779if ac_fn_c_try_link "$LINENO"; then : 5780 eval $cacheid=yes 5781else 5782 eval $cacheid=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext \ 5785 conftest$ac_exeext conftest.$ac_ext 5786fi 5787 5788 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790 5791 eval supported=\$$cacheid 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5793$as_echo "$supported" >&6; } 5794 if test "$supported" = "yes" ; then 5795 BASE_CFLAGS="$BASE_CFLAGS -fd" 5796 found="yes" 5797 fi 5798 fi 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 xorg_cv_cc_flag_unknown_warning_option=yes 5829else 5830 xorg_cv_cc_flag_unknown_warning_option=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838fi 5839 5840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5843 fi 5844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 xorg_cv_cc_flag_unused_command_line_argument=yes 5856else 5857 xorg_cv_cc_flag_unused_command_line_argument=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5879 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5881$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5883 if eval \${$cacheid+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888int i; 5889int 5890main () 5891{ 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897if ac_fn_c_try_link "$LINENO"; then : 5898 eval $cacheid=yes 5899else 5900 eval $cacheid=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext \ 5903 conftest$ac_exeext conftest.$ac_ext 5904fi 5905 5906 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908 5909 eval supported=\$$cacheid 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911$as_echo "$supported" >&6; } 5912 if test "$supported" = "yes" ; then 5913 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5914 found="yes" 5915 fi 5916 fi 5917 5918 5919 5920 5921 5922# This chunk adds additional warnings that could catch undesired effects. 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936xorg_testset_save_CFLAGS="$CFLAGS" 5937 5938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5943 $as_echo_n "(cached) " >&6 5944else 5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5946/* end confdefs.h. */ 5947int i; 5948_ACEOF 5949if ac_fn_c_try_compile "$LINENO"; then : 5950 xorg_cv_cc_flag_unknown_warning_option=yes 5951else 5952 xorg_cv_cc_flag_unknown_warning_option=no 5953fi 5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5955fi 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5959 CFLAGS="$xorg_testset_save_CFLAGS" 5960fi 5961 5962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5965 fi 5966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5973/* end confdefs.h. */ 5974int i; 5975_ACEOF 5976if ac_fn_c_try_compile "$LINENO"; then : 5977 xorg_cv_cc_flag_unused_command_line_argument=yes 5978else 5979 xorg_cv_cc_flag_unused_command_line_argument=no 5980fi 5981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5982fi 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987fi 5988 5989found="no" 5990 5991 if test $found = "no" ; then 5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5994 fi 5995 5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5998 fi 5999 6000 CFLAGS="$CFLAGS -Wunused" 6001 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6003$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6004 cacheid=xorg_cv_cc_flag__Wunused 6005 if eval \${$cacheid+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010int i; 6011int 6012main () 6013{ 6014 6015 ; 6016 return 0; 6017} 6018_ACEOF 6019if ac_fn_c_try_link "$LINENO"; then : 6020 eval $cacheid=yes 6021else 6022 eval $cacheid=no 6023fi 6024rm -f core conftest.err conftest.$ac_objext \ 6025 conftest$ac_exeext conftest.$ac_ext 6026fi 6027 6028 6029 CFLAGS="$xorg_testset_save_CFLAGS" 6030 6031 eval supported=\$$cacheid 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6033$as_echo "$supported" >&6; } 6034 if test "$supported" = "yes" ; then 6035 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6036 found="yes" 6037 fi 6038 fi 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054xorg_testset_save_CFLAGS="$CFLAGS" 6055 6056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6064/* end confdefs.h. */ 6065int i; 6066_ACEOF 6067if ac_fn_c_try_compile "$LINENO"; then : 6068 xorg_cv_cc_flag_unknown_warning_option=yes 6069else 6070 xorg_cv_cc_flag_unknown_warning_option=no 6071fi 6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6077 CFLAGS="$xorg_testset_save_CFLAGS" 6078fi 6079 6080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 fi 6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091/* end confdefs.h. */ 6092int i; 6093_ACEOF 6094if ac_fn_c_try_compile "$LINENO"; then : 6095 xorg_cv_cc_flag_unused_command_line_argument=yes 6096else 6097 xorg_cv_cc_flag_unused_command_line_argument=no 6098fi 6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6100fi 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105fi 6106 6107found="no" 6108 6109 if test $found = "no" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6116 fi 6117 6118 CFLAGS="$CFLAGS -Wuninitialized" 6119 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6121$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6122 cacheid=xorg_cv_cc_flag__Wuninitialized 6123 if eval \${$cacheid+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129int 6130main () 6131{ 6132 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137if ac_fn_c_try_link "$LINENO"; then : 6138 eval $cacheid=yes 6139else 6140 eval $cacheid=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext \ 6143 conftest$ac_exeext conftest.$ac_ext 6144fi 6145 6146 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148 6149 eval supported=\$$cacheid 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6151$as_echo "$supported" >&6; } 6152 if test "$supported" = "yes" ; then 6153 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6154 found="yes" 6155 fi 6156 fi 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172xorg_testset_save_CFLAGS="$CFLAGS" 6173 6174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO"; then : 6186 xorg_cv_cc_flag_unknown_warning_option=yes 6187else 6188 xorg_cv_cc_flag_unknown_warning_option=no 6189fi 6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6191fi 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6195 CFLAGS="$xorg_testset_save_CFLAGS" 6196fi 6197 6198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6201 fi 6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 xorg_cv_cc_flag_unused_command_line_argument=yes 6214else 6215 xorg_cv_cc_flag_unused_command_line_argument=no 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6222 CFLAGS="$xorg_testset_save_CFLAGS" 6223fi 6224 6225found="no" 6226 6227 if test $found = "no" ; then 6228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 6232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 fi 6235 6236 CFLAGS="$CFLAGS -Wshadow" 6237 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6239$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6240 cacheid=xorg_cv_cc_flag__Wshadow 6241 if eval \${$cacheid+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245/* end confdefs.h. */ 6246int i; 6247int 6248main () 6249{ 6250 6251 ; 6252 return 0; 6253} 6254_ACEOF 6255if ac_fn_c_try_link "$LINENO"; then : 6256 eval $cacheid=yes 6257else 6258 eval $cacheid=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext \ 6261 conftest$ac_exeext conftest.$ac_ext 6262fi 6263 6264 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266 6267 eval supported=\$$cacheid 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6269$as_echo "$supported" >&6; } 6270 if test "$supported" = "yes" ; then 6271 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6272 found="yes" 6273 fi 6274 fi 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290xorg_testset_save_CFLAGS="$CFLAGS" 6291 6292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301int i; 6302_ACEOF 6303if ac_fn_c_try_compile "$LINENO"; then : 6304 xorg_cv_cc_flag_unknown_warning_option=yes 6305else 6306 xorg_cv_cc_flag_unknown_warning_option=no 6307fi 6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6309fi 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6313 CFLAGS="$xorg_testset_save_CFLAGS" 6314fi 6315 6316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6319 fi 6320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO"; then : 6331 xorg_cv_cc_flag_unused_command_line_argument=yes 6332else 6333 xorg_cv_cc_flag_unused_command_line_argument=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343found="no" 6344 6345 if test $found = "no" ; then 6346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 fi 6349 6350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6352 fi 6353 6354 CFLAGS="$CFLAGS -Wmissing-noreturn" 6355 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6357$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6358 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6359 if eval \${$cacheid+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365int 6366main () 6367{ 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_link "$LINENO"; then : 6374 eval $cacheid=yes 6375else 6376 eval $cacheid=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext \ 6379 conftest$ac_exeext conftest.$ac_ext 6380fi 6381 6382 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384 6385 eval supported=\$$cacheid 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6387$as_echo "$supported" >&6; } 6388 if test "$supported" = "yes" ; then 6389 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6390 found="yes" 6391 fi 6392 fi 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408xorg_testset_save_CFLAGS="$CFLAGS" 6409 6410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419int i; 6420_ACEOF 6421if ac_fn_c_try_compile "$LINENO"; then : 6422 xorg_cv_cc_flag_unknown_warning_option=yes 6423else 6424 xorg_cv_cc_flag_unknown_warning_option=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6427fi 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432fi 6433 6434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6437 fi 6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446int i; 6447_ACEOF 6448if ac_fn_c_try_compile "$LINENO"; then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450else 6451 xorg_cv_cc_flag_unused_command_line_argument=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459fi 6460 6461found="no" 6462 6463 if test $found = "no" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 6468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 fi 6471 6472 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6473 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6475$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6476 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6477 if eval \${$cacheid+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482int i; 6483int 6484main () 6485{ 6486 6487 ; 6488 return 0; 6489} 6490_ACEOF 6491if ac_fn_c_try_link "$LINENO"; then : 6492 eval $cacheid=yes 6493else 6494 eval $cacheid=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext conftest.$ac_ext 6498fi 6499 6500 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502 6503 eval supported=\$$cacheid 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6505$as_echo "$supported" >&6; } 6506 if test "$supported" = "yes" ; then 6507 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6508 found="yes" 6509 fi 6510 fi 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526xorg_testset_save_CFLAGS="$CFLAGS" 6527 6528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537int i; 6538_ACEOF 6539if ac_fn_c_try_compile "$LINENO"; then : 6540 xorg_cv_cc_flag_unknown_warning_option=yes 6541else 6542 xorg_cv_cc_flag_unknown_warning_option=no 6543fi 6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6545fi 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6549 CFLAGS="$xorg_testset_save_CFLAGS" 6550fi 6551 6552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6555 fi 6556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564int i; 6565_ACEOF 6566if ac_fn_c_try_compile "$LINENO"; then : 6567 xorg_cv_cc_flag_unused_command_line_argument=yes 6568else 6569 xorg_cv_cc_flag_unused_command_line_argument=no 6570fi 6571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577fi 6578 6579found="no" 6580 6581 if test $found = "no" ; then 6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 6586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 fi 6589 6590 CFLAGS="$CFLAGS -Wredundant-decls" 6591 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6593$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6594 cacheid=xorg_cv_cc_flag__Wredundant_decls 6595 if eval \${$cacheid+:} false; then : 6596 $as_echo_n "(cached) " >&6 6597else 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599/* end confdefs.h. */ 6600int i; 6601int 6602main () 6603{ 6604 6605 ; 6606 return 0; 6607} 6608_ACEOF 6609if ac_fn_c_try_link "$LINENO"; then : 6610 eval $cacheid=yes 6611else 6612 eval $cacheid=no 6613fi 6614rm -f core conftest.err conftest.$ac_objext \ 6615 conftest$ac_exeext conftest.$ac_ext 6616fi 6617 6618 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620 6621 eval supported=\$$cacheid 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6623$as_echo "$supported" >&6; } 6624 if test "$supported" = "yes" ; then 6625 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6626 found="yes" 6627 fi 6628 fi 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644xorg_testset_save_CFLAGS="$CFLAGS" 6645 6646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655int i; 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO"; then : 6658 xorg_cv_cc_flag_unknown_warning_option=yes 6659else 6660 xorg_cv_cc_flag_unknown_warning_option=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6663fi 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668fi 6669 6670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6673 fi 6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683_ACEOF 6684if ac_fn_c_try_compile "$LINENO"; then : 6685 xorg_cv_cc_flag_unused_command_line_argument=yes 6686else 6687 xorg_cv_cc_flag_unused_command_line_argument=no 6688fi 6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6694 CFLAGS="$xorg_testset_save_CFLAGS" 6695fi 6696 6697found="no" 6698 6699 if test $found = "no" ; then 6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 6704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 fi 6707 6708 CFLAGS="$CFLAGS -Wlogical-op" 6709 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6711$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6712 cacheid=xorg_cv_cc_flag__Wlogical_op 6713 if eval \${$cacheid+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718int i; 6719int 6720main () 6721{ 6722 6723 ; 6724 return 0; 6725} 6726_ACEOF 6727if ac_fn_c_try_link "$LINENO"; then : 6728 eval $cacheid=yes 6729else 6730 eval $cacheid=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext \ 6733 conftest$ac_exeext conftest.$ac_ext 6734fi 6735 6736 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738 6739 eval supported=\$$cacheid 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6741$as_echo "$supported" >&6; } 6742 if test "$supported" = "yes" ; then 6743 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6744 found="yes" 6745 fi 6746 fi 6747 6748 6749 6750# These are currently disabled because they are noisy. They will be enabled 6751# in the future once the codebase is sufficiently modernized to silence 6752# them. For now, I don't want them to drown out the other warnings. 6753# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6754# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6755# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6756 6757# Turn some warnings into errors, so we don't accidently get successful builds 6758# when there are problems that should be fixed. 6759 6760if test "x$SELECTIVE_WERROR" = "xyes" ; then 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774xorg_testset_save_CFLAGS="$CFLAGS" 6775 6776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785int i; 6786_ACEOF 6787if ac_fn_c_try_compile "$LINENO"; then : 6788 xorg_cv_cc_flag_unknown_warning_option=yes 6789else 6790 xorg_cv_cc_flag_unknown_warning_option=no 6791fi 6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6793fi 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6797 CFLAGS="$xorg_testset_save_CFLAGS" 6798fi 6799 6800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6803 fi 6804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811/* end confdefs.h. */ 6812int i; 6813_ACEOF 6814if ac_fn_c_try_compile "$LINENO"; then : 6815 xorg_cv_cc_flag_unused_command_line_argument=yes 6816else 6817 xorg_cv_cc_flag_unused_command_line_argument=no 6818fi 6819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6820fi 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825fi 6826 6827found="no" 6828 6829 if test $found = "no" ; then 6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6832 fi 6833 6834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6836 fi 6837 6838 CFLAGS="$CFLAGS -Werror=implicit" 6839 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6841$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6842 cacheid=xorg_cv_cc_flag__Werror_implicit 6843 if eval \${$cacheid+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848int i; 6849int 6850main () 6851{ 6852 6853 ; 6854 return 0; 6855} 6856_ACEOF 6857if ac_fn_c_try_link "$LINENO"; then : 6858 eval $cacheid=yes 6859else 6860 eval $cacheid=no 6861fi 6862rm -f core conftest.err conftest.$ac_objext \ 6863 conftest$ac_exeext conftest.$ac_ext 6864fi 6865 6866 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868 6869 eval supported=\$$cacheid 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6871$as_echo "$supported" >&6; } 6872 if test "$supported" = "yes" ; then 6873 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6874 found="yes" 6875 fi 6876 fi 6877 6878 if test $found = "no" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6885 fi 6886 6887 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6888 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6890$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6891 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6892 if eval \${$cacheid+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897int i; 6898int 6899main () 6900{ 6901 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906if ac_fn_c_try_link "$LINENO"; then : 6907 eval $cacheid=yes 6908else 6909 eval $cacheid=no 6910fi 6911rm -f core conftest.err conftest.$ac_objext \ 6912 conftest$ac_exeext conftest.$ac_ext 6913fi 6914 6915 6916 CFLAGS="$xorg_testset_save_CFLAGS" 6917 6918 eval supported=\$$cacheid 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6920$as_echo "$supported" >&6; } 6921 if test "$supported" = "yes" ; then 6922 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6923 found="yes" 6924 fi 6925 fi 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941xorg_testset_save_CFLAGS="$CFLAGS" 6942 6943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952int i; 6953_ACEOF 6954if ac_fn_c_try_compile "$LINENO"; then : 6955 xorg_cv_cc_flag_unknown_warning_option=yes 6956else 6957 xorg_cv_cc_flag_unknown_warning_option=no 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6960fi 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6964 CFLAGS="$xorg_testset_save_CFLAGS" 6965fi 6966 6967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6970 fi 6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6975 $as_echo_n "(cached) " >&6 6976else 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978/* end confdefs.h. */ 6979int i; 6980_ACEOF 6981if ac_fn_c_try_compile "$LINENO"; then : 6982 xorg_cv_cc_flag_unused_command_line_argument=yes 6983else 6984 xorg_cv_cc_flag_unused_command_line_argument=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6987fi 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6991 CFLAGS="$xorg_testset_save_CFLAGS" 6992fi 6993 6994found="no" 6995 6996 if test $found = "no" ; then 6997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6999 fi 7000 7001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7003 fi 7004 7005 CFLAGS="$CFLAGS -Werror=nonnull" 7006 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7008$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7009 cacheid=xorg_cv_cc_flag__Werror_nonnull 7010 if eval \${$cacheid+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015int i; 7016int 7017main () 7018{ 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024if ac_fn_c_try_link "$LINENO"; then : 7025 eval $cacheid=yes 7026else 7027 eval $cacheid=no 7028fi 7029rm -f core conftest.err conftest.$ac_objext \ 7030 conftest$ac_exeext conftest.$ac_ext 7031fi 7032 7033 7034 CFLAGS="$xorg_testset_save_CFLAGS" 7035 7036 eval supported=\$$cacheid 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7038$as_echo "$supported" >&6; } 7039 if test "$supported" = "yes" ; then 7040 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7041 found="yes" 7042 fi 7043 fi 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059xorg_testset_save_CFLAGS="$CFLAGS" 7060 7061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071_ACEOF 7072if ac_fn_c_try_compile "$LINENO"; then : 7073 xorg_cv_cc_flag_unknown_warning_option=yes 7074else 7075 xorg_cv_cc_flag_unknown_warning_option=no 7076fi 7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7078fi 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7082 CFLAGS="$xorg_testset_save_CFLAGS" 7083fi 7084 7085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 fi 7089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097int i; 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO"; then : 7100 xorg_cv_cc_flag_unused_command_line_argument=yes 7101else 7102 xorg_cv_cc_flag_unused_command_line_argument=no 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7105fi 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7109 CFLAGS="$xorg_testset_save_CFLAGS" 7110fi 7111 7112found="no" 7113 7114 if test $found = "no" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 fi 7122 7123 CFLAGS="$CFLAGS -Werror=init-self" 7124 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7126$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7127 cacheid=xorg_cv_cc_flag__Werror_init_self 7128 if eval \${$cacheid+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134int 7135main () 7136{ 7137 7138 ; 7139 return 0; 7140} 7141_ACEOF 7142if ac_fn_c_try_link "$LINENO"; then : 7143 eval $cacheid=yes 7144else 7145 eval $cacheid=no 7146fi 7147rm -f core conftest.err conftest.$ac_objext \ 7148 conftest$ac_exeext conftest.$ac_ext 7149fi 7150 7151 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153 7154 eval supported=\$$cacheid 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7156$as_echo "$supported" >&6; } 7157 if test "$supported" = "yes" ; then 7158 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7159 found="yes" 7160 fi 7161 fi 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177xorg_testset_save_CFLAGS="$CFLAGS" 7178 7179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189_ACEOF 7190if ac_fn_c_try_compile "$LINENO"; then : 7191 xorg_cv_cc_flag_unknown_warning_option=yes 7192else 7193 xorg_cv_cc_flag_unknown_warning_option=no 7194fi 7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7200 CFLAGS="$xorg_testset_save_CFLAGS" 7201fi 7202 7203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7206 fi 7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 xorg_cv_cc_flag_unused_command_line_argument=yes 7219else 7220 xorg_cv_cc_flag_unused_command_line_argument=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228fi 7229 7230found="no" 7231 7232 if test $found = "no" ; then 7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 fi 7236 7237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7239 fi 7240 7241 CFLAGS="$CFLAGS -Werror=main" 7242 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7244$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7245 cacheid=xorg_cv_cc_flag__Werror_main 7246 if eval \${$cacheid+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252int 7253main () 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO"; then : 7261 eval $cacheid=yes 7262else 7263 eval $cacheid=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext \ 7266 conftest$ac_exeext conftest.$ac_ext 7267fi 7268 7269 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271 7272 eval supported=\$$cacheid 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7274$as_echo "$supported" >&6; } 7275 if test "$supported" = "yes" ; then 7276 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7277 found="yes" 7278 fi 7279 fi 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295xorg_testset_save_CFLAGS="$CFLAGS" 7296 7297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307_ACEOF 7308if ac_fn_c_try_compile "$LINENO"; then : 7309 xorg_cv_cc_flag_unknown_warning_option=yes 7310else 7311 xorg_cv_cc_flag_unknown_warning_option=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7314fi 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319fi 7320 7321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 fi 7325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333int i; 7334_ACEOF 7335if ac_fn_c_try_compile "$LINENO"; then : 7336 xorg_cv_cc_flag_unused_command_line_argument=yes 7337else 7338 xorg_cv_cc_flag_unused_command_line_argument=no 7339fi 7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7341fi 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7345 CFLAGS="$xorg_testset_save_CFLAGS" 7346fi 7347 7348found="no" 7349 7350 if test $found = "no" ; then 7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7353 fi 7354 7355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7357 fi 7358 7359 CFLAGS="$CFLAGS -Werror=missing-braces" 7360 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7362$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7363 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7364 if eval \${$cacheid+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370int 7371main () 7372{ 7373 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_link "$LINENO"; then : 7379 eval $cacheid=yes 7380else 7381 eval $cacheid=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext \ 7384 conftest$ac_exeext conftest.$ac_ext 7385fi 7386 7387 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389 7390 eval supported=\$$cacheid 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7392$as_echo "$supported" >&6; } 7393 if test "$supported" = "yes" ; then 7394 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7395 found="yes" 7396 fi 7397 fi 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413xorg_testset_save_CFLAGS="$CFLAGS" 7414 7415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424int i; 7425_ACEOF 7426if ac_fn_c_try_compile "$LINENO"; then : 7427 xorg_cv_cc_flag_unknown_warning_option=yes 7428else 7429 xorg_cv_cc_flag_unknown_warning_option=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437fi 7438 7439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 fi 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO"; then : 7454 xorg_cv_cc_flag_unused_command_line_argument=yes 7455else 7456 xorg_cv_cc_flag_unused_command_line_argument=no 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7459fi 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464fi 7465 7466found="no" 7467 7468 if test $found = "no" ; then 7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 fi 7472 7473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7475 fi 7476 7477 CFLAGS="$CFLAGS -Werror=sequence-point" 7478 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7480$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7481 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7482 if eval \${$cacheid+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484else 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487int i; 7488int 7489main () 7490{ 7491 7492 ; 7493 return 0; 7494} 7495_ACEOF 7496if ac_fn_c_try_link "$LINENO"; then : 7497 eval $cacheid=yes 7498else 7499 eval $cacheid=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext \ 7502 conftest$ac_exeext conftest.$ac_ext 7503fi 7504 7505 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507 7508 eval supported=\$$cacheid 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7510$as_echo "$supported" >&6; } 7511 if test "$supported" = "yes" ; then 7512 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7513 found="yes" 7514 fi 7515 fi 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531xorg_testset_save_CFLAGS="$CFLAGS" 7532 7533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7541/* end confdefs.h. */ 7542int i; 7543_ACEOF 7544if ac_fn_c_try_compile "$LINENO"; then : 7545 xorg_cv_cc_flag_unknown_warning_option=yes 7546else 7547 xorg_cv_cc_flag_unknown_warning_option=no 7548fi 7549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7550fi 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7554 CFLAGS="$xorg_testset_save_CFLAGS" 7555fi 7556 7557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 fi 7561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569int i; 7570_ACEOF 7571if ac_fn_c_try_compile "$LINENO"; then : 7572 xorg_cv_cc_flag_unused_command_line_argument=yes 7573else 7574 xorg_cv_cc_flag_unused_command_line_argument=no 7575fi 7576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7577fi 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7581 CFLAGS="$xorg_testset_save_CFLAGS" 7582fi 7583 7584found="no" 7585 7586 if test $found = "no" ; then 7587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7589 fi 7590 7591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 fi 7594 7595 CFLAGS="$CFLAGS -Werror=return-type" 7596 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7598$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7599 cacheid=xorg_cv_cc_flag__Werror_return_type 7600 if eval \${$cacheid+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7604/* end confdefs.h. */ 7605int i; 7606int 7607main () 7608{ 7609 7610 ; 7611 return 0; 7612} 7613_ACEOF 7614if ac_fn_c_try_link "$LINENO"; then : 7615 eval $cacheid=yes 7616else 7617 eval $cacheid=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext \ 7620 conftest$ac_exeext conftest.$ac_ext 7621fi 7622 7623 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625 7626 eval supported=\$$cacheid 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7628$as_echo "$supported" >&6; } 7629 if test "$supported" = "yes" ; then 7630 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7631 found="yes" 7632 fi 7633 fi 7634 7635 if test $found = "no" ; then 7636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 fi 7639 7640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7642 fi 7643 7644 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7645 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7647$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7648 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7649 if eval \${$cacheid+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654int i; 7655int 7656main () 7657{ 7658 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663if ac_fn_c_try_link "$LINENO"; then : 7664 eval $cacheid=yes 7665else 7666 eval $cacheid=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext \ 7669 conftest$ac_exeext conftest.$ac_ext 7670fi 7671 7672 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674 7675 eval supported=\$$cacheid 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7677$as_echo "$supported" >&6; } 7678 if test "$supported" = "yes" ; then 7679 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7680 found="yes" 7681 fi 7682 fi 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698xorg_testset_save_CFLAGS="$CFLAGS" 7699 7700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO"; then : 7712 xorg_cv_cc_flag_unknown_warning_option=yes 7713else 7714 xorg_cv_cc_flag_unknown_warning_option=no 7715fi 7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7717fi 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7721 CFLAGS="$xorg_testset_save_CFLAGS" 7722fi 7723 7724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7727 fi 7728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733else 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736int i; 7737_ACEOF 7738if ac_fn_c_try_compile "$LINENO"; then : 7739 xorg_cv_cc_flag_unused_command_line_argument=yes 7740else 7741 xorg_cv_cc_flag_unused_command_line_argument=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7748 CFLAGS="$xorg_testset_save_CFLAGS" 7749fi 7750 7751found="no" 7752 7753 if test $found = "no" ; then 7754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7756 fi 7757 7758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7760 fi 7761 7762 CFLAGS="$CFLAGS -Werror=trigraphs" 7763 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7765$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7766 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7767 if eval \${$cacheid+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772int i; 7773int 7774main () 7775{ 7776 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781if ac_fn_c_try_link "$LINENO"; then : 7782 eval $cacheid=yes 7783else 7784 eval $cacheid=no 7785fi 7786rm -f core conftest.err conftest.$ac_objext \ 7787 conftest$ac_exeext conftest.$ac_ext 7788fi 7789 7790 7791 CFLAGS="$xorg_testset_save_CFLAGS" 7792 7793 eval supported=\$$cacheid 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7795$as_echo "$supported" >&6; } 7796 if test "$supported" = "yes" ; then 7797 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7798 found="yes" 7799 fi 7800 fi 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816xorg_testset_save_CFLAGS="$CFLAGS" 7817 7818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827int i; 7828_ACEOF 7829if ac_fn_c_try_compile "$LINENO"; then : 7830 xorg_cv_cc_flag_unknown_warning_option=yes 7831else 7832 xorg_cv_cc_flag_unknown_warning_option=no 7833fi 7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7835fi 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7839 CFLAGS="$xorg_testset_save_CFLAGS" 7840fi 7841 7842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7845 fi 7846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7853/* end confdefs.h. */ 7854int i; 7855_ACEOF 7856if ac_fn_c_try_compile "$LINENO"; then : 7857 xorg_cv_cc_flag_unused_command_line_argument=yes 7858else 7859 xorg_cv_cc_flag_unused_command_line_argument=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869found="no" 7870 7871 if test $found = "no" ; then 7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 fi 7879 7880 CFLAGS="$CFLAGS -Werror=array-bounds" 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7883$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7884 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7885 if eval \${$cacheid+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891int 7892main () 7893{ 7894 7895 ; 7896 return 0; 7897} 7898_ACEOF 7899if ac_fn_c_try_link "$LINENO"; then : 7900 eval $cacheid=yes 7901else 7902 eval $cacheid=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext \ 7905 conftest$ac_exeext conftest.$ac_ext 7906fi 7907 7908 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910 7911 eval supported=\$$cacheid 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7913$as_echo "$supported" >&6; } 7914 if test "$supported" = "yes" ; then 7915 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7916 found="yes" 7917 fi 7918 fi 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934xorg_testset_save_CFLAGS="$CFLAGS" 7935 7936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO"; then : 7948 xorg_cv_cc_flag_unknown_warning_option=yes 7949else 7950 xorg_cv_cc_flag_unknown_warning_option=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7953fi 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958fi 7959 7960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO"; then : 7975 xorg_cv_cc_flag_unused_command_line_argument=yes 7976else 7977 xorg_cv_cc_flag_unused_command_line_argument=no 7978fi 7979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987found="no" 7988 7989 if test $found = "no" ; then 7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 fi 7993 7994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7996 fi 7997 7998 CFLAGS="$CFLAGS -Werror=write-strings" 7999 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8001$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8002 cacheid=xorg_cv_cc_flag__Werror_write_strings 8003 if eval \${$cacheid+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009int 8010main () 8011{ 8012 8013 ; 8014 return 0; 8015} 8016_ACEOF 8017if ac_fn_c_try_link "$LINENO"; then : 8018 eval $cacheid=yes 8019else 8020 eval $cacheid=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext \ 8023 conftest$ac_exeext conftest.$ac_ext 8024fi 8025 8026 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028 8029 eval supported=\$$cacheid 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8031$as_echo "$supported" >&6; } 8032 if test "$supported" = "yes" ; then 8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8034 found="yes" 8035 fi 8036 fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052xorg_testset_save_CFLAGS="$CFLAGS" 8053 8054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064_ACEOF 8065if ac_fn_c_try_compile "$LINENO"; then : 8066 xorg_cv_cc_flag_unknown_warning_option=yes 8067else 8068 xorg_cv_cc_flag_unknown_warning_option=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076fi 8077 8078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8081 fi 8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090int i; 8091_ACEOF 8092if ac_fn_c_try_compile "$LINENO"; then : 8093 xorg_cv_cc_flag_unused_command_line_argument=yes 8094else 8095 xorg_cv_cc_flag_unused_command_line_argument=no 8096fi 8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8098fi 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8102 CFLAGS="$xorg_testset_save_CFLAGS" 8103fi 8104 8105found="no" 8106 8107 if test $found = "no" ; then 8108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 fi 8111 8112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8114 fi 8115 8116 CFLAGS="$CFLAGS -Werror=address" 8117 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8119$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8120 cacheid=xorg_cv_cc_flag__Werror_address 8121 if eval \${$cacheid+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127int 8128main () 8129{ 8130 8131 ; 8132 return 0; 8133} 8134_ACEOF 8135if ac_fn_c_try_link "$LINENO"; then : 8136 eval $cacheid=yes 8137else 8138 eval $cacheid=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext conftest.$ac_ext 8142fi 8143 8144 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146 8147 eval supported=\$$cacheid 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8149$as_echo "$supported" >&6; } 8150 if test "$supported" = "yes" ; then 8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8152 found="yes" 8153 fi 8154 fi 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170xorg_testset_save_CFLAGS="$CFLAGS" 8171 8172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182_ACEOF 8183if ac_fn_c_try_compile "$LINENO"; then : 8184 xorg_cv_cc_flag_unknown_warning_option=yes 8185else 8186 xorg_cv_cc_flag_unknown_warning_option=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8189fi 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194fi 8195 8196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 fi 8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208int i; 8209_ACEOF 8210if ac_fn_c_try_compile "$LINENO"; then : 8211 xorg_cv_cc_flag_unused_command_line_argument=yes 8212else 8213 xorg_cv_cc_flag_unused_command_line_argument=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8216fi 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223found="no" 8224 8225 if test $found = "no" ; then 8226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8228 fi 8229 8230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 fi 8233 8234 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8235 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8237$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8238 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8239 if eval \${$cacheid+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245int 8246main () 8247{ 8248 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253if ac_fn_c_try_link "$LINENO"; then : 8254 eval $cacheid=yes 8255else 8256 eval $cacheid=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext \ 8259 conftest$ac_exeext conftest.$ac_ext 8260fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267$as_echo "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8270 found="yes" 8271 fi 8272 fi 8273 8274 if test $found = "no" ; then 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 fi 8278 8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8281 fi 8282 8283 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8284 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8286$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8287 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8288 if eval \${$cacheid+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293int i; 8294int 8295main () 8296{ 8297 8298 ; 8299 return 0; 8300} 8301_ACEOF 8302if ac_fn_c_try_link "$LINENO"; then : 8303 eval $cacheid=yes 8304else 8305 eval $cacheid=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext \ 8308 conftest$ac_exeext conftest.$ac_ext 8309fi 8310 8311 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313 8314 eval supported=\$$cacheid 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8316$as_echo "$supported" >&6; } 8317 if test "$supported" = "yes" ; then 8318 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8319 found="yes" 8320 fi 8321 fi 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337xorg_testset_save_CFLAGS="$CFLAGS" 8338 8339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345else 8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349_ACEOF 8350if ac_fn_c_try_compile "$LINENO"; then : 8351 xorg_cv_cc_flag_unknown_warning_option=yes 8352else 8353 xorg_cv_cc_flag_unknown_warning_option=no 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361fi 8362 8363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8366 fi 8367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8374/* end confdefs.h. */ 8375int i; 8376_ACEOF 8377if ac_fn_c_try_compile "$LINENO"; then : 8378 xorg_cv_cc_flag_unused_command_line_argument=yes 8379else 8380 xorg_cv_cc_flag_unused_command_line_argument=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8383fi 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388fi 8389 8390found="no" 8391 8392 if test $found = "no" ; then 8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8395 fi 8396 8397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8399 fi 8400 8401 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8402 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8404$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8405 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8406 if eval \${$cacheid+:} false; then : 8407 $as_echo_n "(cached) " >&6 8408else 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411int i; 8412int 8413main () 8414{ 8415 8416 ; 8417 return 0; 8418} 8419_ACEOF 8420if ac_fn_c_try_link "$LINENO"; then : 8421 eval $cacheid=yes 8422else 8423 eval $cacheid=no 8424fi 8425rm -f core conftest.err conftest.$ac_objext \ 8426 conftest$ac_exeext conftest.$ac_ext 8427fi 8428 8429 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431 8432 eval supported=\$$cacheid 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8434$as_echo "$supported" >&6; } 8435 if test "$supported" = "yes" ; then 8436 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8437 found="yes" 8438 fi 8439 fi 8440 8441 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8442else 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8444$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458xorg_testset_save_CFLAGS="$CFLAGS" 8459 8460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468/* end confdefs.h. */ 8469int i; 8470_ACEOF 8471if ac_fn_c_try_compile "$LINENO"; then : 8472 xorg_cv_cc_flag_unknown_warning_option=yes 8473else 8474 xorg_cv_cc_flag_unknown_warning_option=no 8475fi 8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8477fi 8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8481 CFLAGS="$xorg_testset_save_CFLAGS" 8482fi 8483 8484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 fi 8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8492 $as_echo_n "(cached) " >&6 8493else 8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495/* end confdefs.h. */ 8496int i; 8497_ACEOF 8498if ac_fn_c_try_compile "$LINENO"; then : 8499 xorg_cv_cc_flag_unused_command_line_argument=yes 8500else 8501 xorg_cv_cc_flag_unused_command_line_argument=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509fi 8510 8511found="no" 8512 8513 if test $found = "no" ; then 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 fi 8517 8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8520 fi 8521 8522 CFLAGS="$CFLAGS -Wimplicit" 8523 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8525$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8526 cacheid=xorg_cv_cc_flag__Wimplicit 8527 if eval \${$cacheid+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531/* end confdefs.h. */ 8532int i; 8533int 8534main () 8535{ 8536 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541if ac_fn_c_try_link "$LINENO"; then : 8542 eval $cacheid=yes 8543else 8544 eval $cacheid=no 8545fi 8546rm -f core conftest.err conftest.$ac_objext \ 8547 conftest$ac_exeext conftest.$ac_ext 8548fi 8549 8550 8551 CFLAGS="$xorg_testset_save_CFLAGS" 8552 8553 eval supported=\$$cacheid 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8555$as_echo "$supported" >&6; } 8556 if test "$supported" = "yes" ; then 8557 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8558 found="yes" 8559 fi 8560 fi 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576xorg_testset_save_CFLAGS="$CFLAGS" 8577 8578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587int i; 8588_ACEOF 8589if ac_fn_c_try_compile "$LINENO"; then : 8590 xorg_cv_cc_flag_unknown_warning_option=yes 8591else 8592 xorg_cv_cc_flag_unknown_warning_option=no 8593fi 8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8599 CFLAGS="$xorg_testset_save_CFLAGS" 8600fi 8601 8602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 fi 8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unused_command_line_argument=yes 8618else 8619 xorg_cv_cc_flag_unused_command_line_argument=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629found="no" 8630 8631 if test $found = "no" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8638 fi 8639 8640 CFLAGS="$CFLAGS -Wnonnull" 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8643$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8644 cacheid=xorg_cv_cc_flag__Wnonnull 8645 if eval \${$cacheid+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8649/* end confdefs.h. */ 8650int i; 8651int 8652main () 8653{ 8654 8655 ; 8656 return 0; 8657} 8658_ACEOF 8659if ac_fn_c_try_link "$LINENO"; then : 8660 eval $cacheid=yes 8661else 8662 eval $cacheid=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext \ 8665 conftest$ac_exeext conftest.$ac_ext 8666fi 8667 8668 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670 8671 eval supported=\$$cacheid 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8673$as_echo "$supported" >&6; } 8674 if test "$supported" = "yes" ; then 8675 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8676 found="yes" 8677 fi 8678 fi 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694xorg_testset_save_CFLAGS="$CFLAGS" 8695 8696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8701 $as_echo_n "(cached) " >&6 8702else 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706_ACEOF 8707if ac_fn_c_try_compile "$LINENO"; then : 8708 xorg_cv_cc_flag_unknown_warning_option=yes 8709else 8710 xorg_cv_cc_flag_unknown_warning_option=no 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8713fi 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718fi 8719 8720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 fi 8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732int i; 8733_ACEOF 8734if ac_fn_c_try_compile "$LINENO"; then : 8735 xorg_cv_cc_flag_unused_command_line_argument=yes 8736else 8737 xorg_cv_cc_flag_unused_command_line_argument=no 8738fi 8739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8740fi 8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8744 CFLAGS="$xorg_testset_save_CFLAGS" 8745fi 8746 8747found="no" 8748 8749 if test $found = "no" ; then 8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 fi 8753 8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 fi 8757 8758 CFLAGS="$CFLAGS -Winit-self" 8759 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8761$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8762 cacheid=xorg_cv_cc_flag__Winit_self 8763 if eval \${$cacheid+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768int i; 8769int 8770main () 8771{ 8772 8773 ; 8774 return 0; 8775} 8776_ACEOF 8777if ac_fn_c_try_link "$LINENO"; then : 8778 eval $cacheid=yes 8779else 8780 eval $cacheid=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext \ 8783 conftest$ac_exeext conftest.$ac_ext 8784fi 8785 8786 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788 8789 eval supported=\$$cacheid 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8791$as_echo "$supported" >&6; } 8792 if test "$supported" = "yes" ; then 8793 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8794 found="yes" 8795 fi 8796 fi 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812xorg_testset_save_CFLAGS="$CFLAGS" 8813 8814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823int i; 8824_ACEOF 8825if ac_fn_c_try_compile "$LINENO"; then : 8826 xorg_cv_cc_flag_unknown_warning_option=yes 8827else 8828 xorg_cv_cc_flag_unknown_warning_option=no 8829fi 8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8831fi 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836fi 8837 8838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 fi 8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850int i; 8851_ACEOF 8852if ac_fn_c_try_compile "$LINENO"; then : 8853 xorg_cv_cc_flag_unused_command_line_argument=yes 8854else 8855 xorg_cv_cc_flag_unused_command_line_argument=no 8856fi 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8862 CFLAGS="$xorg_testset_save_CFLAGS" 8863fi 8864 8865found="no" 8866 8867 if test $found = "no" ; then 8868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 fi 8871 8872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8874 fi 8875 8876 CFLAGS="$CFLAGS -Wmain" 8877 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8879$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8880 cacheid=xorg_cv_cc_flag__Wmain 8881 if eval \${$cacheid+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886int i; 8887int 8888main () 8889{ 8890 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895if ac_fn_c_try_link "$LINENO"; then : 8896 eval $cacheid=yes 8897else 8898 eval $cacheid=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext \ 8901 conftest$ac_exeext conftest.$ac_ext 8902fi 8903 8904 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 8907 eval supported=\$$cacheid 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8909$as_echo "$supported" >&6; } 8910 if test "$supported" = "yes" ; then 8911 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8912 found="yes" 8913 fi 8914 fi 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930xorg_testset_save_CFLAGS="$CFLAGS" 8931 8932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941int i; 8942_ACEOF 8943if ac_fn_c_try_compile "$LINENO"; then : 8944 xorg_cv_cc_flag_unknown_warning_option=yes 8945else 8946 xorg_cv_cc_flag_unknown_warning_option=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8949fi 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954fi 8955 8956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 fi 8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968int i; 8969_ACEOF 8970if ac_fn_c_try_compile "$LINENO"; then : 8971 xorg_cv_cc_flag_unused_command_line_argument=yes 8972else 8973 xorg_cv_cc_flag_unused_command_line_argument=no 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8976fi 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8980 CFLAGS="$xorg_testset_save_CFLAGS" 8981fi 8982 8983found="no" 8984 8985 if test $found = "no" ; then 8986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8988 fi 8989 8990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 fi 8993 8994 CFLAGS="$CFLAGS -Wmissing-braces" 8995 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8997$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8998 cacheid=xorg_cv_cc_flag__Wmissing_braces 8999 if eval \${$cacheid+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004int i; 9005int 9006main () 9007{ 9008 9009 ; 9010 return 0; 9011} 9012_ACEOF 9013if ac_fn_c_try_link "$LINENO"; then : 9014 eval $cacheid=yes 9015else 9016 eval $cacheid=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext \ 9019 conftest$ac_exeext conftest.$ac_ext 9020fi 9021 9022 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024 9025 eval supported=\$$cacheid 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9027$as_echo "$supported" >&6; } 9028 if test "$supported" = "yes" ; then 9029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9030 found="yes" 9031 fi 9032 fi 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048xorg_testset_save_CFLAGS="$CFLAGS" 9049 9050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059int i; 9060_ACEOF 9061if ac_fn_c_try_compile "$LINENO"; then : 9062 xorg_cv_cc_flag_unknown_warning_option=yes 9063else 9064 xorg_cv_cc_flag_unknown_warning_option=no 9065fi 9066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9067fi 9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072fi 9073 9074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 fi 9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9082 $as_echo_n "(cached) " >&6 9083else 9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087_ACEOF 9088if ac_fn_c_try_compile "$LINENO"; then : 9089 xorg_cv_cc_flag_unused_command_line_argument=yes 9090else 9091 xorg_cv_cc_flag_unused_command_line_argument=no 9092fi 9093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9094fi 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9098 CFLAGS="$xorg_testset_save_CFLAGS" 9099fi 9100 9101found="no" 9102 9103 if test $found = "no" ; then 9104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106 fi 9107 9108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110 fi 9111 9112 CFLAGS="$CFLAGS -Wsequence-point" 9113 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9115$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9116 cacheid=xorg_cv_cc_flag__Wsequence_point 9117 if eval \${$cacheid+:} false; then : 9118 $as_echo_n "(cached) " >&6 9119else 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122int i; 9123int 9124main () 9125{ 9126 9127 ; 9128 return 0; 9129} 9130_ACEOF 9131if ac_fn_c_try_link "$LINENO"; then : 9132 eval $cacheid=yes 9133else 9134 eval $cacheid=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext \ 9137 conftest$ac_exeext conftest.$ac_ext 9138fi 9139 9140 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142 9143 eval supported=\$$cacheid 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9145$as_echo "$supported" >&6; } 9146 if test "$supported" = "yes" ; then 9147 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9148 found="yes" 9149 fi 9150 fi 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166xorg_testset_save_CFLAGS="$CFLAGS" 9167 9168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177int i; 9178_ACEOF 9179if ac_fn_c_try_compile "$LINENO"; then : 9180 xorg_cv_cc_flag_unknown_warning_option=yes 9181else 9182 xorg_cv_cc_flag_unknown_warning_option=no 9183fi 9184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9185fi 9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190fi 9191 9192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 fi 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204int i; 9205_ACEOF 9206if ac_fn_c_try_compile "$LINENO"; then : 9207 xorg_cv_cc_flag_unused_command_line_argument=yes 9208else 9209 xorg_cv_cc_flag_unused_command_line_argument=no 9210fi 9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9212fi 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9216 CFLAGS="$xorg_testset_save_CFLAGS" 9217fi 9218 9219found="no" 9220 9221 if test $found = "no" ; then 9222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9224 fi 9225 9226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9228 fi 9229 9230 CFLAGS="$CFLAGS -Wreturn-type" 9231 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9233$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9234 cacheid=xorg_cv_cc_flag__Wreturn_type 9235 if eval \${$cacheid+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241int 9242main () 9243{ 9244 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_c_try_link "$LINENO"; then : 9250 eval $cacheid=yes 9251else 9252 eval $cacheid=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext \ 9255 conftest$ac_exeext conftest.$ac_ext 9256fi 9257 9258 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260 9261 eval supported=\$$cacheid 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9263$as_echo "$supported" >&6; } 9264 if test "$supported" = "yes" ; then 9265 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9266 found="yes" 9267 fi 9268 fi 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284xorg_testset_save_CFLAGS="$CFLAGS" 9285 9286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295int i; 9296_ACEOF 9297if ac_fn_c_try_compile "$LINENO"; then : 9298 xorg_cv_cc_flag_unknown_warning_option=yes 9299else 9300 xorg_cv_cc_flag_unknown_warning_option=no 9301fi 9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9303fi 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9307 CFLAGS="$xorg_testset_save_CFLAGS" 9308fi 9309 9310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 fi 9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319else 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9321/* end confdefs.h. */ 9322int i; 9323_ACEOF 9324if ac_fn_c_try_compile "$LINENO"; then : 9325 xorg_cv_cc_flag_unused_command_line_argument=yes 9326else 9327 xorg_cv_cc_flag_unused_command_line_argument=no 9328fi 9329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9330fi 9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335fi 9336 9337found="no" 9338 9339 if test $found = "no" ; then 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 9344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 fi 9347 9348 CFLAGS="$CFLAGS -Wtrigraphs" 9349 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9351$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9352 cacheid=xorg_cv_cc_flag__Wtrigraphs 9353 if eval \${$cacheid+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358int i; 9359int 9360main () 9361{ 9362 9363 ; 9364 return 0; 9365} 9366_ACEOF 9367if ac_fn_c_try_link "$LINENO"; then : 9368 eval $cacheid=yes 9369else 9370 eval $cacheid=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext \ 9373 conftest$ac_exeext conftest.$ac_ext 9374fi 9375 9376 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378 9379 eval supported=\$$cacheid 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9381$as_echo "$supported" >&6; } 9382 if test "$supported" = "yes" ; then 9383 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9384 found="yes" 9385 fi 9386 fi 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402xorg_testset_save_CFLAGS="$CFLAGS" 9403 9404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9412/* end confdefs.h. */ 9413int i; 9414_ACEOF 9415if ac_fn_c_try_compile "$LINENO"; then : 9416 xorg_cv_cc_flag_unknown_warning_option=yes 9417else 9418 xorg_cv_cc_flag_unknown_warning_option=no 9419fi 9420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9421fi 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426fi 9427 9428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440int i; 9441_ACEOF 9442if ac_fn_c_try_compile "$LINENO"; then : 9443 xorg_cv_cc_flag_unused_command_line_argument=yes 9444else 9445 xorg_cv_cc_flag_unused_command_line_argument=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9448fi 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9452 CFLAGS="$xorg_testset_save_CFLAGS" 9453fi 9454 9455found="no" 9456 9457 if test $found = "no" ; then 9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9460 fi 9461 9462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 fi 9465 9466 CFLAGS="$CFLAGS -Warray-bounds" 9467 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9469$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9470 cacheid=xorg_cv_cc_flag__Warray_bounds 9471 if eval \${$cacheid+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473else 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477int 9478main () 9479{ 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO"; then : 9486 eval $cacheid=yes 9487else 9488 eval $cacheid=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext \ 9491 conftest$ac_exeext conftest.$ac_ext 9492fi 9493 9494 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496 9497 eval supported=\$$cacheid 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9499$as_echo "$supported" >&6; } 9500 if test "$supported" = "yes" ; then 9501 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9502 found="yes" 9503 fi 9504 fi 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520xorg_testset_save_CFLAGS="$CFLAGS" 9521 9522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9527 $as_echo_n "(cached) " >&6 9528else 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531int i; 9532_ACEOF 9533if ac_fn_c_try_compile "$LINENO"; then : 9534 xorg_cv_cc_flag_unknown_warning_option=yes 9535else 9536 xorg_cv_cc_flag_unknown_warning_option=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9539fi 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544fi 9545 9546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9549 fi 9550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9554 $as_echo_n "(cached) " >&6 9555else 9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557/* end confdefs.h. */ 9558int i; 9559_ACEOF 9560if ac_fn_c_try_compile "$LINENO"; then : 9561 xorg_cv_cc_flag_unused_command_line_argument=yes 9562else 9563 xorg_cv_cc_flag_unused_command_line_argument=no 9564fi 9565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9566fi 9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9570 CFLAGS="$xorg_testset_save_CFLAGS" 9571fi 9572 9573found="no" 9574 9575 if test $found = "no" ; then 9576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9578 fi 9579 9580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 fi 9583 9584 CFLAGS="$CFLAGS -Wwrite-strings" 9585 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9587$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9588 cacheid=xorg_cv_cc_flag__Wwrite_strings 9589 if eval \${$cacheid+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591else 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int i; 9595int 9596main () 9597{ 9598 9599 ; 9600 return 0; 9601} 9602_ACEOF 9603if ac_fn_c_try_link "$LINENO"; then : 9604 eval $cacheid=yes 9605else 9606 eval $cacheid=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext \ 9609 conftest$ac_exeext conftest.$ac_ext 9610fi 9611 9612 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614 9615 eval supported=\$$cacheid 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9617$as_echo "$supported" >&6; } 9618 if test "$supported" = "yes" ; then 9619 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9620 found="yes" 9621 fi 9622 fi 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638xorg_testset_save_CFLAGS="$CFLAGS" 9639 9640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650_ACEOF 9651if ac_fn_c_try_compile "$LINENO"; then : 9652 xorg_cv_cc_flag_unknown_warning_option=yes 9653else 9654 xorg_cv_cc_flag_unknown_warning_option=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9657fi 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662fi 9663 9664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9667 fi 9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676int i; 9677_ACEOF 9678if ac_fn_c_try_compile "$LINENO"; then : 9679 xorg_cv_cc_flag_unused_command_line_argument=yes 9680else 9681 xorg_cv_cc_flag_unused_command_line_argument=no 9682fi 9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9688 CFLAGS="$xorg_testset_save_CFLAGS" 9689fi 9690 9691found="no" 9692 9693 if test $found = "no" ; then 9694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 fi 9697 9698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9700 fi 9701 9702 CFLAGS="$CFLAGS -Waddress" 9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9705$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9706 cacheid=xorg_cv_cc_flag__Waddress 9707 if eval \${$cacheid+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713int 9714main () 9715{ 9716 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO"; then : 9722 eval $cacheid=yes 9723else 9724 eval $cacheid=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext \ 9727 conftest$ac_exeext conftest.$ac_ext 9728fi 9729 9730 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732 9733 eval supported=\$$cacheid 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9735$as_echo "$supported" >&6; } 9736 if test "$supported" = "yes" ; then 9737 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9738 found="yes" 9739 fi 9740 fi 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756xorg_testset_save_CFLAGS="$CFLAGS" 9757 9758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9763 $as_echo_n "(cached) " >&6 9764else 9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767int i; 9768_ACEOF 9769if ac_fn_c_try_compile "$LINENO"; then : 9770 xorg_cv_cc_flag_unknown_warning_option=yes 9771else 9772 xorg_cv_cc_flag_unknown_warning_option=no 9773fi 9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9775fi 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780fi 9781 9782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794int i; 9795_ACEOF 9796if ac_fn_c_try_compile "$LINENO"; then : 9797 xorg_cv_cc_flag_unused_command_line_argument=yes 9798else 9799 xorg_cv_cc_flag_unused_command_line_argument=no 9800fi 9801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9802fi 9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9806 CFLAGS="$xorg_testset_save_CFLAGS" 9807fi 9808 9809found="no" 9810 9811 if test $found = "no" ; then 9812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 fi 9815 9816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9818 fi 9819 9820 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9821 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9823$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9824 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9825 if eval \${$cacheid+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830int i; 9831int 9832main () 9833{ 9834 9835 ; 9836 return 0; 9837} 9838_ACEOF 9839if ac_fn_c_try_link "$LINENO"; then : 9840 eval $cacheid=yes 9841else 9842 eval $cacheid=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext \ 9845 conftest$ac_exeext conftest.$ac_ext 9846fi 9847 9848 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850 9851 eval supported=\$$cacheid 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9853$as_echo "$supported" >&6; } 9854 if test "$supported" = "yes" ; then 9855 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9856 found="yes" 9857 fi 9858 fi 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874xorg_testset_save_CFLAGS="$CFLAGS" 9875 9876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9881 $as_echo_n "(cached) " >&6 9882else 9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884/* end confdefs.h. */ 9885int i; 9886_ACEOF 9887if ac_fn_c_try_compile "$LINENO"; then : 9888 xorg_cv_cc_flag_unknown_warning_option=yes 9889else 9890 xorg_cv_cc_flag_unknown_warning_option=no 9891fi 9892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9893fi 9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9897 CFLAGS="$xorg_testset_save_CFLAGS" 9898fi 9899 9900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9903 fi 9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913_ACEOF 9914if ac_fn_c_try_compile "$LINENO"; then : 9915 xorg_cv_cc_flag_unused_command_line_argument=yes 9916else 9917 xorg_cv_cc_flag_unused_command_line_argument=no 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9920fi 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9924 CFLAGS="$xorg_testset_save_CFLAGS" 9925fi 9926 9927found="no" 9928 9929 if test $found = "no" ; then 9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 9934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9936 fi 9937 9938 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9939 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9941$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9942 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9943 if eval \${$cacheid+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int i; 9949int 9950main () 9951{ 9952 9953 ; 9954 return 0; 9955} 9956_ACEOF 9957if ac_fn_c_try_link "$LINENO"; then : 9958 eval $cacheid=yes 9959else 9960 eval $cacheid=no 9961fi 9962rm -f core conftest.err conftest.$ac_objext \ 9963 conftest$ac_exeext conftest.$ac_ext 9964fi 9965 9966 9967 CFLAGS="$xorg_testset_save_CFLAGS" 9968 9969 eval supported=\$$cacheid 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9971$as_echo "$supported" >&6; } 9972 if test "$supported" = "yes" ; then 9973 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9974 found="yes" 9975 fi 9976 fi 9977 9978 9979fi 9980 9981 9982 9983 9984 9985 9986 9987 CWARNFLAGS="$BASE_CFLAGS" 9988 if test "x$GCC" = xyes ; then 9989 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9990 fi 9991 9992 9993 9994 9995 9996 9997 9998 9999# Check whether --enable-strict-compilation was given. 10000if test "${enable_strict_compilation+set}" = set; then : 10001 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10002else 10003 STRICT_COMPILE=no 10004fi 10005 10006 10007 10008 10009 10010 10011STRICT_CFLAGS="" 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025xorg_testset_save_CFLAGS="$CFLAGS" 10026 10027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036int i; 10037_ACEOF 10038if ac_fn_c_try_compile "$LINENO"; then : 10039 xorg_cv_cc_flag_unknown_warning_option=yes 10040else 10041 xorg_cv_cc_flag_unknown_warning_option=no 10042fi 10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10044fi 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10048 CFLAGS="$xorg_testset_save_CFLAGS" 10049fi 10050 10051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10054 fi 10055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO"; then : 10066 xorg_cv_cc_flag_unused_command_line_argument=yes 10067else 10068 xorg_cv_cc_flag_unused_command_line_argument=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076fi 10077 10078found="no" 10079 10080 if test $found = "no" ; then 10081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10083 fi 10084 10085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10087 fi 10088 10089 CFLAGS="$CFLAGS -pedantic" 10090 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10092$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10093 cacheid=xorg_cv_cc_flag__pedantic 10094 if eval \${$cacheid+:} false; then : 10095 $as_echo_n "(cached) " >&6 10096else 10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099int i; 10100int 10101main () 10102{ 10103 10104 ; 10105 return 0; 10106} 10107_ACEOF 10108if ac_fn_c_try_link "$LINENO"; then : 10109 eval $cacheid=yes 10110else 10111 eval $cacheid=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext \ 10114 conftest$ac_exeext conftest.$ac_ext 10115fi 10116 10117 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119 10120 eval supported=\$$cacheid 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10122$as_echo "$supported" >&6; } 10123 if test "$supported" = "yes" ; then 10124 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10125 found="yes" 10126 fi 10127 fi 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143xorg_testset_save_CFLAGS="$CFLAGS" 10144 10145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10150 $as_echo_n "(cached) " >&6 10151else 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153/* end confdefs.h. */ 10154int i; 10155_ACEOF 10156if ac_fn_c_try_compile "$LINENO"; then : 10157 xorg_cv_cc_flag_unknown_warning_option=yes 10158else 10159 xorg_cv_cc_flag_unknown_warning_option=no 10160fi 10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10162fi 10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10166 CFLAGS="$xorg_testset_save_CFLAGS" 10167fi 10168 10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10172 fi 10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181int i; 10182_ACEOF 10183if ac_fn_c_try_compile "$LINENO"; then : 10184 xorg_cv_cc_flag_unused_command_line_argument=yes 10185else 10186 xorg_cv_cc_flag_unused_command_line_argument=no 10187fi 10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189fi 10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10193 CFLAGS="$xorg_testset_save_CFLAGS" 10194fi 10195 10196found="no" 10197 10198 if test $found = "no" ; then 10199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10201 fi 10202 10203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10205 fi 10206 10207 CFLAGS="$CFLAGS -Werror" 10208 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10210$as_echo_n "checking if $CC supports -Werror... " >&6; } 10211 cacheid=xorg_cv_cc_flag__Werror 10212 if eval \${$cacheid+:} false; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10216/* end confdefs.h. */ 10217int i; 10218int 10219main () 10220{ 10221 10222 ; 10223 return 0; 10224} 10225_ACEOF 10226if ac_fn_c_try_link "$LINENO"; then : 10227 eval $cacheid=yes 10228else 10229 eval $cacheid=no 10230fi 10231rm -f core conftest.err conftest.$ac_objext \ 10232 conftest$ac_exeext conftest.$ac_ext 10233fi 10234 10235 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237 10238 eval supported=\$$cacheid 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10240$as_echo "$supported" >&6; } 10241 if test "$supported" = "yes" ; then 10242 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10243 found="yes" 10244 fi 10245 fi 10246 10247 if test $found = "no" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10254 fi 10255 10256 CFLAGS="$CFLAGS -errwarn" 10257 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10259$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10260 cacheid=xorg_cv_cc_flag__errwarn 10261 if eval \${$cacheid+:} false; then : 10262 $as_echo_n "(cached) " >&6 10263else 10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10265/* end confdefs.h. */ 10266int i; 10267int 10268main () 10269{ 10270 10271 ; 10272 return 0; 10273} 10274_ACEOF 10275if ac_fn_c_try_link "$LINENO"; then : 10276 eval $cacheid=yes 10277else 10278 eval $cacheid=no 10279fi 10280rm -f core conftest.err conftest.$ac_objext \ 10281 conftest$ac_exeext conftest.$ac_ext 10282fi 10283 10284 10285 CFLAGS="$xorg_testset_save_CFLAGS" 10286 10287 eval supported=\$$cacheid 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10289$as_echo "$supported" >&6; } 10290 if test "$supported" = "yes" ; then 10291 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10292 found="yes" 10293 fi 10294 fi 10295 10296 10297 10298# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10299# activate it with -Werror, so we add it here explicitly. 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313xorg_testset_save_CFLAGS="$CFLAGS" 10314 10315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10320 $as_echo_n "(cached) " >&6 10321else 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323/* end confdefs.h. */ 10324int i; 10325_ACEOF 10326if ac_fn_c_try_compile "$LINENO"; then : 10327 xorg_cv_cc_flag_unknown_warning_option=yes 10328else 10329 xorg_cv_cc_flag_unknown_warning_option=no 10330fi 10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10332fi 10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10336 CFLAGS="$xorg_testset_save_CFLAGS" 10337fi 10338 10339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10342 fi 10343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351int i; 10352_ACEOF 10353if ac_fn_c_try_compile "$LINENO"; then : 10354 xorg_cv_cc_flag_unused_command_line_argument=yes 10355else 10356 xorg_cv_cc_flag_unused_command_line_argument=no 10357fi 10358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10359fi 10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10363 CFLAGS="$xorg_testset_save_CFLAGS" 10364fi 10365 10366found="no" 10367 10368 if test $found = "no" ; then 10369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10371 fi 10372 10373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10375 fi 10376 10377 CFLAGS="$CFLAGS -Werror=attributes" 10378 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10380$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10381 cacheid=xorg_cv_cc_flag__Werror_attributes 10382 if eval \${$cacheid+:} false; then : 10383 $as_echo_n "(cached) " >&6 10384else 10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10386/* end confdefs.h. */ 10387int i; 10388int 10389main () 10390{ 10391 10392 ; 10393 return 0; 10394} 10395_ACEOF 10396if ac_fn_c_try_link "$LINENO"; then : 10397 eval $cacheid=yes 10398else 10399 eval $cacheid=no 10400fi 10401rm -f core conftest.err conftest.$ac_objext \ 10402 conftest$ac_exeext conftest.$ac_ext 10403fi 10404 10405 10406 CFLAGS="$xorg_testset_save_CFLAGS" 10407 10408 eval supported=\$$cacheid 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10410$as_echo "$supported" >&6; } 10411 if test "$supported" = "yes" ; then 10412 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10413 found="yes" 10414 fi 10415 fi 10416 10417 10418 10419if test "x$STRICT_COMPILE" = "xyes"; then 10420 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10421 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10422fi 10423 10424 10425 10426 10427 10428 10429cat >>confdefs.h <<_ACEOF 10430#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10431_ACEOF 10432 10433 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10434 if test "x$PVM" = "x"; then 10435 PVM="0" 10436 fi 10437 10438cat >>confdefs.h <<_ACEOF 10439#define PACKAGE_VERSION_MINOR $PVM 10440_ACEOF 10441 10442 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10443 if test "x$PVP" = "x"; then 10444 PVP="0" 10445 fi 10446 10447cat >>confdefs.h <<_ACEOF 10448#define PACKAGE_VERSION_PATCHLEVEL $PVP 10449_ACEOF 10450 10451 10452 10453CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10454mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10455|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10456echo 'git directory not found: installing possibly empty changelog.' >&2)" 10457 10458 10459 10460 10461macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10462INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10463mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10464|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10465echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10466 10467 10468 10469 10470 10471 10472if test x$APP_MAN_SUFFIX = x ; then 10473 APP_MAN_SUFFIX=1 10474fi 10475if test x$APP_MAN_DIR = x ; then 10476 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10477fi 10478 10479if test x$LIB_MAN_SUFFIX = x ; then 10480 LIB_MAN_SUFFIX=3 10481fi 10482if test x$LIB_MAN_DIR = x ; then 10483 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10484fi 10485 10486if test x$FILE_MAN_SUFFIX = x ; then 10487 case $host_os in 10488 # Solaris 2.0 - 11 use SysV man page sections 10489 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10490 *) FILE_MAN_SUFFIX=5 ;; 10491 esac 10492fi 10493if test x$FILE_MAN_DIR = x ; then 10494 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10495fi 10496 10497if test x$MISC_MAN_SUFFIX = x ; then 10498 case $host_os in 10499 # Solaris 2.0 - 11 use SysV man page sections 10500 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10501 *) MISC_MAN_SUFFIX=7 ;; 10502 esac 10503fi 10504if test x$MISC_MAN_DIR = x ; then 10505 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10506fi 10507 10508if test x$DRIVER_MAN_SUFFIX = x ; then 10509 case $host_os in 10510 # Solaris 2.0 - 11 use SysV man page sections 10511 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10512 *) DRIVER_MAN_SUFFIX=4 ;; 10513 esac 10514fi 10515if test x$DRIVER_MAN_DIR = x ; then 10516 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10517fi 10518 10519if test x$ADMIN_MAN_SUFFIX = x ; then 10520 case $host_os in 10521 # Solaris 2.0 - 11 use SysV man page sections 10522 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10523 *) ADMIN_MAN_SUFFIX=8 ;; 10524 esac 10525fi 10526if test x$ADMIN_MAN_DIR = x ; then 10527 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10528fi 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544XORG_MAN_PAGE="X Version 11" 10545 10546MAN_SUBSTS="\ 10547 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10548 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10549 -e 's|__xservername__|Xorg|g' \ 10550 -e 's|__xconfigfile__|xorg.conf|g' \ 10551 -e 's|__projectroot__|\$(prefix)|g' \ 10552 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10553 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10554 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10555 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10556 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10557 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10558 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10559 10560 10561 10562# Check whether --enable-silent-rules was given. 10563if test "${enable_silent_rules+set}" = set; then : 10564 enableval=$enable_silent_rules; 10565fi 10566 10567case $enable_silent_rules in # ((( 10568 yes) AM_DEFAULT_VERBOSITY=0;; 10569 no) AM_DEFAULT_VERBOSITY=1;; 10570 *) AM_DEFAULT_VERBOSITY=0;; 10571esac 10572am_make=${MAKE-make} 10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10574$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10575if ${am_cv_make_support_nested_variables+:} false; then : 10576 $as_echo_n "(cached) " >&6 10577else 10578 if $as_echo 'TRUE=$(BAR$(V)) 10579BAR0=false 10580BAR1=true 10581V=1 10582am__doit: 10583 @$(TRUE) 10584.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10585 am_cv_make_support_nested_variables=yes 10586else 10587 am_cv_make_support_nested_variables=no 10588fi 10589fi 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10591$as_echo "$am_cv_make_support_nested_variables" >&6; } 10592if test $am_cv_make_support_nested_variables = yes; then 10593 AM_V='$(V)' 10594 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10595else 10596 AM_V=$AM_DEFAULT_VERBOSITY 10597 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10598fi 10599AM_BACKSLASH='\' 10600 10601 10602 10603# Checks for pkg-config packages 10604 10605pkg_failed=no 10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWUD" >&5 10607$as_echo_n "checking for XWUD... " >&6; } 10608 10609if test -n "$XWUD_CFLAGS"; then 10610 pkg_cv_XWUD_CFLAGS="$XWUD_CFLAGS" 10611 elif test -n "$PKG_CONFIG"; then 10612 if test -n "$PKG_CONFIG" && \ 10613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 10614 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 10615 ac_status=$? 10616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10617 test $ac_status = 0; }; then 10618 pkg_cv_XWUD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 10619 test "x$?" != "x0" && pkg_failed=yes 10620else 10621 pkg_failed=yes 10622fi 10623 else 10624 pkg_failed=untried 10625fi 10626if test -n "$XWUD_LIBS"; then 10627 pkg_cv_XWUD_LIBS="$XWUD_LIBS" 10628 elif test -n "$PKG_CONFIG"; then 10629 if test -n "$PKG_CONFIG" && \ 10630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 10631 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 10632 ac_status=$? 10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10634 test $ac_status = 0; }; then 10635 pkg_cv_XWUD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 10636 test "x$?" != "x0" && pkg_failed=yes 10637else 10638 pkg_failed=yes 10639fi 10640 else 10641 pkg_failed=untried 10642fi 10643 10644 10645 10646if test $pkg_failed = yes; then 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10648$as_echo "no" >&6; } 10649 10650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10651 _pkg_short_errors_supported=yes 10652else 10653 _pkg_short_errors_supported=no 10654fi 10655 if test $_pkg_short_errors_supported = yes; then 10656 XWUD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 10657 else 10658 XWUD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 10659 fi 10660 # Put the nasty error message in config.log where it belongs 10661 echo "$XWUD_PKG_ERRORS" >&5 10662 10663 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 10664 10665$XWUD_PKG_ERRORS 10666 10667Consider adjusting the PKG_CONFIG_PATH environment variable if you 10668installed software in a non-standard prefix. 10669 10670Alternatively, you may set the environment variables XWUD_CFLAGS 10671and XWUD_LIBS to avoid the need to call pkg-config. 10672See the pkg-config man page for more details." "$LINENO" 5 10673elif test $pkg_failed = untried; then 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10675$as_echo "no" >&6; } 10676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10678as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10679is in your PATH or set the PKG_CONFIG environment variable to the full 10680path to pkg-config. 10681 10682Alternatively, you may set the environment variables XWUD_CFLAGS 10683and XWUD_LIBS to avoid the need to call pkg-config. 10684See the pkg-config man page for more details. 10685 10686To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10687See \`config.log' for more details" "$LINENO" 5; } 10688else 10689 XWUD_CFLAGS=$pkg_cv_XWUD_CFLAGS 10690 XWUD_LIBS=$pkg_cv_XWUD_LIBS 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10692$as_echo "yes" >&6; } 10693 10694fi 10695 10696ac_config_files="$ac_config_files Makefile man/Makefile" 10697 10698cat >confcache <<\_ACEOF 10699# This file is a shell script that caches the results of configure 10700# tests run on this system so they can be shared between configure 10701# scripts and configure runs, see configure's option --config-cache. 10702# It is not useful on other systems. If it contains results you don't 10703# want to keep, you may remove or edit it. 10704# 10705# config.status only pays attention to the cache file if you give it 10706# the --recheck option to rerun configure. 10707# 10708# `ac_cv_env_foo' variables (set or unset) will be overridden when 10709# loading this file, other *unset* `ac_cv_foo' will be assigned the 10710# following values. 10711 10712_ACEOF 10713 10714# The following way of writing the cache mishandles newlines in values, 10715# but we know of no workaround that is simple, portable, and efficient. 10716# So, we kill variables containing newlines. 10717# Ultrix sh set writes to stderr and can't be redirected directly, 10718# and sets the high bit in the cache file unless we assign to the vars. 10719( 10720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10721 eval ac_val=\$$ac_var 10722 case $ac_val in #( 10723 *${as_nl}*) 10724 case $ac_var in #( 10725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10726$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10727 esac 10728 case $ac_var in #( 10729 _ | IFS | as_nl) ;; #( 10730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10731 *) { eval $ac_var=; unset $ac_var;} ;; 10732 esac ;; 10733 esac 10734 done 10735 10736 (set) 2>&1 | 10737 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10738 *${as_nl}ac_space=\ *) 10739 # `set' does not quote correctly, so add quotes: double-quote 10740 # substitution turns \\\\ into \\, and sed turns \\ into \. 10741 sed -n \ 10742 "s/'/'\\\\''/g; 10743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10744 ;; #( 10745 *) 10746 # `set' quotes correctly as required by POSIX, so do not add quotes. 10747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10748 ;; 10749 esac | 10750 sort 10751) | 10752 sed ' 10753 /^ac_cv_env_/b end 10754 t clear 10755 :clear 10756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10757 t end 10758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10759 :end' >>confcache 10760if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10761 if test -w "$cache_file"; then 10762 if test "x$cache_file" != "x/dev/null"; then 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10764$as_echo "$as_me: updating cache $cache_file" >&6;} 10765 if test ! -f "$cache_file" || test -h "$cache_file"; then 10766 cat confcache >"$cache_file" 10767 else 10768 case $cache_file in #( 10769 */* | ?:*) 10770 mv -f confcache "$cache_file"$$ && 10771 mv -f "$cache_file"$$ "$cache_file" ;; #( 10772 *) 10773 mv -f confcache "$cache_file" ;; 10774 esac 10775 fi 10776 fi 10777 else 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10779$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10780 fi 10781fi 10782rm -f confcache 10783 10784test "x$prefix" = xNONE && prefix=$ac_default_prefix 10785# Let make expand exec_prefix. 10786test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10787 10788DEFS=-DHAVE_CONFIG_H 10789 10790ac_libobjs= 10791ac_ltlibobjs= 10792U= 10793for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10794 # 1. Remove the extension, and $U if already installed. 10795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10798 # will be set to the directory where LIBOBJS objects are built. 10799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10801done 10802LIBOBJS=$ac_libobjs 10803 10804LTLIBOBJS=$ac_ltlibobjs 10805 10806 10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10808$as_echo_n "checking that generated files are newer than configure... " >&6; } 10809 if test -n "$am_sleep_pid"; then 10810 # Hide warnings about reused PIDs. 10811 wait $am_sleep_pid 2>/dev/null 10812 fi 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10814$as_echo "done" >&6; } 10815 if test -n "$EXEEXT"; then 10816 am__EXEEXT_TRUE= 10817 am__EXEEXT_FALSE='#' 10818else 10819 am__EXEEXT_TRUE='#' 10820 am__EXEEXT_FALSE= 10821fi 10822 10823if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10824 as_fn_error $? "conditional \"AMDEP\" was never defined. 10825Usually this means the macro was only invoked conditionally." "$LINENO" 5 10826fi 10827if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10828 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10829Usually this means the macro was only invoked conditionally." "$LINENO" 5 10830fi 10831 10832: "${CONFIG_STATUS=./config.status}" 10833ac_write_fail=0 10834ac_clean_files_save=$ac_clean_files 10835ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10838as_write_fail=0 10839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10840#! $SHELL 10841# Generated by $as_me. 10842# Run this file to recreate the current configuration. 10843# Compiler output produced by configure, useful for debugging 10844# configure, is in config.log if it exists. 10845 10846debug=false 10847ac_cs_recheck=false 10848ac_cs_silent=false 10849 10850SHELL=\${CONFIG_SHELL-$SHELL} 10851export SHELL 10852_ASEOF 10853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10854## -------------------- ## 10855## M4sh Initialization. ## 10856## -------------------- ## 10857 10858# Be more Bourne compatible 10859DUALCASE=1; export DUALCASE # for MKS sh 10860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10861 emulate sh 10862 NULLCMD=: 10863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10864 # is contrary to our usage. Disable this feature. 10865 alias -g '${1+"$@"}'='"$@"' 10866 setopt NO_GLOB_SUBST 10867else 10868 case `(set -o) 2>/dev/null` in #( 10869 *posix*) : 10870 set -o posix ;; #( 10871 *) : 10872 ;; 10873esac 10874fi 10875 10876 10877as_nl=' 10878' 10879export as_nl 10880# Printing a long string crashes Solaris 7 /usr/bin/printf. 10881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10884# Prefer a ksh shell builtin over an external printf program on Solaris, 10885# but without wasting forks for bash or zsh. 10886if test -z "$BASH_VERSION$ZSH_VERSION" \ 10887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10888 as_echo='print -r --' 10889 as_echo_n='print -rn --' 10890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10891 as_echo='printf %s\n' 10892 as_echo_n='printf %s' 10893else 10894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10896 as_echo_n='/usr/ucb/echo -n' 10897 else 10898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10899 as_echo_n_body='eval 10900 arg=$1; 10901 case $arg in #( 10902 *"$as_nl"*) 10903 expr "X$arg" : "X\\(.*\\)$as_nl"; 10904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10905 esac; 10906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10907 ' 10908 export as_echo_n_body 10909 as_echo_n='sh -c $as_echo_n_body as_echo' 10910 fi 10911 export as_echo_body 10912 as_echo='sh -c $as_echo_body as_echo' 10913fi 10914 10915# The user is always right. 10916if test "${PATH_SEPARATOR+set}" != set; then 10917 PATH_SEPARATOR=: 10918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10920 PATH_SEPARATOR=';' 10921 } 10922fi 10923 10924 10925# IFS 10926# We need space, tab and new line, in precisely that order. Quoting is 10927# there to prevent editors from complaining about space-tab. 10928# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10929# splitting by setting IFS to empty value.) 10930IFS=" "" $as_nl" 10931 10932# Find who we are. Look in the path if we contain no directory separator. 10933as_myself= 10934case $0 in #(( 10935 *[\\/]* ) as_myself=$0 ;; 10936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10937for as_dir in $PATH 10938do 10939 IFS=$as_save_IFS 10940 test -z "$as_dir" && as_dir=. 10941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10942 done 10943IFS=$as_save_IFS 10944 10945 ;; 10946esac 10947# We did not find ourselves, most probably we were run as `sh COMMAND' 10948# in which case we are not to be found in the path. 10949if test "x$as_myself" = x; then 10950 as_myself=$0 10951fi 10952if test ! -f "$as_myself"; then 10953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10954 exit 1 10955fi 10956 10957# Unset variables that we do not need and which cause bugs (e.g. in 10958# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10959# suppresses any "Segmentation fault" message there. '((' could 10960# trigger a bug in pdksh 5.2.14. 10961for as_var in BASH_ENV ENV MAIL MAILPATH 10962do eval test x\${$as_var+set} = xset \ 10963 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10964done 10965PS1='$ ' 10966PS2='> ' 10967PS4='+ ' 10968 10969# NLS nuisances. 10970LC_ALL=C 10971export LC_ALL 10972LANGUAGE=C 10973export LANGUAGE 10974 10975# CDPATH. 10976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10977 10978 10979# as_fn_error STATUS ERROR [LINENO LOG_FD] 10980# ---------------------------------------- 10981# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10982# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10983# script with STATUS, using 1 if that was 0. 10984as_fn_error () 10985{ 10986 as_status=$1; test $as_status -eq 0 && as_status=1 10987 if test "$4"; then 10988 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10990 fi 10991 $as_echo "$as_me: error: $2" >&2 10992 as_fn_exit $as_status 10993} # as_fn_error 10994 10995 10996# as_fn_set_status STATUS 10997# ----------------------- 10998# Set $? to STATUS, without forking. 10999as_fn_set_status () 11000{ 11001 return $1 11002} # as_fn_set_status 11003 11004# as_fn_exit STATUS 11005# ----------------- 11006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11007as_fn_exit () 11008{ 11009 set +e 11010 as_fn_set_status $1 11011 exit $1 11012} # as_fn_exit 11013 11014# as_fn_unset VAR 11015# --------------- 11016# Portably unset VAR. 11017as_fn_unset () 11018{ 11019 { eval $1=; unset $1;} 11020} 11021as_unset=as_fn_unset 11022# as_fn_append VAR VALUE 11023# ---------------------- 11024# Append the text in VALUE to the end of the definition contained in VAR. Take 11025# advantage of any shell optimizations that allow amortized linear growth over 11026# repeated appends, instead of the typical quadratic growth present in naive 11027# implementations. 11028if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11029 eval 'as_fn_append () 11030 { 11031 eval $1+=\$2 11032 }' 11033else 11034 as_fn_append () 11035 { 11036 eval $1=\$$1\$2 11037 } 11038fi # as_fn_append 11039 11040# as_fn_arith ARG... 11041# ------------------ 11042# Perform arithmetic evaluation on the ARGs, and store the result in the 11043# global $as_val. Take advantage of shells that can avoid forks. The arguments 11044# must be portable across $(()) and expr. 11045if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11046 eval 'as_fn_arith () 11047 { 11048 as_val=$(( $* )) 11049 }' 11050else 11051 as_fn_arith () 11052 { 11053 as_val=`expr "$@" || test $? -eq 1` 11054 } 11055fi # as_fn_arith 11056 11057 11058if expr a : '\(a\)' >/dev/null 2>&1 && 11059 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11060 as_expr=expr 11061else 11062 as_expr=false 11063fi 11064 11065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11066 as_basename=basename 11067else 11068 as_basename=false 11069fi 11070 11071if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11072 as_dirname=dirname 11073else 11074 as_dirname=false 11075fi 11076 11077as_me=`$as_basename -- "$0" || 11078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11079 X"$0" : 'X\(//\)$' \| \ 11080 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11081$as_echo X/"$0" | 11082 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11083 s//\1/ 11084 q 11085 } 11086 /^X\/\(\/\/\)$/{ 11087 s//\1/ 11088 q 11089 } 11090 /^X\/\(\/\).*/{ 11091 s//\1/ 11092 q 11093 } 11094 s/.*/./; q'` 11095 11096# Avoid depending upon Character Ranges. 11097as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11099as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11100as_cr_digits='0123456789' 11101as_cr_alnum=$as_cr_Letters$as_cr_digits 11102 11103ECHO_C= ECHO_N= ECHO_T= 11104case `echo -n x` in #((((( 11105-n*) 11106 case `echo 'xy\c'` in 11107 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11108 xy) ECHO_C='\c';; 11109 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11110 ECHO_T=' ';; 11111 esac;; 11112*) 11113 ECHO_N='-n';; 11114esac 11115 11116rm -f conf$$ conf$$.exe conf$$.file 11117if test -d conf$$.dir; then 11118 rm -f conf$$.dir/conf$$.file 11119else 11120 rm -f conf$$.dir 11121 mkdir conf$$.dir 2>/dev/null 11122fi 11123if (echo >conf$$.file) 2>/dev/null; then 11124 if ln -s conf$$.file conf$$ 2>/dev/null; then 11125 as_ln_s='ln -s' 11126 # ... but there are two gotchas: 11127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11129 # In both cases, we have to default to `cp -pR'. 11130 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11131 as_ln_s='cp -pR' 11132 elif ln conf$$.file conf$$ 2>/dev/null; then 11133 as_ln_s=ln 11134 else 11135 as_ln_s='cp -pR' 11136 fi 11137else 11138 as_ln_s='cp -pR' 11139fi 11140rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11141rmdir conf$$.dir 2>/dev/null 11142 11143 11144# as_fn_mkdir_p 11145# ------------- 11146# Create "$as_dir" as a directory, including parents if necessary. 11147as_fn_mkdir_p () 11148{ 11149 11150 case $as_dir in #( 11151 -*) as_dir=./$as_dir;; 11152 esac 11153 test -d "$as_dir" || eval $as_mkdir_p || { 11154 as_dirs= 11155 while :; do 11156 case $as_dir in #( 11157 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11158 *) as_qdir=$as_dir;; 11159 esac 11160 as_dirs="'$as_qdir' $as_dirs" 11161 as_dir=`$as_dirname -- "$as_dir" || 11162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11163 X"$as_dir" : 'X\(//\)[^/]' \| \ 11164 X"$as_dir" : 'X\(//\)$' \| \ 11165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11166$as_echo X"$as_dir" | 11167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11168 s//\1/ 11169 q 11170 } 11171 /^X\(\/\/\)[^/].*/{ 11172 s//\1/ 11173 q 11174 } 11175 /^X\(\/\/\)$/{ 11176 s//\1/ 11177 q 11178 } 11179 /^X\(\/\).*/{ 11180 s//\1/ 11181 q 11182 } 11183 s/.*/./; q'` 11184 test -d "$as_dir" && break 11185 done 11186 test -z "$as_dirs" || eval "mkdir $as_dirs" 11187 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11188 11189 11190} # as_fn_mkdir_p 11191if mkdir -p . 2>/dev/null; then 11192 as_mkdir_p='mkdir -p "$as_dir"' 11193else 11194 test -d ./-p && rmdir ./-p 11195 as_mkdir_p=false 11196fi 11197 11198 11199# as_fn_executable_p FILE 11200# ----------------------- 11201# Test if FILE is an executable regular file. 11202as_fn_executable_p () 11203{ 11204 test -f "$1" && test -x "$1" 11205} # as_fn_executable_p 11206as_test_x='test -x' 11207as_executable_p=as_fn_executable_p 11208 11209# Sed expression to map a string onto a valid CPP name. 11210as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11211 11212# Sed expression to map a string onto a valid variable name. 11213as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11214 11215 11216exec 6>&1 11217## ----------------------------------- ## 11218## Main body of $CONFIG_STATUS script. ## 11219## ----------------------------------- ## 11220_ASEOF 11221test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11222 11223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11224# Save the log message, to keep $0 and so on meaningful, and to 11225# report actual input values of CONFIG_FILES etc. instead of their 11226# values after options handling. 11227ac_log=" 11228This file was extended by xwud $as_me 1.0.5, which was 11229generated by GNU Autoconf 2.69. Invocation command line was 11230 11231 CONFIG_FILES = $CONFIG_FILES 11232 CONFIG_HEADERS = $CONFIG_HEADERS 11233 CONFIG_LINKS = $CONFIG_LINKS 11234 CONFIG_COMMANDS = $CONFIG_COMMANDS 11235 $ $0 $@ 11236 11237on `(hostname || uname -n) 2>/dev/null | sed 1q` 11238" 11239 11240_ACEOF 11241 11242case $ac_config_files in *" 11243"*) set x $ac_config_files; shift; ac_config_files=$*;; 11244esac 11245 11246case $ac_config_headers in *" 11247"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11248esac 11249 11250 11251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11252# Files that config.status was made for. 11253config_files="$ac_config_files" 11254config_headers="$ac_config_headers" 11255config_commands="$ac_config_commands" 11256 11257_ACEOF 11258 11259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11260ac_cs_usage="\ 11261\`$as_me' instantiates files and other configuration actions 11262from templates according to the current configuration. Unless the files 11263and actions are specified as TAGs, all are instantiated by default. 11264 11265Usage: $0 [OPTION]... [TAG]... 11266 11267 -h, --help print this help, then exit 11268 -V, --version print version number and configuration settings, then exit 11269 --config print configuration, then exit 11270 -q, --quiet, --silent 11271 do not print progress messages 11272 -d, --debug don't remove temporary files 11273 --recheck update $as_me by reconfiguring in the same conditions 11274 --file=FILE[:TEMPLATE] 11275 instantiate the configuration file FILE 11276 --header=FILE[:TEMPLATE] 11277 instantiate the configuration header FILE 11278 11279Configuration files: 11280$config_files 11281 11282Configuration headers: 11283$config_headers 11284 11285Configuration commands: 11286$config_commands 11287 11288Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11289 11290_ACEOF 11291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11292ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11293ac_cs_version="\\ 11294xwud config.status 1.0.5 11295configured by $0, generated by GNU Autoconf 2.69, 11296 with options \\"\$ac_cs_config\\" 11297 11298Copyright (C) 2012 Free Software Foundation, Inc. 11299This config.status script is free software; the Free Software Foundation 11300gives unlimited permission to copy, distribute and modify it." 11301 11302ac_pwd='$ac_pwd' 11303srcdir='$srcdir' 11304INSTALL='$INSTALL' 11305MKDIR_P='$MKDIR_P' 11306AWK='$AWK' 11307test -n "\$AWK" || AWK=awk 11308_ACEOF 11309 11310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11311# The default lists apply if the user does not specify any file. 11312ac_need_defaults=: 11313while test $# != 0 11314do 11315 case $1 in 11316 --*=?*) 11317 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11319 ac_shift=: 11320 ;; 11321 --*=) 11322 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11323 ac_optarg= 11324 ac_shift=: 11325 ;; 11326 *) 11327 ac_option=$1 11328 ac_optarg=$2 11329 ac_shift=shift 11330 ;; 11331 esac 11332 11333 case $ac_option in 11334 # Handling of the options. 11335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11336 ac_cs_recheck=: ;; 11337 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11338 $as_echo "$ac_cs_version"; exit ;; 11339 --config | --confi | --conf | --con | --co | --c ) 11340 $as_echo "$ac_cs_config"; exit ;; 11341 --debug | --debu | --deb | --de | --d | -d ) 11342 debug=: ;; 11343 --file | --fil | --fi | --f ) 11344 $ac_shift 11345 case $ac_optarg in 11346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11347 '') as_fn_error $? "missing file argument" ;; 11348 esac 11349 as_fn_append CONFIG_FILES " '$ac_optarg'" 11350 ac_need_defaults=false;; 11351 --header | --heade | --head | --hea ) 11352 $ac_shift 11353 case $ac_optarg in 11354 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11355 esac 11356 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11357 ac_need_defaults=false;; 11358 --he | --h) 11359 # Conflict between --help and --header 11360 as_fn_error $? "ambiguous option: \`$1' 11361Try \`$0 --help' for more information.";; 11362 --help | --hel | -h ) 11363 $as_echo "$ac_cs_usage"; exit ;; 11364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11365 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11366 ac_cs_silent=: ;; 11367 11368 # This is an error. 11369 -*) as_fn_error $? "unrecognized option: \`$1' 11370Try \`$0 --help' for more information." ;; 11371 11372 *) as_fn_append ac_config_targets " $1" 11373 ac_need_defaults=false ;; 11374 11375 esac 11376 shift 11377done 11378 11379ac_configure_extra_args= 11380 11381if $ac_cs_silent; then 11382 exec 6>/dev/null 11383 ac_configure_extra_args="$ac_configure_extra_args --silent" 11384fi 11385 11386_ACEOF 11387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11388if \$ac_cs_recheck; then 11389 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11390 shift 11391 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11392 CONFIG_SHELL='$SHELL' 11393 export CONFIG_SHELL 11394 exec "\$@" 11395fi 11396 11397_ACEOF 11398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11399exec 5>>config.log 11400{ 11401 echo 11402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11403## Running $as_me. ## 11404_ASBOX 11405 $as_echo "$ac_log" 11406} >&5 11407 11408_ACEOF 11409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11410# 11411# INIT-COMMANDS 11412# 11413AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11414 11415_ACEOF 11416 11417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11418 11419# Handling of arguments. 11420for ac_config_target in $ac_config_targets 11421do 11422 case $ac_config_target in 11423 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11424 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11425 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11426 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11427 11428 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11429 esac 11430done 11431 11432 11433# If the user did not use the arguments to specify the items to instantiate, 11434# then the envvar interface is used. Set only those that are not. 11435# We use the long form for the default assignment because of an extremely 11436# bizarre bug on SunOS 4.1.3. 11437if $ac_need_defaults; then 11438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11440 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11441fi 11442 11443# Have a temporary directory for convenience. Make it in the build tree 11444# simply because there is no reason against having it here, and in addition, 11445# creating and moving files from /tmp can sometimes cause problems. 11446# Hook for its removal unless debugging. 11447# Note that there is a small window in which the directory will not be cleaned: 11448# after its creation but before its name has been assigned to `$tmp'. 11449$debug || 11450{ 11451 tmp= ac_tmp= 11452 trap 'exit_status=$? 11453 : "${ac_tmp:=$tmp}" 11454 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11455' 0 11456 trap 'as_fn_exit 1' 1 2 13 15 11457} 11458# Create a (secure) tmp directory for tmp files. 11459 11460{ 11461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11462 test -d "$tmp" 11463} || 11464{ 11465 tmp=./conf$$-$RANDOM 11466 (umask 077 && mkdir "$tmp") 11467} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11468ac_tmp=$tmp 11469 11470# Set up the scripts for CONFIG_FILES section. 11471# No need to generate them if there are no CONFIG_FILES. 11472# This happens for instance with `./config.status config.h'. 11473if test -n "$CONFIG_FILES"; then 11474 11475 11476ac_cr=`echo X | tr X '\015'` 11477# On cygwin, bash can eat \r inside `` if the user requested igncr. 11478# But we know of no other shell where ac_cr would be empty at this 11479# point, so we can use a bashism as a fallback. 11480if test "x$ac_cr" = x; then 11481 eval ac_cr=\$\'\\r\' 11482fi 11483ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11484if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11485 ac_cs_awk_cr='\\r' 11486else 11487 ac_cs_awk_cr=$ac_cr 11488fi 11489 11490echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11491_ACEOF 11492 11493 11494{ 11495 echo "cat >conf$$subs.awk <<_ACEOF" && 11496 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11497 echo "_ACEOF" 11498} >conf$$subs.sh || 11499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11500ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11501ac_delim='%!_!# ' 11502for ac_last_try in false false false false false :; do 11503 . ./conf$$subs.sh || 11504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11505 11506 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11507 if test $ac_delim_n = $ac_delim_num; then 11508 break 11509 elif $ac_last_try; then 11510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11511 else 11512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11513 fi 11514done 11515rm -f conf$$subs.sh 11516 11517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11518cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11519_ACEOF 11520sed -n ' 11521h 11522s/^/S["/; s/!.*/"]=/ 11523p 11524g 11525s/^[^!]*!// 11526:repl 11527t repl 11528s/'"$ac_delim"'$// 11529t delim 11530:nl 11531h 11532s/\(.\{148\}\)..*/\1/ 11533t more1 11534s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11535p 11536n 11537b repl 11538:more1 11539s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11540p 11541g 11542s/.\{148\}// 11543t nl 11544:delim 11545h 11546s/\(.\{148\}\)..*/\1/ 11547t more2 11548s/["\\]/\\&/g; s/^/"/; s/$/"/ 11549p 11550b 11551:more2 11552s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11553p 11554g 11555s/.\{148\}// 11556t delim 11557' <conf$$subs.awk | sed ' 11558/^[^""]/{ 11559 N 11560 s/\n// 11561} 11562' >>$CONFIG_STATUS || ac_write_fail=1 11563rm -f conf$$subs.awk 11564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11565_ACAWK 11566cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11567 for (key in S) S_is_set[key] = 1 11568 FS = "" 11569 11570} 11571{ 11572 line = $ 0 11573 nfields = split(line, field, "@") 11574 substed = 0 11575 len = length(field[1]) 11576 for (i = 2; i < nfields; i++) { 11577 key = field[i] 11578 keylen = length(key) 11579 if (S_is_set[key]) { 11580 value = S[key] 11581 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11582 len += length(value) + length(field[++i]) 11583 substed = 1 11584 } else 11585 len += 1 + keylen 11586 } 11587 11588 print line 11589} 11590 11591_ACAWK 11592_ACEOF 11593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11594if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11595 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11596else 11597 cat 11598fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11599 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11600_ACEOF 11601 11602# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11603# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11604# trailing colons and then remove the whole line if VPATH becomes empty 11605# (actually we leave an empty line to preserve line numbers). 11606if test "x$srcdir" = x.; then 11607 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11608h 11609s/// 11610s/^/:/ 11611s/[ ]*$/:/ 11612s/:\$(srcdir):/:/g 11613s/:\${srcdir}:/:/g 11614s/:@srcdir@:/:/g 11615s/^:*// 11616s/:*$// 11617x 11618s/\(=[ ]*\).*/\1/ 11619G 11620s/\n// 11621s/^[^=]*=[ ]*$// 11622}' 11623fi 11624 11625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11626fi # test -n "$CONFIG_FILES" 11627 11628# Set up the scripts for CONFIG_HEADERS section. 11629# No need to generate them if there are no CONFIG_HEADERS. 11630# This happens for instance with `./config.status Makefile'. 11631if test -n "$CONFIG_HEADERS"; then 11632cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11633BEGIN { 11634_ACEOF 11635 11636# Transform confdefs.h into an awk script `defines.awk', embedded as 11637# here-document in config.status, that substitutes the proper values into 11638# config.h.in to produce config.h. 11639 11640# Create a delimiter string that does not exist in confdefs.h, to ease 11641# handling of long lines. 11642ac_delim='%!_!# ' 11643for ac_last_try in false false :; do 11644 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11645 if test -z "$ac_tt"; then 11646 break 11647 elif $ac_last_try; then 11648 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11649 else 11650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11651 fi 11652done 11653 11654# For the awk script, D is an array of macro values keyed by name, 11655# likewise P contains macro parameters if any. Preserve backslash 11656# newline sequences. 11657 11658ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11659sed -n ' 11660s/.\{148\}/&'"$ac_delim"'/g 11661t rset 11662:rset 11663s/^[ ]*#[ ]*define[ ][ ]*/ / 11664t def 11665d 11666:def 11667s/\\$// 11668t bsnl 11669s/["\\]/\\&/g 11670s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11671D["\1"]=" \3"/p 11672s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11673d 11674:bsnl 11675s/["\\]/\\&/g 11676s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11677D["\1"]=" \3\\\\\\n"\\/p 11678t cont 11679s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11680t cont 11681d 11682:cont 11683n 11684s/.\{148\}/&'"$ac_delim"'/g 11685t clear 11686:clear 11687s/\\$// 11688t bsnlc 11689s/["\\]/\\&/g; s/^/"/; s/$/"/p 11690d 11691:bsnlc 11692s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11693b cont 11694' <confdefs.h | sed ' 11695s/'"$ac_delim"'/"\\\ 11696"/g' >>$CONFIG_STATUS || ac_write_fail=1 11697 11698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11699 for (key in D) D_is_set[key] = 1 11700 FS = "" 11701} 11702/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11703 line = \$ 0 11704 split(line, arg, " ") 11705 if (arg[1] == "#") { 11706 defundef = arg[2] 11707 mac1 = arg[3] 11708 } else { 11709 defundef = substr(arg[1], 2) 11710 mac1 = arg[2] 11711 } 11712 split(mac1, mac2, "(") #) 11713 macro = mac2[1] 11714 prefix = substr(line, 1, index(line, defundef) - 1) 11715 if (D_is_set[macro]) { 11716 # Preserve the white space surrounding the "#". 11717 print prefix "define", macro P[macro] D[macro] 11718 next 11719 } else { 11720 # Replace #undef with comments. This is necessary, for example, 11721 # in the case of _POSIX_SOURCE, which is predefined and required 11722 # on some systems where configure will not decide to define it. 11723 if (defundef == "undef") { 11724 print "/*", prefix defundef, macro, "*/" 11725 next 11726 } 11727 } 11728} 11729{ print } 11730_ACAWK 11731_ACEOF 11732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11733 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11734fi # test -n "$CONFIG_HEADERS" 11735 11736 11737eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11738shift 11739for ac_tag 11740do 11741 case $ac_tag in 11742 :[FHLC]) ac_mode=$ac_tag; continue;; 11743 esac 11744 case $ac_mode$ac_tag in 11745 :[FHL]*:*);; 11746 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11747 :[FH]-) ac_tag=-:-;; 11748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11749 esac 11750 ac_save_IFS=$IFS 11751 IFS=: 11752 set x $ac_tag 11753 IFS=$ac_save_IFS 11754 shift 11755 ac_file=$1 11756 shift 11757 11758 case $ac_mode in 11759 :L) ac_source=$1;; 11760 :[FH]) 11761 ac_file_inputs= 11762 for ac_f 11763 do 11764 case $ac_f in 11765 -) ac_f="$ac_tmp/stdin";; 11766 *) # Look for the file first in the build tree, then in the source tree 11767 # (if the path is not absolute). The absolute path cannot be DOS-style, 11768 # because $ac_f cannot contain `:'. 11769 test -f "$ac_f" || 11770 case $ac_f in 11771 [\\/$]*) false;; 11772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11773 esac || 11774 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11775 esac 11776 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11777 as_fn_append ac_file_inputs " '$ac_f'" 11778 done 11779 11780 # Let's still pretend it is `configure' which instantiates (i.e., don't 11781 # use $as_me), people would be surprised to read: 11782 # /* config.h. Generated by config.status. */ 11783 configure_input='Generated from '` 11784 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11785 `' by configure.' 11786 if test x"$ac_file" != x-; then 11787 configure_input="$ac_file. $configure_input" 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11789$as_echo "$as_me: creating $ac_file" >&6;} 11790 fi 11791 # Neutralize special characters interpreted by sed in replacement strings. 11792 case $configure_input in #( 11793 *\&* | *\|* | *\\* ) 11794 ac_sed_conf_input=`$as_echo "$configure_input" | 11795 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11796 *) ac_sed_conf_input=$configure_input;; 11797 esac 11798 11799 case $ac_tag in 11800 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11802 esac 11803 ;; 11804 esac 11805 11806 ac_dir=`$as_dirname -- "$ac_file" || 11807$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11808 X"$ac_file" : 'X\(//\)[^/]' \| \ 11809 X"$ac_file" : 'X\(//\)$' \| \ 11810 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11811$as_echo X"$ac_file" | 11812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11813 s//\1/ 11814 q 11815 } 11816 /^X\(\/\/\)[^/].*/{ 11817 s//\1/ 11818 q 11819 } 11820 /^X\(\/\/\)$/{ 11821 s//\1/ 11822 q 11823 } 11824 /^X\(\/\).*/{ 11825 s//\1/ 11826 q 11827 } 11828 s/.*/./; q'` 11829 as_dir="$ac_dir"; as_fn_mkdir_p 11830 ac_builddir=. 11831 11832case "$ac_dir" in 11833.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11834*) 11835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11836 # A ".." for each directory in $ac_dir_suffix. 11837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11838 case $ac_top_builddir_sub in 11839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11841 esac ;; 11842esac 11843ac_abs_top_builddir=$ac_pwd 11844ac_abs_builddir=$ac_pwd$ac_dir_suffix 11845# for backward compatibility: 11846ac_top_builddir=$ac_top_build_prefix 11847 11848case $srcdir in 11849 .) # We are building in place. 11850 ac_srcdir=. 11851 ac_top_srcdir=$ac_top_builddir_sub 11852 ac_abs_top_srcdir=$ac_pwd ;; 11853 [\\/]* | ?:[\\/]* ) # Absolute name. 11854 ac_srcdir=$srcdir$ac_dir_suffix; 11855 ac_top_srcdir=$srcdir 11856 ac_abs_top_srcdir=$srcdir ;; 11857 *) # Relative name. 11858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11859 ac_top_srcdir=$ac_top_build_prefix$srcdir 11860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11861esac 11862ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11863 11864 11865 case $ac_mode in 11866 :F) 11867 # 11868 # CONFIG_FILE 11869 # 11870 11871 case $INSTALL in 11872 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11873 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11874 esac 11875 ac_MKDIR_P=$MKDIR_P 11876 case $MKDIR_P in 11877 [\\/$]* | ?:[\\/]* ) ;; 11878 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11879 esac 11880_ACEOF 11881 11882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11883# If the template does not know about datarootdir, expand it. 11884# FIXME: This hack should be removed a few years after 2.60. 11885ac_datarootdir_hack=; ac_datarootdir_seen= 11886ac_sed_dataroot=' 11887/datarootdir/ { 11888 p 11889 q 11890} 11891/@datadir@/p 11892/@docdir@/p 11893/@infodir@/p 11894/@localedir@/p 11895/@mandir@/p' 11896case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11897*datarootdir*) ac_datarootdir_seen=yes;; 11898*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11900$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11901_ACEOF 11902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11903 ac_datarootdir_hack=' 11904 s&@datadir@&$datadir&g 11905 s&@docdir@&$docdir&g 11906 s&@infodir@&$infodir&g 11907 s&@localedir@&$localedir&g 11908 s&@mandir@&$mandir&g 11909 s&\\\${datarootdir}&$datarootdir&g' ;; 11910esac 11911_ACEOF 11912 11913# Neutralize VPATH when `$srcdir' = `.'. 11914# Shell code in configure.ac might set extrasub. 11915# FIXME: do we really want to maintain this feature? 11916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11917ac_sed_extra="$ac_vpsub 11918$extrasub 11919_ACEOF 11920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11921:t 11922/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11923s|@configure_input@|$ac_sed_conf_input|;t t 11924s&@top_builddir@&$ac_top_builddir_sub&;t t 11925s&@top_build_prefix@&$ac_top_build_prefix&;t t 11926s&@srcdir@&$ac_srcdir&;t t 11927s&@abs_srcdir@&$ac_abs_srcdir&;t t 11928s&@top_srcdir@&$ac_top_srcdir&;t t 11929s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11930s&@builddir@&$ac_builddir&;t t 11931s&@abs_builddir@&$ac_abs_builddir&;t t 11932s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11933s&@INSTALL@&$ac_INSTALL&;t t 11934s&@MKDIR_P@&$ac_MKDIR_P&;t t 11935$ac_datarootdir_hack 11936" 11937eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11938 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11939 11940test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11941 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11942 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11943 "$ac_tmp/out"`; test -z "$ac_out"; } && 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11945which seems to be undefined. Please make sure it is defined" >&5 11946$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11947which seems to be undefined. Please make sure it is defined" >&2;} 11948 11949 rm -f "$ac_tmp/stdin" 11950 case $ac_file in 11951 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11952 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11953 esac \ 11954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11955 ;; 11956 :H) 11957 # 11958 # CONFIG_HEADER 11959 # 11960 if test x"$ac_file" != x-; then 11961 { 11962 $as_echo "/* $configure_input */" \ 11963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11964 } >"$ac_tmp/config.h" \ 11965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11966 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11968$as_echo "$as_me: $ac_file is unchanged" >&6;} 11969 else 11970 rm -f "$ac_file" 11971 mv "$ac_tmp/config.h" "$ac_file" \ 11972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11973 fi 11974 else 11975 $as_echo "/* $configure_input */" \ 11976 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11977 || as_fn_error $? "could not create -" "$LINENO" 5 11978 fi 11979# Compute "$ac_file"'s index in $config_headers. 11980_am_arg="$ac_file" 11981_am_stamp_count=1 11982for _am_header in $config_headers :; do 11983 case $_am_header in 11984 $_am_arg | $_am_arg:* ) 11985 break ;; 11986 * ) 11987 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11988 esac 11989done 11990echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11991$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11992 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11993 X"$_am_arg" : 'X\(//\)$' \| \ 11994 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11995$as_echo X"$_am_arg" | 11996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11997 s//\1/ 11998 q 11999 } 12000 /^X\(\/\/\)[^/].*/{ 12001 s//\1/ 12002 q 12003 } 12004 /^X\(\/\/\)$/{ 12005 s//\1/ 12006 q 12007 } 12008 /^X\(\/\).*/{ 12009 s//\1/ 12010 q 12011 } 12012 s/.*/./; q'`/stamp-h$_am_stamp_count 12013 ;; 12014 12015 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12016$as_echo "$as_me: executing $ac_file commands" >&6;} 12017 ;; 12018 esac 12019 12020 12021 case $ac_file$ac_mode in 12022 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12023 # Older Autoconf quotes --file arguments for eval, but not when files 12024 # are listed without --file. Let's play safe and only enable the eval 12025 # if we detect the quoting. 12026 case $CONFIG_FILES in 12027 *\'*) eval set x "$CONFIG_FILES" ;; 12028 *) set x $CONFIG_FILES ;; 12029 esac 12030 shift 12031 for mf 12032 do 12033 # Strip MF so we end up with the name of the file. 12034 mf=`echo "$mf" | sed -e 's/:.*$//'` 12035 # Check whether this is an Automake generated Makefile or not. 12036 # We used to match only the files named 'Makefile.in', but 12037 # some people rename them; so instead we look at the file content. 12038 # Grep'ing the first line is not enough: some people post-process 12039 # each Makefile.in and add a new line on top of each file to say so. 12040 # Grep'ing the whole file is not good either: AIX grep has a line 12041 # limit of 2048, but all sed's we know have understand at least 4000. 12042 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12043 dirpart=`$as_dirname -- "$mf" || 12044$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12045 X"$mf" : 'X\(//\)[^/]' \| \ 12046 X"$mf" : 'X\(//\)$' \| \ 12047 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12048$as_echo X"$mf" | 12049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12050 s//\1/ 12051 q 12052 } 12053 /^X\(\/\/\)[^/].*/{ 12054 s//\1/ 12055 q 12056 } 12057 /^X\(\/\/\)$/{ 12058 s//\1/ 12059 q 12060 } 12061 /^X\(\/\).*/{ 12062 s//\1/ 12063 q 12064 } 12065 s/.*/./; q'` 12066 else 12067 continue 12068 fi 12069 # Extract the definition of DEPDIR, am__include, and am__quote 12070 # from the Makefile without running 'make'. 12071 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12072 test -z "$DEPDIR" && continue 12073 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12074 test -z "$am__include" && continue 12075 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12076 # Find all dependency output files, they are included files with 12077 # $(DEPDIR) in their names. We invoke sed twice because it is the 12078 # simplest approach to changing $(DEPDIR) to its actual value in the 12079 # expansion. 12080 for file in `sed -n " 12081 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12082 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12083 # Make sure the directory exists. 12084 test -f "$dirpart/$file" && continue 12085 fdir=`$as_dirname -- "$file" || 12086$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12087 X"$file" : 'X\(//\)[^/]' \| \ 12088 X"$file" : 'X\(//\)$' \| \ 12089 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12090$as_echo X"$file" | 12091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12092 s//\1/ 12093 q 12094 } 12095 /^X\(\/\/\)[^/].*/{ 12096 s//\1/ 12097 q 12098 } 12099 /^X\(\/\/\)$/{ 12100 s//\1/ 12101 q 12102 } 12103 /^X\(\/\).*/{ 12104 s//\1/ 12105 q 12106 } 12107 s/.*/./; q'` 12108 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12109 # echo "creating $dirpart/$file" 12110 echo '# dummy' > "$dirpart/$file" 12111 done 12112 done 12113} 12114 ;; 12115 12116 esac 12117done # for ac_tag 12118 12119 12120as_fn_exit 0 12121_ACEOF 12122ac_clean_files=$ac_clean_files_save 12123 12124test $ac_write_fail = 0 || 12125 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12126 12127 12128# configure is writing to config.log, and then calls config.status. 12129# config.status does its own redirection, appending to config.log. 12130# Unfortunately, on DOS this fails, as config.log is still kept open 12131# by configure, so config.status won't be able to write to it; its 12132# output is simply discarded. So we exec the FD to /dev/null, 12133# effectively closing config.log, so it can be properly (re)opened and 12134# appended to by config.status. When coming back to configure, we 12135# need to make the FD available again. 12136if test "$no_create" != yes; then 12137 ac_cs_success=: 12138 ac_config_status_args= 12139 test "$silent" = yes && 12140 ac_config_status_args="$ac_config_status_args --quiet" 12141 exec 5>/dev/null 12142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12143 exec 5>>config.log 12144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12145 # would make configure fail if this is the last instruction. 12146 $ac_cs_success || as_fn_exit 1 12147fi 12148if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12150$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12151fi 12152 12153