1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xload 1.1.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xload' 583PACKAGE_TARNAME='xload' 584PACKAGE_VERSION='1.1.3' 585PACKAGE_STRING='xload 1.1.3' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631APPDEFS_LIBS 632APPDEFS_CFLAGS 633XLOAD_LIBS 634XLOAD_CFLAGS 635USE_GETTEXT_FALSE 636USE_GETTEXT_TRUE 637LOCALEDIR 638MAN_SUBSTS 639XORG_MAN_PAGE 640ADMIN_MAN_DIR 641DRIVER_MAN_DIR 642MISC_MAN_DIR 643FILE_MAN_DIR 644LIB_MAN_DIR 645APP_MAN_DIR 646ADMIN_MAN_SUFFIX 647DRIVER_MAN_SUFFIX 648MISC_MAN_SUFFIX 649FILE_MAN_SUFFIX 650LIB_MAN_SUFFIX 651APP_MAN_SUFFIX 652SED 653host_os 654host_vendor 655host_cpu 656host 657build_os 658build_vendor 659build_cpu 660build 661INSTALL_CMD 662PKG_CONFIG_LIBDIR 663PKG_CONFIG_PATH 664PKG_CONFIG 665CHANGELOG_CMD 666STRICT_CFLAGS 667CWARNFLAGS 668BASE_CFLAGS 669AM_BACKSLASH 670AM_DEFAULT_VERBOSITY 671AM_DEFAULT_V 672AM_V 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683am__untar 684am__tar 685AMTAR 686am__leading_dot 687SET_MAKE 688AWK 689mkdir_p 690MKDIR_P 691INSTALL_STRIP_PROGRAM 692STRIP 693install_sh 694MAKEINFO 695AUTOHEADER 696AUTOMAKE 697AUTOCONF 698ACLOCAL 699VERSION 700PACKAGE 701CYGPATH_W 702am__isrc 703INSTALL_DATA 704INSTALL_SCRIPT 705INSTALL_PROGRAM 706EGREP 707GREP 708CPP 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_dependency_tracking 758enable_silent_rules 759enable_selective_werror 760enable_strict_compilation 761with_localedir 762with_appdefaultdir 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CPP 773PKG_CONFIG 774PKG_CONFIG_PATH 775PKG_CONFIG_LIBDIR 776XLOAD_CFLAGS 777XLOAD_LIBS 778APPDEFS_CFLAGS 779APPDEFS_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 xload 1.1.3 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/xload] 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 xload 1.1.3:";; 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-dependency-tracking 1399 do not reject slow dependency extractors 1400 --disable-dependency-tracking 1401 speeds up one-time build 1402 --enable-silent-rules less verbose build output (undo: "make V=1") 1403 --disable-silent-rules verbose build output (undo: "make V=0") 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-localedir=<path> Path to install message files in (default: 1415 datadir/locale) 1416 --with-appdefaultdir=<pathname> 1417 specify directory for app-defaults files (default is 1418 autodetected) 1419 1420Some influential environment variables: 1421 CC C compiler command 1422 CFLAGS C compiler flags 1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1424 nonstandard directory <lib dir> 1425 LIBS libraries to pass to the linker, e.g. -l<library> 1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1427 you have headers in a nonstandard directory <include dir> 1428 CPP C preprocessor 1429 PKG_CONFIG path to pkg-config utility 1430 PKG_CONFIG_PATH 1431 directories to add to pkg-config's search path 1432 PKG_CONFIG_LIBDIR 1433 path overriding pkg-config's built-in search path 1434 XLOAD_CFLAGS 1435 C compiler flags for XLOAD, overriding pkg-config 1436 XLOAD_LIBS linker flags for XLOAD, overriding pkg-config 1437 APPDEFS_CFLAGS 1438 C compiler flags for APPDEFS, overriding pkg-config 1439 APPDEFS_LIBS 1440 linker flags for APPDEFS, overriding pkg-config 1441 1442Use these variables to override the choices made by `configure' or to help 1443it to find libraries and programs with nonstandard names/locations. 1444 1445Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1446_ACEOF 1447ac_status=$? 1448fi 1449 1450if test "$ac_init_help" = "recursive"; then 1451 # If there are subdirs, report their specific --help. 1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1453 test -d "$ac_dir" || 1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1455 continue 1456 ac_builddir=. 1457 1458case "$ac_dir" in 1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1460*) 1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1462 # A ".." for each directory in $ac_dir_suffix. 1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1464 case $ac_top_builddir_sub in 1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1467 esac ;; 1468esac 1469ac_abs_top_builddir=$ac_pwd 1470ac_abs_builddir=$ac_pwd$ac_dir_suffix 1471# for backward compatibility: 1472ac_top_builddir=$ac_top_build_prefix 1473 1474case $srcdir in 1475 .) # We are building in place. 1476 ac_srcdir=. 1477 ac_top_srcdir=$ac_top_builddir_sub 1478 ac_abs_top_srcdir=$ac_pwd ;; 1479 [\\/]* | ?:[\\/]* ) # Absolute name. 1480 ac_srcdir=$srcdir$ac_dir_suffix; 1481 ac_top_srcdir=$srcdir 1482 ac_abs_top_srcdir=$srcdir ;; 1483 *) # Relative name. 1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1485 ac_top_srcdir=$ac_top_build_prefix$srcdir 1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1487esac 1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1489 1490 cd "$ac_dir" || { ac_status=$?; continue; } 1491 # Check for guested configure. 1492 if test -f "$ac_srcdir/configure.gnu"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1495 elif test -f "$ac_srcdir/configure"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure" --help=recursive 1498 else 1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1500 fi || ac_status=$? 1501 cd "$ac_pwd" || { ac_status=$?; break; } 1502 done 1503fi 1504 1505test -n "$ac_init_help" && exit $ac_status 1506if $ac_init_version; then 1507 cat <<\_ACEOF 1508xload configure 1.1.3 1509generated by GNU Autoconf 2.69 1510 1511Copyright (C) 2012 Free Software Foundation, Inc. 1512This configure script is free software; the Free Software Foundation 1513gives unlimited permission to copy, distribute and modify it. 1514_ACEOF 1515 exit 1516fi 1517 1518## ------------------------ ## 1519## Autoconf initialization. ## 1520## ------------------------ ## 1521 1522# ac_fn_c_try_compile LINENO 1523# -------------------------- 1524# Try to compile conftest.$ac_ext, and return whether this succeeded. 1525ac_fn_c_try_compile () 1526{ 1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1528 rm -f conftest.$ac_objext 1529 if { { ac_try="$ac_compile" 1530case "(($ac_try" in 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1532 *) ac_try_echo=$ac_try;; 1533esac 1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1535$as_echo "$ac_try_echo"; } >&5 1536 (eval "$ac_compile") 2>conftest.err 1537 ac_status=$? 1538 if test -s conftest.err; then 1539 grep -v '^ *+' conftest.err >conftest.er1 1540 cat conftest.er1 >&5 1541 mv -f conftest.er1 conftest.err 1542 fi 1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1544 test $ac_status = 0; } && { 1545 test -z "$ac_c_werror_flag" || 1546 test ! -s conftest.err 1547 } && test -s conftest.$ac_objext; then : 1548 ac_retval=0 1549else 1550 $as_echo "$as_me: failed program was:" >&5 1551sed 's/^/| /' conftest.$ac_ext >&5 1552 1553 ac_retval=1 1554fi 1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1556 as_fn_set_status $ac_retval 1557 1558} # ac_fn_c_try_compile 1559 1560# ac_fn_c_try_cpp LINENO 1561# ---------------------- 1562# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_cpp () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 if { { ac_try="$ac_cpp conftest.$ac_ext" 1567case "(($ac_try" in 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569 *) ac_try_echo=$ac_try;; 1570esac 1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572$as_echo "$ac_try_echo"; } >&5 1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1574 ac_status=$? 1575 if test -s conftest.err; then 1576 grep -v '^ *+' conftest.err >conftest.er1 1577 cat conftest.er1 >&5 1578 mv -f conftest.er1 conftest.err 1579 fi 1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 test $ac_status = 0; } > conftest.i && { 1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1583 test ! -s conftest.err 1584 }; then : 1585 ac_retval=0 1586else 1587 $as_echo "$as_me: failed program was:" >&5 1588sed 's/^/| /' conftest.$ac_ext >&5 1589 1590 ac_retval=1 1591fi 1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1593 as_fn_set_status $ac_retval 1594 1595} # ac_fn_c_try_cpp 1596 1597# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1598# ------------------------------------------------------- 1599# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1600# the include files in INCLUDES and setting the cache variable VAR 1601# accordingly. 1602ac_fn_c_check_header_mongrel () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 if eval \${$3+:} false; then : 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607$as_echo_n "checking for $2... " >&6; } 1608if eval \${$3+:} false; then : 1609 $as_echo_n "(cached) " >&6 1610fi 1611eval ac_res=\$$3 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1613$as_echo "$ac_res" >&6; } 1614else 1615 # Is the header compilable? 1616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1617$as_echo_n "checking $2 usability... " >&6; } 1618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1619/* end confdefs.h. */ 1620$4 1621#include <$2> 1622_ACEOF 1623if ac_fn_c_try_compile "$LINENO"; then : 1624 ac_header_compiler=yes 1625else 1626 ac_header_compiler=no 1627fi 1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1630$as_echo "$ac_header_compiler" >&6; } 1631 1632# Is the header present? 1633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1634$as_echo_n "checking $2 presence... " >&6; } 1635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1636/* end confdefs.h. */ 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_cpp "$LINENO"; then : 1640 ac_header_preproc=yes 1641else 1642 ac_header_preproc=no 1643fi 1644rm -f conftest.err conftest.i conftest.$ac_ext 1645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1646$as_echo "$ac_header_preproc" >&6; } 1647 1648# So? What about this header? 1649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1650 yes:no: ) 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1652$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1654$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1655 ;; 1656 no:yes:* ) 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1658$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1660$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1662$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1664$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1666$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1667( $as_echo "## ---------------------------------------------------------------------- ## 1668## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1669## ---------------------------------------------------------------------- ##" 1670 ) | sed "s/^/$as_me: WARNING: /" >&2 1671 ;; 1672esac 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 eval "$3=\$ac_header_compiler" 1679fi 1680eval ac_res=\$$3 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682$as_echo "$ac_res" >&6; } 1683fi 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_c_check_header_mongrel 1687 1688# ac_fn_c_try_run LINENO 1689# ---------------------- 1690# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1691# that executables *can* be run. 1692ac_fn_c_try_run () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 if { { ac_try="$ac_link" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>&5 1703 ac_status=$? 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1706 { { case "(($ac_try" in 1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1708 *) ac_try_echo=$ac_try;; 1709esac 1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1711$as_echo "$ac_try_echo"; } >&5 1712 (eval "$ac_try") 2>&5 1713 ac_status=$? 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; }; }; then : 1716 ac_retval=0 1717else 1718 $as_echo "$as_me: program exited with status $ac_status" >&5 1719 $as_echo "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=$ac_status 1723fi 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_run 1729 1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1731# ------------------------------------------------------- 1732# Tests whether HEADER exists and can be compiled using the include files in 1733# INCLUDES, setting the cache variable VAR accordingly. 1734ac_fn_c_check_header_compile () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738$as_echo_n "checking for $2... " >&6; } 1739if eval \${$3+:} false; then : 1740 $as_echo_n "(cached) " >&6 1741else 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744$4 1745#include <$2> 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 eval "$3=yes" 1749else 1750 eval "$3=no" 1751fi 1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1753fi 1754eval ac_res=\$$3 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1756$as_echo "$ac_res" >&6; } 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 1759} # ac_fn_c_check_header_compile 1760 1761# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1762# --------------------------------------------- 1763# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1764# accordingly. 1765ac_fn_c_check_decl () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 as_decl_name=`echo $2|sed 's/ *(.*//'` 1769 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1771$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1772if eval \${$3+:} false; then : 1773 $as_echo_n "(cached) " >&6 1774else 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778int 1779main () 1780{ 1781#ifndef $as_decl_name 1782#ifdef __cplusplus 1783 (void) $as_decl_use; 1784#else 1785 (void) $as_decl_name; 1786#endif 1787#endif 1788 1789 ; 1790 return 0; 1791} 1792_ACEOF 1793if ac_fn_c_try_compile "$LINENO"; then : 1794 eval "$3=yes" 1795else 1796 eval "$3=no" 1797fi 1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1799fi 1800eval ac_res=\$$3 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1802$as_echo "$ac_res" >&6; } 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 1805} # ac_fn_c_check_decl 1806 1807# ac_fn_c_try_link LINENO 1808# ----------------------- 1809# Try to link conftest.$ac_ext, and return whether this succeeded. 1810ac_fn_c_try_link () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 rm -f conftest.$ac_objext conftest$ac_exeext 1814 if { { ac_try="$ac_link" 1815case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818esac 1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820$as_echo "$ac_try_echo"; } >&5 1821 (eval "$ac_link") 2>conftest.err 1822 ac_status=$? 1823 if test -s conftest.err; then 1824 grep -v '^ *+' conftest.err >conftest.er1 1825 cat conftest.er1 >&5 1826 mv -f conftest.er1 conftest.err 1827 fi 1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1829 test $ac_status = 0; } && { 1830 test -z "$ac_c_werror_flag" || 1831 test ! -s conftest.err 1832 } && test -s conftest$ac_exeext && { 1833 test "$cross_compiling" = yes || 1834 test -x conftest$ac_exeext 1835 }; then : 1836 ac_retval=0 1837else 1838 $as_echo "$as_me: failed program was:" >&5 1839sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 ac_retval=1 1842fi 1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1845 # interfere with the next link command; also delete a directory that is 1846 # left behind by Apple's compiler. We do this before executing the actions. 1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 as_fn_set_status $ac_retval 1850 1851} # ac_fn_c_try_link 1852 1853# ac_fn_c_check_func LINENO FUNC VAR 1854# ---------------------------------- 1855# Tests whether FUNC exists, setting the cache variable VAR accordingly 1856ac_fn_c_check_func () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1868#define $2 innocuous_$2 1869 1870/* System header to define __stub macros and hopefully few prototypes, 1871 which can conflict with char $2 (); below. 1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1873 <limits.h> exists even on freestanding compilers. */ 1874 1875#ifdef __STDC__ 1876# include <limits.h> 1877#else 1878# include <assert.h> 1879#endif 1880 1881#undef $2 1882 1883/* Override any GCC internal prototype to avoid an error. 1884 Use char because int might match the return type of a GCC 1885 builtin and then its argument prototype would still apply. */ 1886#ifdef __cplusplus 1887extern "C" 1888#endif 1889char $2 (); 1890/* The GNU C library defines this for functions which it implements 1891 to always fail with ENOSYS. Some functions are actually named 1892 something starting with __ and the normal name is an alias. */ 1893#if defined __stub_$2 || defined __stub___$2 1894choke me 1895#endif 1896 1897int 1898main () 1899{ 1900return $2 (); 1901 ; 1902 return 0; 1903} 1904_ACEOF 1905if ac_fn_c_try_link "$LINENO"; then : 1906 eval "$3=yes" 1907else 1908 eval "$3=no" 1909fi 1910rm -f core conftest.err conftest.$ac_objext \ 1911 conftest$ac_exeext conftest.$ac_ext 1912fi 1913eval ac_res=\$$3 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915$as_echo "$ac_res" >&6; } 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} # ac_fn_c_check_func 1919cat >config.log <<_ACEOF 1920This file contains any messages produced by compilers while 1921running configure, to aid debugging if configure makes a mistake. 1922 1923It was created by xload $as_me 1.1.3, which was 1924generated by GNU Autoconf 2.69. Invocation command line was 1925 1926 $ $0 $@ 1927 1928_ACEOF 1929exec 5>>config.log 1930{ 1931cat <<_ASUNAME 1932## --------- ## 1933## Platform. ## 1934## --------- ## 1935 1936hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1937uname -m = `(uname -m) 2>/dev/null || echo unknown` 1938uname -r = `(uname -r) 2>/dev/null || echo unknown` 1939uname -s = `(uname -s) 2>/dev/null || echo unknown` 1940uname -v = `(uname -v) 2>/dev/null || echo unknown` 1941 1942/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1943/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1944 1945/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1946/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1947/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1948/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1949/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1950/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1951/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1952 1953_ASUNAME 1954 1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1956for as_dir in $PATH 1957do 1958 IFS=$as_save_IFS 1959 test -z "$as_dir" && as_dir=. 1960 $as_echo "PATH: $as_dir" 1961 done 1962IFS=$as_save_IFS 1963 1964} >&5 1965 1966cat >&5 <<_ACEOF 1967 1968 1969## ----------- ## 1970## Core tests. ## 1971## ----------- ## 1972 1973_ACEOF 1974 1975 1976# Keep a trace of the command line. 1977# Strip out --no-create and --no-recursion so they do not pile up. 1978# Strip out --silent because we don't want to record it for future runs. 1979# Also quote any args containing shell meta-characters. 1980# Make two passes to allow for proper duplicate-argument suppression. 1981ac_configure_args= 1982ac_configure_args0= 1983ac_configure_args1= 1984ac_must_keep_next=false 1985for ac_pass in 1 2 1986do 1987 for ac_arg 1988 do 1989 case $ac_arg in 1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1992 | -silent | --silent | --silen | --sile | --sil) 1993 continue ;; 1994 *\'*) 1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1996 esac 1997 case $ac_pass in 1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1999 2) 2000 as_fn_append ac_configure_args1 " '$ac_arg'" 2001 if test $ac_must_keep_next = true; then 2002 ac_must_keep_next=false # Got value, back to normal. 2003 else 2004 case $ac_arg in 2005 *=* | --config-cache | -C | -disable-* | --disable-* \ 2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2008 | -with-* | --with-* | -without-* | --without-* | --x) 2009 case "$ac_configure_args0 " in 2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2011 esac 2012 ;; 2013 -* ) ac_must_keep_next=true ;; 2014 esac 2015 fi 2016 as_fn_append ac_configure_args " '$ac_arg'" 2017 ;; 2018 esac 2019 done 2020done 2021{ ac_configure_args0=; unset ac_configure_args0;} 2022{ ac_configure_args1=; unset ac_configure_args1;} 2023 2024# When interrupted or exit'd, cleanup temporary files, and complete 2025# config.log. We remove comments because anyway the quotes in there 2026# would cause problems or look ugly. 2027# WARNING: Use '\'' to represent an apostrophe within the trap. 2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2029trap 'exit_status=$? 2030 # Save into config.log some information that might help in debugging. 2031 { 2032 echo 2033 2034 $as_echo "## ---------------- ## 2035## Cache variables. ## 2036## ---------------- ##" 2037 echo 2038 # The following way of writing the cache mishandles newlines in values, 2039( 2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in #( 2043 *${as_nl}*) 2044 case $ac_var in #( 2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2047 esac 2048 case $ac_var in #( 2049 _ | IFS | as_nl) ;; #( 2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2051 *) { eval $ac_var=; unset $ac_var;} ;; 2052 esac ;; 2053 esac 2054 done 2055 (set) 2>&1 | 2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2057 *${as_nl}ac_space=\ *) 2058 sed -n \ 2059 "s/'\''/'\''\\\\'\'''\''/g; 2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2061 ;; #( 2062 *) 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2064 ;; 2065 esac | 2066 sort 2067) 2068 echo 2069 2070 $as_echo "## ----------------- ## 2071## Output variables. ## 2072## ----------------- ##" 2073 echo 2074 for ac_var in $ac_subst_vars 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 $as_echo "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 2084 if test -n "$ac_subst_files"; then 2085 $as_echo "## ------------------- ## 2086## File substitutions. ## 2087## ------------------- ##" 2088 echo 2089 for ac_var in $ac_subst_files 2090 do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in 2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094 esac 2095 $as_echo "$ac_var='\''$ac_val'\''" 2096 done | sort 2097 echo 2098 fi 2099 2100 if test -s confdefs.h; then 2101 $as_echo "## ----------- ## 2102## confdefs.h. ## 2103## ----------- ##" 2104 echo 2105 cat confdefs.h 2106 echo 2107 fi 2108 test "$ac_signal" != 0 && 2109 $as_echo "$as_me: caught signal $ac_signal" 2110 $as_echo "$as_me: exit $exit_status" 2111 } >&5 2112 rm -f core *.core core.conftest.* && 2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2114 exit $exit_status 2115' 0 2116for ac_signal in 1 2 13 15; do 2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2118done 2119ac_signal=0 2120 2121# confdefs.h avoids OS command line length limits that DEFS can exceed. 2122rm -f -r conftest* confdefs.h 2123 2124$as_echo "/* confdefs.h */" > confdefs.h 2125 2126# Predefined preprocessor variables. 2127 2128cat >>confdefs.h <<_ACEOF 2129#define PACKAGE_NAME "$PACKAGE_NAME" 2130_ACEOF 2131 2132cat >>confdefs.h <<_ACEOF 2133#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_VERSION "$PACKAGE_VERSION" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_STRING "$PACKAGE_STRING" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_URL "$PACKAGE_URL" 2150_ACEOF 2151 2152 2153# Let the site file select an alternate cache file if it wants to. 2154# Prefer an explicitly selected file to automatically selected ones. 2155ac_site_file1=NONE 2156ac_site_file2=NONE 2157if test -n "$CONFIG_SITE"; then 2158 # We do not want a PATH search for config.site. 2159 case $CONFIG_SITE in #(( 2160 -*) ac_site_file1=./$CONFIG_SITE;; 2161 */*) ac_site_file1=$CONFIG_SITE;; 2162 *) ac_site_file1=./$CONFIG_SITE;; 2163 esac 2164elif test "x$prefix" != xNONE; then 2165 ac_site_file1=$prefix/share/config.site 2166 ac_site_file2=$prefix/etc/config.site 2167else 2168 ac_site_file1=$ac_default_prefix/share/config.site 2169 ac_site_file2=$ac_default_prefix/etc/config.site 2170fi 2171for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2172do 2173 test "x$ac_site_file" = xNONE && continue 2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2176$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2177 sed 's/^/| /' "$ac_site_file" >&5 2178 . "$ac_site_file" \ 2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2181as_fn_error $? "failed to load site script $ac_site_file 2182See \`config.log' for more details" "$LINENO" 5; } 2183 fi 2184done 2185 2186if test -r "$cache_file"; then 2187 # Some versions of bash will fail to source /dev/null (special files 2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2191$as_echo "$as_me: loading cache $cache_file" >&6;} 2192 case $cache_file in 2193 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2194 *) . "./$cache_file";; 2195 esac 2196 fi 2197else 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2199$as_echo "$as_me: creating cache $cache_file" >&6;} 2200 >$cache_file 2201fi 2202 2203# Check that the precious variables saved in the cache have kept the same 2204# value. 2205ac_cache_corrupted=false 2206for ac_var in $ac_precious_vars; do 2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2208 eval ac_new_set=\$ac_env_${ac_var}_set 2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2210 eval ac_new_val=\$ac_env_${ac_var}_value 2211 case $ac_old_set,$ac_new_set in 2212 set,) 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2214$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2215 ac_cache_corrupted=: ;; 2216 ,set) 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2218$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2219 ac_cache_corrupted=: ;; 2220 ,);; 2221 *) 2222 if test "x$ac_old_val" != "x$ac_new_val"; then 2223 # differences in whitespace do not lead to failure. 2224 ac_old_val_w=`echo x $ac_old_val` 2225 ac_new_val_w=`echo x $ac_new_val` 2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2228$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2229 ac_cache_corrupted=: 2230 else 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2232$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2233 eval $ac_var=\$ac_old_val 2234 fi 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2236$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2238$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2239 fi;; 2240 esac 2241 # Pass precious variables to config.status. 2242 if test "$ac_new_set" = set; then 2243 case $ac_new_val in 2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2245 *) ac_arg=$ac_var=$ac_new_val ;; 2246 esac 2247 case " $ac_configure_args " in 2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2250 esac 2251 fi 2252done 2253if $ac_cache_corrupted; then 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2257$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2259fi 2260## -------------------- ## 2261## Main body of script. ## 2262## -------------------- ## 2263 2264ac_ext=c 2265ac_cpp='$CPP $CPPFLAGS' 2266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2268ac_compiler_gnu=$ac_cv_c_compiler_gnu 2269 2270 2271 2272 2273ac_config_headers="$ac_config_headers config.h" 2274 2275ac_aux_dir= 2276for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2277 if test -f "$ac_dir/install-sh"; then 2278 ac_aux_dir=$ac_dir 2279 ac_install_sh="$ac_aux_dir/install-sh -c" 2280 break 2281 elif test -f "$ac_dir/install.sh"; then 2282 ac_aux_dir=$ac_dir 2283 ac_install_sh="$ac_aux_dir/install.sh -c" 2284 break 2285 elif test -f "$ac_dir/shtool"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/shtool install -c" 2288 break 2289 fi 2290done 2291if test -z "$ac_aux_dir"; then 2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2293fi 2294 2295# These three variables are undocumented and unsupported, 2296# and are intended to be withdrawn in a future Autoconf release. 2297# They can cause serious problems if a builder's source tree is in a directory 2298# whose full name contains unusual characters. 2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2302 2303 2304# Expand $ac_aux_dir to an absolute path. 2305am_aux_dir=`cd "$ac_aux_dir" && pwd` 2306 2307ac_ext=c 2308ac_cpp='$CPP $CPPFLAGS' 2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2311ac_compiler_gnu=$ac_cv_c_compiler_gnu 2312if test -n "$ac_tool_prefix"; then 2313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2314set dummy ${ac_tool_prefix}gcc; ac_word=$2 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2316$as_echo_n "checking for $ac_word... " >&6; } 2317if ${ac_cv_prog_CC+:} false; then : 2318 $as_echo_n "(cached) " >&6 2319else 2320 if test -n "$CC"; then 2321 ac_cv_prog_CC="$CC" # Let the user override the test. 2322else 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 for ac_exec_ext in '' $ac_executable_extensions; do 2329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2330 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335 done 2336IFS=$as_save_IFS 2337 2338fi 2339fi 2340CC=$ac_cv_prog_CC 2341if test -n "$CC"; then 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2343$as_echo "$CC" >&6; } 2344else 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2346$as_echo "no" >&6; } 2347fi 2348 2349 2350fi 2351if test -z "$ac_cv_prog_CC"; then 2352 ac_ct_CC=$CC 2353 # Extract the first word of "gcc", so it can be a program name with args. 2354set dummy gcc; ac_word=$2 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2356$as_echo_n "checking for $ac_word... " >&6; } 2357if ${ac_cv_prog_ac_ct_CC+:} false; then : 2358 $as_echo_n "(cached) " >&6 2359else 2360 if test -n "$ac_ct_CC"; then 2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2362else 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2370 ac_cv_prog_ac_ct_CC="gcc" 2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 break 2 2373 fi 2374done 2375 done 2376IFS=$as_save_IFS 2377 2378fi 2379fi 2380ac_ct_CC=$ac_cv_prog_ac_ct_CC 2381if test -n "$ac_ct_CC"; then 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2383$as_echo "$ac_ct_CC" >&6; } 2384else 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2386$as_echo "no" >&6; } 2387fi 2388 2389 if test "x$ac_ct_CC" = x; then 2390 CC="" 2391 else 2392 case $cross_compiling:$ac_tool_warned in 2393yes:) 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2396ac_tool_warned=yes ;; 2397esac 2398 CC=$ac_ct_CC 2399 fi 2400else 2401 CC="$ac_cv_prog_CC" 2402fi 2403 2404if test -z "$CC"; then 2405 if test -n "$ac_tool_prefix"; then 2406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2407set dummy ${ac_tool_prefix}cc; ac_word=$2 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2409$as_echo_n "checking for $ac_word... " >&6; } 2410if ${ac_cv_prog_CC+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412else 2413 if test -n "$CC"; then 2414 ac_cv_prog_CC="$CC" # Let the user override the test. 2415else 2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2423 ac_cv_prog_CC="${ac_tool_prefix}cc" 2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2425 break 2 2426 fi 2427done 2428 done 2429IFS=$as_save_IFS 2430 2431fi 2432fi 2433CC=$ac_cv_prog_CC 2434if test -n "$CC"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2436$as_echo "$CC" >&6; } 2437else 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2439$as_echo "no" >&6; } 2440fi 2441 2442 2443 fi 2444fi 2445if test -z "$CC"; then 2446 # Extract the first word of "cc", so it can be a program name with args. 2447set dummy cc; ac_word=$2 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2449$as_echo_n "checking for $ac_word... " >&6; } 2450if ${ac_cv_prog_CC+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 if test -n "$CC"; then 2454 ac_cv_prog_CC="$CC" # Let the user override the test. 2455else 2456 ac_prog_rejected=no 2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2458for as_dir in $PATH 2459do 2460 IFS=$as_save_IFS 2461 test -z "$as_dir" && as_dir=. 2462 for ac_exec_ext in '' $ac_executable_extensions; do 2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2465 ac_prog_rejected=yes 2466 continue 2467 fi 2468 ac_cv_prog_CC="cc" 2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473 done 2474IFS=$as_save_IFS 2475 2476if test $ac_prog_rejected = yes; then 2477 # We found a bogon in the path, so make sure we never use it. 2478 set dummy $ac_cv_prog_CC 2479 shift 2480 if test $# != 0; then 2481 # We chose a different compiler from the bogus one. 2482 # However, it has the same basename, so the bogon will be chosen 2483 # first if we set CC to just the basename; use the full file name. 2484 shift 2485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2486 fi 2487fi 2488fi 2489fi 2490CC=$ac_cv_prog_CC 2491if test -n "$CC"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2493$as_echo "$CC" >&6; } 2494else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2496$as_echo "no" >&6; } 2497fi 2498 2499 2500fi 2501if test -z "$CC"; then 2502 if test -n "$ac_tool_prefix"; then 2503 for ac_prog in cl.exe 2504 do 2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2506set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2508$as_echo_n "checking for $ac_word... " >&6; } 2509if ${ac_cv_prog_CC+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511else 2512 if test -n "$CC"; then 2513 ac_cv_prog_CC="$CC" # Let the user override the test. 2514else 2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 test -z "$as_dir" && as_dir=. 2520 for ac_exec_ext in '' $ac_executable_extensions; do 2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2524 break 2 2525 fi 2526done 2527 done 2528IFS=$as_save_IFS 2529 2530fi 2531fi 2532CC=$ac_cv_prog_CC 2533if test -n "$CC"; then 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2535$as_echo "$CC" >&6; } 2536else 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2538$as_echo "no" >&6; } 2539fi 2540 2541 2542 test -n "$CC" && break 2543 done 2544fi 2545if test -z "$CC"; then 2546 ac_ct_CC=$CC 2547 for ac_prog in cl.exe 2548do 2549 # Extract the first word of "$ac_prog", so it can be a program name with args. 2550set dummy $ac_prog; ac_word=$2 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2552$as_echo_n "checking for $ac_word... " >&6; } 2553if ${ac_cv_prog_ac_ct_CC+:} false; then : 2554 $as_echo_n "(cached) " >&6 2555else 2556 if test -n "$ac_ct_CC"; then 2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2558else 2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560for as_dir in $PATH 2561do 2562 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2564 for ac_exec_ext in '' $ac_executable_extensions; do 2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2566 ac_cv_prog_ac_ct_CC="$ac_prog" 2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2568 break 2 2569 fi 2570done 2571 done 2572IFS=$as_save_IFS 2573 2574fi 2575fi 2576ac_ct_CC=$ac_cv_prog_ac_ct_CC 2577if test -n "$ac_ct_CC"; then 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2579$as_echo "$ac_ct_CC" >&6; } 2580else 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2582$as_echo "no" >&6; } 2583fi 2584 2585 2586 test -n "$ac_ct_CC" && break 2587done 2588 2589 if test "x$ac_ct_CC" = x; then 2590 CC="" 2591 else 2592 case $cross_compiling:$ac_tool_warned in 2593yes:) 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2596ac_tool_warned=yes ;; 2597esac 2598 CC=$ac_ct_CC 2599 fi 2600fi 2601 2602fi 2603 2604 2605test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2607as_fn_error $? "no acceptable C compiler found in \$PATH 2608See \`config.log' for more details" "$LINENO" 5; } 2609 2610# Provide some information about the compiler. 2611$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2612set X $ac_compile 2613ac_compiler=$2 2614for ac_option in --version -v -V -qversion; do 2615 { { ac_try="$ac_compiler $ac_option >&5" 2616case "(($ac_try" in 2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2618 *) ac_try_echo=$ac_try;; 2619esac 2620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2621$as_echo "$ac_try_echo"; } >&5 2622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2623 ac_status=$? 2624 if test -s conftest.err; then 2625 sed '10a\ 2626... rest of stderr output deleted ... 2627 10q' conftest.err >conftest.er1 2628 cat conftest.er1 >&5 2629 fi 2630 rm -f conftest.er1 conftest.err 2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2632 test $ac_status = 0; } 2633done 2634 2635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2636/* end confdefs.h. */ 2637 2638int 2639main () 2640{ 2641 2642 ; 2643 return 0; 2644} 2645_ACEOF 2646ac_clean_files_save=$ac_clean_files 2647ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2648# Try to create an executable without -o first, disregard a.out. 2649# It will help us diagnose broken compilers, and finding out an intuition 2650# of exeext. 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2652$as_echo_n "checking whether the C compiler works... " >&6; } 2653ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2654 2655# The possible output files: 2656ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2657 2658ac_rmfiles= 2659for ac_file in $ac_files 2660do 2661 case $ac_file in 2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2663 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2664 esac 2665done 2666rm -f $ac_rmfiles 2667 2668if { { ac_try="$ac_link_default" 2669case "(($ac_try" in 2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2671 *) ac_try_echo=$ac_try;; 2672esac 2673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2674$as_echo "$ac_try_echo"; } >&5 2675 (eval "$ac_link_default") 2>&5 2676 ac_status=$? 2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2678 test $ac_status = 0; }; then : 2679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2680# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2681# in a Makefile. We should not override ac_cv_exeext if it was cached, 2682# so that the user can short-circuit this test for compilers unknown to 2683# Autoconf. 2684for ac_file in $ac_files '' 2685do 2686 test -f "$ac_file" || continue 2687 case $ac_file in 2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2689 ;; 2690 [ab].out ) 2691 # We found the default executable, but exeext='' is most 2692 # certainly right. 2693 break;; 2694 *.* ) 2695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2696 then :; else 2697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2698 fi 2699 # We set ac_cv_exeext here because the later test for it is not 2700 # safe: cross compilers may not add the suffix if given an `-o' 2701 # argument, so we may need to know it at that point already. 2702 # Even if this section looks crufty: it has the advantage of 2703 # actually working. 2704 break;; 2705 * ) 2706 break;; 2707 esac 2708done 2709test "$ac_cv_exeext" = no && ac_cv_exeext= 2710 2711else 2712 ac_file='' 2713fi 2714if test -z "$ac_file"; then : 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2716$as_echo "no" >&6; } 2717$as_echo "$as_me: failed program was:" >&5 2718sed 's/^/| /' conftest.$ac_ext >&5 2719 2720{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2722as_fn_error 77 "C compiler cannot create executables 2723See \`config.log' for more details" "$LINENO" 5; } 2724else 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2726$as_echo "yes" >&6; } 2727fi 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2729$as_echo_n "checking for C compiler default output file name... " >&6; } 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2731$as_echo "$ac_file" >&6; } 2732ac_exeext=$ac_cv_exeext 2733 2734rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2735ac_clean_files=$ac_clean_files_save 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2737$as_echo_n "checking for suffix of executables... " >&6; } 2738if { { ac_try="$ac_link" 2739case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742esac 2743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2744$as_echo "$ac_try_echo"; } >&5 2745 (eval "$ac_link") 2>&5 2746 ac_status=$? 2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2748 test $ac_status = 0; }; then : 2749 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2750# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2751# work properly (i.e., refer to `conftest.exe'), while it won't with 2752# `rm'. 2753for ac_file in conftest.exe conftest conftest.*; do 2754 test -f "$ac_file" || continue 2755 case $ac_file in 2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2758 break;; 2759 * ) break;; 2760 esac 2761done 2762else 2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2765as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2766See \`config.log' for more details" "$LINENO" 5; } 2767fi 2768rm -f conftest conftest$ac_cv_exeext 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2770$as_echo "$ac_cv_exeext" >&6; } 2771 2772rm -f conftest.$ac_ext 2773EXEEXT=$ac_cv_exeext 2774ac_exeext=$EXEEXT 2775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2776/* end confdefs.h. */ 2777#include <stdio.h> 2778int 2779main () 2780{ 2781FILE *f = fopen ("conftest.out", "w"); 2782 return ferror (f) || fclose (f) != 0; 2783 2784 ; 2785 return 0; 2786} 2787_ACEOF 2788ac_clean_files="$ac_clean_files conftest.out" 2789# Check that the compiler produces executables we can run. If not, either 2790# the compiler is broken, or we cross compile. 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2792$as_echo_n "checking whether we are cross compiling... " >&6; } 2793if test "$cross_compiling" != yes; then 2794 { { ac_try="$ac_link" 2795case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798esac 2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2800$as_echo "$ac_try_echo"; } >&5 2801 (eval "$ac_link") 2>&5 2802 ac_status=$? 2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; } 2805 if { ac_try='./conftest$ac_cv_exeext' 2806 { { case "(($ac_try" in 2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2808 *) ac_try_echo=$ac_try;; 2809esac 2810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2811$as_echo "$ac_try_echo"; } >&5 2812 (eval "$ac_try") 2>&5 2813 ac_status=$? 2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2815 test $ac_status = 0; }; }; then 2816 cross_compiling=no 2817 else 2818 if test "$cross_compiling" = maybe; then 2819 cross_compiling=yes 2820 else 2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2823as_fn_error $? "cannot run C compiled programs. 2824If you meant to cross compile, use \`--host'. 2825See \`config.log' for more details" "$LINENO" 5; } 2826 fi 2827 fi 2828fi 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2830$as_echo "$cross_compiling" >&6; } 2831 2832rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2833ac_clean_files=$ac_clean_files_save 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2835$as_echo_n "checking for suffix of object files... " >&6; } 2836if ${ac_cv_objext+:} false; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840/* end confdefs.h. */ 2841 2842int 2843main () 2844{ 2845 2846 ; 2847 return 0; 2848} 2849_ACEOF 2850rm -f conftest.o conftest.obj 2851if { { ac_try="$ac_compile" 2852case "(($ac_try" in 2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2854 *) ac_try_echo=$ac_try;; 2855esac 2856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2857$as_echo "$ac_try_echo"; } >&5 2858 (eval "$ac_compile") 2>&5 2859 ac_status=$? 2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2861 test $ac_status = 0; }; then : 2862 for ac_file in conftest.o conftest.obj conftest.*; do 2863 test -f "$ac_file" || continue; 2864 case $ac_file in 2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2867 break;; 2868 esac 2869done 2870else 2871 $as_echo "$as_me: failed program was:" >&5 2872sed 's/^/| /' conftest.$ac_ext >&5 2873 2874{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2876as_fn_error $? "cannot compute suffix of object files: cannot compile 2877See \`config.log' for more details" "$LINENO" 5; } 2878fi 2879rm -f conftest.$ac_cv_objext conftest.$ac_ext 2880fi 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2882$as_echo "$ac_cv_objext" >&6; } 2883OBJEXT=$ac_cv_objext 2884ac_objext=$OBJEXT 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2886$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2887if ${ac_cv_c_compiler_gnu+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2891/* end confdefs.h. */ 2892 2893int 2894main () 2895{ 2896#ifndef __GNUC__ 2897 choke me 2898#endif 2899 2900 ; 2901 return 0; 2902} 2903_ACEOF 2904if ac_fn_c_try_compile "$LINENO"; then : 2905 ac_compiler_gnu=yes 2906else 2907 ac_compiler_gnu=no 2908fi 2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2910ac_cv_c_compiler_gnu=$ac_compiler_gnu 2911 2912fi 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2914$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2915if test $ac_compiler_gnu = yes; then 2916 GCC=yes 2917else 2918 GCC= 2919fi 2920ac_test_CFLAGS=${CFLAGS+set} 2921ac_save_CFLAGS=$CFLAGS 2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2923$as_echo_n "checking whether $CC accepts -g... " >&6; } 2924if ${ac_cv_prog_cc_g+:} false; then : 2925 $as_echo_n "(cached) " >&6 2926else 2927 ac_save_c_werror_flag=$ac_c_werror_flag 2928 ac_c_werror_flag=yes 2929 ac_cv_prog_cc_g=no 2930 CFLAGS="-g" 2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2932/* end confdefs.h. */ 2933 2934int 2935main () 2936{ 2937 2938 ; 2939 return 0; 2940} 2941_ACEOF 2942if ac_fn_c_try_compile "$LINENO"; then : 2943 ac_cv_prog_cc_g=yes 2944else 2945 CFLAGS="" 2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2947/* end confdefs.h. */ 2948 2949int 2950main () 2951{ 2952 2953 ; 2954 return 0; 2955} 2956_ACEOF 2957if ac_fn_c_try_compile "$LINENO"; then : 2958 2959else 2960 ac_c_werror_flag=$ac_save_c_werror_flag 2961 CFLAGS="-g" 2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2963/* end confdefs.h. */ 2964 2965int 2966main () 2967{ 2968 2969 ; 2970 return 0; 2971} 2972_ACEOF 2973if ac_fn_c_try_compile "$LINENO"; then : 2974 ac_cv_prog_cc_g=yes 2975fi 2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2977fi 2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2979fi 2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2981 ac_c_werror_flag=$ac_save_c_werror_flag 2982fi 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2984$as_echo "$ac_cv_prog_cc_g" >&6; } 2985if test "$ac_test_CFLAGS" = set; then 2986 CFLAGS=$ac_save_CFLAGS 2987elif test $ac_cv_prog_cc_g = yes; then 2988 if test "$GCC" = yes; then 2989 CFLAGS="-g -O2" 2990 else 2991 CFLAGS="-g" 2992 fi 2993else 2994 if test "$GCC" = yes; then 2995 CFLAGS="-O2" 2996 else 2997 CFLAGS= 2998 fi 2999fi 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3001$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3002if ${ac_cv_prog_cc_c89+:} false; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 ac_cv_prog_cc_c89=no 3006ac_save_CC=$CC 3007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3008/* end confdefs.h. */ 3009#include <stdarg.h> 3010#include <stdio.h> 3011struct stat; 3012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3013struct buf { int x; }; 3014FILE * (*rcsopen) (struct buf *, struct stat *, int); 3015static char *e (p, i) 3016 char **p; 3017 int i; 3018{ 3019 return p[i]; 3020} 3021static char *f (char * (*g) (char **, int), char **p, ...) 3022{ 3023 char *s; 3024 va_list v; 3025 va_start (v,p); 3026 s = g (p, va_arg (v,int)); 3027 va_end (v); 3028 return s; 3029} 3030 3031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3032 function prototypes and stuff, but not '\xHH' hex character constants. 3033 These don't provoke an error unfortunately, instead are silently treated 3034 as 'x'. The following induces an error, until -std is added to get 3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3036 array size at least. It's necessary to write '\x00'==0 to get something 3037 that's true only with -std. */ 3038int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3039 3040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3041 inside strings and character constants. */ 3042#define FOO(x) 'x' 3043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3044 3045int test (int i, double x); 3046struct s1 {int (*f) (int a);}; 3047struct s2 {int (*f) (double a);}; 3048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3049int argc; 3050char **argv; 3051int 3052main () 3053{ 3054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3061do 3062 CC="$ac_save_CC $ac_arg" 3063 if ac_fn_c_try_compile "$LINENO"; then : 3064 ac_cv_prog_cc_c89=$ac_arg 3065fi 3066rm -f core conftest.err conftest.$ac_objext 3067 test "x$ac_cv_prog_cc_c89" != "xno" && break 3068done 3069rm -f conftest.$ac_ext 3070CC=$ac_save_CC 3071 3072fi 3073# AC_CACHE_VAL 3074case "x$ac_cv_prog_cc_c89" in 3075 x) 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3077$as_echo "none needed" >&6; } ;; 3078 xno) 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3080$as_echo "unsupported" >&6; } ;; 3081 *) 3082 CC="$CC $ac_cv_prog_cc_c89" 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3084$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3085esac 3086if test "x$ac_cv_prog_cc_c89" != xno; then : 3087 3088fi 3089 3090ac_ext=c 3091ac_cpp='$CPP $CPPFLAGS' 3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3094ac_compiler_gnu=$ac_cv_c_compiler_gnu 3095 3096ac_ext=c 3097ac_cpp='$CPP $CPPFLAGS' 3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3100ac_compiler_gnu=$ac_cv_c_compiler_gnu 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3102$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3103if ${am_cv_prog_cc_c_o+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117 # Make sure it works both with $CC and with simple cc. 3118 # Following AC_PROG_CC_C_O, we do the test twice because some 3119 # compilers refuse to overwrite an existing .o file with -o, 3120 # though they will create one. 3121 am_cv_prog_cc_c_o=yes 3122 for am_i in 1 2; do 3123 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3124 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3125 ac_status=$? 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } \ 3128 && test -f conftest2.$ac_objext; then 3129 : OK 3130 else 3131 am_cv_prog_cc_c_o=no 3132 break 3133 fi 3134 done 3135 rm -f core conftest* 3136 unset am_i 3137fi 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3139$as_echo "$am_cv_prog_cc_c_o" >&6; } 3140if test "$am_cv_prog_cc_c_o" != yes; then 3141 # Losing compiler, so override with the script. 3142 # FIXME: It is wrong to rewrite CC. 3143 # But if we don't then we get into trouble of one sort or another. 3144 # A longer-term fix would be to have automake use am__CC in this case, 3145 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3146 CC="$am_aux_dir/compile $CC" 3147fi 3148ac_ext=c 3149ac_cpp='$CPP $CPPFLAGS' 3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3152ac_compiler_gnu=$ac_cv_c_compiler_gnu 3153 3154 3155 3156ac_ext=c 3157ac_cpp='$CPP $CPPFLAGS' 3158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3160ac_compiler_gnu=$ac_cv_c_compiler_gnu 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3162$as_echo_n "checking how to run the C preprocessor... " >&6; } 3163# On Suns, sometimes $CPP names a directory. 3164if test -n "$CPP" && test -d "$CPP"; then 3165 CPP= 3166fi 3167if test -z "$CPP"; then 3168 if ${ac_cv_prog_CPP+:} false; then : 3169 $as_echo_n "(cached) " >&6 3170else 3171 # Double quotes because CPP needs to be expanded 3172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3173 do 3174 ac_preproc_ok=false 3175for ac_c_preproc_warn_flag in '' yes 3176do 3177 # Use a header file that comes with gcc, so configuring glibc 3178 # with a fresh cross-compiler works. 3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3180 # <limits.h> exists even on freestanding compilers. 3181 # On the NeXT, cc -E runs the code through the compiler's parser, 3182 # not just through cpp. "Syntax error" is here to catch this case. 3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3184/* end confdefs.h. */ 3185#ifdef __STDC__ 3186# include <limits.h> 3187#else 3188# include <assert.h> 3189#endif 3190 Syntax error 3191_ACEOF 3192if ac_fn_c_try_cpp "$LINENO"; then : 3193 3194else 3195 # Broken: fails on valid input. 3196continue 3197fi 3198rm -f conftest.err conftest.i conftest.$ac_ext 3199 3200 # OK, works on sane cases. Now check whether nonexistent headers 3201 # can be detected and how. 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204#include <ac_nonexistent.h> 3205_ACEOF 3206if ac_fn_c_try_cpp "$LINENO"; then : 3207 # Broken: success on invalid input. 3208continue 3209else 3210 # Passes both tests. 3211ac_preproc_ok=: 3212break 3213fi 3214rm -f conftest.err conftest.i conftest.$ac_ext 3215 3216done 3217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3218rm -f conftest.i conftest.err conftest.$ac_ext 3219if $ac_preproc_ok; then : 3220 break 3221fi 3222 3223 done 3224 ac_cv_prog_CPP=$CPP 3225 3226fi 3227 CPP=$ac_cv_prog_CPP 3228else 3229 ac_cv_prog_CPP=$CPP 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3232$as_echo "$CPP" >&6; } 3233ac_preproc_ok=false 3234for ac_c_preproc_warn_flag in '' yes 3235do 3236 # Use a header file that comes with gcc, so configuring glibc 3237 # with a fresh cross-compiler works. 3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3239 # <limits.h> exists even on freestanding compilers. 3240 # On the NeXT, cc -E runs the code through the compiler's parser, 3241 # not just through cpp. "Syntax error" is here to catch this case. 3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3243/* end confdefs.h. */ 3244#ifdef __STDC__ 3245# include <limits.h> 3246#else 3247# include <assert.h> 3248#endif 3249 Syntax error 3250_ACEOF 3251if ac_fn_c_try_cpp "$LINENO"; then : 3252 3253else 3254 # Broken: fails on valid input. 3255continue 3256fi 3257rm -f conftest.err conftest.i conftest.$ac_ext 3258 3259 # OK, works on sane cases. Now check whether nonexistent headers 3260 # can be detected and how. 3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263#include <ac_nonexistent.h> 3264_ACEOF 3265if ac_fn_c_try_cpp "$LINENO"; then : 3266 # Broken: success on invalid input. 3267continue 3268else 3269 # Passes both tests. 3270ac_preproc_ok=: 3271break 3272fi 3273rm -f conftest.err conftest.i conftest.$ac_ext 3274 3275done 3276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3277rm -f conftest.i conftest.err conftest.$ac_ext 3278if $ac_preproc_ok; then : 3279 3280else 3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3284See \`config.log' for more details" "$LINENO" 5; } 3285fi 3286 3287ac_ext=c 3288ac_cpp='$CPP $CPPFLAGS' 3289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3291ac_compiler_gnu=$ac_cv_c_compiler_gnu 3292 3293 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3295$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3296if ${ac_cv_path_GREP+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298else 3299 if test -z "$GREP"; then 3300 ac_path_GREP_found=false 3301 # Loop through the user's path and test for each of PROGNAME-LIST 3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 for ac_prog in grep ggrep; do 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3310 as_fn_executable_p "$ac_path_GREP" || continue 3311# Check for GNU ac_path_GREP and select it if it is found. 3312 # Check for GNU $ac_path_GREP 3313case `"$ac_path_GREP" --version 2>&1` in 3314*GNU*) 3315 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3316*) 3317 ac_count=0 3318 $as_echo_n 0123456789 >"conftest.in" 3319 while : 3320 do 3321 cat "conftest.in" "conftest.in" >"conftest.tmp" 3322 mv "conftest.tmp" "conftest.in" 3323 cp "conftest.in" "conftest.nl" 3324 $as_echo 'GREP' >> "conftest.nl" 3325 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3327 as_fn_arith $ac_count + 1 && ac_count=$as_val 3328 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3329 # Best one so far, save it but keep looking for a better one 3330 ac_cv_path_GREP="$ac_path_GREP" 3331 ac_path_GREP_max=$ac_count 3332 fi 3333 # 10*(2^10) chars as input seems more than enough 3334 test $ac_count -gt 10 && break 3335 done 3336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3337esac 3338 3339 $ac_path_GREP_found && break 3 3340 done 3341 done 3342 done 3343IFS=$as_save_IFS 3344 if test -z "$ac_cv_path_GREP"; then 3345 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3346 fi 3347else 3348 ac_cv_path_GREP=$GREP 3349fi 3350 3351fi 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3353$as_echo "$ac_cv_path_GREP" >&6; } 3354 GREP="$ac_cv_path_GREP" 3355 3356 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3358$as_echo_n "checking for egrep... " >&6; } 3359if ${ac_cv_path_EGREP+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3363 then ac_cv_path_EGREP="$GREP -E" 3364 else 3365 if test -z "$EGREP"; then 3366 ac_path_EGREP_found=false 3367 # Loop through the user's path and test for each of PROGNAME-LIST 3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3370do 3371 IFS=$as_save_IFS 3372 test -z "$as_dir" && as_dir=. 3373 for ac_prog in egrep; do 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3376 as_fn_executable_p "$ac_path_EGREP" || continue 3377# Check for GNU ac_path_EGREP and select it if it is found. 3378 # Check for GNU $ac_path_EGREP 3379case `"$ac_path_EGREP" --version 2>&1` in 3380*GNU*) 3381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3382*) 3383 ac_count=0 3384 $as_echo_n 0123456789 >"conftest.in" 3385 while : 3386 do 3387 cat "conftest.in" "conftest.in" >"conftest.tmp" 3388 mv "conftest.tmp" "conftest.in" 3389 cp "conftest.in" "conftest.nl" 3390 $as_echo 'EGREP' >> "conftest.nl" 3391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3393 as_fn_arith $ac_count + 1 && ac_count=$as_val 3394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3395 # Best one so far, save it but keep looking for a better one 3396 ac_cv_path_EGREP="$ac_path_EGREP" 3397 ac_path_EGREP_max=$ac_count 3398 fi 3399 # 10*(2^10) chars as input seems more than enough 3400 test $ac_count -gt 10 && break 3401 done 3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3403esac 3404 3405 $ac_path_EGREP_found && break 3 3406 done 3407 done 3408 done 3409IFS=$as_save_IFS 3410 if test -z "$ac_cv_path_EGREP"; then 3411 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3412 fi 3413else 3414 ac_cv_path_EGREP=$EGREP 3415fi 3416 3417 fi 3418fi 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3420$as_echo "$ac_cv_path_EGREP" >&6; } 3421 EGREP="$ac_cv_path_EGREP" 3422 3423 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3425$as_echo_n "checking for ANSI C header files... " >&6; } 3426if ${ac_cv_header_stdc+:} false; then : 3427 $as_echo_n "(cached) " >&6 3428else 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431#include <stdlib.h> 3432#include <stdarg.h> 3433#include <string.h> 3434#include <float.h> 3435 3436int 3437main () 3438{ 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_compile "$LINENO"; then : 3445 ac_cv_header_stdc=yes 3446else 3447 ac_cv_header_stdc=no 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450 3451if test $ac_cv_header_stdc = yes; then 3452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455#include <string.h> 3456 3457_ACEOF 3458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3459 $EGREP "memchr" >/dev/null 2>&1; then : 3460 3461else 3462 ac_cv_header_stdc=no 3463fi 3464rm -f conftest* 3465 3466fi 3467 3468if test $ac_cv_header_stdc = yes; then 3469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471/* end confdefs.h. */ 3472#include <stdlib.h> 3473 3474_ACEOF 3475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3476 $EGREP "free" >/dev/null 2>&1; then : 3477 3478else 3479 ac_cv_header_stdc=no 3480fi 3481rm -f conftest* 3482 3483fi 3484 3485if test $ac_cv_header_stdc = yes; then 3486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3487 if test "$cross_compiling" = yes; then : 3488 : 3489else 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492#include <ctype.h> 3493#include <stdlib.h> 3494#if ((' ' & 0x0FF) == 0x020) 3495# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3496# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3497#else 3498# define ISLOWER(c) \ 3499 (('a' <= (c) && (c) <= 'i') \ 3500 || ('j' <= (c) && (c) <= 'r') \ 3501 || ('s' <= (c) && (c) <= 'z')) 3502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3503#endif 3504 3505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3506int 3507main () 3508{ 3509 int i; 3510 for (i = 0; i < 256; i++) 3511 if (XOR (islower (i), ISLOWER (i)) 3512 || toupper (i) != TOUPPER (i)) 3513 return 2; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_run "$LINENO"; then : 3518 3519else 3520 ac_cv_header_stdc=no 3521fi 3522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3523 conftest.$ac_objext conftest.beam conftest.$ac_ext 3524fi 3525 3526fi 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3529$as_echo "$ac_cv_header_stdc" >&6; } 3530if test $ac_cv_header_stdc = yes; then 3531 3532$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3533 3534fi 3535 3536# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3537for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3538 inttypes.h stdint.h unistd.h 3539do : 3540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3541ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3542" 3543if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3544 cat >>confdefs.h <<_ACEOF 3545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3546_ACEOF 3547 3548fi 3549 3550done 3551 3552 3553 3554 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3555if test "x$ac_cv_header_minix_config_h" = xyes; then : 3556 MINIX=yes 3557else 3558 MINIX= 3559fi 3560 3561 3562 if test "$MINIX" = yes; then 3563 3564$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3565 3566 3567$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3568 3569 3570$as_echo "#define _MINIX 1" >>confdefs.h 3571 3572 fi 3573 3574 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3576$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3577if ${ac_cv_safe_to_define___extensions__+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582 3583# define __EXTENSIONS__ 1 3584 $ac_includes_default 3585int 3586main () 3587{ 3588 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593if ac_fn_c_try_compile "$LINENO"; then : 3594 ac_cv_safe_to_define___extensions__=yes 3595else 3596 ac_cv_safe_to_define___extensions__=no 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3599fi 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3601$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3602 test $ac_cv_safe_to_define___extensions__ = yes && 3603 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3604 3605 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3606 3607 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3608 3609 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3610 3611 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3612 3613 3614 3615# Initialize Automake 3616am__api_version='1.15' 3617 3618# Find a good install program. We prefer a C program (faster), 3619# so one script is as good as another. But avoid the broken or 3620# incompatible versions: 3621# SysV /etc/install, /usr/sbin/install 3622# SunOS /usr/etc/install 3623# IRIX /sbin/install 3624# AIX /bin/install 3625# AmigaOS /C/install, which installs bootblocks on floppy discs 3626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3627# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3629# OS/2's system install, which has a completely different semantic 3630# ./install, which can be erroneously created by make from ./install.sh. 3631# Reject install programs that cannot install multiple files. 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3633$as_echo_n "checking for a BSD-compatible install... " >&6; } 3634if test -z "$INSTALL"; then 3635if ${ac_cv_path_install+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639for as_dir in $PATH 3640do 3641 IFS=$as_save_IFS 3642 test -z "$as_dir" && as_dir=. 3643 # Account for people who put trailing slashes in PATH elements. 3644case $as_dir/ in #(( 3645 ./ | .// | /[cC]/* | \ 3646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3647 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3648 /usr/ucb/* ) ;; 3649 *) 3650 # OSF1 and SCO ODT 3.0 have their own names for install. 3651 # Don't use installbsd from OSF since it installs stuff as root 3652 # by default. 3653 for ac_prog in ginstall scoinst install; do 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3656 if test $ac_prog = install && 3657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3658 # AIX install. It has an incompatible calling convention. 3659 : 3660 elif test $ac_prog = install && 3661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3662 # program-specific install script used by HP pwplus--don't use. 3663 : 3664 else 3665 rm -rf conftest.one conftest.two conftest.dir 3666 echo one > conftest.one 3667 echo two > conftest.two 3668 mkdir conftest.dir 3669 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3670 test -s conftest.one && test -s conftest.two && 3671 test -s conftest.dir/conftest.one && 3672 test -s conftest.dir/conftest.two 3673 then 3674 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3675 break 3 3676 fi 3677 fi 3678 fi 3679 done 3680 done 3681 ;; 3682esac 3683 3684 done 3685IFS=$as_save_IFS 3686 3687rm -rf conftest.one conftest.two conftest.dir 3688 3689fi 3690 if test "${ac_cv_path_install+set}" = set; then 3691 INSTALL=$ac_cv_path_install 3692 else 3693 # As a last resort, use the slow shell script. Don't cache a 3694 # value for INSTALL within a source directory, because that will 3695 # break other packages using the cache if that directory is 3696 # removed, or if the value is a relative name. 3697 INSTALL=$ac_install_sh 3698 fi 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3701$as_echo "$INSTALL" >&6; } 3702 3703# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3704# It thinks the first close brace ends the variable substitution. 3705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3706 3707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3708 3709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3710 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3712$as_echo_n "checking whether build environment is sane... " >&6; } 3713# Reject unsafe characters in $srcdir or the absolute working directory 3714# name. Accept space and tab only in the latter. 3715am_lf=' 3716' 3717case `pwd` in 3718 *[\\\"\#\$\&\'\`$am_lf]*) 3719 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3720esac 3721case $srcdir in 3722 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3723 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3724esac 3725 3726# Do 'set' in a subshell so we don't clobber the current shell's 3727# arguments. Must try -L first in case configure is actually a 3728# symlink; some systems play weird games with the mod time of symlinks 3729# (eg FreeBSD returns the mod time of the symlink's containing 3730# directory). 3731if ( 3732 am_has_slept=no 3733 for am_try in 1 2; do 3734 echo "timestamp, slept: $am_has_slept" > conftest.file 3735 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3736 if test "$*" = "X"; then 3737 # -L didn't work. 3738 set X `ls -t "$srcdir/configure" conftest.file` 3739 fi 3740 if test "$*" != "X $srcdir/configure conftest.file" \ 3741 && test "$*" != "X conftest.file $srcdir/configure"; then 3742 3743 # If neither matched, then we have a broken ls. This can happen 3744 # if, for instance, CONFIG_SHELL is bash and it inherits a 3745 # broken ls alias from the environment. This has actually 3746 # happened. Such a system could not be considered "sane". 3747 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3748 alias in your environment" "$LINENO" 5 3749 fi 3750 if test "$2" = conftest.file || test $am_try -eq 2; then 3751 break 3752 fi 3753 # Just in case. 3754 sleep 1 3755 am_has_slept=yes 3756 done 3757 test "$2" = conftest.file 3758 ) 3759then 3760 # Ok. 3761 : 3762else 3763 as_fn_error $? "newly created file is older than distributed files! 3764Check your system clock" "$LINENO" 5 3765fi 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3767$as_echo "yes" >&6; } 3768# If we didn't sleep, we still need to ensure time stamps of config.status and 3769# generated files are strictly newer. 3770am_sleep_pid= 3771if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3772 ( sleep 1 ) & 3773 am_sleep_pid=$! 3774fi 3775 3776rm -f conftest.file 3777 3778test "$program_prefix" != NONE && 3779 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3780# Use a double $ so make ignores it. 3781test "$program_suffix" != NONE && 3782 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3783# Double any \ or $. 3784# By default was `s,x,x', remove it if useless. 3785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3786program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3787 3788if test x"${MISSING+set}" != xset; then 3789 case $am_aux_dir in 3790 *\ * | *\ *) 3791 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3792 *) 3793 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3794 esac 3795fi 3796# Use eval to expand $SHELL 3797if eval "$MISSING --is-lightweight"; then 3798 am_missing_run="$MISSING " 3799else 3800 am_missing_run= 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3802$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3803fi 3804 3805if test x"${install_sh+set}" != xset; then 3806 case $am_aux_dir in 3807 *\ * | *\ *) 3808 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3809 *) 3810 install_sh="\${SHELL} $am_aux_dir/install-sh" 3811 esac 3812fi 3813 3814# Installed binaries are usually stripped using 'strip' when the user 3815# run "make install-strip". However 'strip' might not be the right 3816# tool to use in cross-compilation environments, therefore Automake 3817# will honor the 'STRIP' environment variable to overrule this program. 3818if test "$cross_compiling" != no; then 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3821set dummy ${ac_tool_prefix}strip; ac_word=$2 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823$as_echo_n "checking for $ac_word... " >&6; } 3824if ${ac_cv_prog_STRIP+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 if test -n "$STRIP"; then 3828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3829else 3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831for as_dir in $PATH 3832do 3833 IFS=$as_save_IFS 3834 test -z "$as_dir" && as_dir=. 3835 for ac_exec_ext in '' $ac_executable_extensions; do 3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3837 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3839 break 2 3840 fi 3841done 3842 done 3843IFS=$as_save_IFS 3844 3845fi 3846fi 3847STRIP=$ac_cv_prog_STRIP 3848if test -n "$STRIP"; then 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3850$as_echo "$STRIP" >&6; } 3851else 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3853$as_echo "no" >&6; } 3854fi 3855 3856 3857fi 3858if test -z "$ac_cv_prog_STRIP"; then 3859 ac_ct_STRIP=$STRIP 3860 # Extract the first word of "strip", so it can be a program name with args. 3861set dummy strip; ac_word=$2 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3863$as_echo_n "checking for $ac_word... " >&6; } 3864if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 if test -n "$ac_ct_STRIP"; then 3868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3869else 3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3871for as_dir in $PATH 3872do 3873 IFS=$as_save_IFS 3874 test -z "$as_dir" && as_dir=. 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3877 ac_cv_prog_ac_ct_STRIP="strip" 3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3879 break 2 3880 fi 3881done 3882 done 3883IFS=$as_save_IFS 3884 3885fi 3886fi 3887ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3888if test -n "$ac_ct_STRIP"; then 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3890$as_echo "$ac_ct_STRIP" >&6; } 3891else 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3893$as_echo "no" >&6; } 3894fi 3895 3896 if test "x$ac_ct_STRIP" = x; then 3897 STRIP=":" 3898 else 3899 case $cross_compiling:$ac_tool_warned in 3900yes:) 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3903ac_tool_warned=yes ;; 3904esac 3905 STRIP=$ac_ct_STRIP 3906 fi 3907else 3908 STRIP="$ac_cv_prog_STRIP" 3909fi 3910 3911fi 3912INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3915$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3916if test -z "$MKDIR_P"; then 3917 if ${ac_cv_path_mkdir+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_prog in mkdir gmkdir; do 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3928 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3929 'mkdir (GNU coreutils) '* | \ 3930 'mkdir (coreutils) '* | \ 3931 'mkdir (fileutils) '4.1*) 3932 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3933 break 3;; 3934 esac 3935 done 3936 done 3937 done 3938IFS=$as_save_IFS 3939 3940fi 3941 3942 test -d ./--version && rmdir ./--version 3943 if test "${ac_cv_path_mkdir+set}" = set; then 3944 MKDIR_P="$ac_cv_path_mkdir -p" 3945 else 3946 # As a last resort, use the slow shell script. Don't cache a 3947 # value for MKDIR_P within a source directory, because that will 3948 # break other packages using the cache if that directory is 3949 # removed, or if the value is a relative name. 3950 MKDIR_P="$ac_install_sh -d" 3951 fi 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3954$as_echo "$MKDIR_P" >&6; } 3955 3956for ac_prog in gawk mawk nawk awk 3957do 3958 # Extract the first word of "$ac_prog", so it can be a program name with args. 3959set dummy $ac_prog; ac_word=$2 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961$as_echo_n "checking for $ac_word... " >&6; } 3962if ${ac_cv_prog_AWK+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -n "$AWK"; then 3966 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3967else 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH 3970do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3975 ac_cv_prog_AWK="$ac_prog" 3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3977 break 2 3978 fi 3979done 3980 done 3981IFS=$as_save_IFS 3982 3983fi 3984fi 3985AWK=$ac_cv_prog_AWK 3986if test -n "$AWK"; then 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3988$as_echo "$AWK" >&6; } 3989else 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3991$as_echo "no" >&6; } 3992fi 3993 3994 3995 test -n "$AWK" && break 3996done 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3999$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4000set x ${MAKE-make} 4001ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4002if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 cat >conftest.make <<\_ACEOF 4006SHELL = /bin/sh 4007all: 4008 @echo '@@@%%%=$(MAKE)=@@@%%%' 4009_ACEOF 4010# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4011case `${MAKE-make} -f conftest.make 2>/dev/null` in 4012 *@@@%%%=?*=@@@%%%*) 4013 eval ac_cv_prog_make_${ac_make}_set=yes;; 4014 *) 4015 eval ac_cv_prog_make_${ac_make}_set=no;; 4016esac 4017rm -f conftest.make 4018fi 4019if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4021$as_echo "yes" >&6; } 4022 SET_MAKE= 4023else 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4025$as_echo "no" >&6; } 4026 SET_MAKE="MAKE=${MAKE-make}" 4027fi 4028 4029rm -rf .tst 2>/dev/null 4030mkdir .tst 2>/dev/null 4031if test -d .tst; then 4032 am__leading_dot=. 4033else 4034 am__leading_dot=_ 4035fi 4036rmdir .tst 2>/dev/null 4037 4038DEPDIR="${am__leading_dot}deps" 4039 4040ac_config_commands="$ac_config_commands depfiles" 4041 4042 4043am_make=${MAKE-make} 4044cat > confinc << 'END' 4045am__doit: 4046 @echo this is the am__doit target 4047.PHONY: am__doit 4048END 4049# If we don't find an include directive, just comment out the code. 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4051$as_echo_n "checking for style of include used by $am_make... " >&6; } 4052am__include="#" 4053am__quote= 4054_am_result=none 4055# First try GNU make style include. 4056echo "include confinc" > confmf 4057# Ignore all kinds of additional output from 'make'. 4058case `$am_make -s -f confmf 2> /dev/null` in #( 4059*the\ am__doit\ target*) 4060 am__include=include 4061 am__quote= 4062 _am_result=GNU 4063 ;; 4064esac 4065# Now try BSD make style include. 4066if test "$am__include" = "#"; then 4067 echo '.include "confinc"' > confmf 4068 case `$am_make -s -f confmf 2> /dev/null` in #( 4069 *the\ am__doit\ target*) 4070 am__include=.include 4071 am__quote="\"" 4072 _am_result=BSD 4073 ;; 4074 esac 4075fi 4076 4077 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4079$as_echo "$_am_result" >&6; } 4080rm -f confinc confmf 4081 4082# Check whether --enable-dependency-tracking was given. 4083if test "${enable_dependency_tracking+set}" = set; then : 4084 enableval=$enable_dependency_tracking; 4085fi 4086 4087if test "x$enable_dependency_tracking" != xno; then 4088 am_depcomp="$ac_aux_dir/depcomp" 4089 AMDEPBACKSLASH='\' 4090 am__nodep='_no' 4091fi 4092 if test "x$enable_dependency_tracking" != xno; then 4093 AMDEP_TRUE= 4094 AMDEP_FALSE='#' 4095else 4096 AMDEP_TRUE='#' 4097 AMDEP_FALSE= 4098fi 4099 4100 4101# Check whether --enable-silent-rules was given. 4102if test "${enable_silent_rules+set}" = set; then : 4103 enableval=$enable_silent_rules; 4104fi 4105 4106case $enable_silent_rules in # ((( 4107 yes) AM_DEFAULT_VERBOSITY=0;; 4108 no) AM_DEFAULT_VERBOSITY=1;; 4109 *) AM_DEFAULT_VERBOSITY=1;; 4110esac 4111am_make=${MAKE-make} 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4113$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4114if ${am_cv_make_support_nested_variables+:} false; then : 4115 $as_echo_n "(cached) " >&6 4116else 4117 if $as_echo 'TRUE=$(BAR$(V)) 4118BAR0=false 4119BAR1=true 4120V=1 4121am__doit: 4122 @$(TRUE) 4123.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4124 am_cv_make_support_nested_variables=yes 4125else 4126 am_cv_make_support_nested_variables=no 4127fi 4128fi 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4130$as_echo "$am_cv_make_support_nested_variables" >&6; } 4131if test $am_cv_make_support_nested_variables = yes; then 4132 AM_V='$(V)' 4133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4134else 4135 AM_V=$AM_DEFAULT_VERBOSITY 4136 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4137fi 4138AM_BACKSLASH='\' 4139 4140if test "`cd $srcdir && pwd`" != "`pwd`"; then 4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4142 # is not polluted with repeated "-I." 4143 am__isrc=' -I$(srcdir)' 4144 # test to see if srcdir already configured 4145 if test -f $srcdir/config.status; then 4146 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4147 fi 4148fi 4149 4150# test whether we have cygpath 4151if test -z "$CYGPATH_W"; then 4152 if (cygpath --version) >/dev/null 2>/dev/null; then 4153 CYGPATH_W='cygpath -w' 4154 else 4155 CYGPATH_W=echo 4156 fi 4157fi 4158 4159 4160# Define the identity of the package. 4161 PACKAGE='xload' 4162 VERSION='1.1.3' 4163 4164 4165cat >>confdefs.h <<_ACEOF 4166#define PACKAGE "$PACKAGE" 4167_ACEOF 4168 4169 4170cat >>confdefs.h <<_ACEOF 4171#define VERSION "$VERSION" 4172_ACEOF 4173 4174# Some tools Automake needs. 4175 4176ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4177 4178 4179AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4180 4181 4182AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4183 4184 4185AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4186 4187 4188MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4189 4190# For better backward compatibility. To be removed once Automake 1.9.x 4191# dies out for good. For more background, see: 4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4193# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4194mkdir_p='$(MKDIR_P)' 4195 4196# We need awk for the "check" target (and possibly the TAP driver). The 4197# system "awk" is bad on some platforms. 4198# Always define AMTAR for backward compatibility. Yes, it's still used 4199# in the wild :-( We should find a proper way to deprecate it ... 4200AMTAR='$${TAR-tar}' 4201 4202 4203# We'll loop over all known methods to create a tar archive until one works. 4204_am_tools='gnutar pax cpio none' 4205 4206am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4207 4208 4209 4210 4211 4212depcc="$CC" am_compiler_list= 4213 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4215$as_echo_n "checking dependency style of $depcc... " >&6; } 4216if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4220 # We make a subdir and do the tests there. Otherwise we can end up 4221 # making bogus files that we don't know about and never remove. For 4222 # instance it was reported that on HP-UX the gcc test will end up 4223 # making a dummy file named 'D' -- because '-MD' means "put the output 4224 # in D". 4225 rm -rf conftest.dir 4226 mkdir conftest.dir 4227 # Copy depcomp to subdir because otherwise we won't find it if we're 4228 # using a relative directory. 4229 cp "$am_depcomp" conftest.dir 4230 cd conftest.dir 4231 # We will build objects and dependencies in a subdirectory because 4232 # it helps to detect inapplicable dependency modes. For instance 4233 # both Tru64's cc and ICC support -MD to output dependencies as a 4234 # side effect of compilation, but ICC will put the dependencies in 4235 # the current directory while Tru64 will put them in the object 4236 # directory. 4237 mkdir sub 4238 4239 am_cv_CC_dependencies_compiler_type=none 4240 if test "$am_compiler_list" = ""; then 4241 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4242 fi 4243 am__universal=false 4244 case " $depcc " in #( 4245 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4246 esac 4247 4248 for depmode in $am_compiler_list; do 4249 # Setup a source with many dependencies, because some compilers 4250 # like to wrap large dependency lists on column 80 (with \), and 4251 # we should not choose a depcomp mode which is confused by this. 4252 # 4253 # We need to recreate these files for each test, as the compiler may 4254 # overwrite some of them when testing with obscure command lines. 4255 # This happens at least with the AIX C compiler. 4256 : > sub/conftest.c 4257 for i in 1 2 3 4 5 6; do 4258 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4259 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4260 # Solaris 10 /bin/sh. 4261 echo '/* dummy */' > sub/conftst$i.h 4262 done 4263 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4264 4265 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4266 # mode. It turns out that the SunPro C++ compiler does not properly 4267 # handle '-M -o', and we need to detect this. Also, some Intel 4268 # versions had trouble with output in subdirs. 4269 am__obj=sub/conftest.${OBJEXT-o} 4270 am__minus_obj="-o $am__obj" 4271 case $depmode in 4272 gcc) 4273 # This depmode causes a compiler race in universal mode. 4274 test "$am__universal" = false || continue 4275 ;; 4276 nosideeffect) 4277 # After this tag, mechanisms are not by side-effect, so they'll 4278 # only be used when explicitly requested. 4279 if test "x$enable_dependency_tracking" = xyes; then 4280 continue 4281 else 4282 break 4283 fi 4284 ;; 4285 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4286 # This compiler won't grok '-c -o', but also, the minuso test has 4287 # not run yet. These depmodes are late enough in the game, and 4288 # so weak that their functioning should not be impacted. 4289 am__obj=conftest.${OBJEXT-o} 4290 am__minus_obj= 4291 ;; 4292 none) break ;; 4293 esac 4294 if depmode=$depmode \ 4295 source=sub/conftest.c object=$am__obj \ 4296 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4297 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4298 >/dev/null 2>conftest.err && 4299 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4301 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4303 # icc doesn't choke on unknown options, it will just issue warnings 4304 # or remarks (even with -Werror). So we grep stderr for any message 4305 # that says an option was ignored or not supported. 4306 # When given -MP, icc 7.0 and 7.1 complain thusly: 4307 # icc: Command line warning: ignoring option '-M'; no argument required 4308 # The diagnosis changed in icc 8.0: 4309 # icc: Command line remark: option '-MP' not supported 4310 if (grep 'ignoring option' conftest.err || 4311 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4312 am_cv_CC_dependencies_compiler_type=$depmode 4313 break 4314 fi 4315 fi 4316 done 4317 4318 cd .. 4319 rm -rf conftest.dir 4320else 4321 am_cv_CC_dependencies_compiler_type=none 4322fi 4323 4324fi 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4326$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4327CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4328 4329 if 4330 test "x$enable_dependency_tracking" != xno \ 4331 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4332 am__fastdepCC_TRUE= 4333 am__fastdepCC_FALSE='#' 4334else 4335 am__fastdepCC_TRUE='#' 4336 am__fastdepCC_FALSE= 4337fi 4338 4339 4340 4341# POSIX will say in a future version that running "rm -f" with no argument 4342# is OK; and we want to be able to make that assumption in our Makefile 4343# recipes. So use an aggressive probe to check that the usage we want is 4344# actually supported "in the wild" to an acceptable degree. 4345# See automake bug#10828. 4346# To make any issue more visible, cause the running configure to be aborted 4347# by default if the 'rm' program in use doesn't match our expectations; the 4348# user can still override this though. 4349if rm -f && rm -fr && rm -rf; then : OK; else 4350 cat >&2 <<'END' 4351Oops! 4352 4353Your 'rm' program seems unable to run without file operands specified 4354on the command line, even when the '-f' option is present. This is contrary 4355to the behaviour of most rm programs out there, and not conforming with 4356the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4357 4358Please tell bug-automake@gnu.org about your system, including the value 4359of your $PATH and any error possibly output before this message. This 4360can help us improve future automake versions. 4361 4362END 4363 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4364 echo 'Configuration will proceed anyway, since you have set the' >&2 4365 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4366 echo >&2 4367 else 4368 cat >&2 <<'END' 4369Aborting the configuration process, to ensure you take notice of the issue. 4370 4371You can download and install GNU coreutils to get an 'rm' implementation 4372that behaves properly: <http://www.gnu.org/software/coreutils/>. 4373 4374If you want to complete the configuration process using your problematic 4375'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4376to "yes", and re-run configure. 4377 4378END 4379 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4380 fi 4381fi 4382 4383 4384# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4397$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4398if ${ac_cv_prog_cc_c99+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 ac_cv_prog_cc_c99=no 4402ac_save_CC=$CC 4403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405#include <stdarg.h> 4406#include <stdbool.h> 4407#include <stdlib.h> 4408#include <wchar.h> 4409#include <stdio.h> 4410 4411// Check varargs macros. These examples are taken from C99 6.10.3.5. 4412#define debug(...) fprintf (stderr, __VA_ARGS__) 4413#define showlist(...) puts (#__VA_ARGS__) 4414#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4415static void 4416test_varargs_macros (void) 4417{ 4418 int x = 1234; 4419 int y = 5678; 4420 debug ("Flag"); 4421 debug ("X = %d\n", x); 4422 showlist (The first, second, and third items.); 4423 report (x>y, "x is %d but y is %d", x, y); 4424} 4425 4426// Check long long types. 4427#define BIG64 18446744073709551615ull 4428#define BIG32 4294967295ul 4429#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4430#if !BIG_OK 4431 your preprocessor is broken; 4432#endif 4433#if BIG_OK 4434#else 4435 your preprocessor is broken; 4436#endif 4437static long long int bignum = -9223372036854775807LL; 4438static unsigned long long int ubignum = BIG64; 4439 4440struct incomplete_array 4441{ 4442 int datasize; 4443 double data[]; 4444}; 4445 4446struct named_init { 4447 int number; 4448 const wchar_t *name; 4449 double average; 4450}; 4451 4452typedef const char *ccp; 4453 4454static inline int 4455test_restrict (ccp restrict text) 4456{ 4457 // See if C++-style comments work. 4458 // Iterate through items via the restricted pointer. 4459 // Also check for declarations in for loops. 4460 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4461 continue; 4462 return 0; 4463} 4464 4465// Check varargs and va_copy. 4466static void 4467test_varargs (const char *format, ...) 4468{ 4469 va_list args; 4470 va_start (args, format); 4471 va_list args_copy; 4472 va_copy (args_copy, args); 4473 4474 const char *str; 4475 int number; 4476 float fnumber; 4477 4478 while (*format) 4479 { 4480 switch (*format++) 4481 { 4482 case 's': // string 4483 str = va_arg (args_copy, const char *); 4484 break; 4485 case 'd': // int 4486 number = va_arg (args_copy, int); 4487 break; 4488 case 'f': // float 4489 fnumber = va_arg (args_copy, double); 4490 break; 4491 default: 4492 break; 4493 } 4494 } 4495 va_end (args_copy); 4496 va_end (args); 4497} 4498 4499int 4500main () 4501{ 4502 4503 // Check bool. 4504 _Bool success = false; 4505 4506 // Check restrict. 4507 if (test_restrict ("String literal") == 0) 4508 success = true; 4509 char *restrict newvar = "Another string"; 4510 4511 // Check varargs. 4512 test_varargs ("s, d' f .", "string", 65, 34.234); 4513 test_varargs_macros (); 4514 4515 // Check flexible array members. 4516 struct incomplete_array *ia = 4517 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4518 ia->datasize = 10; 4519 for (int i = 0; i < ia->datasize; ++i) 4520 ia->data[i] = i * 1.234; 4521 4522 // Check named initializers. 4523 struct named_init ni = { 4524 .number = 34, 4525 .name = L"Test wide string", 4526 .average = 543.34343, 4527 }; 4528 4529 ni.number = 58; 4530 4531 int dynamic_array[ni.number]; 4532 dynamic_array[ni.number - 1] = 543; 4533 4534 // work around unused variable warnings 4535 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4536 || dynamic_array[ni.number - 1] != 543); 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4543do 4544 CC="$ac_save_CC $ac_arg" 4545 if ac_fn_c_try_compile "$LINENO"; then : 4546 ac_cv_prog_cc_c99=$ac_arg 4547fi 4548rm -f core conftest.err conftest.$ac_objext 4549 test "x$ac_cv_prog_cc_c99" != "xno" && break 4550done 4551rm -f conftest.$ac_ext 4552CC=$ac_save_CC 4553 4554fi 4555# AC_CACHE_VAL 4556case "x$ac_cv_prog_cc_c99" in 4557 x) 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4559$as_echo "none needed" >&6; } ;; 4560 xno) 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4562$as_echo "unsupported" >&6; } ;; 4563 *) 4564 CC="$CC $ac_cv_prog_cc_c99" 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4566$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4567esac 4568if test "x$ac_cv_prog_cc_c99" != xno; then : 4569 4570fi 4571 4572 4573 4574 4575 4576 4577ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4578if test "x$ac_cv_have_decl___clang__" = xyes; then : 4579 CLANGCC="yes" 4580else 4581 CLANGCC="no" 4582fi 4583 4584ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4585if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4586 INTELCC="yes" 4587else 4588 INTELCC="no" 4589fi 4590 4591ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4592if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4593 SUNCC="yes" 4594else 4595 SUNCC="no" 4596fi 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4607 if test -n "$ac_tool_prefix"; then 4608 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4609set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4611$as_echo_n "checking for $ac_word... " >&6; } 4612if ${ac_cv_path_PKG_CONFIG+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 case $PKG_CONFIG in 4616 [\\/]* | ?:[\\/]*) 4617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4618 ;; 4619 *) 4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4621for as_dir in $PATH 4622do 4623 IFS=$as_save_IFS 4624 test -z "$as_dir" && as_dir=. 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4629 break 2 4630 fi 4631done 4632 done 4633IFS=$as_save_IFS 4634 4635 ;; 4636esac 4637fi 4638PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4639if test -n "$PKG_CONFIG"; then 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4641$as_echo "$PKG_CONFIG" >&6; } 4642else 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4644$as_echo "no" >&6; } 4645fi 4646 4647 4648fi 4649if test -z "$ac_cv_path_PKG_CONFIG"; then 4650 ac_pt_PKG_CONFIG=$PKG_CONFIG 4651 # Extract the first word of "pkg-config", so it can be a program name with args. 4652set dummy pkg-config; ac_word=$2 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4654$as_echo_n "checking for $ac_word... " >&6; } 4655if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 case $ac_pt_PKG_CONFIG in 4659 [\\/]* | ?:[\\/]*) 4660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4661 ;; 4662 *) 4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4664for as_dir in $PATH 4665do 4666 IFS=$as_save_IFS 4667 test -z "$as_dir" && as_dir=. 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4670 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4672 break 2 4673 fi 4674done 4675 done 4676IFS=$as_save_IFS 4677 4678 ;; 4679esac 4680fi 4681ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4682if test -n "$ac_pt_PKG_CONFIG"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4684$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4685else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688fi 4689 4690 if test "x$ac_pt_PKG_CONFIG" = x; then 4691 PKG_CONFIG="" 4692 else 4693 case $cross_compiling:$ac_tool_warned in 4694yes:) 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4697ac_tool_warned=yes ;; 4698esac 4699 PKG_CONFIG=$ac_pt_PKG_CONFIG 4700 fi 4701else 4702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4703fi 4704 4705fi 4706if test -n "$PKG_CONFIG"; then 4707 _pkg_min_version=0.9.0 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4709$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712$as_echo "yes" >&6; } 4713 else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715$as_echo "no" >&6; } 4716 PKG_CONFIG="" 4717 fi 4718fi 4719# Make sure we can run config.sub. 4720$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4722 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4724$as_echo_n "checking build system type... " >&6; } 4725if ${ac_cv_build+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 ac_build_alias=$build_alias 4729test "x$ac_build_alias" = x && 4730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4731test "x$ac_build_alias" = x && 4732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4733ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4735 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4738$as_echo "$ac_cv_build" >&6; } 4739case $ac_cv_build in 4740*-*-*) ;; 4741*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4742esac 4743build=$ac_cv_build 4744ac_save_IFS=$IFS; IFS='-' 4745set x $ac_cv_build 4746shift 4747build_cpu=$1 4748build_vendor=$2 4749shift; shift 4750# Remember, the first character of IFS is used to create $*, 4751# except with old shells: 4752build_os=$* 4753IFS=$ac_save_IFS 4754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4755 4756 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4758$as_echo_n "checking host system type... " >&6; } 4759if ${ac_cv_host+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 if test "x$host_alias" = x; then 4763 ac_cv_host=$ac_cv_build 4764else 4765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4767fi 4768 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4771$as_echo "$ac_cv_host" >&6; } 4772case $ac_cv_host in 4773*-*-*) ;; 4774*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4775esac 4776host=$ac_cv_host 4777ac_save_IFS=$IFS; IFS='-' 4778set x $ac_cv_host 4779shift 4780host_cpu=$1 4781host_vendor=$2 4782shift; shift 4783# Remember, the first character of IFS is used to create $*, 4784# except with old shells: 4785host_os=$* 4786IFS=$ac_save_IFS 4787case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4788 4789 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4791$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4792if ${ac_cv_path_SED+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4796 for ac_i in 1 2 3 4 5 6 7; do 4797 ac_script="$ac_script$as_nl$ac_script" 4798 done 4799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4800 { ac_script=; unset ac_script;} 4801 if test -z "$SED"; then 4802 ac_path_SED_found=false 4803 # Loop through the user's path and test for each of PROGNAME-LIST 4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4805for as_dir in $PATH 4806do 4807 IFS=$as_save_IFS 4808 test -z "$as_dir" && as_dir=. 4809 for ac_prog in sed gsed; do 4810 for ac_exec_ext in '' $ac_executable_extensions; do 4811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4812 as_fn_executable_p "$ac_path_SED" || continue 4813# Check for GNU ac_path_SED and select it if it is found. 4814 # Check for GNU $ac_path_SED 4815case `"$ac_path_SED" --version 2>&1` in 4816*GNU*) 4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4818*) 4819 ac_count=0 4820 $as_echo_n 0123456789 >"conftest.in" 4821 while : 4822 do 4823 cat "conftest.in" "conftest.in" >"conftest.tmp" 4824 mv "conftest.tmp" "conftest.in" 4825 cp "conftest.in" "conftest.nl" 4826 $as_echo '' >> "conftest.nl" 4827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4829 as_fn_arith $ac_count + 1 && ac_count=$as_val 4830 if test $ac_count -gt ${ac_path_SED_max-0}; then 4831 # Best one so far, save it but keep looking for a better one 4832 ac_cv_path_SED="$ac_path_SED" 4833 ac_path_SED_max=$ac_count 4834 fi 4835 # 10*(2^10) chars as input seems more than enough 4836 test $ac_count -gt 10 && break 4837 done 4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4839esac 4840 4841 $ac_path_SED_found && break 3 4842 done 4843 done 4844 done 4845IFS=$as_save_IFS 4846 if test -z "$ac_cv_path_SED"; then 4847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4848 fi 4849else 4850 ac_cv_path_SED=$SED 4851fi 4852 4853fi 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4855$as_echo "$ac_cv_path_SED" >&6; } 4856 SED="$ac_cv_path_SED" 4857 rm -f conftest.sed 4858 4859 4860 4861 4862 4863 4864# Check whether --enable-selective-werror was given. 4865if test "${enable_selective_werror+set}" = set; then : 4866 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4867else 4868 SELECTIVE_WERROR=yes 4869fi 4870 4871 4872 4873 4874 4875# -v is too short to test reliably with XORG_TESTSET_CFLAG 4876if test "x$SUNCC" = "xyes"; then 4877 BASE_CFLAGS="-v" 4878else 4879 BASE_CFLAGS="" 4880fi 4881 4882# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896xorg_testset_save_CFLAGS="$CFLAGS" 4897 4898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906/* end confdefs.h. */ 4907int i; 4908_ACEOF 4909if ac_fn_c_try_compile "$LINENO"; then : 4910 xorg_cv_cc_flag_unknown_warning_option=yes 4911else 4912 xorg_cv_cc_flag_unknown_warning_option=no 4913fi 4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4919 CFLAGS="$xorg_testset_save_CFLAGS" 4920fi 4921 4922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4925 fi 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4930 $as_echo_n "(cached) " >&6 4931else 4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4933/* end confdefs.h. */ 4934int i; 4935_ACEOF 4936if ac_fn_c_try_compile "$LINENO"; then : 4937 xorg_cv_cc_flag_unused_command_line_argument=yes 4938else 4939 xorg_cv_cc_flag_unused_command_line_argument=no 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4946 CFLAGS="$xorg_testset_save_CFLAGS" 4947fi 4948 4949found="no" 4950 4951 if test $found = "no" ; then 4952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4954 fi 4955 4956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4958 fi 4959 4960 CFLAGS="$CFLAGS -Wall" 4961 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4963$as_echo_n "checking if $CC supports -Wall... " >&6; } 4964 cacheid=xorg_cv_cc_flag__Wall 4965 if eval \${$cacheid+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4969/* end confdefs.h. */ 4970int i; 4971int 4972main () 4973{ 4974 4975 ; 4976 return 0; 4977} 4978_ACEOF 4979if ac_fn_c_try_link "$LINENO"; then : 4980 eval $cacheid=yes 4981else 4982 eval $cacheid=no 4983fi 4984rm -f core conftest.err conftest.$ac_objext \ 4985 conftest$ac_exeext conftest.$ac_ext 4986fi 4987 4988 4989 CFLAGS="$xorg_testset_save_CFLAGS" 4990 4991 eval supported=\$$cacheid 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4993$as_echo "$supported" >&6; } 4994 if test "$supported" = "yes" ; then 4995 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4996 found="yes" 4997 fi 4998 fi 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014xorg_testset_save_CFLAGS="$CFLAGS" 5015 5016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5024/* end confdefs.h. */ 5025int i; 5026_ACEOF 5027if ac_fn_c_try_compile "$LINENO"; then : 5028 xorg_cv_cc_flag_unknown_warning_option=yes 5029else 5030 xorg_cv_cc_flag_unknown_warning_option=no 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033fi 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5037 CFLAGS="$xorg_testset_save_CFLAGS" 5038fi 5039 5040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5043 fi 5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5048 $as_echo_n "(cached) " >&6 5049else 5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5051/* end confdefs.h. */ 5052int i; 5053_ACEOF 5054if ac_fn_c_try_compile "$LINENO"; then : 5055 xorg_cv_cc_flag_unused_command_line_argument=yes 5056else 5057 xorg_cv_cc_flag_unused_command_line_argument=no 5058fi 5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5064 CFLAGS="$xorg_testset_save_CFLAGS" 5065fi 5066 5067found="no" 5068 5069 if test $found = "no" ; then 5070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5072 fi 5073 5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5076 fi 5077 5078 CFLAGS="$CFLAGS -Wpointer-arith" 5079 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5081$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5082 cacheid=xorg_cv_cc_flag__Wpointer_arith 5083 if eval \${$cacheid+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088int i; 5089int 5090main () 5091{ 5092 5093 ; 5094 return 0; 5095} 5096_ACEOF 5097if ac_fn_c_try_link "$LINENO"; then : 5098 eval $cacheid=yes 5099else 5100 eval $cacheid=no 5101fi 5102rm -f core conftest.err conftest.$ac_objext \ 5103 conftest$ac_exeext conftest.$ac_ext 5104fi 5105 5106 5107 CFLAGS="$xorg_testset_save_CFLAGS" 5108 5109 eval supported=\$$cacheid 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5111$as_echo "$supported" >&6; } 5112 if test "$supported" = "yes" ; then 5113 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5114 found="yes" 5115 fi 5116 fi 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132xorg_testset_save_CFLAGS="$CFLAGS" 5133 5134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140else 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143int i; 5144_ACEOF 5145if ac_fn_c_try_compile "$LINENO"; then : 5146 xorg_cv_cc_flag_unknown_warning_option=yes 5147else 5148 xorg_cv_cc_flag_unknown_warning_option=no 5149fi 5150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5151fi 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156fi 5157 5158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161 fi 5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170int i; 5171_ACEOF 5172if ac_fn_c_try_compile "$LINENO"; then : 5173 xorg_cv_cc_flag_unused_command_line_argument=yes 5174else 5175 xorg_cv_cc_flag_unused_command_line_argument=no 5176fi 5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5178fi 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5182 CFLAGS="$xorg_testset_save_CFLAGS" 5183fi 5184 5185found="no" 5186 5187 if test $found = "no" ; then 5188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5190 fi 5191 5192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5194 fi 5195 5196 CFLAGS="$CFLAGS -Wmissing-declarations" 5197 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5199$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5200 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5201 if eval \${$cacheid+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5205/* end confdefs.h. */ 5206int i; 5207int 5208main () 5209{ 5210 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215if ac_fn_c_try_link "$LINENO"; then : 5216 eval $cacheid=yes 5217else 5218 eval $cacheid=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext \ 5221 conftest$ac_exeext conftest.$ac_ext 5222fi 5223 5224 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226 5227 eval supported=\$$cacheid 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5229$as_echo "$supported" >&6; } 5230 if test "$supported" = "yes" ; then 5231 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5232 found="yes" 5233 fi 5234 fi 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250xorg_testset_save_CFLAGS="$CFLAGS" 5251 5252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258else 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261int i; 5262_ACEOF 5263if ac_fn_c_try_compile "$LINENO"; then : 5264 xorg_cv_cc_flag_unknown_warning_option=yes 5265else 5266 xorg_cv_cc_flag_unknown_warning_option=no 5267fi 5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5269fi 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274fi 5275 5276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5279 fi 5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5284 $as_echo_n "(cached) " >&6 5285else 5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5287/* end confdefs.h. */ 5288int i; 5289_ACEOF 5290if ac_fn_c_try_compile "$LINENO"; then : 5291 xorg_cv_cc_flag_unused_command_line_argument=yes 5292else 5293 xorg_cv_cc_flag_unused_command_line_argument=no 5294fi 5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5300 CFLAGS="$xorg_testset_save_CFLAGS" 5301fi 5302 5303found="no" 5304 5305 if test $found = "no" ; then 5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5308 fi 5309 5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5312 fi 5313 5314 CFLAGS="$CFLAGS -Wformat=2" 5315 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5317$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5318 cacheid=xorg_cv_cc_flag__Wformat_2 5319 if eval \${$cacheid+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321else 5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5323/* end confdefs.h. */ 5324int i; 5325int 5326main () 5327{ 5328 5329 ; 5330 return 0; 5331} 5332_ACEOF 5333if ac_fn_c_try_link "$LINENO"; then : 5334 eval $cacheid=yes 5335else 5336 eval $cacheid=no 5337fi 5338rm -f core conftest.err conftest.$ac_objext \ 5339 conftest$ac_exeext conftest.$ac_ext 5340fi 5341 5342 5343 CFLAGS="$xorg_testset_save_CFLAGS" 5344 5345 eval supported=\$$cacheid 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5347$as_echo "$supported" >&6; } 5348 if test "$supported" = "yes" ; then 5349 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5350 found="yes" 5351 fi 5352 fi 5353 5354 if test $found = "no" ; then 5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5357 fi 5358 5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5361 fi 5362 5363 CFLAGS="$CFLAGS -Wformat" 5364 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5366$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5367 cacheid=xorg_cv_cc_flag__Wformat 5368 if eval \${$cacheid+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373int i; 5374int 5375main () 5376{ 5377 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382if ac_fn_c_try_link "$LINENO"; then : 5383 eval $cacheid=yes 5384else 5385 eval $cacheid=no 5386fi 5387rm -f core conftest.err conftest.$ac_objext \ 5388 conftest$ac_exeext conftest.$ac_ext 5389fi 5390 5391 5392 CFLAGS="$xorg_testset_save_CFLAGS" 5393 5394 eval supported=\$$cacheid 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5396$as_echo "$supported" >&6; } 5397 if test "$supported" = "yes" ; then 5398 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5399 found="yes" 5400 fi 5401 fi 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419xorg_testset_save_CFLAGS="$CFLAGS" 5420 5421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430int i; 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO"; then : 5433 xorg_cv_cc_flag_unknown_warning_option=yes 5434else 5435 xorg_cv_cc_flag_unknown_warning_option=no 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438fi 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5442 CFLAGS="$xorg_testset_save_CFLAGS" 5443fi 5444 5445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5448 fi 5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457int i; 5458_ACEOF 5459if ac_fn_c_try_compile "$LINENO"; then : 5460 xorg_cv_cc_flag_unused_command_line_argument=yes 5461else 5462 xorg_cv_cc_flag_unused_command_line_argument=no 5463fi 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5465fi 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5469 CFLAGS="$xorg_testset_save_CFLAGS" 5470fi 5471 5472found="no" 5473 5474 if test $found = "no" ; then 5475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5477 fi 5478 5479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5481 fi 5482 5483 CFLAGS="$CFLAGS -Wstrict-prototypes" 5484 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5486$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5487 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5488 if eval \${$cacheid+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5492/* end confdefs.h. */ 5493int i; 5494int 5495main () 5496{ 5497 5498 ; 5499 return 0; 5500} 5501_ACEOF 5502if ac_fn_c_try_link "$LINENO"; then : 5503 eval $cacheid=yes 5504else 5505 eval $cacheid=no 5506fi 5507rm -f core conftest.err conftest.$ac_objext \ 5508 conftest$ac_exeext conftest.$ac_ext 5509fi 5510 5511 5512 CFLAGS="$xorg_testset_save_CFLAGS" 5513 5514 eval supported=\$$cacheid 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5516$as_echo "$supported" >&6; } 5517 if test "$supported" = "yes" ; then 5518 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5519 found="yes" 5520 fi 5521 fi 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537xorg_testset_save_CFLAGS="$CFLAGS" 5538 5539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547/* end confdefs.h. */ 5548int i; 5549_ACEOF 5550if ac_fn_c_try_compile "$LINENO"; then : 5551 xorg_cv_cc_flag_unknown_warning_option=yes 5552else 5553 xorg_cv_cc_flag_unknown_warning_option=no 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5556fi 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5560 CFLAGS="$xorg_testset_save_CFLAGS" 5561fi 5562 5563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5566 fi 5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575int i; 5576_ACEOF 5577if ac_fn_c_try_compile "$LINENO"; then : 5578 xorg_cv_cc_flag_unused_command_line_argument=yes 5579else 5580 xorg_cv_cc_flag_unused_command_line_argument=no 5581fi 5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5583fi 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5587 CFLAGS="$xorg_testset_save_CFLAGS" 5588fi 5589 5590found="no" 5591 5592 if test $found = "no" ; then 5593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5595 fi 5596 5597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5599 fi 5600 5601 CFLAGS="$CFLAGS -Wmissing-prototypes" 5602 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5604$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5605 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5606 if eval \${$cacheid+:} false; then : 5607 $as_echo_n "(cached) " >&6 5608else 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610/* end confdefs.h. */ 5611int i; 5612int 5613main () 5614{ 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620if ac_fn_c_try_link "$LINENO"; then : 5621 eval $cacheid=yes 5622else 5623 eval $cacheid=no 5624fi 5625rm -f core conftest.err conftest.$ac_objext \ 5626 conftest$ac_exeext conftest.$ac_ext 5627fi 5628 5629 5630 CFLAGS="$xorg_testset_save_CFLAGS" 5631 5632 eval supported=\$$cacheid 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5634$as_echo "$supported" >&6; } 5635 if test "$supported" = "yes" ; then 5636 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5637 found="yes" 5638 fi 5639 fi 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655xorg_testset_save_CFLAGS="$CFLAGS" 5656 5657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO"; then : 5669 xorg_cv_cc_flag_unknown_warning_option=yes 5670else 5671 xorg_cv_cc_flag_unknown_warning_option=no 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674fi 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5678 CFLAGS="$xorg_testset_save_CFLAGS" 5679fi 5680 5681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 fi 5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692/* end confdefs.h. */ 5693int i; 5694_ACEOF 5695if ac_fn_c_try_compile "$LINENO"; then : 5696 xorg_cv_cc_flag_unused_command_line_argument=yes 5697else 5698 xorg_cv_cc_flag_unused_command_line_argument=no 5699fi 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5701fi 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5705 CFLAGS="$xorg_testset_save_CFLAGS" 5706fi 5707 5708found="no" 5709 5710 if test $found = "no" ; then 5711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5713 fi 5714 5715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5717 fi 5718 5719 CFLAGS="$CFLAGS -Wnested-externs" 5720 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5722$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5723 cacheid=xorg_cv_cc_flag__Wnested_externs 5724 if eval \${$cacheid+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5728/* end confdefs.h. */ 5729int i; 5730int 5731main () 5732{ 5733 5734 ; 5735 return 0; 5736} 5737_ACEOF 5738if ac_fn_c_try_link "$LINENO"; then : 5739 eval $cacheid=yes 5740else 5741 eval $cacheid=no 5742fi 5743rm -f core conftest.err conftest.$ac_objext \ 5744 conftest$ac_exeext conftest.$ac_ext 5745fi 5746 5747 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749 5750 eval supported=\$$cacheid 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5752$as_echo "$supported" >&6; } 5753 if test "$supported" = "yes" ; then 5754 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5755 found="yes" 5756 fi 5757 fi 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773xorg_testset_save_CFLAGS="$CFLAGS" 5774 5775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784int i; 5785_ACEOF 5786if ac_fn_c_try_compile "$LINENO"; then : 5787 xorg_cv_cc_flag_unknown_warning_option=yes 5788else 5789 xorg_cv_cc_flag_unknown_warning_option=no 5790fi 5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5792fi 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797fi 5798 5799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5802 fi 5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5810/* end confdefs.h. */ 5811int i; 5812_ACEOF 5813if ac_fn_c_try_compile "$LINENO"; then : 5814 xorg_cv_cc_flag_unused_command_line_argument=yes 5815else 5816 xorg_cv_cc_flag_unused_command_line_argument=no 5817fi 5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5819fi 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5823 CFLAGS="$xorg_testset_save_CFLAGS" 5824fi 5825 5826found="no" 5827 5828 if test $found = "no" ; then 5829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5831 fi 5832 5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5835 fi 5836 5837 CFLAGS="$CFLAGS -Wbad-function-cast" 5838 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5840$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5841 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5842 if eval \${$cacheid+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847int i; 5848int 5849main () 5850{ 5851 5852 ; 5853 return 0; 5854} 5855_ACEOF 5856if ac_fn_c_try_link "$LINENO"; then : 5857 eval $cacheid=yes 5858else 5859 eval $cacheid=no 5860fi 5861rm -f core conftest.err conftest.$ac_objext \ 5862 conftest$ac_exeext conftest.$ac_ext 5863fi 5864 5865 5866 CFLAGS="$xorg_testset_save_CFLAGS" 5867 5868 eval supported=\$$cacheid 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5870$as_echo "$supported" >&6; } 5871 if test "$supported" = "yes" ; then 5872 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5873 found="yes" 5874 fi 5875 fi 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891xorg_testset_save_CFLAGS="$CFLAGS" 5892 5893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5898 $as_echo_n "(cached) " >&6 5899else 5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5901/* end confdefs.h. */ 5902int i; 5903_ACEOF 5904if ac_fn_c_try_compile "$LINENO"; then : 5905 xorg_cv_cc_flag_unknown_warning_option=yes 5906else 5907 xorg_cv_cc_flag_unknown_warning_option=no 5908fi 5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5910fi 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5914 CFLAGS="$xorg_testset_save_CFLAGS" 5915fi 5916 5917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 fi 5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930_ACEOF 5931if ac_fn_c_try_compile "$LINENO"; then : 5932 xorg_cv_cc_flag_unused_command_line_argument=yes 5933else 5934 xorg_cv_cc_flag_unused_command_line_argument=no 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5937fi 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5941 CFLAGS="$xorg_testset_save_CFLAGS" 5942fi 5943 5944found="no" 5945 5946 if test $found = "no" ; then 5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 fi 5950 5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5953 fi 5954 5955 CFLAGS="$CFLAGS -Wold-style-definition" 5956 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5958$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5959 cacheid=xorg_cv_cc_flag__Wold_style_definition 5960 if eval \${$cacheid+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5964/* end confdefs.h. */ 5965int i; 5966int 5967main () 5968{ 5969 5970 ; 5971 return 0; 5972} 5973_ACEOF 5974if ac_fn_c_try_link "$LINENO"; then : 5975 eval $cacheid=yes 5976else 5977 eval $cacheid=no 5978fi 5979rm -f core conftest.err conftest.$ac_objext \ 5980 conftest$ac_exeext conftest.$ac_ext 5981fi 5982 5983 5984 CFLAGS="$xorg_testset_save_CFLAGS" 5985 5986 eval supported=\$$cacheid 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5988$as_echo "$supported" >&6; } 5989 if test "$supported" = "yes" ; then 5990 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5991 found="yes" 5992 fi 5993 fi 5994 5995 if test $found = "no" ; then 5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 fi 5999 6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6002 fi 6003 6004 CFLAGS="$CFLAGS -fd" 6005 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6007$as_echo_n "checking if $CC supports -fd... " >&6; } 6008 cacheid=xorg_cv_cc_flag__fd 6009 if eval \${$cacheid+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014int i; 6015int 6016main () 6017{ 6018 6019 ; 6020 return 0; 6021} 6022_ACEOF 6023if ac_fn_c_try_link "$LINENO"; then : 6024 eval $cacheid=yes 6025else 6026 eval $cacheid=no 6027fi 6028rm -f core conftest.err conftest.$ac_objext \ 6029 conftest$ac_exeext conftest.$ac_ext 6030fi 6031 6032 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034 6035 eval supported=\$$cacheid 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6037$as_echo "$supported" >&6; } 6038 if test "$supported" = "yes" ; then 6039 BASE_CFLAGS="$BASE_CFLAGS -fd" 6040 found="yes" 6041 fi 6042 fi 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058xorg_testset_save_CFLAGS="$CFLAGS" 6059 6060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068/* end confdefs.h. */ 6069int i; 6070_ACEOF 6071if ac_fn_c_try_compile "$LINENO"; then : 6072 xorg_cv_cc_flag_unknown_warning_option=yes 6073else 6074 xorg_cv_cc_flag_unknown_warning_option=no 6075fi 6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6077fi 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6081 CFLAGS="$xorg_testset_save_CFLAGS" 6082fi 6083 6084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6087 fi 6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 xorg_cv_cc_flag_unused_command_line_argument=yes 6100else 6101 xorg_cv_cc_flag_unused_command_line_argument=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109fi 6110 6111found="no" 6112 6113 if test $found = "no" ; then 6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6116 fi 6117 6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120 fi 6121 6122 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6123 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6125$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6126 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6127 if eval \${$cacheid+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133int 6134main () 6135{ 6136 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141if ac_fn_c_try_link "$LINENO"; then : 6142 eval $cacheid=yes 6143else 6144 eval $cacheid=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext \ 6147 conftest$ac_exeext conftest.$ac_ext 6148fi 6149 6150 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152 6153 eval supported=\$$cacheid 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6155$as_echo "$supported" >&6; } 6156 if test "$supported" = "yes" ; then 6157 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6158 found="yes" 6159 fi 6160 fi 6161 6162 6163 6164 6165 6166# This chunk adds additional warnings that could catch undesired effects. 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180xorg_testset_save_CFLAGS="$CFLAGS" 6181 6182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191int i; 6192_ACEOF 6193if ac_fn_c_try_compile "$LINENO"; then : 6194 xorg_cv_cc_flag_unknown_warning_option=yes 6195else 6196 xorg_cv_cc_flag_unknown_warning_option=no 6197fi 6198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6199fi 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204fi 6205 6206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6209 fi 6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6214 $as_echo_n "(cached) " >&6 6215else 6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6217/* end confdefs.h. */ 6218int i; 6219_ACEOF 6220if ac_fn_c_try_compile "$LINENO"; then : 6221 xorg_cv_cc_flag_unused_command_line_argument=yes 6222else 6223 xorg_cv_cc_flag_unused_command_line_argument=no 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6226fi 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6230 CFLAGS="$xorg_testset_save_CFLAGS" 6231fi 6232 6233found="no" 6234 6235 if test $found = "no" ; then 6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238 fi 6239 6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6242 fi 6243 6244 CFLAGS="$CFLAGS -Wunused" 6245 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6247$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6248 cacheid=xorg_cv_cc_flag__Wunused 6249 if eval \${$cacheid+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253/* end confdefs.h. */ 6254int i; 6255int 6256main () 6257{ 6258 6259 ; 6260 return 0; 6261} 6262_ACEOF 6263if ac_fn_c_try_link "$LINENO"; then : 6264 eval $cacheid=yes 6265else 6266 eval $cacheid=no 6267fi 6268rm -f core conftest.err conftest.$ac_objext \ 6269 conftest$ac_exeext conftest.$ac_ext 6270fi 6271 6272 6273 CFLAGS="$xorg_testset_save_CFLAGS" 6274 6275 eval supported=\$$cacheid 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6277$as_echo "$supported" >&6; } 6278 if test "$supported" = "yes" ; then 6279 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6280 found="yes" 6281 fi 6282 fi 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298xorg_testset_save_CFLAGS="$CFLAGS" 6299 6300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6308/* end confdefs.h. */ 6309int i; 6310_ACEOF 6311if ac_fn_c_try_compile "$LINENO"; then : 6312 xorg_cv_cc_flag_unknown_warning_option=yes 6313else 6314 xorg_cv_cc_flag_unknown_warning_option=no 6315fi 6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6317fi 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322fi 6323 6324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 fi 6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336int i; 6337_ACEOF 6338if ac_fn_c_try_compile "$LINENO"; then : 6339 xorg_cv_cc_flag_unused_command_line_argument=yes 6340else 6341 xorg_cv_cc_flag_unused_command_line_argument=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6344fi 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6348 CFLAGS="$xorg_testset_save_CFLAGS" 6349fi 6350 6351found="no" 6352 6353 if test $found = "no" ; then 6354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6356 fi 6357 6358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6360 fi 6361 6362 CFLAGS="$CFLAGS -Wuninitialized" 6363 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6365$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6366 cacheid=xorg_cv_cc_flag__Wuninitialized 6367 if eval \${$cacheid+:} false; then : 6368 $as_echo_n "(cached) " >&6 6369else 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372int i; 6373int 6374main () 6375{ 6376 6377 ; 6378 return 0; 6379} 6380_ACEOF 6381if ac_fn_c_try_link "$LINENO"; then : 6382 eval $cacheid=yes 6383else 6384 eval $cacheid=no 6385fi 6386rm -f core conftest.err conftest.$ac_objext \ 6387 conftest$ac_exeext conftest.$ac_ext 6388fi 6389 6390 6391 CFLAGS="$xorg_testset_save_CFLAGS" 6392 6393 eval supported=\$$cacheid 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6395$as_echo "$supported" >&6; } 6396 if test "$supported" = "yes" ; then 6397 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6398 found="yes" 6399 fi 6400 fi 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416xorg_testset_save_CFLAGS="$CFLAGS" 6417 6418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6423 $as_echo_n "(cached) " >&6 6424else 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427int i; 6428_ACEOF 6429if ac_fn_c_try_compile "$LINENO"; then : 6430 xorg_cv_cc_flag_unknown_warning_option=yes 6431else 6432 xorg_cv_cc_flag_unknown_warning_option=no 6433fi 6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6435fi 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6439 CFLAGS="$xorg_testset_save_CFLAGS" 6440fi 6441 6442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6445 fi 6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6450 $as_echo_n "(cached) " >&6 6451else 6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454int i; 6455_ACEOF 6456if ac_fn_c_try_compile "$LINENO"; then : 6457 xorg_cv_cc_flag_unused_command_line_argument=yes 6458else 6459 xorg_cv_cc_flag_unused_command_line_argument=no 6460fi 6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6462fi 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6466 CFLAGS="$xorg_testset_save_CFLAGS" 6467fi 6468 6469found="no" 6470 6471 if test $found = "no" ; then 6472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6474 fi 6475 6476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6478 fi 6479 6480 CFLAGS="$CFLAGS -Wshadow" 6481 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6483$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6484 cacheid=xorg_cv_cc_flag__Wshadow 6485 if eval \${$cacheid+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6489/* end confdefs.h. */ 6490int i; 6491int 6492main () 6493{ 6494 6495 ; 6496 return 0; 6497} 6498_ACEOF 6499if ac_fn_c_try_link "$LINENO"; then : 6500 eval $cacheid=yes 6501else 6502 eval $cacheid=no 6503fi 6504rm -f core conftest.err conftest.$ac_objext \ 6505 conftest$ac_exeext conftest.$ac_ext 6506fi 6507 6508 6509 CFLAGS="$xorg_testset_save_CFLAGS" 6510 6511 eval supported=\$$cacheid 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6513$as_echo "$supported" >&6; } 6514 if test "$supported" = "yes" ; then 6515 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6516 found="yes" 6517 fi 6518 fi 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534xorg_testset_save_CFLAGS="$CFLAGS" 6535 6536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545int i; 6546_ACEOF 6547if ac_fn_c_try_compile "$LINENO"; then : 6548 xorg_cv_cc_flag_unknown_warning_option=yes 6549else 6550 xorg_cv_cc_flag_unknown_warning_option=no 6551fi 6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6553fi 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6557 CFLAGS="$xorg_testset_save_CFLAGS" 6558fi 6559 6560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 fi 6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6571/* end confdefs.h. */ 6572int i; 6573_ACEOF 6574if ac_fn_c_try_compile "$LINENO"; then : 6575 xorg_cv_cc_flag_unused_command_line_argument=yes 6576else 6577 xorg_cv_cc_flag_unused_command_line_argument=no 6578fi 6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6580fi 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585fi 6586 6587found="no" 6588 6589 if test $found = "no" ; then 6590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6592 fi 6593 6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6596 fi 6597 6598 CFLAGS="$CFLAGS -Wmissing-noreturn" 6599 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6601$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6602 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6603 if eval \${$cacheid+:} false; then : 6604 $as_echo_n "(cached) " >&6 6605else 6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6607/* end confdefs.h. */ 6608int i; 6609int 6610main () 6611{ 6612 6613 ; 6614 return 0; 6615} 6616_ACEOF 6617if ac_fn_c_try_link "$LINENO"; then : 6618 eval $cacheid=yes 6619else 6620 eval $cacheid=no 6621fi 6622rm -f core conftest.err conftest.$ac_objext \ 6623 conftest$ac_exeext conftest.$ac_ext 6624fi 6625 6626 6627 CFLAGS="$xorg_testset_save_CFLAGS" 6628 6629 eval supported=\$$cacheid 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6631$as_echo "$supported" >&6; } 6632 if test "$supported" = "yes" ; then 6633 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6634 found="yes" 6635 fi 6636 fi 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652xorg_testset_save_CFLAGS="$CFLAGS" 6653 6654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664_ACEOF 6665if ac_fn_c_try_compile "$LINENO"; then : 6666 xorg_cv_cc_flag_unknown_warning_option=yes 6667else 6668 xorg_cv_cc_flag_unknown_warning_option=no 6669fi 6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6671fi 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676fi 6677 6678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 fi 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6689/* end confdefs.h. */ 6690int i; 6691_ACEOF 6692if ac_fn_c_try_compile "$LINENO"; then : 6693 xorg_cv_cc_flag_unused_command_line_argument=yes 6694else 6695 xorg_cv_cc_flag_unused_command_line_argument=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6702 CFLAGS="$xorg_testset_save_CFLAGS" 6703fi 6704 6705found="no" 6706 6707 if test $found = "no" ; then 6708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6710 fi 6711 6712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6714 fi 6715 6716 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6717 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6719$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6720 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6721 if eval \${$cacheid+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726int i; 6727int 6728main () 6729{ 6730 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735if ac_fn_c_try_link "$LINENO"; then : 6736 eval $cacheid=yes 6737else 6738 eval $cacheid=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext \ 6741 conftest$ac_exeext conftest.$ac_ext 6742fi 6743 6744 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746 6747 eval supported=\$$cacheid 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6749$as_echo "$supported" >&6; } 6750 if test "$supported" = "yes" ; then 6751 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6752 found="yes" 6753 fi 6754 fi 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770xorg_testset_save_CFLAGS="$CFLAGS" 6771 6772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781int i; 6782_ACEOF 6783if ac_fn_c_try_compile "$LINENO"; then : 6784 xorg_cv_cc_flag_unknown_warning_option=yes 6785else 6786 xorg_cv_cc_flag_unknown_warning_option=no 6787fi 6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6789fi 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6793 CFLAGS="$xorg_testset_save_CFLAGS" 6794fi 6795 6796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 fi 6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808int i; 6809_ACEOF 6810if ac_fn_c_try_compile "$LINENO"; then : 6811 xorg_cv_cc_flag_unused_command_line_argument=yes 6812else 6813 xorg_cv_cc_flag_unused_command_line_argument=no 6814fi 6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6816fi 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821fi 6822 6823found="no" 6824 6825 if test $found = "no" ; then 6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 fi 6829 6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6832 fi 6833 6834 CFLAGS="$CFLAGS -Wredundant-decls" 6835 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6837$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6838 cacheid=xorg_cv_cc_flag__Wredundant_decls 6839 if eval \${$cacheid+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6843/* end confdefs.h. */ 6844int i; 6845int 6846main () 6847{ 6848 6849 ; 6850 return 0; 6851} 6852_ACEOF 6853if ac_fn_c_try_link "$LINENO"; then : 6854 eval $cacheid=yes 6855else 6856 eval $cacheid=no 6857fi 6858rm -f core conftest.err conftest.$ac_objext \ 6859 conftest$ac_exeext conftest.$ac_ext 6860fi 6861 6862 6863 CFLAGS="$xorg_testset_save_CFLAGS" 6864 6865 eval supported=\$$cacheid 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6867$as_echo "$supported" >&6; } 6868 if test "$supported" = "yes" ; then 6869 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6870 found="yes" 6871 fi 6872 fi 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888xorg_testset_save_CFLAGS="$CFLAGS" 6889 6890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6898/* end confdefs.h. */ 6899int i; 6900_ACEOF 6901if ac_fn_c_try_compile "$LINENO"; then : 6902 xorg_cv_cc_flag_unknown_warning_option=yes 6903else 6904 xorg_cv_cc_flag_unknown_warning_option=no 6905fi 6906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6907fi 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6911 CFLAGS="$xorg_testset_save_CFLAGS" 6912fi 6913 6914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6917 fi 6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926int i; 6927_ACEOF 6928if ac_fn_c_try_compile "$LINENO"; then : 6929 xorg_cv_cc_flag_unused_command_line_argument=yes 6930else 6931 xorg_cv_cc_flag_unused_command_line_argument=no 6932fi 6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6934fi 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939fi 6940 6941found="no" 6942 6943 if test $found = "no" ; then 6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6946 fi 6947 6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6950 fi 6951 6952 CFLAGS="$CFLAGS -Wlogical-op" 6953 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6955$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6956 cacheid=xorg_cv_cc_flag__Wlogical_op 6957 if eval \${$cacheid+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962int i; 6963int 6964main () 6965{ 6966 6967 ; 6968 return 0; 6969} 6970_ACEOF 6971if ac_fn_c_try_link "$LINENO"; then : 6972 eval $cacheid=yes 6973else 6974 eval $cacheid=no 6975fi 6976rm -f core conftest.err conftest.$ac_objext \ 6977 conftest$ac_exeext conftest.$ac_ext 6978fi 6979 6980 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982 6983 eval supported=\$$cacheid 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6985$as_echo "$supported" >&6; } 6986 if test "$supported" = "yes" ; then 6987 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6988 found="yes" 6989 fi 6990 fi 6991 6992 6993 6994# These are currently disabled because they are noisy. They will be enabled 6995# in the future once the codebase is sufficiently modernized to silence 6996# them. For now, I don't want them to drown out the other warnings. 6997# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6998# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6999# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7000 7001# Turn some warnings into errors, so we don't accidently get successful builds 7002# when there are problems that should be fixed. 7003 7004if test "x$SELECTIVE_WERROR" = "xyes" ; then 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018xorg_testset_save_CFLAGS="$CFLAGS" 7019 7020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028/* end confdefs.h. */ 7029int i; 7030_ACEOF 7031if ac_fn_c_try_compile "$LINENO"; then : 7032 xorg_cv_cc_flag_unknown_warning_option=yes 7033else 7034 xorg_cv_cc_flag_unknown_warning_option=no 7035fi 7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7041 CFLAGS="$xorg_testset_save_CFLAGS" 7042fi 7043 7044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055/* end confdefs.h. */ 7056int i; 7057_ACEOF 7058if ac_fn_c_try_compile "$LINENO"; then : 7059 xorg_cv_cc_flag_unused_command_line_argument=yes 7060else 7061 xorg_cv_cc_flag_unused_command_line_argument=no 7062fi 7063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7064fi 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7068 CFLAGS="$xorg_testset_save_CFLAGS" 7069fi 7070 7071found="no" 7072 7073 if test $found = "no" ; then 7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7076 fi 7077 7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 fi 7081 7082 CFLAGS="$CFLAGS -Werror=implicit" 7083 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7085$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7086 cacheid=xorg_cv_cc_flag__Werror_implicit 7087 if eval \${$cacheid+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093int 7094main () 7095{ 7096 7097 ; 7098 return 0; 7099} 7100_ACEOF 7101if ac_fn_c_try_link "$LINENO"; then : 7102 eval $cacheid=yes 7103else 7104 eval $cacheid=no 7105fi 7106rm -f core conftest.err conftest.$ac_objext \ 7107 conftest$ac_exeext conftest.$ac_ext 7108fi 7109 7110 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112 7113 eval supported=\$$cacheid 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7115$as_echo "$supported" >&6; } 7116 if test "$supported" = "yes" ; then 7117 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7118 found="yes" 7119 fi 7120 fi 7121 7122 if test $found = "no" ; then 7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 fi 7126 7127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7129 fi 7130 7131 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7132 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7134$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7135 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7136 if eval \${$cacheid+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140/* end confdefs.h. */ 7141int i; 7142int 7143main () 7144{ 7145 7146 ; 7147 return 0; 7148} 7149_ACEOF 7150if ac_fn_c_try_link "$LINENO"; then : 7151 eval $cacheid=yes 7152else 7153 eval $cacheid=no 7154fi 7155rm -f core conftest.err conftest.$ac_objext \ 7156 conftest$ac_exeext conftest.$ac_ext 7157fi 7158 7159 7160 CFLAGS="$xorg_testset_save_CFLAGS" 7161 7162 eval supported=\$$cacheid 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7164$as_echo "$supported" >&6; } 7165 if test "$supported" = "yes" ; then 7166 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7167 found="yes" 7168 fi 7169 fi 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185xorg_testset_save_CFLAGS="$CFLAGS" 7186 7187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196int i; 7197_ACEOF 7198if ac_fn_c_try_compile "$LINENO"; then : 7199 xorg_cv_cc_flag_unknown_warning_option=yes 7200else 7201 xorg_cv_cc_flag_unknown_warning_option=no 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209fi 7210 7211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7214 fi 7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7219 $as_echo_n "(cached) " >&6 7220else 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223int i; 7224_ACEOF 7225if ac_fn_c_try_compile "$LINENO"; then : 7226 xorg_cv_cc_flag_unused_command_line_argument=yes 7227else 7228 xorg_cv_cc_flag_unused_command_line_argument=no 7229fi 7230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7231fi 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7235 CFLAGS="$xorg_testset_save_CFLAGS" 7236fi 7237 7238found="no" 7239 7240 if test $found = "no" ; then 7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7243 fi 7244 7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7247 fi 7248 7249 CFLAGS="$CFLAGS -Werror=nonnull" 7250 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7252$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7253 cacheid=xorg_cv_cc_flag__Werror_nonnull 7254 if eval \${$cacheid+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258/* end confdefs.h. */ 7259int i; 7260int 7261main () 7262{ 7263 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268if ac_fn_c_try_link "$LINENO"; then : 7269 eval $cacheid=yes 7270else 7271 eval $cacheid=no 7272fi 7273rm -f core conftest.err conftest.$ac_objext \ 7274 conftest$ac_exeext conftest.$ac_ext 7275fi 7276 7277 7278 CFLAGS="$xorg_testset_save_CFLAGS" 7279 7280 eval supported=\$$cacheid 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7282$as_echo "$supported" >&6; } 7283 if test "$supported" = "yes" ; then 7284 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7285 found="yes" 7286 fi 7287 fi 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303xorg_testset_save_CFLAGS="$CFLAGS" 7304 7305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311else 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314int i; 7315_ACEOF 7316if ac_fn_c_try_compile "$LINENO"; then : 7317 xorg_cv_cc_flag_unknown_warning_option=yes 7318else 7319 xorg_cv_cc_flag_unknown_warning_option=no 7320fi 7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322fi 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327fi 7328 7329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7332 fi 7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7337 $as_echo_n "(cached) " >&6 7338else 7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340/* end confdefs.h. */ 7341int i; 7342_ACEOF 7343if ac_fn_c_try_compile "$LINENO"; then : 7344 xorg_cv_cc_flag_unused_command_line_argument=yes 7345else 7346 xorg_cv_cc_flag_unused_command_line_argument=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7349fi 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354fi 7355 7356found="no" 7357 7358 if test $found = "no" ; then 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 fi 7362 7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7365 fi 7366 7367 CFLAGS="$CFLAGS -Werror=init-self" 7368 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7370$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7371 cacheid=xorg_cv_cc_flag__Werror_init_self 7372 if eval \${$cacheid+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376/* end confdefs.h. */ 7377int i; 7378int 7379main () 7380{ 7381 7382 ; 7383 return 0; 7384} 7385_ACEOF 7386if ac_fn_c_try_link "$LINENO"; then : 7387 eval $cacheid=yes 7388else 7389 eval $cacheid=no 7390fi 7391rm -f core conftest.err conftest.$ac_objext \ 7392 conftest$ac_exeext conftest.$ac_ext 7393fi 7394 7395 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397 7398 eval supported=\$$cacheid 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7400$as_echo "$supported" >&6; } 7401 if test "$supported" = "yes" ; then 7402 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7403 found="yes" 7404 fi 7405 fi 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421xorg_testset_save_CFLAGS="$CFLAGS" 7422 7423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432int i; 7433_ACEOF 7434if ac_fn_c_try_compile "$LINENO"; then : 7435 xorg_cv_cc_flag_unknown_warning_option=yes 7436else 7437 xorg_cv_cc_flag_unknown_warning_option=no 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7440fi 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7444 CFLAGS="$xorg_testset_save_CFLAGS" 7445fi 7446 7447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7450 fi 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7455 $as_echo_n "(cached) " >&6 7456else 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7458/* end confdefs.h. */ 7459int i; 7460_ACEOF 7461if ac_fn_c_try_compile "$LINENO"; then : 7462 xorg_cv_cc_flag_unused_command_line_argument=yes 7463else 7464 xorg_cv_cc_flag_unused_command_line_argument=no 7465fi 7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7471 CFLAGS="$xorg_testset_save_CFLAGS" 7472fi 7473 7474found="no" 7475 7476 if test $found = "no" ; then 7477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7479 fi 7480 7481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7483 fi 7484 7485 CFLAGS="$CFLAGS -Werror=main" 7486 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7488$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7489 cacheid=xorg_cv_cc_flag__Werror_main 7490 if eval \${$cacheid+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495int i; 7496int 7497main () 7498{ 7499 7500 ; 7501 return 0; 7502} 7503_ACEOF 7504if ac_fn_c_try_link "$LINENO"; then : 7505 eval $cacheid=yes 7506else 7507 eval $cacheid=no 7508fi 7509rm -f core conftest.err conftest.$ac_objext \ 7510 conftest$ac_exeext conftest.$ac_ext 7511fi 7512 7513 7514 CFLAGS="$xorg_testset_save_CFLAGS" 7515 7516 eval supported=\$$cacheid 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7518$as_echo "$supported" >&6; } 7519 if test "$supported" = "yes" ; then 7520 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7521 found="yes" 7522 fi 7523 fi 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539xorg_testset_save_CFLAGS="$CFLAGS" 7540 7541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550int i; 7551_ACEOF 7552if ac_fn_c_try_compile "$LINENO"; then : 7553 xorg_cv_cc_flag_unknown_warning_option=yes 7554else 7555 xorg_cv_cc_flag_unknown_warning_option=no 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7558fi 7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563fi 7564 7565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7568 fi 7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7573 $as_echo_n "(cached) " >&6 7574else 7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576/* end confdefs.h. */ 7577int i; 7578_ACEOF 7579if ac_fn_c_try_compile "$LINENO"; then : 7580 xorg_cv_cc_flag_unused_command_line_argument=yes 7581else 7582 xorg_cv_cc_flag_unused_command_line_argument=no 7583fi 7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7585fi 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590fi 7591 7592found="no" 7593 7594 if test $found = "no" ; then 7595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7597 fi 7598 7599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7601 fi 7602 7603 CFLAGS="$CFLAGS -Werror=missing-braces" 7604 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7606$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7607 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7608 if eval \${$cacheid+:} false; then : 7609 $as_echo_n "(cached) " >&6 7610else 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613int i; 7614int 7615main () 7616{ 7617 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622if ac_fn_c_try_link "$LINENO"; then : 7623 eval $cacheid=yes 7624else 7625 eval $cacheid=no 7626fi 7627rm -f core conftest.err conftest.$ac_objext \ 7628 conftest$ac_exeext conftest.$ac_ext 7629fi 7630 7631 7632 CFLAGS="$xorg_testset_save_CFLAGS" 7633 7634 eval supported=\$$cacheid 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7636$as_echo "$supported" >&6; } 7637 if test "$supported" = "yes" ; then 7638 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7639 found="yes" 7640 fi 7641 fi 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657xorg_testset_save_CFLAGS="$CFLAGS" 7658 7659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668int i; 7669_ACEOF 7670if ac_fn_c_try_compile "$LINENO"; then : 7671 xorg_cv_cc_flag_unknown_warning_option=yes 7672else 7673 xorg_cv_cc_flag_unknown_warning_option=no 7674fi 7675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7676fi 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7680 CFLAGS="$xorg_testset_save_CFLAGS" 7681fi 7682 7683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7686 fi 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7694/* end confdefs.h. */ 7695int i; 7696_ACEOF 7697if ac_fn_c_try_compile "$LINENO"; then : 7698 xorg_cv_cc_flag_unused_command_line_argument=yes 7699else 7700 xorg_cv_cc_flag_unused_command_line_argument=no 7701fi 7702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7703fi 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7707 CFLAGS="$xorg_testset_save_CFLAGS" 7708fi 7709 7710found="no" 7711 7712 if test $found = "no" ; then 7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7715 fi 7716 7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7719 fi 7720 7721 CFLAGS="$CFLAGS -Werror=sequence-point" 7722 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7724$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7725 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7726 if eval \${$cacheid+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731int i; 7732int 7733main () 7734{ 7735 7736 ; 7737 return 0; 7738} 7739_ACEOF 7740if ac_fn_c_try_link "$LINENO"; then : 7741 eval $cacheid=yes 7742else 7743 eval $cacheid=no 7744fi 7745rm -f core conftest.err conftest.$ac_objext \ 7746 conftest$ac_exeext conftest.$ac_ext 7747fi 7748 7749 7750 CFLAGS="$xorg_testset_save_CFLAGS" 7751 7752 eval supported=\$$cacheid 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7754$as_echo "$supported" >&6; } 7755 if test "$supported" = "yes" ; then 7756 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7757 found="yes" 7758 fi 7759 fi 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775xorg_testset_save_CFLAGS="$CFLAGS" 7776 7777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7785/* end confdefs.h. */ 7786int i; 7787_ACEOF 7788if ac_fn_c_try_compile "$LINENO"; then : 7789 xorg_cv_cc_flag_unknown_warning_option=yes 7790else 7791 xorg_cv_cc_flag_unknown_warning_option=no 7792fi 7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7794fi 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7798 CFLAGS="$xorg_testset_save_CFLAGS" 7799fi 7800 7801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7804 fi 7805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7812/* end confdefs.h. */ 7813int i; 7814_ACEOF 7815if ac_fn_c_try_compile "$LINENO"; then : 7816 xorg_cv_cc_flag_unused_command_line_argument=yes 7817else 7818 xorg_cv_cc_flag_unused_command_line_argument=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7821fi 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826fi 7827 7828found="no" 7829 7830 if test $found = "no" ; then 7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833 fi 7834 7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 fi 7838 7839 CFLAGS="$CFLAGS -Werror=return-type" 7840 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7842$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7843 cacheid=xorg_cv_cc_flag__Werror_return_type 7844 if eval \${$cacheid+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850int 7851main () 7852{ 7853 7854 ; 7855 return 0; 7856} 7857_ACEOF 7858if ac_fn_c_try_link "$LINENO"; then : 7859 eval $cacheid=yes 7860else 7861 eval $cacheid=no 7862fi 7863rm -f core conftest.err conftest.$ac_objext \ 7864 conftest$ac_exeext conftest.$ac_ext 7865fi 7866 7867 7868 CFLAGS="$xorg_testset_save_CFLAGS" 7869 7870 eval supported=\$$cacheid 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7872$as_echo "$supported" >&6; } 7873 if test "$supported" = "yes" ; then 7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7875 found="yes" 7876 fi 7877 fi 7878 7879 if test $found = "no" ; then 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 fi 7883 7884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7886 fi 7887 7888 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7889 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7891$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7892 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7893 if eval \${$cacheid+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898int i; 7899int 7900main () 7901{ 7902 7903 ; 7904 return 0; 7905} 7906_ACEOF 7907if ac_fn_c_try_link "$LINENO"; then : 7908 eval $cacheid=yes 7909else 7910 eval $cacheid=no 7911fi 7912rm -f core conftest.err conftest.$ac_objext \ 7913 conftest$ac_exeext conftest.$ac_ext 7914fi 7915 7916 7917 CFLAGS="$xorg_testset_save_CFLAGS" 7918 7919 eval supported=\$$cacheid 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7921$as_echo "$supported" >&6; } 7922 if test "$supported" = "yes" ; then 7923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7924 found="yes" 7925 fi 7926 fi 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942xorg_testset_save_CFLAGS="$CFLAGS" 7943 7944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950else 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int i; 7954_ACEOF 7955if ac_fn_c_try_compile "$LINENO"; then : 7956 xorg_cv_cc_flag_unknown_warning_option=yes 7957else 7958 xorg_cv_cc_flag_unknown_warning_option=no 7959fi 7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7966fi 7967 7968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7971 fi 7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977else 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980int i; 7981_ACEOF 7982if ac_fn_c_try_compile "$LINENO"; then : 7983 xorg_cv_cc_flag_unused_command_line_argument=yes 7984else 7985 xorg_cv_cc_flag_unused_command_line_argument=no 7986fi 7987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7988fi 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7992 CFLAGS="$xorg_testset_save_CFLAGS" 7993fi 7994 7995found="no" 7996 7997 if test $found = "no" ; then 7998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8000 fi 8001 8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8004 fi 8005 8006 CFLAGS="$CFLAGS -Werror=trigraphs" 8007 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8009$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8010 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8011 if eval \${$cacheid+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015/* end confdefs.h. */ 8016int i; 8017int 8018main () 8019{ 8020 8021 ; 8022 return 0; 8023} 8024_ACEOF 8025if ac_fn_c_try_link "$LINENO"; then : 8026 eval $cacheid=yes 8027else 8028 eval $cacheid=no 8029fi 8030rm -f core conftest.err conftest.$ac_objext \ 8031 conftest$ac_exeext conftest.$ac_ext 8032fi 8033 8034 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036 8037 eval supported=\$$cacheid 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8039$as_echo "$supported" >&6; } 8040 if test "$supported" = "yes" ; then 8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8042 found="yes" 8043 fi 8044 fi 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060xorg_testset_save_CFLAGS="$CFLAGS" 8061 8062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO"; then : 8074 xorg_cv_cc_flag_unknown_warning_option=yes 8075else 8076 xorg_cv_cc_flag_unknown_warning_option=no 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084fi 8085 8086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098int i; 8099_ACEOF 8100if ac_fn_c_try_compile "$LINENO"; then : 8101 xorg_cv_cc_flag_unused_command_line_argument=yes 8102else 8103 xorg_cv_cc_flag_unused_command_line_argument=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8106fi 8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111fi 8112 8113found="no" 8114 8115 if test $found = "no" ; then 8116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8118 fi 8119 8120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 fi 8123 8124 CFLAGS="$CFLAGS -Werror=array-bounds" 8125 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8127$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8128 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8129 if eval \${$cacheid+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133/* end confdefs.h. */ 8134int i; 8135int 8136main () 8137{ 8138 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143if ac_fn_c_try_link "$LINENO"; then : 8144 eval $cacheid=yes 8145else 8146 eval $cacheid=no 8147fi 8148rm -f core conftest.err conftest.$ac_objext \ 8149 conftest$ac_exeext conftest.$ac_ext 8150fi 8151 8152 8153 CFLAGS="$xorg_testset_save_CFLAGS" 8154 8155 eval supported=\$$cacheid 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8157$as_echo "$supported" >&6; } 8158 if test "$supported" = "yes" ; then 8159 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8160 found="yes" 8161 fi 8162 fi 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178xorg_testset_save_CFLAGS="$CFLAGS" 8179 8180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189int i; 8190_ACEOF 8191if ac_fn_c_try_compile "$LINENO"; then : 8192 xorg_cv_cc_flag_unknown_warning_option=yes 8193else 8194 xorg_cv_cc_flag_unknown_warning_option=no 8195fi 8196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8197fi 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202fi 8203 8204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 fi 8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8212 $as_echo_n "(cached) " >&6 8213else 8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215/* end confdefs.h. */ 8216int i; 8217_ACEOF 8218if ac_fn_c_try_compile "$LINENO"; then : 8219 xorg_cv_cc_flag_unused_command_line_argument=yes 8220else 8221 xorg_cv_cc_flag_unused_command_line_argument=no 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8224fi 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8228 CFLAGS="$xorg_testset_save_CFLAGS" 8229fi 8230 8231found="no" 8232 8233 if test $found = "no" ; then 8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 fi 8237 8238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8240 fi 8241 8242 CFLAGS="$CFLAGS -Werror=write-strings" 8243 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8245$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8246 cacheid=xorg_cv_cc_flag__Werror_write_strings 8247 if eval \${$cacheid+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252int i; 8253int 8254main () 8255{ 8256 8257 ; 8258 return 0; 8259} 8260_ACEOF 8261if ac_fn_c_try_link "$LINENO"; then : 8262 eval $cacheid=yes 8263else 8264 eval $cacheid=no 8265fi 8266rm -f core conftest.err conftest.$ac_objext \ 8267 conftest$ac_exeext conftest.$ac_ext 8268fi 8269 8270 8271 CFLAGS="$xorg_testset_save_CFLAGS" 8272 8273 eval supported=\$$cacheid 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8275$as_echo "$supported" >&6; } 8276 if test "$supported" = "yes" ; then 8277 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8278 found="yes" 8279 fi 8280 fi 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296xorg_testset_save_CFLAGS="$CFLAGS" 8297 8298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308_ACEOF 8309if ac_fn_c_try_compile "$LINENO"; then : 8310 xorg_cv_cc_flag_unknown_warning_option=yes 8311else 8312 xorg_cv_cc_flag_unknown_warning_option=no 8313fi 8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320fi 8321 8322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 fi 8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333/* end confdefs.h. */ 8334int i; 8335_ACEOF 8336if ac_fn_c_try_compile "$LINENO"; then : 8337 xorg_cv_cc_flag_unused_command_line_argument=yes 8338else 8339 xorg_cv_cc_flag_unused_command_line_argument=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8342fi 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8346 CFLAGS="$xorg_testset_save_CFLAGS" 8347fi 8348 8349found="no" 8350 8351 if test $found = "no" ; then 8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8354 fi 8355 8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8358 fi 8359 8360 CFLAGS="$CFLAGS -Werror=address" 8361 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8363$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8364 cacheid=xorg_cv_cc_flag__Werror_address 8365 if eval \${$cacheid+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371int 8372main () 8373{ 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379if ac_fn_c_try_link "$LINENO"; then : 8380 eval $cacheid=yes 8381else 8382 eval $cacheid=no 8383fi 8384rm -f core conftest.err conftest.$ac_objext \ 8385 conftest$ac_exeext conftest.$ac_ext 8386fi 8387 8388 8389 CFLAGS="$xorg_testset_save_CFLAGS" 8390 8391 eval supported=\$$cacheid 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8393$as_echo "$supported" >&6; } 8394 if test "$supported" = "yes" ; then 8395 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8396 found="yes" 8397 fi 8398 fi 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414xorg_testset_save_CFLAGS="$CFLAGS" 8415 8416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424/* end confdefs.h. */ 8425int i; 8426_ACEOF 8427if ac_fn_c_try_compile "$LINENO"; then : 8428 xorg_cv_cc_flag_unknown_warning_option=yes 8429else 8430 xorg_cv_cc_flag_unknown_warning_option=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438fi 8439 8440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8443 fi 8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8448 $as_echo_n "(cached) " >&6 8449else 8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452int i; 8453_ACEOF 8454if ac_fn_c_try_compile "$LINENO"; then : 8455 xorg_cv_cc_flag_unused_command_line_argument=yes 8456else 8457 xorg_cv_cc_flag_unused_command_line_argument=no 8458fi 8459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8460fi 8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8464 CFLAGS="$xorg_testset_save_CFLAGS" 8465fi 8466 8467found="no" 8468 8469 if test $found = "no" ; then 8470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8472 fi 8473 8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8476 fi 8477 8478 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8479 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8481$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8482 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8483 if eval \${$cacheid+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489int 8490main () 8491{ 8492 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497if ac_fn_c_try_link "$LINENO"; then : 8498 eval $cacheid=yes 8499else 8500 eval $cacheid=no 8501fi 8502rm -f core conftest.err conftest.$ac_objext \ 8503 conftest$ac_exeext conftest.$ac_ext 8504fi 8505 8506 8507 CFLAGS="$xorg_testset_save_CFLAGS" 8508 8509 eval supported=\$$cacheid 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8511$as_echo "$supported" >&6; } 8512 if test "$supported" = "yes" ; then 8513 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8514 found="yes" 8515 fi 8516 fi 8517 8518 if test $found = "no" ; then 8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8521 fi 8522 8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8525 fi 8526 8527 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8528 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8530$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8531 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8532 if eval \${$cacheid+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536/* end confdefs.h. */ 8537int i; 8538int 8539main () 8540{ 8541 8542 ; 8543 return 0; 8544} 8545_ACEOF 8546if ac_fn_c_try_link "$LINENO"; then : 8547 eval $cacheid=yes 8548else 8549 eval $cacheid=no 8550fi 8551rm -f core conftest.err conftest.$ac_objext \ 8552 conftest$ac_exeext conftest.$ac_ext 8553fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560$as_echo "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8591/* end confdefs.h. */ 8592int i; 8593_ACEOF 8594if ac_fn_c_try_compile "$LINENO"; then : 8595 xorg_cv_cc_flag_unknown_warning_option=yes 8596else 8597 xorg_cv_cc_flag_unknown_warning_option=no 8598fi 8599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8600fi 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605fi 8606 8607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610 fi 8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8618/* end confdefs.h. */ 8619int i; 8620_ACEOF 8621if ac_fn_c_try_compile "$LINENO"; then : 8622 xorg_cv_cc_flag_unused_command_line_argument=yes 8623else 8624 xorg_cv_cc_flag_unused_command_line_argument=no 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8627fi 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632fi 8633 8634found="no" 8635 8636 if test $found = "no" ; then 8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639 fi 8640 8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 fi 8644 8645 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8646 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8648$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8649 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8650 if eval \${$cacheid+:} false; then : 8651 $as_echo_n "(cached) " >&6 8652else 8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654/* end confdefs.h. */ 8655int i; 8656int 8657main () 8658{ 8659 8660 ; 8661 return 0; 8662} 8663_ACEOF 8664if ac_fn_c_try_link "$LINENO"; then : 8665 eval $cacheid=yes 8666else 8667 eval $cacheid=no 8668fi 8669rm -f core conftest.err conftest.$ac_objext \ 8670 conftest$ac_exeext conftest.$ac_ext 8671fi 8672 8673 8674 CFLAGS="$xorg_testset_save_CFLAGS" 8675 8676 eval supported=\$$cacheid 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8678$as_echo "$supported" >&6; } 8679 if test "$supported" = "yes" ; then 8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8681 found="yes" 8682 fi 8683 fi 8684 8685 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8686else 8687{ $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 8688$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;} 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702xorg_testset_save_CFLAGS="$CFLAGS" 8703 8704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713int i; 8714_ACEOF 8715if ac_fn_c_try_compile "$LINENO"; then : 8716 xorg_cv_cc_flag_unknown_warning_option=yes 8717else 8718 xorg_cv_cc_flag_unknown_warning_option=no 8719fi 8720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8721fi 8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8725 CFLAGS="$xorg_testset_save_CFLAGS" 8726fi 8727 8728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731 fi 8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740int i; 8741_ACEOF 8742if ac_fn_c_try_compile "$LINENO"; then : 8743 xorg_cv_cc_flag_unused_command_line_argument=yes 8744else 8745 xorg_cv_cc_flag_unused_command_line_argument=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8748fi 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753fi 8754 8755found="no" 8756 8757 if test $found = "no" ; then 8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 fi 8761 8762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 fi 8765 8766 CFLAGS="$CFLAGS -Wimplicit" 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8769$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8770 cacheid=xorg_cv_cc_flag__Wimplicit 8771 if eval \${$cacheid+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777int 8778main () 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO"; then : 8786 eval $cacheid=yes 8787else 8788 eval $cacheid=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext \ 8791 conftest$ac_exeext conftest.$ac_ext 8792fi 8793 8794 8795 CFLAGS="$xorg_testset_save_CFLAGS" 8796 8797 eval supported=\$$cacheid 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8799$as_echo "$supported" >&6; } 8800 if test "$supported" = "yes" ; then 8801 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8802 found="yes" 8803 fi 8804 fi 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820xorg_testset_save_CFLAGS="$CFLAGS" 8821 8822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828else 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831int i; 8832_ACEOF 8833if ac_fn_c_try_compile "$LINENO"; then : 8834 xorg_cv_cc_flag_unknown_warning_option=yes 8835else 8836 xorg_cv_cc_flag_unknown_warning_option=no 8837fi 8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8839fi 8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844fi 8845 8846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8849 fi 8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8854 $as_echo_n "(cached) " >&6 8855else 8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857/* end confdefs.h. */ 8858int i; 8859_ACEOF 8860if ac_fn_c_try_compile "$LINENO"; then : 8861 xorg_cv_cc_flag_unused_command_line_argument=yes 8862else 8863 xorg_cv_cc_flag_unused_command_line_argument=no 8864fi 8865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8866fi 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8870 CFLAGS="$xorg_testset_save_CFLAGS" 8871fi 8872 8873found="no" 8874 8875 if test $found = "no" ; then 8876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8878 fi 8879 8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8882 fi 8883 8884 CFLAGS="$CFLAGS -Wnonnull" 8885 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8887$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8888 cacheid=xorg_cv_cc_flag__Wnonnull 8889 if eval \${$cacheid+:} false; then : 8890 $as_echo_n "(cached) " >&6 8891else 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894int i; 8895int 8896main () 8897{ 8898 8899 ; 8900 return 0; 8901} 8902_ACEOF 8903if ac_fn_c_try_link "$LINENO"; then : 8904 eval $cacheid=yes 8905else 8906 eval $cacheid=no 8907fi 8908rm -f core conftest.err conftest.$ac_objext \ 8909 conftest$ac_exeext conftest.$ac_ext 8910fi 8911 8912 8913 CFLAGS="$xorg_testset_save_CFLAGS" 8914 8915 eval supported=\$$cacheid 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8917$as_echo "$supported" >&6; } 8918 if test "$supported" = "yes" ; then 8919 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8920 found="yes" 8921 fi 8922 fi 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938xorg_testset_save_CFLAGS="$CFLAGS" 8939 8940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948/* end confdefs.h. */ 8949int i; 8950_ACEOF 8951if ac_fn_c_try_compile "$LINENO"; then : 8952 xorg_cv_cc_flag_unknown_warning_option=yes 8953else 8954 xorg_cv_cc_flag_unknown_warning_option=no 8955fi 8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8957fi 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8961 CFLAGS="$xorg_testset_save_CFLAGS" 8962fi 8963 8964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8967 fi 8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8972 $as_echo_n "(cached) " >&6 8973else 8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8975/* end confdefs.h. */ 8976int i; 8977_ACEOF 8978if ac_fn_c_try_compile "$LINENO"; then : 8979 xorg_cv_cc_flag_unused_command_line_argument=yes 8980else 8981 xorg_cv_cc_flag_unused_command_line_argument=no 8982fi 8983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8984fi 8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8988 CFLAGS="$xorg_testset_save_CFLAGS" 8989fi 8990 8991found="no" 8992 8993 if test $found = "no" ; then 8994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8996 fi 8997 8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9000 fi 9001 9002 CFLAGS="$CFLAGS -Winit-self" 9003 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9005$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9006 cacheid=xorg_cv_cc_flag__Winit_self 9007 if eval \${$cacheid+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013int 9014main () 9015{ 9016 9017 ; 9018 return 0; 9019} 9020_ACEOF 9021if ac_fn_c_try_link "$LINENO"; then : 9022 eval $cacheid=yes 9023else 9024 eval $cacheid=no 9025fi 9026rm -f core conftest.err conftest.$ac_objext \ 9027 conftest$ac_exeext conftest.$ac_ext 9028fi 9029 9030 9031 CFLAGS="$xorg_testset_save_CFLAGS" 9032 9033 eval supported=\$$cacheid 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9035$as_echo "$supported" >&6; } 9036 if test "$supported" = "yes" ; then 9037 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9038 found="yes" 9039 fi 9040 fi 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056xorg_testset_save_CFLAGS="$CFLAGS" 9057 9058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9063 $as_echo_n "(cached) " >&6 9064else 9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9066/* end confdefs.h. */ 9067int i; 9068_ACEOF 9069if ac_fn_c_try_compile "$LINENO"; then : 9070 xorg_cv_cc_flag_unknown_warning_option=yes 9071else 9072 xorg_cv_cc_flag_unknown_warning_option=no 9073fi 9074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9075fi 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9079 CFLAGS="$xorg_testset_save_CFLAGS" 9080fi 9081 9082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9085 fi 9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094int i; 9095_ACEOF 9096if ac_fn_c_try_compile "$LINENO"; then : 9097 xorg_cv_cc_flag_unused_command_line_argument=yes 9098else 9099 xorg_cv_cc_flag_unused_command_line_argument=no 9100fi 9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9102fi 9103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9106 CFLAGS="$xorg_testset_save_CFLAGS" 9107fi 9108 9109found="no" 9110 9111 if test $found = "no" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9118 fi 9119 9120 CFLAGS="$CFLAGS -Wmain" 9121 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9123$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9124 cacheid=xorg_cv_cc_flag__Wmain 9125 if eval \${$cacheid+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129/* end confdefs.h. */ 9130int i; 9131int 9132main () 9133{ 9134 9135 ; 9136 return 0; 9137} 9138_ACEOF 9139if ac_fn_c_try_link "$LINENO"; then : 9140 eval $cacheid=yes 9141else 9142 eval $cacheid=no 9143fi 9144rm -f core conftest.err conftest.$ac_objext \ 9145 conftest$ac_exeext conftest.$ac_ext 9146fi 9147 9148 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150 9151 eval supported=\$$cacheid 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9153$as_echo "$supported" >&6; } 9154 if test "$supported" = "yes" ; then 9155 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9156 found="yes" 9157 fi 9158 fi 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174xorg_testset_save_CFLAGS="$CFLAGS" 9175 9176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9181 $as_echo_n "(cached) " >&6 9182else 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO"; then : 9188 xorg_cv_cc_flag_unknown_warning_option=yes 9189else 9190 xorg_cv_cc_flag_unknown_warning_option=no 9191fi 9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9193fi 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9197 CFLAGS="$xorg_testset_save_CFLAGS" 9198fi 9199 9200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9203 fi 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211/* end confdefs.h. */ 9212int i; 9213_ACEOF 9214if ac_fn_c_try_compile "$LINENO"; then : 9215 xorg_cv_cc_flag_unused_command_line_argument=yes 9216else 9217 xorg_cv_cc_flag_unused_command_line_argument=no 9218fi 9219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9220fi 9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9224 CFLAGS="$xorg_testset_save_CFLAGS" 9225fi 9226 9227found="no" 9228 9229 if test $found = "no" ; then 9230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9232 fi 9233 9234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9236 fi 9237 9238 CFLAGS="$CFLAGS -Wmissing-braces" 9239 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9241$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9242 cacheid=xorg_cv_cc_flag__Wmissing_braces 9243 if eval \${$cacheid+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249int 9250main () 9251{ 9252 9253 ; 9254 return 0; 9255} 9256_ACEOF 9257if ac_fn_c_try_link "$LINENO"; then : 9258 eval $cacheid=yes 9259else 9260 eval $cacheid=no 9261fi 9262rm -f core conftest.err conftest.$ac_objext \ 9263 conftest$ac_exeext conftest.$ac_ext 9264fi 9265 9266 9267 CFLAGS="$xorg_testset_save_CFLAGS" 9268 9269 eval supported=\$$cacheid 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9271$as_echo "$supported" >&6; } 9272 if test "$supported" = "yes" ; then 9273 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9274 found="yes" 9275 fi 9276 fi 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292xorg_testset_save_CFLAGS="$CFLAGS" 9293 9294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302/* end confdefs.h. */ 9303int i; 9304_ACEOF 9305if ac_fn_c_try_compile "$LINENO"; then : 9306 xorg_cv_cc_flag_unknown_warning_option=yes 9307else 9308 xorg_cv_cc_flag_unknown_warning_option=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9311fi 9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316fi 9317 9318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9321 fi 9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9326 $as_echo_n "(cached) " >&6 9327else 9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331_ACEOF 9332if ac_fn_c_try_compile "$LINENO"; then : 9333 xorg_cv_cc_flag_unused_command_line_argument=yes 9334else 9335 xorg_cv_cc_flag_unused_command_line_argument=no 9336fi 9337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9338fi 9339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9342 CFLAGS="$xorg_testset_save_CFLAGS" 9343fi 9344 9345found="no" 9346 9347 if test $found = "no" ; then 9348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9350 fi 9351 9352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9354 fi 9355 9356 CFLAGS="$CFLAGS -Wsequence-point" 9357 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9359$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9360 cacheid=xorg_cv_cc_flag__Wsequence_point 9361 if eval \${$cacheid+:} false; then : 9362 $as_echo_n "(cached) " >&6 9363else 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9365/* end confdefs.h. */ 9366int i; 9367int 9368main () 9369{ 9370 9371 ; 9372 return 0; 9373} 9374_ACEOF 9375if ac_fn_c_try_link "$LINENO"; then : 9376 eval $cacheid=yes 9377else 9378 eval $cacheid=no 9379fi 9380rm -f core conftest.err conftest.$ac_objext \ 9381 conftest$ac_exeext conftest.$ac_ext 9382fi 9383 9384 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386 9387 eval supported=\$$cacheid 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9389$as_echo "$supported" >&6; } 9390 if test "$supported" = "yes" ; then 9391 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9392 found="yes" 9393 fi 9394 fi 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410xorg_testset_save_CFLAGS="$CFLAGS" 9411 9412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9417 $as_echo_n "(cached) " >&6 9418else 9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420/* end confdefs.h. */ 9421int i; 9422_ACEOF 9423if ac_fn_c_try_compile "$LINENO"; then : 9424 xorg_cv_cc_flag_unknown_warning_option=yes 9425else 9426 xorg_cv_cc_flag_unknown_warning_option=no 9427fi 9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9429fi 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9433 CFLAGS="$xorg_testset_save_CFLAGS" 9434fi 9435 9436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9439 fi 9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448int i; 9449_ACEOF 9450if ac_fn_c_try_compile "$LINENO"; then : 9451 xorg_cv_cc_flag_unused_command_line_argument=yes 9452else 9453 xorg_cv_cc_flag_unused_command_line_argument=no 9454fi 9455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9456fi 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9460 CFLAGS="$xorg_testset_save_CFLAGS" 9461fi 9462 9463found="no" 9464 9465 if test $found = "no" ; then 9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9468 fi 9469 9470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9472 fi 9473 9474 CFLAGS="$CFLAGS -Wreturn-type" 9475 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9477$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9478 cacheid=xorg_cv_cc_flag__Wreturn_type 9479 if eval \${$cacheid+:} false; then : 9480 $as_echo_n "(cached) " >&6 9481else 9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483/* end confdefs.h. */ 9484int i; 9485int 9486main () 9487{ 9488 9489 ; 9490 return 0; 9491} 9492_ACEOF 9493if ac_fn_c_try_link "$LINENO"; then : 9494 eval $cacheid=yes 9495else 9496 eval $cacheid=no 9497fi 9498rm -f core conftest.err conftest.$ac_objext \ 9499 conftest$ac_exeext conftest.$ac_ext 9500fi 9501 9502 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504 9505 eval supported=\$$cacheid 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9507$as_echo "$supported" >&6; } 9508 if test "$supported" = "yes" ; then 9509 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9510 found="yes" 9511 fi 9512 fi 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528xorg_testset_save_CFLAGS="$CFLAGS" 9529 9530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539int i; 9540_ACEOF 9541if ac_fn_c_try_compile "$LINENO"; then : 9542 xorg_cv_cc_flag_unknown_warning_option=yes 9543else 9544 xorg_cv_cc_flag_unknown_warning_option=no 9545fi 9546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9547fi 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552fi 9553 9554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9557 fi 9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566int i; 9567_ACEOF 9568if ac_fn_c_try_compile "$LINENO"; then : 9569 xorg_cv_cc_flag_unused_command_line_argument=yes 9570else 9571 xorg_cv_cc_flag_unused_command_line_argument=no 9572fi 9573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9574fi 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9578 CFLAGS="$xorg_testset_save_CFLAGS" 9579fi 9580 9581found="no" 9582 9583 if test $found = "no" ; then 9584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9586 fi 9587 9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9590 fi 9591 9592 CFLAGS="$CFLAGS -Wtrigraphs" 9593 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9595$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9596 cacheid=xorg_cv_cc_flag__Wtrigraphs 9597 if eval \${$cacheid+:} false; then : 9598 $as_echo_n "(cached) " >&6 9599else 9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601/* end confdefs.h. */ 9602int i; 9603int 9604main () 9605{ 9606 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611if ac_fn_c_try_link "$LINENO"; then : 9612 eval $cacheid=yes 9613else 9614 eval $cacheid=no 9615fi 9616rm -f core conftest.err conftest.$ac_objext \ 9617 conftest$ac_exeext conftest.$ac_ext 9618fi 9619 9620 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622 9623 eval supported=\$$cacheid 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9625$as_echo "$supported" >&6; } 9626 if test "$supported" = "yes" ; then 9627 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9628 found="yes" 9629 fi 9630 fi 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646xorg_testset_save_CFLAGS="$CFLAGS" 9647 9648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9653 $as_echo_n "(cached) " >&6 9654else 9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656/* end confdefs.h. */ 9657int i; 9658_ACEOF 9659if ac_fn_c_try_compile "$LINENO"; then : 9660 xorg_cv_cc_flag_unknown_warning_option=yes 9661else 9662 xorg_cv_cc_flag_unknown_warning_option=no 9663fi 9664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9665fi 9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9669 CFLAGS="$xorg_testset_save_CFLAGS" 9670fi 9671 9672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9675 fi 9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9683/* end confdefs.h. */ 9684int i; 9685_ACEOF 9686if ac_fn_c_try_compile "$LINENO"; then : 9687 xorg_cv_cc_flag_unused_command_line_argument=yes 9688else 9689 xorg_cv_cc_flag_unused_command_line_argument=no 9690fi 9691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9692fi 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9696 CFLAGS="$xorg_testset_save_CFLAGS" 9697fi 9698 9699found="no" 9700 9701 if test $found = "no" ; then 9702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9704 fi 9705 9706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9708 fi 9709 9710 CFLAGS="$CFLAGS -Warray-bounds" 9711 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9713$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9714 cacheid=xorg_cv_cc_flag__Warray_bounds 9715 if eval \${$cacheid+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721int 9722main () 9723{ 9724 9725 ; 9726 return 0; 9727} 9728_ACEOF 9729if ac_fn_c_try_link "$LINENO"; then : 9730 eval $cacheid=yes 9731else 9732 eval $cacheid=no 9733fi 9734rm -f core conftest.err conftest.$ac_objext \ 9735 conftest$ac_exeext conftest.$ac_ext 9736fi 9737 9738 9739 CFLAGS="$xorg_testset_save_CFLAGS" 9740 9741 eval supported=\$$cacheid 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9743$as_echo "$supported" >&6; } 9744 if test "$supported" = "yes" ; then 9745 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9746 found="yes" 9747 fi 9748 fi 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764xorg_testset_save_CFLAGS="$CFLAGS" 9765 9766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772else 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775int i; 9776_ACEOF 9777if ac_fn_c_try_compile "$LINENO"; then : 9778 xorg_cv_cc_flag_unknown_warning_option=yes 9779else 9780 xorg_cv_cc_flag_unknown_warning_option=no 9781fi 9782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9783fi 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788fi 9789 9790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9793 fi 9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9798 $as_echo_n "(cached) " >&6 9799else 9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9801/* end confdefs.h. */ 9802int i; 9803_ACEOF 9804if ac_fn_c_try_compile "$LINENO"; then : 9805 xorg_cv_cc_flag_unused_command_line_argument=yes 9806else 9807 xorg_cv_cc_flag_unused_command_line_argument=no 9808fi 9809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9810fi 9811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815fi 9816 9817found="no" 9818 9819 if test $found = "no" ; then 9820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9822 fi 9823 9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826 fi 9827 9828 CFLAGS="$CFLAGS -Wwrite-strings" 9829 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9831$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9832 cacheid=xorg_cv_cc_flag__Wwrite_strings 9833 if eval \${$cacheid+:} false; then : 9834 $as_echo_n "(cached) " >&6 9835else 9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839int 9840main () 9841{ 9842 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847if ac_fn_c_try_link "$LINENO"; then : 9848 eval $cacheid=yes 9849else 9850 eval $cacheid=no 9851fi 9852rm -f core conftest.err conftest.$ac_objext \ 9853 conftest$ac_exeext conftest.$ac_ext 9854fi 9855 9856 9857 CFLAGS="$xorg_testset_save_CFLAGS" 9858 9859 eval supported=\$$cacheid 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9861$as_echo "$supported" >&6; } 9862 if test "$supported" = "yes" ; then 9863 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9864 found="yes" 9865 fi 9866 fi 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882xorg_testset_save_CFLAGS="$CFLAGS" 9883 9884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9889 $as_echo_n "(cached) " >&6 9890else 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894_ACEOF 9895if ac_fn_c_try_compile "$LINENO"; then : 9896 xorg_cv_cc_flag_unknown_warning_option=yes 9897else 9898 xorg_cv_cc_flag_unknown_warning_option=no 9899fi 9900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9905 CFLAGS="$xorg_testset_save_CFLAGS" 9906fi 9907 9908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9911 fi 9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9916 $as_echo_n "(cached) " >&6 9917else 9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920int i; 9921_ACEOF 9922if ac_fn_c_try_compile "$LINENO"; then : 9923 xorg_cv_cc_flag_unused_command_line_argument=yes 9924else 9925 xorg_cv_cc_flag_unused_command_line_argument=no 9926fi 9927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9928fi 9929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933fi 9934 9935found="no" 9936 9937 if test $found = "no" ; then 9938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9940 fi 9941 9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9944 fi 9945 9946 CFLAGS="$CFLAGS -Waddress" 9947 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9949$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9950 cacheid=xorg_cv_cc_flag__Waddress 9951 if eval \${$cacheid+:} false; then : 9952 $as_echo_n "(cached) " >&6 9953else 9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955/* end confdefs.h. */ 9956int i; 9957int 9958main () 9959{ 9960 9961 ; 9962 return 0; 9963} 9964_ACEOF 9965if ac_fn_c_try_link "$LINENO"; then : 9966 eval $cacheid=yes 9967else 9968 eval $cacheid=no 9969fi 9970rm -f core conftest.err conftest.$ac_objext \ 9971 conftest$ac_exeext conftest.$ac_ext 9972fi 9973 9974 9975 CFLAGS="$xorg_testset_save_CFLAGS" 9976 9977 eval supported=\$$cacheid 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9979$as_echo "$supported" >&6; } 9980 if test "$supported" = "yes" ; then 9981 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9982 found="yes" 9983 fi 9984 fi 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000xorg_testset_save_CFLAGS="$CFLAGS" 10001 10002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10007 $as_echo_n "(cached) " >&6 10008else 10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10010/* end confdefs.h. */ 10011int i; 10012_ACEOF 10013if ac_fn_c_try_compile "$LINENO"; then : 10014 xorg_cv_cc_flag_unknown_warning_option=yes 10015else 10016 xorg_cv_cc_flag_unknown_warning_option=no 10017fi 10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10019fi 10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024fi 10025 10026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 fi 10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10034 $as_echo_n "(cached) " >&6 10035else 10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037/* end confdefs.h. */ 10038int i; 10039_ACEOF 10040if ac_fn_c_try_compile "$LINENO"; then : 10041 xorg_cv_cc_flag_unused_command_line_argument=yes 10042else 10043 xorg_cv_cc_flag_unused_command_line_argument=no 10044fi 10045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10046fi 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051fi 10052 10053found="no" 10054 10055 if test $found = "no" ; then 10056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10058 fi 10059 10060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10062 fi 10063 10064 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10065 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10067$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10068 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10069 if eval \${$cacheid+:} false; then : 10070 $as_echo_n "(cached) " >&6 10071else 10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10073/* end confdefs.h. */ 10074int i; 10075int 10076main () 10077{ 10078 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083if ac_fn_c_try_link "$LINENO"; then : 10084 eval $cacheid=yes 10085else 10086 eval $cacheid=no 10087fi 10088rm -f core conftest.err conftest.$ac_objext \ 10089 conftest$ac_exeext conftest.$ac_ext 10090fi 10091 10092 10093 CFLAGS="$xorg_testset_save_CFLAGS" 10094 10095 eval supported=\$$cacheid 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10097$as_echo "$supported" >&6; } 10098 if test "$supported" = "yes" ; then 10099 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10100 found="yes" 10101 fi 10102 fi 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118xorg_testset_save_CFLAGS="$CFLAGS" 10119 10120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10125 $as_echo_n "(cached) " >&6 10126else 10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129int i; 10130_ACEOF 10131if ac_fn_c_try_compile "$LINENO"; then : 10132 xorg_cv_cc_flag_unknown_warning_option=yes 10133else 10134 xorg_cv_cc_flag_unknown_warning_option=no 10135fi 10136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10137fi 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10141 CFLAGS="$xorg_testset_save_CFLAGS" 10142fi 10143 10144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 fi 10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10152 $as_echo_n "(cached) " >&6 10153else 10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10155/* end confdefs.h. */ 10156int i; 10157_ACEOF 10158if ac_fn_c_try_compile "$LINENO"; then : 10159 xorg_cv_cc_flag_unused_command_line_argument=yes 10160else 10161 xorg_cv_cc_flag_unused_command_line_argument=no 10162fi 10163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10164fi 10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10168 CFLAGS="$xorg_testset_save_CFLAGS" 10169fi 10170 10171found="no" 10172 10173 if test $found = "no" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 fi 10181 10182 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10183 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10185$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10186 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10187 if eval \${$cacheid+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192int i; 10193int 10194main () 10195{ 10196 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201if ac_fn_c_try_link "$LINENO"; then : 10202 eval $cacheid=yes 10203else 10204 eval $cacheid=no 10205fi 10206rm -f core conftest.err conftest.$ac_objext \ 10207 conftest$ac_exeext conftest.$ac_ext 10208fi 10209 10210 10211 CFLAGS="$xorg_testset_save_CFLAGS" 10212 10213 eval supported=\$$cacheid 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10215$as_echo "$supported" >&6; } 10216 if test "$supported" = "yes" ; then 10217 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10218 found="yes" 10219 fi 10220 fi 10221 10222 10223fi 10224 10225 10226 10227 10228 10229 10230 10231 CWARNFLAGS="$BASE_CFLAGS" 10232 if test "x$GCC" = xyes ; then 10233 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10234 fi 10235 10236 10237 10238 10239 10240 10241 10242 10243# Check whether --enable-strict-compilation was given. 10244if test "${enable_strict_compilation+set}" = set; then : 10245 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10246else 10247 STRICT_COMPILE=no 10248fi 10249 10250 10251 10252 10253 10254 10255STRICT_CFLAGS="" 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269xorg_testset_save_CFLAGS="$CFLAGS" 10270 10271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10276 $as_echo_n "(cached) " >&6 10277else 10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280int i; 10281_ACEOF 10282if ac_fn_c_try_compile "$LINENO"; then : 10283 xorg_cv_cc_flag_unknown_warning_option=yes 10284else 10285 xorg_cv_cc_flag_unknown_warning_option=no 10286fi 10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10288fi 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10292 CFLAGS="$xorg_testset_save_CFLAGS" 10293fi 10294 10295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10298 fi 10299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10303 $as_echo_n "(cached) " >&6 10304else 10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10306/* end confdefs.h. */ 10307int i; 10308_ACEOF 10309if ac_fn_c_try_compile "$LINENO"; then : 10310 xorg_cv_cc_flag_unused_command_line_argument=yes 10311else 10312 xorg_cv_cc_flag_unused_command_line_argument=no 10313fi 10314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10315fi 10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10319 CFLAGS="$xorg_testset_save_CFLAGS" 10320fi 10321 10322found="no" 10323 10324 if test $found = "no" ; then 10325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10327 fi 10328 10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10331 fi 10332 10333 CFLAGS="$CFLAGS -pedantic" 10334 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10336$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10337 cacheid=xorg_cv_cc_flag__pedantic 10338 if eval \${$cacheid+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340else 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343int i; 10344int 10345main () 10346{ 10347 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352if ac_fn_c_try_link "$LINENO"; then : 10353 eval $cacheid=yes 10354else 10355 eval $cacheid=no 10356fi 10357rm -f core conftest.err conftest.$ac_objext \ 10358 conftest$ac_exeext conftest.$ac_ext 10359fi 10360 10361 10362 CFLAGS="$xorg_testset_save_CFLAGS" 10363 10364 eval supported=\$$cacheid 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10366$as_echo "$supported" >&6; } 10367 if test "$supported" = "yes" ; then 10368 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10369 found="yes" 10370 fi 10371 fi 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387xorg_testset_save_CFLAGS="$CFLAGS" 10388 10389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10394 $as_echo_n "(cached) " >&6 10395else 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397/* end confdefs.h. */ 10398int i; 10399_ACEOF 10400if ac_fn_c_try_compile "$LINENO"; then : 10401 xorg_cv_cc_flag_unknown_warning_option=yes 10402else 10403 xorg_cv_cc_flag_unknown_warning_option=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411fi 10412 10413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10416 fi 10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10421 $as_echo_n "(cached) " >&6 10422else 10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425int i; 10426_ACEOF 10427if ac_fn_c_try_compile "$LINENO"; then : 10428 xorg_cv_cc_flag_unused_command_line_argument=yes 10429else 10430 xorg_cv_cc_flag_unused_command_line_argument=no 10431fi 10432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10433fi 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10437 CFLAGS="$xorg_testset_save_CFLAGS" 10438fi 10439 10440found="no" 10441 10442 if test $found = "no" ; then 10443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10445 fi 10446 10447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10449 fi 10450 10451 CFLAGS="$CFLAGS -Werror" 10452 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10454$as_echo_n "checking if $CC supports -Werror... " >&6; } 10455 cacheid=xorg_cv_cc_flag__Werror 10456 if eval \${$cacheid+:} false; then : 10457 $as_echo_n "(cached) " >&6 10458else 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int i; 10462int 10463main () 10464{ 10465 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO"; then : 10471 eval $cacheid=yes 10472else 10473 eval $cacheid=no 10474fi 10475rm -f core conftest.err conftest.$ac_objext \ 10476 conftest$ac_exeext conftest.$ac_ext 10477fi 10478 10479 10480 CFLAGS="$xorg_testset_save_CFLAGS" 10481 10482 eval supported=\$$cacheid 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10484$as_echo "$supported" >&6; } 10485 if test "$supported" = "yes" ; then 10486 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10487 found="yes" 10488 fi 10489 fi 10490 10491 if test $found = "no" ; then 10492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10494 fi 10495 10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10498 fi 10499 10500 CFLAGS="$CFLAGS -errwarn" 10501 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10503$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10504 cacheid=xorg_cv_cc_flag__errwarn 10505 if eval \${$cacheid+:} false; then : 10506 $as_echo_n "(cached) " >&6 10507else 10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10509/* end confdefs.h. */ 10510int i; 10511int 10512main () 10513{ 10514 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519if ac_fn_c_try_link "$LINENO"; then : 10520 eval $cacheid=yes 10521else 10522 eval $cacheid=no 10523fi 10524rm -f core conftest.err conftest.$ac_objext \ 10525 conftest$ac_exeext conftest.$ac_ext 10526fi 10527 10528 10529 CFLAGS="$xorg_testset_save_CFLAGS" 10530 10531 eval supported=\$$cacheid 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10533$as_echo "$supported" >&6; } 10534 if test "$supported" = "yes" ; then 10535 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10536 found="yes" 10537 fi 10538 fi 10539 10540 10541 10542# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10543# activate it with -Werror, so we add it here explicitly. 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557xorg_testset_save_CFLAGS="$CFLAGS" 10558 10559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565else 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int i; 10569_ACEOF 10570if ac_fn_c_try_compile "$LINENO"; then : 10571 xorg_cv_cc_flag_unknown_warning_option=yes 10572else 10573 xorg_cv_cc_flag_unknown_warning_option=no 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10576fi 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581fi 10582 10583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10586 fi 10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595int i; 10596_ACEOF 10597if ac_fn_c_try_compile "$LINENO"; then : 10598 xorg_cv_cc_flag_unused_command_line_argument=yes 10599else 10600 xorg_cv_cc_flag_unused_command_line_argument=no 10601fi 10602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10603fi 10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10607 CFLAGS="$xorg_testset_save_CFLAGS" 10608fi 10609 10610found="no" 10611 10612 if test $found = "no" ; then 10613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10615 fi 10616 10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10619 fi 10620 10621 CFLAGS="$CFLAGS -Werror=attributes" 10622 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10624$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10625 cacheid=xorg_cv_cc_flag__Werror_attributes 10626 if eval \${$cacheid+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630/* end confdefs.h. */ 10631int i; 10632int 10633main () 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640if ac_fn_c_try_link "$LINENO"; then : 10641 eval $cacheid=yes 10642else 10643 eval $cacheid=no 10644fi 10645rm -f core conftest.err conftest.$ac_objext \ 10646 conftest$ac_exeext conftest.$ac_ext 10647fi 10648 10649 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651 10652 eval supported=\$$cacheid 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10654$as_echo "$supported" >&6; } 10655 if test "$supported" = "yes" ; then 10656 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10657 found="yes" 10658 fi 10659 fi 10660 10661 10662 10663if test "x$STRICT_COMPILE" = "xyes"; then 10664 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10665 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10666fi 10667 10668 10669 10670 10671 10672 10673cat >>confdefs.h <<_ACEOF 10674#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10675_ACEOF 10676 10677 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10678 if test "x$PVM" = "x"; then 10679 PVM="0" 10680 fi 10681 10682cat >>confdefs.h <<_ACEOF 10683#define PACKAGE_VERSION_MINOR $PVM 10684_ACEOF 10685 10686 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10687 if test "x$PVP" = "x"; then 10688 PVP="0" 10689 fi 10690 10691cat >>confdefs.h <<_ACEOF 10692#define PACKAGE_VERSION_PATCHLEVEL $PVP 10693_ACEOF 10694 10695 10696 10697CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10698mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10699|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10700echo 'git directory not found: installing possibly empty changelog.' >&2)" 10701 10702 10703 10704 10705macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10706INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10707mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10708|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10709echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10710 10711 10712 10713 10714 10715 10716if test x$APP_MAN_SUFFIX = x ; then 10717 APP_MAN_SUFFIX=1 10718fi 10719if test x$APP_MAN_DIR = x ; then 10720 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10721fi 10722 10723if test x$LIB_MAN_SUFFIX = x ; then 10724 LIB_MAN_SUFFIX=3 10725fi 10726if test x$LIB_MAN_DIR = x ; then 10727 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10728fi 10729 10730if test x$FILE_MAN_SUFFIX = x ; then 10731 case $host_os in 10732 # Solaris 2.0 - 11 use SysV man page sections 10733 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10734 *) FILE_MAN_SUFFIX=5 ;; 10735 esac 10736fi 10737if test x$FILE_MAN_DIR = x ; then 10738 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10739fi 10740 10741if test x$MISC_MAN_SUFFIX = x ; then 10742 case $host_os in 10743 # Solaris 2.0 - 11 use SysV man page sections 10744 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10745 *) MISC_MAN_SUFFIX=7 ;; 10746 esac 10747fi 10748if test x$MISC_MAN_DIR = x ; then 10749 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10750fi 10751 10752if test x$DRIVER_MAN_SUFFIX = x ; then 10753 case $host_os in 10754 # Solaris 2.0 - 11 use SysV man page sections 10755 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10756 *) DRIVER_MAN_SUFFIX=4 ;; 10757 esac 10758fi 10759if test x$DRIVER_MAN_DIR = x ; then 10760 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10761fi 10762 10763if test x$ADMIN_MAN_SUFFIX = x ; then 10764 case $host_os in 10765 # Solaris 2.0 - 11 use SysV man page sections 10766 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10767 *) ADMIN_MAN_SUFFIX=8 ;; 10768 esac 10769fi 10770if test x$ADMIN_MAN_DIR = x ; then 10771 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10772fi 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788XORG_MAN_PAGE="X Version 11" 10789 10790MAN_SUBSTS="\ 10791 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10792 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10793 -e 's|__xservername__|Xorg|g' \ 10794 -e 's|__xconfigfile__|xorg.conf|g' \ 10795 -e 's|__projectroot__|\$(prefix)|g' \ 10796 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10797 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10798 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10799 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10800 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10801 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10802 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10803 10804 10805 10806# Check whether --enable-silent-rules was given. 10807if test "${enable_silent_rules+set}" = set; then : 10808 enableval=$enable_silent_rules; 10809fi 10810 10811case $enable_silent_rules in # ((( 10812 yes) AM_DEFAULT_VERBOSITY=0;; 10813 no) AM_DEFAULT_VERBOSITY=1;; 10814 *) AM_DEFAULT_VERBOSITY=0;; 10815esac 10816am_make=${MAKE-make} 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10818$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10819if ${am_cv_make_support_nested_variables+:} false; then : 10820 $as_echo_n "(cached) " >&6 10821else 10822 if $as_echo 'TRUE=$(BAR$(V)) 10823BAR0=false 10824BAR1=true 10825V=1 10826am__doit: 10827 @$(TRUE) 10828.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10829 am_cv_make_support_nested_variables=yes 10830else 10831 am_cv_make_support_nested_variables=no 10832fi 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10835$as_echo "$am_cv_make_support_nested_variables" >&6; } 10836if test $am_cv_make_support_nested_variables = yes; then 10837 AM_V='$(V)' 10838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10839else 10840 AM_V=$AM_DEFAULT_VERBOSITY 10841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10842fi 10843AM_BACKSLASH='\' 10844 10845 10846 10847# Internationalization & localization support 10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 10849$as_echo_n "checking for library containing gettext... " >&6; } 10850if ${ac_cv_search_gettext+:} false; then : 10851 $as_echo_n "(cached) " >&6 10852else 10853 ac_func_search_save_LIBS=$LIBS 10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856 10857/* Override any GCC internal prototype to avoid an error. 10858 Use char because int might match the return type of a GCC 10859 builtin and then its argument prototype would still apply. */ 10860#ifdef __cplusplus 10861extern "C" 10862#endif 10863char gettext (); 10864int 10865main () 10866{ 10867return gettext (); 10868 ; 10869 return 0; 10870} 10871_ACEOF 10872for ac_lib in '' intl; do 10873 if test -z "$ac_lib"; then 10874 ac_res="none required" 10875 else 10876 ac_res=-l$ac_lib 10877 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10878 fi 10879 if ac_fn_c_try_link "$LINENO"; then : 10880 ac_cv_search_gettext=$ac_res 10881fi 10882rm -f core conftest.err conftest.$ac_objext \ 10883 conftest$ac_exeext 10884 if ${ac_cv_search_gettext+:} false; then : 10885 break 10886fi 10887done 10888if ${ac_cv_search_gettext+:} false; then : 10889 10890else 10891 ac_cv_search_gettext=no 10892fi 10893rm conftest.$ac_ext 10894LIBS=$ac_func_search_save_LIBS 10895fi 10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 10897$as_echo "$ac_cv_search_gettext" >&6; } 10898ac_res=$ac_cv_search_gettext 10899if test "$ac_res" != no; then : 10900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10901 USE_GETTEXT="yes" 10902else 10903 USE_GETTEXT="no" 10904fi 10905 10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 10907$as_echo_n "checking where to install localized messages... " >&6; } 10908 10909# Check whether --with-localedir was given. 10910if test "${with_localedir+set}" = set; then : 10911 withval=$with_localedir; LOCALEDIR=${withval} 10912else 10913 LOCALEDIR=${datadir}/locale 10914fi 10915 10916 10917 prefix_NONE= 10918 exec_prefix_NONE= 10919 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 10920 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 10921 eval ax_define_dir="\"$LOCALEDIR\"" 10922 eval ax_define_dir="\"$ax_define_dir\"" 10923 LOCALEDIR="$ax_define_dir" 10924 10925 10926cat >>confdefs.h <<_ACEOF 10927#define LOCALEDIR "$ax_define_dir" 10928_ACEOF 10929 10930 test "$prefix_NONE" && prefix=NONE 10931 test "$exec_prefix_NONE" && exec_prefix=NONE 10932 10933if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 10935$as_echo "nowhere" >&6; } 10936 USE_GETTEXT="no" 10937else 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 10939$as_echo "$LOCALEDIR" >&6; } 10940fi 10941 10942if test "x$USE_GETTEXT" = "xyes" ; then 10943 10944$as_echo "#define USE_GETTEXT 1" >>confdefs.h 10945 10946fi 10947 if test "x$USE_GETTEXT" = "xyes"; then 10948 USE_GETTEXT_TRUE= 10949 USE_GETTEXT_FALSE='#' 10950else 10951 USE_GETTEXT_TRUE='#' 10952 USE_GETTEXT_FALSE= 10953fi 10954 10955 10956 10957### How to check load average on various OS'es: 10958 10959# getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later 10960# BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h> 10961for ac_func in getloadavg 10962do : 10963 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 10964if test "x$ac_cv_func_getloadavg" = xyes; then : 10965 cat >>confdefs.h <<_ACEOF 10966#define HAVE_GETLOADAVG 1 10967_ACEOF 10968 for ac_header in sys/loadavg.h 10969do : 10970 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" 10971if test "x$ac_cv_header_sys_loadavg_h" = xyes; then : 10972 cat >>confdefs.h <<_ACEOF 10973#define HAVE_SYS_LOADAVG_H 1 10974_ACEOF 10975 10976fi 10977 10978done 10979 10980fi 10981done 10982 10983 10984# Checks for pkg-config packages 10985 10986pkg_failed=no 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5 10988$as_echo_n "checking for XLOAD... " >&6; } 10989 10990if test -n "$XLOAD_CFLAGS"; then 10991 pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS" 10992 elif test -n "$PKG_CONFIG"; then 10993 if test -n "$PKG_CONFIG" && \ 10994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5 10995 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5 10996 ac_status=$? 10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10998 test $ac_status = 0; }; then 10999 pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null` 11000 test "x$?" != "x0" && pkg_failed=yes 11001else 11002 pkg_failed=yes 11003fi 11004 else 11005 pkg_failed=untried 11006fi 11007if test -n "$XLOAD_LIBS"; then 11008 pkg_cv_XLOAD_LIBS="$XLOAD_LIBS" 11009 elif test -n "$PKG_CONFIG"; then 11010 if test -n "$PKG_CONFIG" && \ 11011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5 11012 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5 11013 ac_status=$? 11014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11015 test $ac_status = 0; }; then 11016 pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null` 11017 test "x$?" != "x0" && pkg_failed=yes 11018else 11019 pkg_failed=yes 11020fi 11021 else 11022 pkg_failed=untried 11023fi 11024 11025 11026 11027if test $pkg_failed = yes; then 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11029$as_echo "no" >&6; } 11030 11031if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11032 _pkg_short_errors_supported=yes 11033else 11034 _pkg_short_errors_supported=no 11035fi 11036 if test $_pkg_short_errors_supported = yes; then 11037 XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1` 11038 else 11039 XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1` 11040 fi 11041 # Put the nasty error message in config.log where it belongs 11042 echo "$XLOAD_PKG_ERRORS" >&5 11043 11044 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met: 11045 11046$XLOAD_PKG_ERRORS 11047 11048Consider adjusting the PKG_CONFIG_PATH environment variable if you 11049installed software in a non-standard prefix. 11050 11051Alternatively, you may set the environment variables XLOAD_CFLAGS 11052and XLOAD_LIBS to avoid the need to call pkg-config. 11053See the pkg-config man page for more details." "$LINENO" 5 11054elif test $pkg_failed = untried; then 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11056$as_echo "no" >&6; } 11057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11059as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11060is in your PATH or set the PKG_CONFIG environment variable to the full 11061path to pkg-config. 11062 11063Alternatively, you may set the environment variables XLOAD_CFLAGS 11064and XLOAD_LIBS to avoid the need to call pkg-config. 11065See the pkg-config man page for more details. 11066 11067To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11068See \`config.log' for more details" "$LINENO" 5; } 11069else 11070 XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS 11071 XLOAD_LIBS=$pkg_cv_XLOAD_LIBS 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11073$as_echo "yes" >&6; } 11074 11075fi 11076 11077 11078pkg_failed=no 11079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11080$as_echo_n "checking for APPDEFS... " >&6; } 11081 11082if test -n "$APPDEFS_CFLAGS"; then 11083 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11084 elif test -n "$PKG_CONFIG"; then 11085 if test -n "$PKG_CONFIG" && \ 11086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11087 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11088 ac_status=$? 11089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11090 test $ac_status = 0; }; then 11091 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11092 test "x$?" != "x0" && pkg_failed=yes 11093else 11094 pkg_failed=yes 11095fi 11096 else 11097 pkg_failed=untried 11098fi 11099if test -n "$APPDEFS_LIBS"; then 11100 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11101 elif test -n "$PKG_CONFIG"; then 11102 if test -n "$PKG_CONFIG" && \ 11103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11104 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11105 ac_status=$? 11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11107 test $ac_status = 0; }; then 11108 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11109 test "x$?" != "x0" && pkg_failed=yes 11110else 11111 pkg_failed=yes 11112fi 11113 else 11114 pkg_failed=untried 11115fi 11116 11117 11118 11119if test $pkg_failed = yes; then 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11121$as_echo "no" >&6; } 11122 11123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11124 _pkg_short_errors_supported=yes 11125else 11126 _pkg_short_errors_supported=no 11127fi 11128 if test $_pkg_short_errors_supported = yes; then 11129 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11130 else 11131 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11132 fi 11133 # Put the nasty error message in config.log where it belongs 11134 echo "$APPDEFS_PKG_ERRORS" >&5 11135 11136 as_fn_error $? "Package requirements (xt) were not met: 11137 11138$APPDEFS_PKG_ERRORS 11139 11140Consider adjusting the PKG_CONFIG_PATH environment variable if you 11141installed software in a non-standard prefix. 11142 11143Alternatively, you may set the environment variables APPDEFS_CFLAGS 11144and APPDEFS_LIBS to avoid the need to call pkg-config. 11145See the pkg-config man page for more details." "$LINENO" 5 11146elif test $pkg_failed = untried; then 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11148$as_echo "no" >&6; } 11149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11151as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11152is in your PATH or set the PKG_CONFIG environment variable to the full 11153path to pkg-config. 11154 11155Alternatively, you may set the environment variables APPDEFS_CFLAGS 11156and APPDEFS_LIBS to avoid the need to call pkg-config. 11157See the pkg-config man page for more details. 11158 11159To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11160See \`config.log' for more details" "$LINENO" 5; } 11161else 11162 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11163 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11165$as_echo "yes" >&6; } 11166 11167fi 11168xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11169 11170# Check whether --with-appdefaultdir was given. 11171if test "${with_appdefaultdir+set}" = set; then : 11172 withval=$with_appdefaultdir; appdefaultdir="$withval" 11173else 11174 appdefaultdir="${xt_appdefaultdir}" 11175fi 11176 11177 11178 11179 11180ac_config_files="$ac_config_files Makefile man/Makefile" 11181 11182cat >confcache <<\_ACEOF 11183# This file is a shell script that caches the results of configure 11184# tests run on this system so they can be shared between configure 11185# scripts and configure runs, see configure's option --config-cache. 11186# It is not useful on other systems. If it contains results you don't 11187# want to keep, you may remove or edit it. 11188# 11189# config.status only pays attention to the cache file if you give it 11190# the --recheck option to rerun configure. 11191# 11192# `ac_cv_env_foo' variables (set or unset) will be overridden when 11193# loading this file, other *unset* `ac_cv_foo' will be assigned the 11194# following values. 11195 11196_ACEOF 11197 11198# The following way of writing the cache mishandles newlines in values, 11199# but we know of no workaround that is simple, portable, and efficient. 11200# So, we kill variables containing newlines. 11201# Ultrix sh set writes to stderr and can't be redirected directly, 11202# and sets the high bit in the cache file unless we assign to the vars. 11203( 11204 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11205 eval ac_val=\$$ac_var 11206 case $ac_val in #( 11207 *${as_nl}*) 11208 case $ac_var in #( 11209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11210$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11211 esac 11212 case $ac_var in #( 11213 _ | IFS | as_nl) ;; #( 11214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11215 *) { eval $ac_var=; unset $ac_var;} ;; 11216 esac ;; 11217 esac 11218 done 11219 11220 (set) 2>&1 | 11221 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11222 *${as_nl}ac_space=\ *) 11223 # `set' does not quote correctly, so add quotes: double-quote 11224 # substitution turns \\\\ into \\, and sed turns \\ into \. 11225 sed -n \ 11226 "s/'/'\\\\''/g; 11227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11228 ;; #( 11229 *) 11230 # `set' quotes correctly as required by POSIX, so do not add quotes. 11231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11232 ;; 11233 esac | 11234 sort 11235) | 11236 sed ' 11237 /^ac_cv_env_/b end 11238 t clear 11239 :clear 11240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11241 t end 11242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11243 :end' >>confcache 11244if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11245 if test -w "$cache_file"; then 11246 if test "x$cache_file" != "x/dev/null"; then 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11248$as_echo "$as_me: updating cache $cache_file" >&6;} 11249 if test ! -f "$cache_file" || test -h "$cache_file"; then 11250 cat confcache >"$cache_file" 11251 else 11252 case $cache_file in #( 11253 */* | ?:*) 11254 mv -f confcache "$cache_file"$$ && 11255 mv -f "$cache_file"$$ "$cache_file" ;; #( 11256 *) 11257 mv -f confcache "$cache_file" ;; 11258 esac 11259 fi 11260 fi 11261 else 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11263$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11264 fi 11265fi 11266rm -f confcache 11267 11268test "x$prefix" = xNONE && prefix=$ac_default_prefix 11269# Let make expand exec_prefix. 11270test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11271 11272DEFS=-DHAVE_CONFIG_H 11273 11274ac_libobjs= 11275ac_ltlibobjs= 11276U= 11277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11278 # 1. Remove the extension, and $U if already installed. 11279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11282 # will be set to the directory where LIBOBJS objects are built. 11283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11285done 11286LIBOBJS=$ac_libobjs 11287 11288LTLIBOBJS=$ac_ltlibobjs 11289 11290 11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11292$as_echo_n "checking that generated files are newer than configure... " >&6; } 11293 if test -n "$am_sleep_pid"; then 11294 # Hide warnings about reused PIDs. 11295 wait $am_sleep_pid 2>/dev/null 11296 fi 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11298$as_echo "done" >&6; } 11299if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11300 as_fn_error $? "conditional \"AMDEP\" was never defined. 11301Usually this means the macro was only invoked conditionally." "$LINENO" 5 11302fi 11303if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11304 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11305Usually this means the macro was only invoked conditionally." "$LINENO" 5 11306fi 11307 if test -n "$EXEEXT"; then 11308 am__EXEEXT_TRUE= 11309 am__EXEEXT_FALSE='#' 11310else 11311 am__EXEEXT_TRUE='#' 11312 am__EXEEXT_FALSE= 11313fi 11314 11315if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 11316 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 11317Usually this means the macro was only invoked conditionally." "$LINENO" 5 11318fi 11319 11320: "${CONFIG_STATUS=./config.status}" 11321ac_write_fail=0 11322ac_clean_files_save=$ac_clean_files 11323ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11325$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11326as_write_fail=0 11327cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11328#! $SHELL 11329# Generated by $as_me. 11330# Run this file to recreate the current configuration. 11331# Compiler output produced by configure, useful for debugging 11332# configure, is in config.log if it exists. 11333 11334debug=false 11335ac_cs_recheck=false 11336ac_cs_silent=false 11337 11338SHELL=\${CONFIG_SHELL-$SHELL} 11339export SHELL 11340_ASEOF 11341cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11342## -------------------- ## 11343## M4sh Initialization. ## 11344## -------------------- ## 11345 11346# Be more Bourne compatible 11347DUALCASE=1; export DUALCASE # for MKS sh 11348if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11349 emulate sh 11350 NULLCMD=: 11351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11352 # is contrary to our usage. Disable this feature. 11353 alias -g '${1+"$@"}'='"$@"' 11354 setopt NO_GLOB_SUBST 11355else 11356 case `(set -o) 2>/dev/null` in #( 11357 *posix*) : 11358 set -o posix ;; #( 11359 *) : 11360 ;; 11361esac 11362fi 11363 11364 11365as_nl=' 11366' 11367export as_nl 11368# Printing a long string crashes Solaris 7 /usr/bin/printf. 11369as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11372# Prefer a ksh shell builtin over an external printf program on Solaris, 11373# but without wasting forks for bash or zsh. 11374if test -z "$BASH_VERSION$ZSH_VERSION" \ 11375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11376 as_echo='print -r --' 11377 as_echo_n='print -rn --' 11378elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11379 as_echo='printf %s\n' 11380 as_echo_n='printf %s' 11381else 11382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11384 as_echo_n='/usr/ucb/echo -n' 11385 else 11386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11387 as_echo_n_body='eval 11388 arg=$1; 11389 case $arg in #( 11390 *"$as_nl"*) 11391 expr "X$arg" : "X\\(.*\\)$as_nl"; 11392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11393 esac; 11394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11395 ' 11396 export as_echo_n_body 11397 as_echo_n='sh -c $as_echo_n_body as_echo' 11398 fi 11399 export as_echo_body 11400 as_echo='sh -c $as_echo_body as_echo' 11401fi 11402 11403# The user is always right. 11404if test "${PATH_SEPARATOR+set}" != set; then 11405 PATH_SEPARATOR=: 11406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11408 PATH_SEPARATOR=';' 11409 } 11410fi 11411 11412 11413# IFS 11414# We need space, tab and new line, in precisely that order. Quoting is 11415# there to prevent editors from complaining about space-tab. 11416# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11417# splitting by setting IFS to empty value.) 11418IFS=" "" $as_nl" 11419 11420# Find who we are. Look in the path if we contain no directory separator. 11421as_myself= 11422case $0 in #(( 11423 *[\\/]* ) as_myself=$0 ;; 11424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11425for as_dir in $PATH 11426do 11427 IFS=$as_save_IFS 11428 test -z "$as_dir" && as_dir=. 11429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11430 done 11431IFS=$as_save_IFS 11432 11433 ;; 11434esac 11435# We did not find ourselves, most probably we were run as `sh COMMAND' 11436# in which case we are not to be found in the path. 11437if test "x$as_myself" = x; then 11438 as_myself=$0 11439fi 11440if test ! -f "$as_myself"; then 11441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11442 exit 1 11443fi 11444 11445# Unset variables that we do not need and which cause bugs (e.g. in 11446# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11447# suppresses any "Segmentation fault" message there. '((' could 11448# trigger a bug in pdksh 5.2.14. 11449for as_var in BASH_ENV ENV MAIL MAILPATH 11450do eval test x\${$as_var+set} = xset \ 11451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11452done 11453PS1='$ ' 11454PS2='> ' 11455PS4='+ ' 11456 11457# NLS nuisances. 11458LC_ALL=C 11459export LC_ALL 11460LANGUAGE=C 11461export LANGUAGE 11462 11463# CDPATH. 11464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11465 11466 11467# as_fn_error STATUS ERROR [LINENO LOG_FD] 11468# ---------------------------------------- 11469# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11470# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11471# script with STATUS, using 1 if that was 0. 11472as_fn_error () 11473{ 11474 as_status=$1; test $as_status -eq 0 && as_status=1 11475 if test "$4"; then 11476 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11478 fi 11479 $as_echo "$as_me: error: $2" >&2 11480 as_fn_exit $as_status 11481} # as_fn_error 11482 11483 11484# as_fn_set_status STATUS 11485# ----------------------- 11486# Set $? to STATUS, without forking. 11487as_fn_set_status () 11488{ 11489 return $1 11490} # as_fn_set_status 11491 11492# as_fn_exit STATUS 11493# ----------------- 11494# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11495as_fn_exit () 11496{ 11497 set +e 11498 as_fn_set_status $1 11499 exit $1 11500} # as_fn_exit 11501 11502# as_fn_unset VAR 11503# --------------- 11504# Portably unset VAR. 11505as_fn_unset () 11506{ 11507 { eval $1=; unset $1;} 11508} 11509as_unset=as_fn_unset 11510# as_fn_append VAR VALUE 11511# ---------------------- 11512# Append the text in VALUE to the end of the definition contained in VAR. Take 11513# advantage of any shell optimizations that allow amortized linear growth over 11514# repeated appends, instead of the typical quadratic growth present in naive 11515# implementations. 11516if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11517 eval 'as_fn_append () 11518 { 11519 eval $1+=\$2 11520 }' 11521else 11522 as_fn_append () 11523 { 11524 eval $1=\$$1\$2 11525 } 11526fi # as_fn_append 11527 11528# as_fn_arith ARG... 11529# ------------------ 11530# Perform arithmetic evaluation on the ARGs, and store the result in the 11531# global $as_val. Take advantage of shells that can avoid forks. The arguments 11532# must be portable across $(()) and expr. 11533if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11534 eval 'as_fn_arith () 11535 { 11536 as_val=$(( $* )) 11537 }' 11538else 11539 as_fn_arith () 11540 { 11541 as_val=`expr "$@" || test $? -eq 1` 11542 } 11543fi # as_fn_arith 11544 11545 11546if expr a : '\(a\)' >/dev/null 2>&1 && 11547 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11548 as_expr=expr 11549else 11550 as_expr=false 11551fi 11552 11553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11554 as_basename=basename 11555else 11556 as_basename=false 11557fi 11558 11559if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11560 as_dirname=dirname 11561else 11562 as_dirname=false 11563fi 11564 11565as_me=`$as_basename -- "$0" || 11566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11567 X"$0" : 'X\(//\)$' \| \ 11568 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11569$as_echo X/"$0" | 11570 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11571 s//\1/ 11572 q 11573 } 11574 /^X\/\(\/\/\)$/{ 11575 s//\1/ 11576 q 11577 } 11578 /^X\/\(\/\).*/{ 11579 s//\1/ 11580 q 11581 } 11582 s/.*/./; q'` 11583 11584# Avoid depending upon Character Ranges. 11585as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11586as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11587as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11588as_cr_digits='0123456789' 11589as_cr_alnum=$as_cr_Letters$as_cr_digits 11590 11591ECHO_C= ECHO_N= ECHO_T= 11592case `echo -n x` in #((((( 11593-n*) 11594 case `echo 'xy\c'` in 11595 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11596 xy) ECHO_C='\c';; 11597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11598 ECHO_T=' ';; 11599 esac;; 11600*) 11601 ECHO_N='-n';; 11602esac 11603 11604rm -f conf$$ conf$$.exe conf$$.file 11605if test -d conf$$.dir; then 11606 rm -f conf$$.dir/conf$$.file 11607else 11608 rm -f conf$$.dir 11609 mkdir conf$$.dir 2>/dev/null 11610fi 11611if (echo >conf$$.file) 2>/dev/null; then 11612 if ln -s conf$$.file conf$$ 2>/dev/null; then 11613 as_ln_s='ln -s' 11614 # ... but there are two gotchas: 11615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11617 # In both cases, we have to default to `cp -pR'. 11618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11619 as_ln_s='cp -pR' 11620 elif ln conf$$.file conf$$ 2>/dev/null; then 11621 as_ln_s=ln 11622 else 11623 as_ln_s='cp -pR' 11624 fi 11625else 11626 as_ln_s='cp -pR' 11627fi 11628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11629rmdir conf$$.dir 2>/dev/null 11630 11631 11632# as_fn_mkdir_p 11633# ------------- 11634# Create "$as_dir" as a directory, including parents if necessary. 11635as_fn_mkdir_p () 11636{ 11637 11638 case $as_dir in #( 11639 -*) as_dir=./$as_dir;; 11640 esac 11641 test -d "$as_dir" || eval $as_mkdir_p || { 11642 as_dirs= 11643 while :; do 11644 case $as_dir in #( 11645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11646 *) as_qdir=$as_dir;; 11647 esac 11648 as_dirs="'$as_qdir' $as_dirs" 11649 as_dir=`$as_dirname -- "$as_dir" || 11650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11651 X"$as_dir" : 'X\(//\)[^/]' \| \ 11652 X"$as_dir" : 'X\(//\)$' \| \ 11653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11654$as_echo X"$as_dir" | 11655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11656 s//\1/ 11657 q 11658 } 11659 /^X\(\/\/\)[^/].*/{ 11660 s//\1/ 11661 q 11662 } 11663 /^X\(\/\/\)$/{ 11664 s//\1/ 11665 q 11666 } 11667 /^X\(\/\).*/{ 11668 s//\1/ 11669 q 11670 } 11671 s/.*/./; q'` 11672 test -d "$as_dir" && break 11673 done 11674 test -z "$as_dirs" || eval "mkdir $as_dirs" 11675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11676 11677 11678} # as_fn_mkdir_p 11679if mkdir -p . 2>/dev/null; then 11680 as_mkdir_p='mkdir -p "$as_dir"' 11681else 11682 test -d ./-p && rmdir ./-p 11683 as_mkdir_p=false 11684fi 11685 11686 11687# as_fn_executable_p FILE 11688# ----------------------- 11689# Test if FILE is an executable regular file. 11690as_fn_executable_p () 11691{ 11692 test -f "$1" && test -x "$1" 11693} # as_fn_executable_p 11694as_test_x='test -x' 11695as_executable_p=as_fn_executable_p 11696 11697# Sed expression to map a string onto a valid CPP name. 11698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11699 11700# Sed expression to map a string onto a valid variable name. 11701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11702 11703 11704exec 6>&1 11705## ----------------------------------- ## 11706## Main body of $CONFIG_STATUS script. ## 11707## ----------------------------------- ## 11708_ASEOF 11709test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11710 11711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11712# Save the log message, to keep $0 and so on meaningful, and to 11713# report actual input values of CONFIG_FILES etc. instead of their 11714# values after options handling. 11715ac_log=" 11716This file was extended by xload $as_me 1.1.3, which was 11717generated by GNU Autoconf 2.69. Invocation command line was 11718 11719 CONFIG_FILES = $CONFIG_FILES 11720 CONFIG_HEADERS = $CONFIG_HEADERS 11721 CONFIG_LINKS = $CONFIG_LINKS 11722 CONFIG_COMMANDS = $CONFIG_COMMANDS 11723 $ $0 $@ 11724 11725on `(hostname || uname -n) 2>/dev/null | sed 1q` 11726" 11727 11728_ACEOF 11729 11730case $ac_config_files in *" 11731"*) set x $ac_config_files; shift; ac_config_files=$*;; 11732esac 11733 11734case $ac_config_headers in *" 11735"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11736esac 11737 11738 11739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11740# Files that config.status was made for. 11741config_files="$ac_config_files" 11742config_headers="$ac_config_headers" 11743config_commands="$ac_config_commands" 11744 11745_ACEOF 11746 11747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11748ac_cs_usage="\ 11749\`$as_me' instantiates files and other configuration actions 11750from templates according to the current configuration. Unless the files 11751and actions are specified as TAGs, all are instantiated by default. 11752 11753Usage: $0 [OPTION]... [TAG]... 11754 11755 -h, --help print this help, then exit 11756 -V, --version print version number and configuration settings, then exit 11757 --config print configuration, then exit 11758 -q, --quiet, --silent 11759 do not print progress messages 11760 -d, --debug don't remove temporary files 11761 --recheck update $as_me by reconfiguring in the same conditions 11762 --file=FILE[:TEMPLATE] 11763 instantiate the configuration file FILE 11764 --header=FILE[:TEMPLATE] 11765 instantiate the configuration header FILE 11766 11767Configuration files: 11768$config_files 11769 11770Configuration headers: 11771$config_headers 11772 11773Configuration commands: 11774$config_commands 11775 11776Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11777 11778_ACEOF 11779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11780ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11781ac_cs_version="\\ 11782xload config.status 1.1.3 11783configured by $0, generated by GNU Autoconf 2.69, 11784 with options \\"\$ac_cs_config\\" 11785 11786Copyright (C) 2012 Free Software Foundation, Inc. 11787This config.status script is free software; the Free Software Foundation 11788gives unlimited permission to copy, distribute and modify it." 11789 11790ac_pwd='$ac_pwd' 11791srcdir='$srcdir' 11792INSTALL='$INSTALL' 11793MKDIR_P='$MKDIR_P' 11794AWK='$AWK' 11795test -n "\$AWK" || AWK=awk 11796_ACEOF 11797 11798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11799# The default lists apply if the user does not specify any file. 11800ac_need_defaults=: 11801while test $# != 0 11802do 11803 case $1 in 11804 --*=?*) 11805 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11807 ac_shift=: 11808 ;; 11809 --*=) 11810 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11811 ac_optarg= 11812 ac_shift=: 11813 ;; 11814 *) 11815 ac_option=$1 11816 ac_optarg=$2 11817 ac_shift=shift 11818 ;; 11819 esac 11820 11821 case $ac_option in 11822 # Handling of the options. 11823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11824 ac_cs_recheck=: ;; 11825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11826 $as_echo "$ac_cs_version"; exit ;; 11827 --config | --confi | --conf | --con | --co | --c ) 11828 $as_echo "$ac_cs_config"; exit ;; 11829 --debug | --debu | --deb | --de | --d | -d ) 11830 debug=: ;; 11831 --file | --fil | --fi | --f ) 11832 $ac_shift 11833 case $ac_optarg in 11834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11835 '') as_fn_error $? "missing file argument" ;; 11836 esac 11837 as_fn_append CONFIG_FILES " '$ac_optarg'" 11838 ac_need_defaults=false;; 11839 --header | --heade | --head | --hea ) 11840 $ac_shift 11841 case $ac_optarg in 11842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11843 esac 11844 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11845 ac_need_defaults=false;; 11846 --he | --h) 11847 # Conflict between --help and --header 11848 as_fn_error $? "ambiguous option: \`$1' 11849Try \`$0 --help' for more information.";; 11850 --help | --hel | -h ) 11851 $as_echo "$ac_cs_usage"; exit ;; 11852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11853 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11854 ac_cs_silent=: ;; 11855 11856 # This is an error. 11857 -*) as_fn_error $? "unrecognized option: \`$1' 11858Try \`$0 --help' for more information." ;; 11859 11860 *) as_fn_append ac_config_targets " $1" 11861 ac_need_defaults=false ;; 11862 11863 esac 11864 shift 11865done 11866 11867ac_configure_extra_args= 11868 11869if $ac_cs_silent; then 11870 exec 6>/dev/null 11871 ac_configure_extra_args="$ac_configure_extra_args --silent" 11872fi 11873 11874_ACEOF 11875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11876if \$ac_cs_recheck; then 11877 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11878 shift 11879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11880 CONFIG_SHELL='$SHELL' 11881 export CONFIG_SHELL 11882 exec "\$@" 11883fi 11884 11885_ACEOF 11886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11887exec 5>>config.log 11888{ 11889 echo 11890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11891## Running $as_me. ## 11892_ASBOX 11893 $as_echo "$ac_log" 11894} >&5 11895 11896_ACEOF 11897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11898# 11899# INIT-COMMANDS 11900# 11901AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11902 11903_ACEOF 11904 11905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11906 11907# Handling of arguments. 11908for ac_config_target in $ac_config_targets 11909do 11910 case $ac_config_target in 11911 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11912 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11914 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11915 11916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11917 esac 11918done 11919 11920 11921# If the user did not use the arguments to specify the items to instantiate, 11922# then the envvar interface is used. Set only those that are not. 11923# We use the long form for the default assignment because of an extremely 11924# bizarre bug on SunOS 4.1.3. 11925if $ac_need_defaults; then 11926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11929fi 11930 11931# Have a temporary directory for convenience. Make it in the build tree 11932# simply because there is no reason against having it here, and in addition, 11933# creating and moving files from /tmp can sometimes cause problems. 11934# Hook for its removal unless debugging. 11935# Note that there is a small window in which the directory will not be cleaned: 11936# after its creation but before its name has been assigned to `$tmp'. 11937$debug || 11938{ 11939 tmp= ac_tmp= 11940 trap 'exit_status=$? 11941 : "${ac_tmp:=$tmp}" 11942 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11943' 0 11944 trap 'as_fn_exit 1' 1 2 13 15 11945} 11946# Create a (secure) tmp directory for tmp files. 11947 11948{ 11949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11950 test -d "$tmp" 11951} || 11952{ 11953 tmp=./conf$$-$RANDOM 11954 (umask 077 && mkdir "$tmp") 11955} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11956ac_tmp=$tmp 11957 11958# Set up the scripts for CONFIG_FILES section. 11959# No need to generate them if there are no CONFIG_FILES. 11960# This happens for instance with `./config.status config.h'. 11961if test -n "$CONFIG_FILES"; then 11962 11963 11964ac_cr=`echo X | tr X '\015'` 11965# On cygwin, bash can eat \r inside `` if the user requested igncr. 11966# But we know of no other shell where ac_cr would be empty at this 11967# point, so we can use a bashism as a fallback. 11968if test "x$ac_cr" = x; then 11969 eval ac_cr=\$\'\\r\' 11970fi 11971ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11972if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11973 ac_cs_awk_cr='\\r' 11974else 11975 ac_cs_awk_cr=$ac_cr 11976fi 11977 11978echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11979_ACEOF 11980 11981 11982{ 11983 echo "cat >conf$$subs.awk <<_ACEOF" && 11984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11985 echo "_ACEOF" 11986} >conf$$subs.sh || 11987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11988ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11989ac_delim='%!_!# ' 11990for ac_last_try in false false false false false :; do 11991 . ./conf$$subs.sh || 11992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11993 11994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11995 if test $ac_delim_n = $ac_delim_num; then 11996 break 11997 elif $ac_last_try; then 11998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11999 else 12000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12001 fi 12002done 12003rm -f conf$$subs.sh 12004 12005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12006cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12007_ACEOF 12008sed -n ' 12009h 12010s/^/S["/; s/!.*/"]=/ 12011p 12012g 12013s/^[^!]*!// 12014:repl 12015t repl 12016s/'"$ac_delim"'$// 12017t delim 12018:nl 12019h 12020s/\(.\{148\}\)..*/\1/ 12021t more1 12022s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12023p 12024n 12025b repl 12026:more1 12027s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12028p 12029g 12030s/.\{148\}// 12031t nl 12032:delim 12033h 12034s/\(.\{148\}\)..*/\1/ 12035t more2 12036s/["\\]/\\&/g; s/^/"/; s/$/"/ 12037p 12038b 12039:more2 12040s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12041p 12042g 12043s/.\{148\}// 12044t delim 12045' <conf$$subs.awk | sed ' 12046/^[^""]/{ 12047 N 12048 s/\n// 12049} 12050' >>$CONFIG_STATUS || ac_write_fail=1 12051rm -f conf$$subs.awk 12052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12053_ACAWK 12054cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12055 for (key in S) S_is_set[key] = 1 12056 FS = "" 12057 12058} 12059{ 12060 line = $ 0 12061 nfields = split(line, field, "@") 12062 substed = 0 12063 len = length(field[1]) 12064 for (i = 2; i < nfields; i++) { 12065 key = field[i] 12066 keylen = length(key) 12067 if (S_is_set[key]) { 12068 value = S[key] 12069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12070 len += length(value) + length(field[++i]) 12071 substed = 1 12072 } else 12073 len += 1 + keylen 12074 } 12075 12076 print line 12077} 12078 12079_ACAWK 12080_ACEOF 12081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12082if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12084else 12085 cat 12086fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12087 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12088_ACEOF 12089 12090# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12091# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12092# trailing colons and then remove the whole line if VPATH becomes empty 12093# (actually we leave an empty line to preserve line numbers). 12094if test "x$srcdir" = x.; then 12095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12096h 12097s/// 12098s/^/:/ 12099s/[ ]*$/:/ 12100s/:\$(srcdir):/:/g 12101s/:\${srcdir}:/:/g 12102s/:@srcdir@:/:/g 12103s/^:*// 12104s/:*$// 12105x 12106s/\(=[ ]*\).*/\1/ 12107G 12108s/\n// 12109s/^[^=]*=[ ]*$// 12110}' 12111fi 12112 12113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12114fi # test -n "$CONFIG_FILES" 12115 12116# Set up the scripts for CONFIG_HEADERS section. 12117# No need to generate them if there are no CONFIG_HEADERS. 12118# This happens for instance with `./config.status Makefile'. 12119if test -n "$CONFIG_HEADERS"; then 12120cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12121BEGIN { 12122_ACEOF 12123 12124# Transform confdefs.h into an awk script `defines.awk', embedded as 12125# here-document in config.status, that substitutes the proper values into 12126# config.h.in to produce config.h. 12127 12128# Create a delimiter string that does not exist in confdefs.h, to ease 12129# handling of long lines. 12130ac_delim='%!_!# ' 12131for ac_last_try in false false :; do 12132 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12133 if test -z "$ac_tt"; then 12134 break 12135 elif $ac_last_try; then 12136 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12137 else 12138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12139 fi 12140done 12141 12142# For the awk script, D is an array of macro values keyed by name, 12143# likewise P contains macro parameters if any. Preserve backslash 12144# newline sequences. 12145 12146ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12147sed -n ' 12148s/.\{148\}/&'"$ac_delim"'/g 12149t rset 12150:rset 12151s/^[ ]*#[ ]*define[ ][ ]*/ / 12152t def 12153d 12154:def 12155s/\\$// 12156t bsnl 12157s/["\\]/\\&/g 12158s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12159D["\1"]=" \3"/p 12160s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12161d 12162:bsnl 12163s/["\\]/\\&/g 12164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12165D["\1"]=" \3\\\\\\n"\\/p 12166t cont 12167s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12168t cont 12169d 12170:cont 12171n 12172s/.\{148\}/&'"$ac_delim"'/g 12173t clear 12174:clear 12175s/\\$// 12176t bsnlc 12177s/["\\]/\\&/g; s/^/"/; s/$/"/p 12178d 12179:bsnlc 12180s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12181b cont 12182' <confdefs.h | sed ' 12183s/'"$ac_delim"'/"\\\ 12184"/g' >>$CONFIG_STATUS || ac_write_fail=1 12185 12186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12187 for (key in D) D_is_set[key] = 1 12188 FS = "" 12189} 12190/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12191 line = \$ 0 12192 split(line, arg, " ") 12193 if (arg[1] == "#") { 12194 defundef = arg[2] 12195 mac1 = arg[3] 12196 } else { 12197 defundef = substr(arg[1], 2) 12198 mac1 = arg[2] 12199 } 12200 split(mac1, mac2, "(") #) 12201 macro = mac2[1] 12202 prefix = substr(line, 1, index(line, defundef) - 1) 12203 if (D_is_set[macro]) { 12204 # Preserve the white space surrounding the "#". 12205 print prefix "define", macro P[macro] D[macro] 12206 next 12207 } else { 12208 # Replace #undef with comments. This is necessary, for example, 12209 # in the case of _POSIX_SOURCE, which is predefined and required 12210 # on some systems where configure will not decide to define it. 12211 if (defundef == "undef") { 12212 print "/*", prefix defundef, macro, "*/" 12213 next 12214 } 12215 } 12216} 12217{ print } 12218_ACAWK 12219_ACEOF 12220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12221 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12222fi # test -n "$CONFIG_HEADERS" 12223 12224 12225eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12226shift 12227for ac_tag 12228do 12229 case $ac_tag in 12230 :[FHLC]) ac_mode=$ac_tag; continue;; 12231 esac 12232 case $ac_mode$ac_tag in 12233 :[FHL]*:*);; 12234 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12235 :[FH]-) ac_tag=-:-;; 12236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12237 esac 12238 ac_save_IFS=$IFS 12239 IFS=: 12240 set x $ac_tag 12241 IFS=$ac_save_IFS 12242 shift 12243 ac_file=$1 12244 shift 12245 12246 case $ac_mode in 12247 :L) ac_source=$1;; 12248 :[FH]) 12249 ac_file_inputs= 12250 for ac_f 12251 do 12252 case $ac_f in 12253 -) ac_f="$ac_tmp/stdin";; 12254 *) # Look for the file first in the build tree, then in the source tree 12255 # (if the path is not absolute). The absolute path cannot be DOS-style, 12256 # because $ac_f cannot contain `:'. 12257 test -f "$ac_f" || 12258 case $ac_f in 12259 [\\/$]*) false;; 12260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12261 esac || 12262 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12263 esac 12264 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12265 as_fn_append ac_file_inputs " '$ac_f'" 12266 done 12267 12268 # Let's still pretend it is `configure' which instantiates (i.e., don't 12269 # use $as_me), people would be surprised to read: 12270 # /* config.h. Generated by config.status. */ 12271 configure_input='Generated from '` 12272 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12273 `' by configure.' 12274 if test x"$ac_file" != x-; then 12275 configure_input="$ac_file. $configure_input" 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12277$as_echo "$as_me: creating $ac_file" >&6;} 12278 fi 12279 # Neutralize special characters interpreted by sed in replacement strings. 12280 case $configure_input in #( 12281 *\&* | *\|* | *\\* ) 12282 ac_sed_conf_input=`$as_echo "$configure_input" | 12283 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12284 *) ac_sed_conf_input=$configure_input;; 12285 esac 12286 12287 case $ac_tag in 12288 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12290 esac 12291 ;; 12292 esac 12293 12294 ac_dir=`$as_dirname -- "$ac_file" || 12295$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12296 X"$ac_file" : 'X\(//\)[^/]' \| \ 12297 X"$ac_file" : 'X\(//\)$' \| \ 12298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12299$as_echo X"$ac_file" | 12300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12301 s//\1/ 12302 q 12303 } 12304 /^X\(\/\/\)[^/].*/{ 12305 s//\1/ 12306 q 12307 } 12308 /^X\(\/\/\)$/{ 12309 s//\1/ 12310 q 12311 } 12312 /^X\(\/\).*/{ 12313 s//\1/ 12314 q 12315 } 12316 s/.*/./; q'` 12317 as_dir="$ac_dir"; as_fn_mkdir_p 12318 ac_builddir=. 12319 12320case "$ac_dir" in 12321.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12322*) 12323 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12324 # A ".." for each directory in $ac_dir_suffix. 12325 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12326 case $ac_top_builddir_sub in 12327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12329 esac ;; 12330esac 12331ac_abs_top_builddir=$ac_pwd 12332ac_abs_builddir=$ac_pwd$ac_dir_suffix 12333# for backward compatibility: 12334ac_top_builddir=$ac_top_build_prefix 12335 12336case $srcdir in 12337 .) # We are building in place. 12338 ac_srcdir=. 12339 ac_top_srcdir=$ac_top_builddir_sub 12340 ac_abs_top_srcdir=$ac_pwd ;; 12341 [\\/]* | ?:[\\/]* ) # Absolute name. 12342 ac_srcdir=$srcdir$ac_dir_suffix; 12343 ac_top_srcdir=$srcdir 12344 ac_abs_top_srcdir=$srcdir ;; 12345 *) # Relative name. 12346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12347 ac_top_srcdir=$ac_top_build_prefix$srcdir 12348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12349esac 12350ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12351 12352 12353 case $ac_mode in 12354 :F) 12355 # 12356 # CONFIG_FILE 12357 # 12358 12359 case $INSTALL in 12360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12362 esac 12363 ac_MKDIR_P=$MKDIR_P 12364 case $MKDIR_P in 12365 [\\/$]* | ?:[\\/]* ) ;; 12366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12367 esac 12368_ACEOF 12369 12370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12371# If the template does not know about datarootdir, expand it. 12372# FIXME: This hack should be removed a few years after 2.60. 12373ac_datarootdir_hack=; ac_datarootdir_seen= 12374ac_sed_dataroot=' 12375/datarootdir/ { 12376 p 12377 q 12378} 12379/@datadir@/p 12380/@docdir@/p 12381/@infodir@/p 12382/@localedir@/p 12383/@mandir@/p' 12384case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12385*datarootdir*) ac_datarootdir_seen=yes;; 12386*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12388$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12389_ACEOF 12390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12391 ac_datarootdir_hack=' 12392 s&@datadir@&$datadir&g 12393 s&@docdir@&$docdir&g 12394 s&@infodir@&$infodir&g 12395 s&@localedir@&$localedir&g 12396 s&@mandir@&$mandir&g 12397 s&\\\${datarootdir}&$datarootdir&g' ;; 12398esac 12399_ACEOF 12400 12401# Neutralize VPATH when `$srcdir' = `.'. 12402# Shell code in configure.ac might set extrasub. 12403# FIXME: do we really want to maintain this feature? 12404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12405ac_sed_extra="$ac_vpsub 12406$extrasub 12407_ACEOF 12408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12409:t 12410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12411s|@configure_input@|$ac_sed_conf_input|;t t 12412s&@top_builddir@&$ac_top_builddir_sub&;t t 12413s&@top_build_prefix@&$ac_top_build_prefix&;t t 12414s&@srcdir@&$ac_srcdir&;t t 12415s&@abs_srcdir@&$ac_abs_srcdir&;t t 12416s&@top_srcdir@&$ac_top_srcdir&;t t 12417s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12418s&@builddir@&$ac_builddir&;t t 12419s&@abs_builddir@&$ac_abs_builddir&;t t 12420s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12421s&@INSTALL@&$ac_INSTALL&;t t 12422s&@MKDIR_P@&$ac_MKDIR_P&;t t 12423$ac_datarootdir_hack 12424" 12425eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12427 12428test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12431 "$ac_tmp/out"`; test -z "$ac_out"; } && 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12433which seems to be undefined. Please make sure it is defined" >&5 12434$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12435which seems to be undefined. Please make sure it is defined" >&2;} 12436 12437 rm -f "$ac_tmp/stdin" 12438 case $ac_file in 12439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12441 esac \ 12442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12443 ;; 12444 :H) 12445 # 12446 # CONFIG_HEADER 12447 # 12448 if test x"$ac_file" != x-; then 12449 { 12450 $as_echo "/* $configure_input */" \ 12451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12452 } >"$ac_tmp/config.h" \ 12453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12456$as_echo "$as_me: $ac_file is unchanged" >&6;} 12457 else 12458 rm -f "$ac_file" 12459 mv "$ac_tmp/config.h" "$ac_file" \ 12460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12461 fi 12462 else 12463 $as_echo "/* $configure_input */" \ 12464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12465 || as_fn_error $? "could not create -" "$LINENO" 5 12466 fi 12467# Compute "$ac_file"'s index in $config_headers. 12468_am_arg="$ac_file" 12469_am_stamp_count=1 12470for _am_header in $config_headers :; do 12471 case $_am_header in 12472 $_am_arg | $_am_arg:* ) 12473 break ;; 12474 * ) 12475 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12476 esac 12477done 12478echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12479$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12480 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12481 X"$_am_arg" : 'X\(//\)$' \| \ 12482 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12483$as_echo X"$_am_arg" | 12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12485 s//\1/ 12486 q 12487 } 12488 /^X\(\/\/\)[^/].*/{ 12489 s//\1/ 12490 q 12491 } 12492 /^X\(\/\/\)$/{ 12493 s//\1/ 12494 q 12495 } 12496 /^X\(\/\).*/{ 12497 s//\1/ 12498 q 12499 } 12500 s/.*/./; q'`/stamp-h$_am_stamp_count 12501 ;; 12502 12503 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12504$as_echo "$as_me: executing $ac_file commands" >&6;} 12505 ;; 12506 esac 12507 12508 12509 case $ac_file$ac_mode in 12510 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12511 # Older Autoconf quotes --file arguments for eval, but not when files 12512 # are listed without --file. Let's play safe and only enable the eval 12513 # if we detect the quoting. 12514 case $CONFIG_FILES in 12515 *\'*) eval set x "$CONFIG_FILES" ;; 12516 *) set x $CONFIG_FILES ;; 12517 esac 12518 shift 12519 for mf 12520 do 12521 # Strip MF so we end up with the name of the file. 12522 mf=`echo "$mf" | sed -e 's/:.*$//'` 12523 # Check whether this is an Automake generated Makefile or not. 12524 # We used to match only the files named 'Makefile.in', but 12525 # some people rename them; so instead we look at the file content. 12526 # Grep'ing the first line is not enough: some people post-process 12527 # each Makefile.in and add a new line on top of each file to say so. 12528 # Grep'ing the whole file is not good either: AIX grep has a line 12529 # limit of 2048, but all sed's we know have understand at least 4000. 12530 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12531 dirpart=`$as_dirname -- "$mf" || 12532$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12533 X"$mf" : 'X\(//\)[^/]' \| \ 12534 X"$mf" : 'X\(//\)$' \| \ 12535 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12536$as_echo X"$mf" | 12537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12538 s//\1/ 12539 q 12540 } 12541 /^X\(\/\/\)[^/].*/{ 12542 s//\1/ 12543 q 12544 } 12545 /^X\(\/\/\)$/{ 12546 s//\1/ 12547 q 12548 } 12549 /^X\(\/\).*/{ 12550 s//\1/ 12551 q 12552 } 12553 s/.*/./; q'` 12554 else 12555 continue 12556 fi 12557 # Extract the definition of DEPDIR, am__include, and am__quote 12558 # from the Makefile without running 'make'. 12559 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12560 test -z "$DEPDIR" && continue 12561 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12562 test -z "$am__include" && continue 12563 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12564 # Find all dependency output files, they are included files with 12565 # $(DEPDIR) in their names. We invoke sed twice because it is the 12566 # simplest approach to changing $(DEPDIR) to its actual value in the 12567 # expansion. 12568 for file in `sed -n " 12569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12571 # Make sure the directory exists. 12572 test -f "$dirpart/$file" && continue 12573 fdir=`$as_dirname -- "$file" || 12574$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12575 X"$file" : 'X\(//\)[^/]' \| \ 12576 X"$file" : 'X\(//\)$' \| \ 12577 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12578$as_echo X"$file" | 12579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12580 s//\1/ 12581 q 12582 } 12583 /^X\(\/\/\)[^/].*/{ 12584 s//\1/ 12585 q 12586 } 12587 /^X\(\/\/\)$/{ 12588 s//\1/ 12589 q 12590 } 12591 /^X\(\/\).*/{ 12592 s//\1/ 12593 q 12594 } 12595 s/.*/./; q'` 12596 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12597 # echo "creating $dirpart/$file" 12598 echo '# dummy' > "$dirpart/$file" 12599 done 12600 done 12601} 12602 ;; 12603 12604 esac 12605done # for ac_tag 12606 12607 12608as_fn_exit 0 12609_ACEOF 12610ac_clean_files=$ac_clean_files_save 12611 12612test $ac_write_fail = 0 || 12613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12614 12615 12616# configure is writing to config.log, and then calls config.status. 12617# config.status does its own redirection, appending to config.log. 12618# Unfortunately, on DOS this fails, as config.log is still kept open 12619# by configure, so config.status won't be able to write to it; its 12620# output is simply discarded. So we exec the FD to /dev/null, 12621# effectively closing config.log, so it can be properly (re)opened and 12622# appended to by config.status. When coming back to configure, we 12623# need to make the FD available again. 12624if test "$no_create" != yes; then 12625 ac_cs_success=: 12626 ac_config_status_args= 12627 test "$silent" = yes && 12628 ac_config_status_args="$ac_config_status_args --quiet" 12629 exec 5>/dev/null 12630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12631 exec 5>>config.log 12632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12633 # would make configure fail if this is the last instruction. 12634 $ac_cs_success || as_fn_exit 1 12635fi 12636if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12638$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12639fi 12640 12641