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