configure revision c175af84
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xwininfo 1.1.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/app/xwininfo/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xwininfo' 583PACKAGE_TARNAME='xwininfo' 584PACKAGE_VERSION='1.1.5' 585PACKAGE_STRING='xwininfo 1.1.5' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwininfo/issues' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629XLIB_LIBS 630XLIB_CFLAGS 631XWININFO_LIBS 632XWININFO_CFLAGS 633LIBOBJS 634MAN_SUBSTS 635XORG_MAN_PAGE 636ADMIN_MAN_DIR 637DRIVER_MAN_DIR 638MISC_MAN_DIR 639FILE_MAN_DIR 640LIB_MAN_DIR 641APP_MAN_DIR 642ADMIN_MAN_SUFFIX 643DRIVER_MAN_SUFFIX 644MISC_MAN_SUFFIX 645FILE_MAN_SUFFIX 646LIB_MAN_SUFFIX 647APP_MAN_SUFFIX 648SED 649INSTALL_CMD 650PKG_CONFIG_LIBDIR 651PKG_CONFIG_PATH 652PKG_CONFIG 653CHANGELOG_CMD 654STRICT_CFLAGS 655CWARNFLAGS 656BASE_CFLAGS 657LTLIBICONV 658LIBICONV 659host_os 660host_vendor 661host_cpu 662host 663build_os 664build_vendor 665build_cpu 666build 667AM_BACKSLASH 668AM_DEFAULT_VERBOSITY 669AM_DEFAULT_V 670AM_V 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681am__untar 682am__tar 683AMTAR 684am__leading_dot 685SET_MAKE 686AWK 687mkdir_p 688MKDIR_P 689INSTALL_STRIP_PROGRAM 690STRIP 691install_sh 692MAKEINFO 693AUTOHEADER 694AUTOMAKE 695AUTOCONF 696ACLOCAL 697VERSION 698PACKAGE 699CYGPATH_W 700am__isrc 701INSTALL_DATA 702INSTALL_SCRIPT 703INSTALL_PROGRAM 704EGREP 705GREP 706CPP 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='' 753ac_user_opts=' 754enable_option_checking 755enable_dependency_tracking 756enable_silent_rules 757with_gnu_ld 758enable_rpath 759with_libiconv_prefix 760enable_selective_werror 761enable_strict_compilation 762with_xcb_icccm 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 776XWININFO_CFLAGS 777XWININFO_LIBS 778XLIB_CFLAGS 779XLIB_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 xwininfo 1.1.5 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/xwininfo] 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 xwininfo 1.1.5:";; 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-rpath do not hardcode runtime library paths 1405 --disable-selective-werror 1406 Turn off selective compiler errors. (default: 1407 enabled) 1408 --enable-strict-compilation 1409 Enable all warnings from compiler and make them 1410 errors (default: disabled) 1411 1412Optional Packages: 1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1416 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1417 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1418 --with-xcb-icccm use xcb-icccm (default: no) 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 XWININFO_CFLAGS 1435 C compiler flags for XWININFO, overriding pkg-config 1436 XWININFO_LIBS 1437 linker flags for XWININFO, overriding pkg-config 1438 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 1439 XLIB_LIBS linker flags for XLIB, overriding pkg-config 1440 1441Use these variables to override the choices made by `configure' or to help 1442it to find libraries and programs with nonstandard names/locations. 1443 1444Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/issues>. 1445_ACEOF 1446ac_status=$? 1447fi 1448 1449if test "$ac_init_help" = "recursive"; then 1450 # If there are subdirs, report their specific --help. 1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1452 test -d "$ac_dir" || 1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1454 continue 1455 ac_builddir=. 1456 1457case "$ac_dir" in 1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459*) 1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1461 # A ".." for each directory in $ac_dir_suffix. 1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1463 case $ac_top_builddir_sub in 1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1466 esac ;; 1467esac 1468ac_abs_top_builddir=$ac_pwd 1469ac_abs_builddir=$ac_pwd$ac_dir_suffix 1470# for backward compatibility: 1471ac_top_builddir=$ac_top_build_prefix 1472 1473case $srcdir in 1474 .) # We are building in place. 1475 ac_srcdir=. 1476 ac_top_srcdir=$ac_top_builddir_sub 1477 ac_abs_top_srcdir=$ac_pwd ;; 1478 [\\/]* | ?:[\\/]* ) # Absolute name. 1479 ac_srcdir=$srcdir$ac_dir_suffix; 1480 ac_top_srcdir=$srcdir 1481 ac_abs_top_srcdir=$srcdir ;; 1482 *) # Relative name. 1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1484 ac_top_srcdir=$ac_top_build_prefix$srcdir 1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1486esac 1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1488 1489 cd "$ac_dir" || { ac_status=$?; continue; } 1490 # Check for guested configure. 1491 if test -f "$ac_srcdir/configure.gnu"; then 1492 echo && 1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1494 elif test -f "$ac_srcdir/configure"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure" --help=recursive 1497 else 1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1499 fi || ac_status=$? 1500 cd "$ac_pwd" || { ac_status=$?; break; } 1501 done 1502fi 1503 1504test -n "$ac_init_help" && exit $ac_status 1505if $ac_init_version; then 1506 cat <<\_ACEOF 1507xwininfo configure 1.1.5 1508generated by GNU Autoconf 2.69 1509 1510Copyright (C) 2012 Free Software Foundation, Inc. 1511This configure script is free software; the Free Software Foundation 1512gives unlimited permission to copy, distribute and modify it. 1513_ACEOF 1514 exit 1515fi 1516 1517## ------------------------ ## 1518## Autoconf initialization. ## 1519## ------------------------ ## 1520 1521# ac_fn_c_try_compile LINENO 1522# -------------------------- 1523# Try to compile conftest.$ac_ext, and return whether this succeeded. 1524ac_fn_c_try_compile () 1525{ 1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1527 rm -f conftest.$ac_objext 1528 if { { ac_try="$ac_compile" 1529case "(($ac_try" in 1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1531 *) ac_try_echo=$ac_try;; 1532esac 1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1534$as_echo "$ac_try_echo"; } >&5 1535 (eval "$ac_compile") 2>conftest.err 1536 ac_status=$? 1537 if test -s conftest.err; then 1538 grep -v '^ *+' conftest.err >conftest.er1 1539 cat conftest.er1 >&5 1540 mv -f conftest.er1 conftest.err 1541 fi 1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1543 test $ac_status = 0; } && { 1544 test -z "$ac_c_werror_flag" || 1545 test ! -s conftest.err 1546 } && test -s conftest.$ac_objext; then : 1547 ac_retval=0 1548else 1549 $as_echo "$as_me: failed program was:" >&5 1550sed 's/^/| /' conftest.$ac_ext >&5 1551 1552 ac_retval=1 1553fi 1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1555 as_fn_set_status $ac_retval 1556 1557} # ac_fn_c_try_compile 1558 1559# ac_fn_c_try_cpp LINENO 1560# ---------------------- 1561# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1562ac_fn_c_try_cpp () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 if { { ac_try="$ac_cpp conftest.$ac_ext" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571$as_echo "$ac_try_echo"; } >&5 1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } > conftest.i && { 1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 }; then : 1584 ac_retval=0 1585else 1586 $as_echo "$as_me: failed program was:" >&5 1587sed 's/^/| /' conftest.$ac_ext >&5 1588 1589 ac_retval=1 1590fi 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_c_try_cpp 1595 1596# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1597# ------------------------------------------------------- 1598# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1599# the include files in INCLUDES and setting the cache variable VAR 1600# accordingly. 1601ac_fn_c_check_header_mongrel () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 if eval \${$3+:} false; then : 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1606$as_echo_n "checking for $2... " >&6; } 1607if eval \${$3+:} false; then : 1608 $as_echo_n "(cached) " >&6 1609fi 1610eval ac_res=\$$3 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1612$as_echo "$ac_res" >&6; } 1613else 1614 # Is the header compilable? 1615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1616$as_echo_n "checking $2 usability... " >&6; } 1617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618/* end confdefs.h. */ 1619$4 1620#include <$2> 1621_ACEOF 1622if ac_fn_c_try_compile "$LINENO"; then : 1623 ac_header_compiler=yes 1624else 1625 ac_header_compiler=no 1626fi 1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1629$as_echo "$ac_header_compiler" >&6; } 1630 1631# Is the header present? 1632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1633$as_echo_n "checking $2 presence... " >&6; } 1634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636#include <$2> 1637_ACEOF 1638if ac_fn_c_try_cpp "$LINENO"; then : 1639 ac_header_preproc=yes 1640else 1641 ac_header_preproc=no 1642fi 1643rm -f conftest.err conftest.i conftest.$ac_ext 1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1645$as_echo "$ac_header_preproc" >&6; } 1646 1647# So? What about this header? 1648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1649 yes:no: ) 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1651$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1654 ;; 1655 no:yes:* ) 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1657$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1659$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1661$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1663$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1666( $as_echo "## ---------------------------------------------------------------------- ## 1667## Report this to https://gitlab.freedesktop.org/xorg/app/xwininfo/issues ## 1668## ---------------------------------------------------------------------- ##" 1669 ) | sed "s/^/$as_me: WARNING: /" >&2 1670 ;; 1671esac 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1673$as_echo_n "checking for $2... " >&6; } 1674if eval \${$3+:} false; then : 1675 $as_echo_n "(cached) " >&6 1676else 1677 eval "$3=\$ac_header_compiler" 1678fi 1679eval ac_res=\$$3 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1681$as_echo "$ac_res" >&6; } 1682fi 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685} # ac_fn_c_check_header_mongrel 1686 1687# ac_fn_c_try_run LINENO 1688# ---------------------- 1689# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1690# that executables *can* be run. 1691ac_fn_c_try_run () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 if { { ac_try="$ac_link" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_link") 2>&5 1702 ac_status=$? 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1705 { { case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_try") 2>&5 1712 ac_status=$? 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; }; }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: program exited with status $ac_status" >&5 1718 $as_echo "$as_me: failed program was:" >&5 1719sed 's/^/| /' conftest.$ac_ext >&5 1720 1721 ac_retval=$ac_status 1722fi 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 as_fn_set_status $ac_retval 1726 1727} # ac_fn_c_try_run 1728 1729# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1730# ------------------------------------------------------- 1731# Tests whether HEADER exists and can be compiled using the include files in 1732# INCLUDES, setting the cache variable VAR accordingly. 1733ac_fn_c_check_header_compile () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737$as_echo_n "checking for $2... " >&6; } 1738if eval \${$3+:} false; then : 1739 $as_echo_n "(cached) " >&6 1740else 1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742/* end confdefs.h. */ 1743$4 1744#include <$2> 1745_ACEOF 1746if ac_fn_c_try_compile "$LINENO"; then : 1747 eval "$3=yes" 1748else 1749 eval "$3=no" 1750fi 1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1752fi 1753eval ac_res=\$$3 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1755$as_echo "$ac_res" >&6; } 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 1758} # ac_fn_c_check_header_compile 1759 1760# ac_fn_c_try_link LINENO 1761# ----------------------- 1762# Try to link conftest.$ac_ext, and return whether this succeeded. 1763ac_fn_c_try_link () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 rm -f conftest.$ac_objext conftest$ac_exeext 1767 if { { ac_try="$ac_link" 1768case "(($ac_try" in 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1770 *) ac_try_echo=$ac_try;; 1771esac 1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1773$as_echo "$ac_try_echo"; } >&5 1774 (eval "$ac_link") 2>conftest.err 1775 ac_status=$? 1776 if test -s conftest.err; then 1777 grep -v '^ *+' conftest.err >conftest.er1 1778 cat conftest.er1 >&5 1779 mv -f conftest.er1 conftest.err 1780 fi 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; } && { 1783 test -z "$ac_c_werror_flag" || 1784 test ! -s conftest.err 1785 } && test -s conftest$ac_exeext && { 1786 test "$cross_compiling" = yes || 1787 test -x conftest$ac_exeext 1788 }; then : 1789 ac_retval=0 1790else 1791 $as_echo "$as_me: failed program was:" >&5 1792sed 's/^/| /' conftest.$ac_ext >&5 1793 1794 ac_retval=1 1795fi 1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1798 # interfere with the next link command; also delete a directory that is 1799 # left behind by Apple's compiler. We do this before executing the actions. 1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 as_fn_set_status $ac_retval 1803 1804} # ac_fn_c_try_link 1805 1806# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1807# --------------------------------------------- 1808# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1809# accordingly. 1810ac_fn_c_check_decl () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 as_decl_name=`echo $2|sed 's/ *(.*//'` 1814 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1816$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819else 1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1821/* end confdefs.h. */ 1822$4 1823int 1824main () 1825{ 1826#ifndef $as_decl_name 1827#ifdef __cplusplus 1828 (void) $as_decl_use; 1829#else 1830 (void) $as_decl_name; 1831#endif 1832#endif 1833 1834 ; 1835 return 0; 1836} 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 eval "$3=yes" 1840else 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850} # ac_fn_c_check_decl 1851 1852# ac_fn_c_check_func LINENO FUNC VAR 1853# ---------------------------------- 1854# Tests whether FUNC exists, setting the cache variable VAR accordingly 1855ac_fn_c_check_func () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if eval \${$3+:} false; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1867#define $2 innocuous_$2 1868 1869/* System header to define __stub macros and hopefully few prototypes, 1870 which can conflict with char $2 (); below. 1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1872 <limits.h> exists even on freestanding compilers. */ 1873 1874#ifdef __STDC__ 1875# include <limits.h> 1876#else 1877# include <assert.h> 1878#endif 1879 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main () 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO"; then : 1905 eval "$3=yes" 1906else 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 1917} # ac_fn_c_check_func 1918cat >config.log <<_ACEOF 1919This file contains any messages produced by compilers while 1920running configure, to aid debugging if configure makes a mistake. 1921 1922It was created by xwininfo $as_me 1.1.5, which was 1923generated by GNU Autoconf 2.69. Invocation command line was 1924 1925 $ $0 $@ 1926 1927_ACEOF 1928exec 5>>config.log 1929{ 1930cat <<_ASUNAME 1931## --------- ## 1932## Platform. ## 1933## --------- ## 1934 1935hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1936uname -m = `(uname -m) 2>/dev/null || echo unknown` 1937uname -r = `(uname -r) 2>/dev/null || echo unknown` 1938uname -s = `(uname -s) 2>/dev/null || echo unknown` 1939uname -v = `(uname -v) 2>/dev/null || echo unknown` 1940 1941/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1942/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1943 1944/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1945/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1946/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1947/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1948/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1949/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1950/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1951 1952_ASUNAME 1953 1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1955for as_dir in $PATH 1956do 1957 IFS=$as_save_IFS 1958 test -z "$as_dir" && as_dir=. 1959 $as_echo "PATH: $as_dir" 1960 done 1961IFS=$as_save_IFS 1962 1963} >&5 1964 1965cat >&5 <<_ACEOF 1966 1967 1968## ----------- ## 1969## Core tests. ## 1970## ----------- ## 1971 1972_ACEOF 1973 1974 1975# Keep a trace of the command line. 1976# Strip out --no-create and --no-recursion so they do not pile up. 1977# Strip out --silent because we don't want to record it for future runs. 1978# Also quote any args containing shell meta-characters. 1979# Make two passes to allow for proper duplicate-argument suppression. 1980ac_configure_args= 1981ac_configure_args0= 1982ac_configure_args1= 1983ac_must_keep_next=false 1984for ac_pass in 1 2 1985do 1986 for ac_arg 1987 do 1988 case $ac_arg in 1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1991 | -silent | --silent | --silen | --sile | --sil) 1992 continue ;; 1993 *\'*) 1994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1995 esac 1996 case $ac_pass in 1997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1998 2) 1999 as_fn_append ac_configure_args1 " '$ac_arg'" 2000 if test $ac_must_keep_next = true; then 2001 ac_must_keep_next=false # Got value, back to normal. 2002 else 2003 case $ac_arg in 2004 *=* | --config-cache | -C | -disable-* | --disable-* \ 2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2007 | -with-* | --with-* | -without-* | --without-* | --x) 2008 case "$ac_configure_args0 " in 2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2010 esac 2011 ;; 2012 -* ) ac_must_keep_next=true ;; 2013 esac 2014 fi 2015 as_fn_append ac_configure_args " '$ac_arg'" 2016 ;; 2017 esac 2018 done 2019done 2020{ ac_configure_args0=; unset ac_configure_args0;} 2021{ ac_configure_args1=; unset ac_configure_args1;} 2022 2023# When interrupted or exit'd, cleanup temporary files, and complete 2024# config.log. We remove comments because anyway the quotes in there 2025# would cause problems or look ugly. 2026# WARNING: Use '\'' to represent an apostrophe within the trap. 2027# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2028trap 'exit_status=$? 2029 # Save into config.log some information that might help in debugging. 2030 { 2031 echo 2032 2033 $as_echo "## ---------------- ## 2034## Cache variables. ## 2035## ---------------- ##" 2036 echo 2037 # The following way of writing the cache mishandles newlines in values, 2038( 2039 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2040 eval ac_val=\$$ac_var 2041 case $ac_val in #( 2042 *${as_nl}*) 2043 case $ac_var in #( 2044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2046 esac 2047 case $ac_var in #( 2048 _ | IFS | as_nl) ;; #( 2049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2050 *) { eval $ac_var=; unset $ac_var;} ;; 2051 esac ;; 2052 esac 2053 done 2054 (set) 2>&1 | 2055 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2056 *${as_nl}ac_space=\ *) 2057 sed -n \ 2058 "s/'\''/'\''\\\\'\'''\''/g; 2059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2060 ;; #( 2061 *) 2062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2063 ;; 2064 esac | 2065 sort 2066) 2067 echo 2068 2069 $as_echo "## ----------------- ## 2070## Output variables. ## 2071## ----------------- ##" 2072 echo 2073 for ac_var in $ac_subst_vars 2074 do 2075 eval ac_val=\$$ac_var 2076 case $ac_val in 2077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2078 esac 2079 $as_echo "$ac_var='\''$ac_val'\''" 2080 done | sort 2081 echo 2082 2083 if test -n "$ac_subst_files"; then 2084 $as_echo "## ------------------- ## 2085## File substitutions. ## 2086## ------------------- ##" 2087 echo 2088 for ac_var in $ac_subst_files 2089 do 2090 eval ac_val=\$$ac_var 2091 case $ac_val in 2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2093 esac 2094 $as_echo "$ac_var='\''$ac_val'\''" 2095 done | sort 2096 echo 2097 fi 2098 2099 if test -s confdefs.h; then 2100 $as_echo "## ----------- ## 2101## confdefs.h. ## 2102## ----------- ##" 2103 echo 2104 cat confdefs.h 2105 echo 2106 fi 2107 test "$ac_signal" != 0 && 2108 $as_echo "$as_me: caught signal $ac_signal" 2109 $as_echo "$as_me: exit $exit_status" 2110 } >&5 2111 rm -f core *.core core.conftest.* && 2112 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2113 exit $exit_status 2114' 0 2115for ac_signal in 1 2 13 15; do 2116 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2117done 2118ac_signal=0 2119 2120# confdefs.h avoids OS command line length limits that DEFS can exceed. 2121rm -f -r conftest* confdefs.h 2122 2123$as_echo "/* confdefs.h */" > confdefs.h 2124 2125# Predefined preprocessor variables. 2126 2127cat >>confdefs.h <<_ACEOF 2128#define PACKAGE_NAME "$PACKAGE_NAME" 2129_ACEOF 2130 2131cat >>confdefs.h <<_ACEOF 2132#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2133_ACEOF 2134 2135cat >>confdefs.h <<_ACEOF 2136#define PACKAGE_VERSION "$PACKAGE_VERSION" 2137_ACEOF 2138 2139cat >>confdefs.h <<_ACEOF 2140#define PACKAGE_STRING "$PACKAGE_STRING" 2141_ACEOF 2142 2143cat >>confdefs.h <<_ACEOF 2144#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2145_ACEOF 2146 2147cat >>confdefs.h <<_ACEOF 2148#define PACKAGE_URL "$PACKAGE_URL" 2149_ACEOF 2150 2151 2152# Let the site file select an alternate cache file if it wants to. 2153# Prefer an explicitly selected file to automatically selected ones. 2154ac_site_file1=NONE 2155ac_site_file2=NONE 2156if test -n "$CONFIG_SITE"; then 2157 # We do not want a PATH search for config.site. 2158 case $CONFIG_SITE in #(( 2159 -*) ac_site_file1=./$CONFIG_SITE;; 2160 */*) ac_site_file1=$CONFIG_SITE;; 2161 *) ac_site_file1=./$CONFIG_SITE;; 2162 esac 2163elif test "x$prefix" != xNONE; then 2164 ac_site_file1=$prefix/share/config.site 2165 ac_site_file2=$prefix/etc/config.site 2166else 2167 ac_site_file1=$ac_default_prefix/share/config.site 2168 ac_site_file2=$ac_default_prefix/etc/config.site 2169fi 2170for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2171do 2172 test "x$ac_site_file" = xNONE && continue 2173 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2175$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2176 sed 's/^/| /' "$ac_site_file" >&5 2177 . "$ac_site_file" \ 2178 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2180as_fn_error $? "failed to load site script $ac_site_file 2181See \`config.log' for more details" "$LINENO" 5; } 2182 fi 2183done 2184 2185if test -r "$cache_file"; then 2186 # Some versions of bash will fail to source /dev/null (special files 2187 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2188 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2190$as_echo "$as_me: loading cache $cache_file" >&6;} 2191 case $cache_file in 2192 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2193 *) . "./$cache_file";; 2194 esac 2195 fi 2196else 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2198$as_echo "$as_me: creating cache $cache_file" >&6;} 2199 >$cache_file 2200fi 2201 2202# Check that the precious variables saved in the cache have kept the same 2203# value. 2204ac_cache_corrupted=false 2205for ac_var in $ac_precious_vars; do 2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2207 eval ac_new_set=\$ac_env_${ac_var}_set 2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2209 eval ac_new_val=\$ac_env_${ac_var}_value 2210 case $ac_old_set,$ac_new_set in 2211 set,) 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2213$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2214 ac_cache_corrupted=: ;; 2215 ,set) 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2217$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2218 ac_cache_corrupted=: ;; 2219 ,);; 2220 *) 2221 if test "x$ac_old_val" != "x$ac_new_val"; then 2222 # differences in whitespace do not lead to failure. 2223 ac_old_val_w=`echo x $ac_old_val` 2224 ac_new_val_w=`echo x $ac_new_val` 2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2227$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2228 ac_cache_corrupted=: 2229 else 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2231$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2232 eval $ac_var=\$ac_old_val 2233 fi 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2235$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2237$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2238 fi;; 2239 esac 2240 # Pass precious variables to config.status. 2241 if test "$ac_new_set" = set; then 2242 case $ac_new_val in 2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2244 *) ac_arg=$ac_var=$ac_new_val ;; 2245 esac 2246 case " $ac_configure_args " in 2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2249 esac 2250 fi 2251done 2252if $ac_cache_corrupted; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2256$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2257 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2258fi 2259## -------------------- ## 2260## Main body of script. ## 2261## -------------------- ## 2262 2263ac_ext=c 2264ac_cpp='$CPP $CPPFLAGS' 2265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2267ac_compiler_gnu=$ac_cv_c_compiler_gnu 2268 2269 2270 2271ac_config_headers="$ac_config_headers config.h" 2272 2273ac_aux_dir= 2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2275 if test -f "$ac_dir/install-sh"; then 2276 ac_aux_dir=$ac_dir 2277 ac_install_sh="$ac_aux_dir/install-sh -c" 2278 break 2279 elif test -f "$ac_dir/install.sh"; then 2280 ac_aux_dir=$ac_dir 2281 ac_install_sh="$ac_aux_dir/install.sh -c" 2282 break 2283 elif test -f "$ac_dir/shtool"; then 2284 ac_aux_dir=$ac_dir 2285 ac_install_sh="$ac_aux_dir/shtool install -c" 2286 break 2287 fi 2288done 2289if test -z "$ac_aux_dir"; then 2290 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2291fi 2292 2293# These three variables are undocumented and unsupported, 2294# and are intended to be withdrawn in a future Autoconf release. 2295# They can cause serious problems if a builder's source tree is in a directory 2296# whose full name contains unusual characters. 2297ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2298ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2299ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2300 2301 2302# Expand $ac_aux_dir to an absolute path. 2303am_aux_dir=`cd "$ac_aux_dir" && pwd` 2304 2305ac_ext=c 2306ac_cpp='$CPP $CPPFLAGS' 2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2309ac_compiler_gnu=$ac_cv_c_compiler_gnu 2310if test -n "$ac_tool_prefix"; then 2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2312set dummy ${ac_tool_prefix}gcc; ac_word=$2 2313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2314$as_echo_n "checking for $ac_word... " >&6; } 2315if ${ac_cv_prog_CC+:} false; then : 2316 $as_echo_n "(cached) " >&6 2317else 2318 if test -n "$CC"; then 2319 ac_cv_prog_CC="$CC" # Let the user override the test. 2320else 2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2322for as_dir in $PATH 2323do 2324 IFS=$as_save_IFS 2325 test -z "$as_dir" && as_dir=. 2326 for ac_exec_ext in '' $ac_executable_extensions; do 2327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2328 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2330 break 2 2331 fi 2332done 2333 done 2334IFS=$as_save_IFS 2335 2336fi 2337fi 2338CC=$ac_cv_prog_CC 2339if test -n "$CC"; then 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2341$as_echo "$CC" >&6; } 2342else 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2344$as_echo "no" >&6; } 2345fi 2346 2347 2348fi 2349if test -z "$ac_cv_prog_CC"; then 2350 ac_ct_CC=$CC 2351 # Extract the first word of "gcc", so it can be a program name with args. 2352set dummy gcc; ac_word=$2 2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2354$as_echo_n "checking for $ac_word... " >&6; } 2355if ${ac_cv_prog_ac_ct_CC+:} false; then : 2356 $as_echo_n "(cached) " >&6 2357else 2358 if test -n "$ac_ct_CC"; then 2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2360else 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 for ac_exec_ext in '' $ac_executable_extensions; do 2367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2368 ac_cv_prog_ac_ct_CC="gcc" 2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2370 break 2 2371 fi 2372done 2373 done 2374IFS=$as_save_IFS 2375 2376fi 2377fi 2378ac_ct_CC=$ac_cv_prog_ac_ct_CC 2379if test -n "$ac_ct_CC"; then 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2381$as_echo "$ac_ct_CC" >&6; } 2382else 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2384$as_echo "no" >&6; } 2385fi 2386 2387 if test "x$ac_ct_CC" = x; then 2388 CC="" 2389 else 2390 case $cross_compiling:$ac_tool_warned in 2391yes:) 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2394ac_tool_warned=yes ;; 2395esac 2396 CC=$ac_ct_CC 2397 fi 2398else 2399 CC="$ac_cv_prog_CC" 2400fi 2401 2402if test -z "$CC"; then 2403 if test -n "$ac_tool_prefix"; then 2404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2405set dummy ${ac_tool_prefix}cc; ac_word=$2 2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2407$as_echo_n "checking for $ac_word... " >&6; } 2408if ${ac_cv_prog_CC+:} false; then : 2409 $as_echo_n "(cached) " >&6 2410else 2411 if test -n "$CC"; then 2412 ac_cv_prog_CC="$CC" # Let the user override the test. 2413else 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2421 ac_cv_prog_CC="${ac_tool_prefix}cc" 2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2423 break 2 2424 fi 2425done 2426 done 2427IFS=$as_save_IFS 2428 2429fi 2430fi 2431CC=$ac_cv_prog_CC 2432if test -n "$CC"; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2434$as_echo "$CC" >&6; } 2435else 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2437$as_echo "no" >&6; } 2438fi 2439 2440 2441 fi 2442fi 2443if test -z "$CC"; then 2444 # Extract the first word of "cc", so it can be a program name with args. 2445set dummy cc; ac_word=$2 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2447$as_echo_n "checking for $ac_word... " >&6; } 2448if ${ac_cv_prog_CC+:} false; then : 2449 $as_echo_n "(cached) " >&6 2450else 2451 if test -n "$CC"; then 2452 ac_cv_prog_CC="$CC" # Let the user override the test. 2453else 2454 ac_prog_rejected=no 2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456for as_dir in $PATH 2457do 2458 IFS=$as_save_IFS 2459 test -z "$as_dir" && as_dir=. 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2463 ac_prog_rejected=yes 2464 continue 2465 fi 2466 ac_cv_prog_CC="cc" 2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2468 break 2 2469 fi 2470done 2471 done 2472IFS=$as_save_IFS 2473 2474if test $ac_prog_rejected = yes; then 2475 # We found a bogon in the path, so make sure we never use it. 2476 set dummy $ac_cv_prog_CC 2477 shift 2478 if test $# != 0; then 2479 # We chose a different compiler from the bogus one. 2480 # However, it has the same basename, so the bogon will be chosen 2481 # first if we set CC to just the basename; use the full file name. 2482 shift 2483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2484 fi 2485fi 2486fi 2487fi 2488CC=$ac_cv_prog_CC 2489if test -n "$CC"; then 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2491$as_echo "$CC" >&6; } 2492else 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2494$as_echo "no" >&6; } 2495fi 2496 2497 2498fi 2499if test -z "$CC"; then 2500 if test -n "$ac_tool_prefix"; then 2501 for ac_prog in cl.exe 2502 do 2503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2504set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2506$as_echo_n "checking for $ac_word... " >&6; } 2507if ${ac_cv_prog_CC+:} false; then : 2508 $as_echo_n "(cached) " >&6 2509else 2510 if test -n "$CC"; then 2511 ac_cv_prog_CC="$CC" # Let the user override the test. 2512else 2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 for ac_exec_ext in '' $ac_executable_extensions; do 2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2522 break 2 2523 fi 2524done 2525 done 2526IFS=$as_save_IFS 2527 2528fi 2529fi 2530CC=$ac_cv_prog_CC 2531if test -n "$CC"; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2533$as_echo "$CC" >&6; } 2534else 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2536$as_echo "no" >&6; } 2537fi 2538 2539 2540 test -n "$CC" && break 2541 done 2542fi 2543if test -z "$CC"; then 2544 ac_ct_CC=$CC 2545 for ac_prog in cl.exe 2546do 2547 # Extract the first word of "$ac_prog", so it can be a program name with args. 2548set dummy $ac_prog; ac_word=$2 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2550$as_echo_n "checking for $ac_word... " >&6; } 2551if ${ac_cv_prog_ac_ct_CC+:} false; then : 2552 $as_echo_n "(cached) " >&6 2553else 2554 if test -n "$ac_ct_CC"; then 2555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2556else 2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2558for as_dir in $PATH 2559do 2560 IFS=$as_save_IFS 2561 test -z "$as_dir" && as_dir=. 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2564 ac_cv_prog_ac_ct_CC="$ac_prog" 2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2566 break 2 2567 fi 2568done 2569 done 2570IFS=$as_save_IFS 2571 2572fi 2573fi 2574ac_ct_CC=$ac_cv_prog_ac_ct_CC 2575if test -n "$ac_ct_CC"; then 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2577$as_echo "$ac_ct_CC" >&6; } 2578else 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2580$as_echo "no" >&6; } 2581fi 2582 2583 2584 test -n "$ac_ct_CC" && break 2585done 2586 2587 if test "x$ac_ct_CC" = x; then 2588 CC="" 2589 else 2590 case $cross_compiling:$ac_tool_warned in 2591yes:) 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2594ac_tool_warned=yes ;; 2595esac 2596 CC=$ac_ct_CC 2597 fi 2598fi 2599 2600fi 2601 2602 2603test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2605as_fn_error $? "no acceptable C compiler found in \$PATH 2606See \`config.log' for more details" "$LINENO" 5; } 2607 2608# Provide some information about the compiler. 2609$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2610set X $ac_compile 2611ac_compiler=$2 2612for ac_option in --version -v -V -qversion; do 2613 { { ac_try="$ac_compiler $ac_option >&5" 2614case "(($ac_try" in 2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2616 *) ac_try_echo=$ac_try;; 2617esac 2618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2619$as_echo "$ac_try_echo"; } >&5 2620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2621 ac_status=$? 2622 if test -s conftest.err; then 2623 sed '10a\ 2624... rest of stderr output deleted ... 2625 10q' conftest.err >conftest.er1 2626 cat conftest.er1 >&5 2627 fi 2628 rm -f conftest.er1 conftest.err 2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2630 test $ac_status = 0; } 2631done 2632 2633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2634/* end confdefs.h. */ 2635 2636int 2637main () 2638{ 2639 2640 ; 2641 return 0; 2642} 2643_ACEOF 2644ac_clean_files_save=$ac_clean_files 2645ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2646# Try to create an executable without -o first, disregard a.out. 2647# It will help us diagnose broken compilers, and finding out an intuition 2648# of exeext. 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2650$as_echo_n "checking whether the C compiler works... " >&6; } 2651ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2652 2653# The possible output files: 2654ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2655 2656ac_rmfiles= 2657for ac_file in $ac_files 2658do 2659 case $ac_file in 2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2661 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2662 esac 2663done 2664rm -f $ac_rmfiles 2665 2666if { { ac_try="$ac_link_default" 2667case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670esac 2671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2672$as_echo "$ac_try_echo"; } >&5 2673 (eval "$ac_link_default") 2>&5 2674 ac_status=$? 2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2676 test $ac_status = 0; }; then : 2677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2678# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2679# in a Makefile. We should not override ac_cv_exeext if it was cached, 2680# so that the user can short-circuit this test for compilers unknown to 2681# Autoconf. 2682for ac_file in $ac_files '' 2683do 2684 test -f "$ac_file" || continue 2685 case $ac_file in 2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2687 ;; 2688 [ab].out ) 2689 # We found the default executable, but exeext='' is most 2690 # certainly right. 2691 break;; 2692 *.* ) 2693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2694 then :; else 2695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2696 fi 2697 # We set ac_cv_exeext here because the later test for it is not 2698 # safe: cross compilers may not add the suffix if given an `-o' 2699 # argument, so we may need to know it at that point already. 2700 # Even if this section looks crufty: it has the advantage of 2701 # actually working. 2702 break;; 2703 * ) 2704 break;; 2705 esac 2706done 2707test "$ac_cv_exeext" = no && ac_cv_exeext= 2708 2709else 2710 ac_file='' 2711fi 2712if test -z "$ac_file"; then : 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715$as_echo "$as_me: failed program was:" >&5 2716sed 's/^/| /' conftest.$ac_ext >&5 2717 2718{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2720as_fn_error 77 "C compiler cannot create executables 2721See \`config.log' for more details" "$LINENO" 5; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2724$as_echo "yes" >&6; } 2725fi 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2727$as_echo_n "checking for C compiler default output file name... " >&6; } 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2729$as_echo "$ac_file" >&6; } 2730ac_exeext=$ac_cv_exeext 2731 2732rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2733ac_clean_files=$ac_clean_files_save 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2735$as_echo_n "checking for suffix of executables... " >&6; } 2736if { { ac_try="$ac_link" 2737case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740esac 2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2742$as_echo "$ac_try_echo"; } >&5 2743 (eval "$ac_link") 2>&5 2744 ac_status=$? 2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2746 test $ac_status = 0; }; then : 2747 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2748# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2749# work properly (i.e., refer to `conftest.exe'), while it won't with 2750# `rm'. 2751for ac_file in conftest.exe conftest conftest.*; do 2752 test -f "$ac_file" || continue 2753 case $ac_file in 2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2756 break;; 2757 * ) break;; 2758 esac 2759done 2760else 2761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2763as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2764See \`config.log' for more details" "$LINENO" 5; } 2765fi 2766rm -f conftest conftest$ac_cv_exeext 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2768$as_echo "$ac_cv_exeext" >&6; } 2769 2770rm -f conftest.$ac_ext 2771EXEEXT=$ac_cv_exeext 2772ac_exeext=$EXEEXT 2773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2774/* end confdefs.h. */ 2775#include <stdio.h> 2776int 2777main () 2778{ 2779FILE *f = fopen ("conftest.out", "w"); 2780 return ferror (f) || fclose (f) != 0; 2781 2782 ; 2783 return 0; 2784} 2785_ACEOF 2786ac_clean_files="$ac_clean_files conftest.out" 2787# Check that the compiler produces executables we can run. If not, either 2788# the compiler is broken, or we cross compile. 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2790$as_echo_n "checking whether we are cross compiling... " >&6; } 2791if test "$cross_compiling" != yes; then 2792 { { ac_try="$ac_link" 2793case "(($ac_try" in 2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2795 *) ac_try_echo=$ac_try;; 2796esac 2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2798$as_echo "$ac_try_echo"; } >&5 2799 (eval "$ac_link") 2>&5 2800 ac_status=$? 2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2802 test $ac_status = 0; } 2803 if { ac_try='./conftest$ac_cv_exeext' 2804 { { case "(($ac_try" in 2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2806 *) ac_try_echo=$ac_try;; 2807esac 2808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2809$as_echo "$ac_try_echo"; } >&5 2810 (eval "$ac_try") 2>&5 2811 ac_status=$? 2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2813 test $ac_status = 0; }; }; then 2814 cross_compiling=no 2815 else 2816 if test "$cross_compiling" = maybe; then 2817 cross_compiling=yes 2818 else 2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2821as_fn_error $? "cannot run C compiled programs. 2822If you meant to cross compile, use \`--host'. 2823See \`config.log' for more details" "$LINENO" 5; } 2824 fi 2825 fi 2826fi 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2828$as_echo "$cross_compiling" >&6; } 2829 2830rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2831ac_clean_files=$ac_clean_files_save 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2833$as_echo_n "checking for suffix of object files... " >&6; } 2834if ${ac_cv_objext+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2838/* end confdefs.h. */ 2839 2840int 2841main () 2842{ 2843 2844 ; 2845 return 0; 2846} 2847_ACEOF 2848rm -f conftest.o conftest.obj 2849if { { ac_try="$ac_compile" 2850case "(($ac_try" in 2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2852 *) ac_try_echo=$ac_try;; 2853esac 2854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2855$as_echo "$ac_try_echo"; } >&5 2856 (eval "$ac_compile") 2>&5 2857 ac_status=$? 2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2859 test $ac_status = 0; }; then : 2860 for ac_file in conftest.o conftest.obj conftest.*; do 2861 test -f "$ac_file" || continue; 2862 case $ac_file in 2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2865 break;; 2866 esac 2867done 2868else 2869 $as_echo "$as_me: failed program was:" >&5 2870sed 's/^/| /' conftest.$ac_ext >&5 2871 2872{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2874as_fn_error $? "cannot compute suffix of object files: cannot compile 2875See \`config.log' for more details" "$LINENO" 5; } 2876fi 2877rm -f conftest.$ac_cv_objext conftest.$ac_ext 2878fi 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2880$as_echo "$ac_cv_objext" >&6; } 2881OBJEXT=$ac_cv_objext 2882ac_objext=$OBJEXT 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2884$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2885if ${ac_cv_c_compiler_gnu+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889/* end confdefs.h. */ 2890 2891int 2892main () 2893{ 2894#ifndef __GNUC__ 2895 choke me 2896#endif 2897 2898 ; 2899 return 0; 2900} 2901_ACEOF 2902if ac_fn_c_try_compile "$LINENO"; then : 2903 ac_compiler_gnu=yes 2904else 2905 ac_compiler_gnu=no 2906fi 2907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2908ac_cv_c_compiler_gnu=$ac_compiler_gnu 2909 2910fi 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2912$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2913if test $ac_compiler_gnu = yes; then 2914 GCC=yes 2915else 2916 GCC= 2917fi 2918ac_test_CFLAGS=${CFLAGS+set} 2919ac_save_CFLAGS=$CFLAGS 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2921$as_echo_n "checking whether $CC accepts -g... " >&6; } 2922if ${ac_cv_prog_cc_g+:} false; then : 2923 $as_echo_n "(cached) " >&6 2924else 2925 ac_save_c_werror_flag=$ac_c_werror_flag 2926 ac_c_werror_flag=yes 2927 ac_cv_prog_cc_g=no 2928 CFLAGS="-g" 2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2930/* end confdefs.h. */ 2931 2932int 2933main () 2934{ 2935 2936 ; 2937 return 0; 2938} 2939_ACEOF 2940if ac_fn_c_try_compile "$LINENO"; then : 2941 ac_cv_prog_cc_g=yes 2942else 2943 CFLAGS="" 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2945/* end confdefs.h. */ 2946 2947int 2948main () 2949{ 2950 2951 ; 2952 return 0; 2953} 2954_ACEOF 2955if ac_fn_c_try_compile "$LINENO"; then : 2956 2957else 2958 ac_c_werror_flag=$ac_save_c_werror_flag 2959 CFLAGS="-g" 2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2961/* end confdefs.h. */ 2962 2963int 2964main () 2965{ 2966 2967 ; 2968 return 0; 2969} 2970_ACEOF 2971if ac_fn_c_try_compile "$LINENO"; then : 2972 ac_cv_prog_cc_g=yes 2973fi 2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2975fi 2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2977fi 2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2979 ac_c_werror_flag=$ac_save_c_werror_flag 2980fi 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2982$as_echo "$ac_cv_prog_cc_g" >&6; } 2983if test "$ac_test_CFLAGS" = set; then 2984 CFLAGS=$ac_save_CFLAGS 2985elif test $ac_cv_prog_cc_g = yes; then 2986 if test "$GCC" = yes; then 2987 CFLAGS="-g -O2" 2988 else 2989 CFLAGS="-g" 2990 fi 2991else 2992 if test "$GCC" = yes; then 2993 CFLAGS="-O2" 2994 else 2995 CFLAGS= 2996 fi 2997fi 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2999$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3000if ${ac_cv_prog_cc_c89+:} false; then : 3001 $as_echo_n "(cached) " >&6 3002else 3003 ac_cv_prog_cc_c89=no 3004ac_save_CC=$CC 3005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3006/* end confdefs.h. */ 3007#include <stdarg.h> 3008#include <stdio.h> 3009struct stat; 3010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3011struct buf { int x; }; 3012FILE * (*rcsopen) (struct buf *, struct stat *, int); 3013static char *e (p, i) 3014 char **p; 3015 int i; 3016{ 3017 return p[i]; 3018} 3019static char *f (char * (*g) (char **, int), char **p, ...) 3020{ 3021 char *s; 3022 va_list v; 3023 va_start (v,p); 3024 s = g (p, va_arg (v,int)); 3025 va_end (v); 3026 return s; 3027} 3028 3029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3030 function prototypes and stuff, but not '\xHH' hex character constants. 3031 These don't provoke an error unfortunately, instead are silently treated 3032 as 'x'. The following induces an error, until -std is added to get 3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3034 array size at least. It's necessary to write '\x00'==0 to get something 3035 that's true only with -std. */ 3036int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3037 3038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3039 inside strings and character constants. */ 3040#define FOO(x) 'x' 3041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3042 3043int test (int i, double x); 3044struct s1 {int (*f) (int a);}; 3045struct s2 {int (*f) (double a);}; 3046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3047int argc; 3048char **argv; 3049int 3050main () 3051{ 3052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3053 ; 3054 return 0; 3055} 3056_ACEOF 3057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3059do 3060 CC="$ac_save_CC $ac_arg" 3061 if ac_fn_c_try_compile "$LINENO"; then : 3062 ac_cv_prog_cc_c89=$ac_arg 3063fi 3064rm -f core conftest.err conftest.$ac_objext 3065 test "x$ac_cv_prog_cc_c89" != "xno" && break 3066done 3067rm -f conftest.$ac_ext 3068CC=$ac_save_CC 3069 3070fi 3071# AC_CACHE_VAL 3072case "x$ac_cv_prog_cc_c89" in 3073 x) 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3075$as_echo "none needed" >&6; } ;; 3076 xno) 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3078$as_echo "unsupported" >&6; } ;; 3079 *) 3080 CC="$CC $ac_cv_prog_cc_c89" 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3083esac 3084if test "x$ac_cv_prog_cc_c89" != xno; then : 3085 3086fi 3087 3088ac_ext=c 3089ac_cpp='$CPP $CPPFLAGS' 3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3092ac_compiler_gnu=$ac_cv_c_compiler_gnu 3093 3094ac_ext=c 3095ac_cpp='$CPP $CPPFLAGS' 3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3098ac_compiler_gnu=$ac_cv_c_compiler_gnu 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3100$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3101if ${am_cv_prog_cc_c_o+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3105/* end confdefs.h. */ 3106 3107int 3108main () 3109{ 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115 # Make sure it works both with $CC and with simple cc. 3116 # Following AC_PROG_CC_C_O, we do the test twice because some 3117 # compilers refuse to overwrite an existing .o file with -o, 3118 # though they will create one. 3119 am_cv_prog_cc_c_o=yes 3120 for am_i in 1 2; do 3121 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3122 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3123 ac_status=$? 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } \ 3126 && test -f conftest2.$ac_objext; then 3127 : OK 3128 else 3129 am_cv_prog_cc_c_o=no 3130 break 3131 fi 3132 done 3133 rm -f core conftest* 3134 unset am_i 3135fi 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3137$as_echo "$am_cv_prog_cc_c_o" >&6; } 3138if test "$am_cv_prog_cc_c_o" != yes; then 3139 # Losing compiler, so override with the script. 3140 # FIXME: It is wrong to rewrite CC. 3141 # But if we don't then we get into trouble of one sort or another. 3142 # A longer-term fix would be to have automake use am__CC in this case, 3143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3144 CC="$am_aux_dir/compile $CC" 3145fi 3146ac_ext=c 3147ac_cpp='$CPP $CPPFLAGS' 3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3150ac_compiler_gnu=$ac_cv_c_compiler_gnu 3151 3152 3153 3154ac_ext=c 3155ac_cpp='$CPP $CPPFLAGS' 3156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3158ac_compiler_gnu=$ac_cv_c_compiler_gnu 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3160$as_echo_n "checking how to run the C preprocessor... " >&6; } 3161# On Suns, sometimes $CPP names a directory. 3162if test -n "$CPP" && test -d "$CPP"; then 3163 CPP= 3164fi 3165if test -z "$CPP"; then 3166 if ${ac_cv_prog_CPP+:} false; then : 3167 $as_echo_n "(cached) " >&6 3168else 3169 # Double quotes because CPP needs to be expanded 3170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3171 do 3172 ac_preproc_ok=false 3173for ac_c_preproc_warn_flag in '' yes 3174do 3175 # Use a header file that comes with gcc, so configuring glibc 3176 # with a fresh cross-compiler works. 3177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3178 # <limits.h> exists even on freestanding compilers. 3179 # On the NeXT, cc -E runs the code through the compiler's parser, 3180 # not just through cpp. "Syntax error" is here to catch this case. 3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3182/* end confdefs.h. */ 3183#ifdef __STDC__ 3184# include <limits.h> 3185#else 3186# include <assert.h> 3187#endif 3188 Syntax error 3189_ACEOF 3190if ac_fn_c_try_cpp "$LINENO"; then : 3191 3192else 3193 # Broken: fails on valid input. 3194continue 3195fi 3196rm -f conftest.err conftest.i conftest.$ac_ext 3197 3198 # OK, works on sane cases. Now check whether nonexistent headers 3199 # can be detected and how. 3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3201/* end confdefs.h. */ 3202#include <ac_nonexistent.h> 3203_ACEOF 3204if ac_fn_c_try_cpp "$LINENO"; then : 3205 # Broken: success on invalid input. 3206continue 3207else 3208 # Passes both tests. 3209ac_preproc_ok=: 3210break 3211fi 3212rm -f conftest.err conftest.i conftest.$ac_ext 3213 3214done 3215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3216rm -f conftest.i conftest.err conftest.$ac_ext 3217if $ac_preproc_ok; then : 3218 break 3219fi 3220 3221 done 3222 ac_cv_prog_CPP=$CPP 3223 3224fi 3225 CPP=$ac_cv_prog_CPP 3226else 3227 ac_cv_prog_CPP=$CPP 3228fi 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3230$as_echo "$CPP" >&6; } 3231ac_preproc_ok=false 3232for ac_c_preproc_warn_flag in '' yes 3233do 3234 # Use a header file that comes with gcc, so configuring glibc 3235 # with a fresh cross-compiler works. 3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3237 # <limits.h> exists even on freestanding compilers. 3238 # On the NeXT, cc -E runs the code through the compiler's parser, 3239 # not just through cpp. "Syntax error" is here to catch this case. 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241/* end confdefs.h. */ 3242#ifdef __STDC__ 3243# include <limits.h> 3244#else 3245# include <assert.h> 3246#endif 3247 Syntax error 3248_ACEOF 3249if ac_fn_c_try_cpp "$LINENO"; then : 3250 3251else 3252 # Broken: fails on valid input. 3253continue 3254fi 3255rm -f conftest.err conftest.i conftest.$ac_ext 3256 3257 # OK, works on sane cases. Now check whether nonexistent headers 3258 # can be detected and how. 3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3260/* end confdefs.h. */ 3261#include <ac_nonexistent.h> 3262_ACEOF 3263if ac_fn_c_try_cpp "$LINENO"; then : 3264 # Broken: success on invalid input. 3265continue 3266else 3267 # Passes both tests. 3268ac_preproc_ok=: 3269break 3270fi 3271rm -f conftest.err conftest.i conftest.$ac_ext 3272 3273done 3274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3275rm -f conftest.i conftest.err conftest.$ac_ext 3276if $ac_preproc_ok; then : 3277 3278else 3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3281as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3282See \`config.log' for more details" "$LINENO" 5; } 3283fi 3284 3285ac_ext=c 3286ac_cpp='$CPP $CPPFLAGS' 3287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3289ac_compiler_gnu=$ac_cv_c_compiler_gnu 3290 3291 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3293$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3294if ${ac_cv_path_GREP+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 if test -z "$GREP"; then 3298 ac_path_GREP_found=false 3299 # Loop through the user's path and test for each of PROGNAME-LIST 3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3302do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_prog in grep ggrep; do 3306 for ac_exec_ext in '' $ac_executable_extensions; do 3307 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3308 as_fn_executable_p "$ac_path_GREP" || continue 3309# Check for GNU ac_path_GREP and select it if it is found. 3310 # Check for GNU $ac_path_GREP 3311case `"$ac_path_GREP" --version 2>&1` in 3312*GNU*) 3313 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3314*) 3315 ac_count=0 3316 $as_echo_n 0123456789 >"conftest.in" 3317 while : 3318 do 3319 cat "conftest.in" "conftest.in" >"conftest.tmp" 3320 mv "conftest.tmp" "conftest.in" 3321 cp "conftest.in" "conftest.nl" 3322 $as_echo 'GREP' >> "conftest.nl" 3323 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3325 as_fn_arith $ac_count + 1 && ac_count=$as_val 3326 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3327 # Best one so far, save it but keep looking for a better one 3328 ac_cv_path_GREP="$ac_path_GREP" 3329 ac_path_GREP_max=$ac_count 3330 fi 3331 # 10*(2^10) chars as input seems more than enough 3332 test $ac_count -gt 10 && break 3333 done 3334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3335esac 3336 3337 $ac_path_GREP_found && break 3 3338 done 3339 done 3340 done 3341IFS=$as_save_IFS 3342 if test -z "$ac_cv_path_GREP"; then 3343 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3344 fi 3345else 3346 ac_cv_path_GREP=$GREP 3347fi 3348 3349fi 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3351$as_echo "$ac_cv_path_GREP" >&6; } 3352 GREP="$ac_cv_path_GREP" 3353 3354 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3356$as_echo_n "checking for egrep... " >&6; } 3357if ${ac_cv_path_EGREP+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3361 then ac_cv_path_EGREP="$GREP -E" 3362 else 3363 if test -z "$EGREP"; then 3364 ac_path_EGREP_found=false 3365 # Loop through the user's path and test for each of PROGNAME-LIST 3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_prog in egrep; do 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3374 as_fn_executable_p "$ac_path_EGREP" || continue 3375# Check for GNU ac_path_EGREP and select it if it is found. 3376 # Check for GNU $ac_path_EGREP 3377case `"$ac_path_EGREP" --version 2>&1` in 3378*GNU*) 3379 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3380*) 3381 ac_count=0 3382 $as_echo_n 0123456789 >"conftest.in" 3383 while : 3384 do 3385 cat "conftest.in" "conftest.in" >"conftest.tmp" 3386 mv "conftest.tmp" "conftest.in" 3387 cp "conftest.in" "conftest.nl" 3388 $as_echo 'EGREP' >> "conftest.nl" 3389 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3391 as_fn_arith $ac_count + 1 && ac_count=$as_val 3392 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3393 # Best one so far, save it but keep looking for a better one 3394 ac_cv_path_EGREP="$ac_path_EGREP" 3395 ac_path_EGREP_max=$ac_count 3396 fi 3397 # 10*(2^10) chars as input seems more than enough 3398 test $ac_count -gt 10 && break 3399 done 3400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3401esac 3402 3403 $ac_path_EGREP_found && break 3 3404 done 3405 done 3406 done 3407IFS=$as_save_IFS 3408 if test -z "$ac_cv_path_EGREP"; then 3409 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3410 fi 3411else 3412 ac_cv_path_EGREP=$EGREP 3413fi 3414 3415 fi 3416fi 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3418$as_echo "$ac_cv_path_EGREP" >&6; } 3419 EGREP="$ac_cv_path_EGREP" 3420 3421 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3423$as_echo_n "checking for ANSI C header files... " >&6; } 3424if ${ac_cv_header_stdc+:} false; then : 3425 $as_echo_n "(cached) " >&6 3426else 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428/* end confdefs.h. */ 3429#include <stdlib.h> 3430#include <stdarg.h> 3431#include <string.h> 3432#include <float.h> 3433 3434int 3435main () 3436{ 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442if ac_fn_c_try_compile "$LINENO"; then : 3443 ac_cv_header_stdc=yes 3444else 3445 ac_cv_header_stdc=no 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3448 3449if test $ac_cv_header_stdc = yes; then 3450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453#include <string.h> 3454 3455_ACEOF 3456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3457 $EGREP "memchr" >/dev/null 2>&1; then : 3458 3459else 3460 ac_cv_header_stdc=no 3461fi 3462rm -f conftest* 3463 3464fi 3465 3466if test $ac_cv_header_stdc = yes; then 3467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470#include <stdlib.h> 3471 3472_ACEOF 3473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3474 $EGREP "free" >/dev/null 2>&1; then : 3475 3476else 3477 ac_cv_header_stdc=no 3478fi 3479rm -f conftest* 3480 3481fi 3482 3483if test $ac_cv_header_stdc = yes; then 3484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3485 if test "$cross_compiling" = yes; then : 3486 : 3487else 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489/* end confdefs.h. */ 3490#include <ctype.h> 3491#include <stdlib.h> 3492#if ((' ' & 0x0FF) == 0x020) 3493# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3494# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3495#else 3496# define ISLOWER(c) \ 3497 (('a' <= (c) && (c) <= 'i') \ 3498 || ('j' <= (c) && (c) <= 'r') \ 3499 || ('s' <= (c) && (c) <= 'z')) 3500# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3501#endif 3502 3503#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3504int 3505main () 3506{ 3507 int i; 3508 for (i = 0; i < 256; i++) 3509 if (XOR (islower (i), ISLOWER (i)) 3510 || toupper (i) != TOUPPER (i)) 3511 return 2; 3512 return 0; 3513} 3514_ACEOF 3515if ac_fn_c_try_run "$LINENO"; then : 3516 3517else 3518 ac_cv_header_stdc=no 3519fi 3520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3521 conftest.$ac_objext conftest.beam conftest.$ac_ext 3522fi 3523 3524fi 3525fi 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3527$as_echo "$ac_cv_header_stdc" >&6; } 3528if test $ac_cv_header_stdc = yes; then 3529 3530$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3531 3532fi 3533 3534# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3535for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3536 inttypes.h stdint.h unistd.h 3537do : 3538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3539ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3540" 3541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3542 cat >>confdefs.h <<_ACEOF 3543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3544_ACEOF 3545 3546fi 3547 3548done 3549 3550 3551 3552 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3553if test "x$ac_cv_header_minix_config_h" = xyes; then : 3554 MINIX=yes 3555else 3556 MINIX= 3557fi 3558 3559 3560 if test "$MINIX" = yes; then 3561 3562$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3563 3564 3565$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3566 3567 3568$as_echo "#define _MINIX 1" >>confdefs.h 3569 3570 fi 3571 3572 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3574$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3575if ${ac_cv_safe_to_define___extensions__+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581# define __EXTENSIONS__ 1 3582 $ac_includes_default 3583int 3584main () 3585{ 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591if ac_fn_c_try_compile "$LINENO"; then : 3592 ac_cv_safe_to_define___extensions__=yes 3593else 3594 ac_cv_safe_to_define___extensions__=no 3595fi 3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3597fi 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3599$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3600 test $ac_cv_safe_to_define___extensions__ = yes && 3601 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3602 3603 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3604 3605 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3606 3607 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3608 3609 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3610 3611 3612 3613# Initialize Automake 3614am__api_version='1.15' 3615 3616# Find a good install program. We prefer a C program (faster), 3617# so one script is as good as another. But avoid the broken or 3618# incompatible versions: 3619# SysV /etc/install, /usr/sbin/install 3620# SunOS /usr/etc/install 3621# IRIX /sbin/install 3622# AIX /bin/install 3623# AmigaOS /C/install, which installs bootblocks on floppy discs 3624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3625# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3627# OS/2's system install, which has a completely different semantic 3628# ./install, which can be erroneously created by make from ./install.sh. 3629# Reject install programs that cannot install multiple files. 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3631$as_echo_n "checking for a BSD-compatible install... " >&6; } 3632if test -z "$INSTALL"; then 3633if ${ac_cv_path_install+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3637for as_dir in $PATH 3638do 3639 IFS=$as_save_IFS 3640 test -z "$as_dir" && as_dir=. 3641 # Account for people who put trailing slashes in PATH elements. 3642case $as_dir/ in #(( 3643 ./ | .// | /[cC]/* | \ 3644 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3645 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3646 /usr/ucb/* ) ;; 3647 *) 3648 # OSF1 and SCO ODT 3.0 have their own names for install. 3649 # Don't use installbsd from OSF since it installs stuff as root 3650 # by default. 3651 for ac_prog in ginstall scoinst install; do 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3654 if test $ac_prog = install && 3655 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3656 # AIX install. It has an incompatible calling convention. 3657 : 3658 elif test $ac_prog = install && 3659 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3660 # program-specific install script used by HP pwplus--don't use. 3661 : 3662 else 3663 rm -rf conftest.one conftest.two conftest.dir 3664 echo one > conftest.one 3665 echo two > conftest.two 3666 mkdir conftest.dir 3667 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3668 test -s conftest.one && test -s conftest.two && 3669 test -s conftest.dir/conftest.one && 3670 test -s conftest.dir/conftest.two 3671 then 3672 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3673 break 3 3674 fi 3675 fi 3676 fi 3677 done 3678 done 3679 ;; 3680esac 3681 3682 done 3683IFS=$as_save_IFS 3684 3685rm -rf conftest.one conftest.two conftest.dir 3686 3687fi 3688 if test "${ac_cv_path_install+set}" = set; then 3689 INSTALL=$ac_cv_path_install 3690 else 3691 # As a last resort, use the slow shell script. Don't cache a 3692 # value for INSTALL within a source directory, because that will 3693 # break other packages using the cache if that directory is 3694 # removed, or if the value is a relative name. 3695 INSTALL=$ac_install_sh 3696 fi 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3699$as_echo "$INSTALL" >&6; } 3700 3701# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3702# It thinks the first close brace ends the variable substitution. 3703test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3704 3705test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3706 3707test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3708 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3710$as_echo_n "checking whether build environment is sane... " >&6; } 3711# Reject unsafe characters in $srcdir or the absolute working directory 3712# name. Accept space and tab only in the latter. 3713am_lf=' 3714' 3715case `pwd` in 3716 *[\\\"\#\$\&\'\`$am_lf]*) 3717 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3718esac 3719case $srcdir in 3720 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3721 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3722esac 3723 3724# Do 'set' in a subshell so we don't clobber the current shell's 3725# arguments. Must try -L first in case configure is actually a 3726# symlink; some systems play weird games with the mod time of symlinks 3727# (eg FreeBSD returns the mod time of the symlink's containing 3728# directory). 3729if ( 3730 am_has_slept=no 3731 for am_try in 1 2; do 3732 echo "timestamp, slept: $am_has_slept" > conftest.file 3733 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3734 if test "$*" = "X"; then 3735 # -L didn't work. 3736 set X `ls -t "$srcdir/configure" conftest.file` 3737 fi 3738 if test "$*" != "X $srcdir/configure conftest.file" \ 3739 && test "$*" != "X conftest.file $srcdir/configure"; then 3740 3741 # If neither matched, then we have a broken ls. This can happen 3742 # if, for instance, CONFIG_SHELL is bash and it inherits a 3743 # broken ls alias from the environment. This has actually 3744 # happened. Such a system could not be considered "sane". 3745 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3746 alias in your environment" "$LINENO" 5 3747 fi 3748 if test "$2" = conftest.file || test $am_try -eq 2; then 3749 break 3750 fi 3751 # Just in case. 3752 sleep 1 3753 am_has_slept=yes 3754 done 3755 test "$2" = conftest.file 3756 ) 3757then 3758 # Ok. 3759 : 3760else 3761 as_fn_error $? "newly created file is older than distributed files! 3762Check your system clock" "$LINENO" 5 3763fi 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3765$as_echo "yes" >&6; } 3766# If we didn't sleep, we still need to ensure time stamps of config.status and 3767# generated files are strictly newer. 3768am_sleep_pid= 3769if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3770 ( sleep 1 ) & 3771 am_sleep_pid=$! 3772fi 3773 3774rm -f conftest.file 3775 3776test "$program_prefix" != NONE && 3777 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3778# Use a double $ so make ignores it. 3779test "$program_suffix" != NONE && 3780 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3781# Double any \ or $. 3782# By default was `s,x,x', remove it if useless. 3783ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3784program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3785 3786if test x"${MISSING+set}" != xset; then 3787 case $am_aux_dir in 3788 *\ * | *\ *) 3789 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3790 *) 3791 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3792 esac 3793fi 3794# Use eval to expand $SHELL 3795if eval "$MISSING --is-lightweight"; then 3796 am_missing_run="$MISSING " 3797else 3798 am_missing_run= 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3800$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3801fi 3802 3803if test x"${install_sh+set}" != xset; then 3804 case $am_aux_dir in 3805 *\ * | *\ *) 3806 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3807 *) 3808 install_sh="\${SHELL} $am_aux_dir/install-sh" 3809 esac 3810fi 3811 3812# Installed binaries are usually stripped using 'strip' when the user 3813# run "make install-strip". However 'strip' might not be the right 3814# tool to use in cross-compilation environments, therefore Automake 3815# will honor the 'STRIP' environment variable to overrule this program. 3816if test "$cross_compiling" != no; then 3817 if test -n "$ac_tool_prefix"; then 3818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3819set dummy ${ac_tool_prefix}strip; ac_word=$2 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3821$as_echo_n "checking for $ac_word... " >&6; } 3822if ${ac_cv_prog_STRIP+:} false; then : 3823 $as_echo_n "(cached) " >&6 3824else 3825 if test -n "$STRIP"; then 3826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3827else 3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3829for as_dir in $PATH 3830do 3831 IFS=$as_save_IFS 3832 test -z "$as_dir" && as_dir=. 3833 for ac_exec_ext in '' $ac_executable_extensions; do 3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3835 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3837 break 2 3838 fi 3839done 3840 done 3841IFS=$as_save_IFS 3842 3843fi 3844fi 3845STRIP=$ac_cv_prog_STRIP 3846if test -n "$STRIP"; then 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3848$as_echo "$STRIP" >&6; } 3849else 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3851$as_echo "no" >&6; } 3852fi 3853 3854 3855fi 3856if test -z "$ac_cv_prog_STRIP"; then 3857 ac_ct_STRIP=$STRIP 3858 # Extract the first word of "strip", so it can be a program name with args. 3859set dummy strip; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$ac_ct_STRIP"; then 3866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_ac_ct_STRIP="strip" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3886if test -n "$ac_ct_STRIP"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3888$as_echo "$ac_ct_STRIP" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 if test "x$ac_ct_STRIP" = x; then 3895 STRIP=":" 3896 else 3897 case $cross_compiling:$ac_tool_warned in 3898yes:) 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3901ac_tool_warned=yes ;; 3902esac 3903 STRIP=$ac_ct_STRIP 3904 fi 3905else 3906 STRIP="$ac_cv_prog_STRIP" 3907fi 3908 3909fi 3910INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3911 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3914if test -z "$MKDIR_P"; then 3915 if ${ac_cv_path_mkdir+:} false; then : 3916 $as_echo_n "(cached) " >&6 3917else 3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3920do 3921 IFS=$as_save_IFS 3922 test -z "$as_dir" && as_dir=. 3923 for ac_prog in mkdir gmkdir; do 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3927 'mkdir (GNU coreutils) '* | \ 3928 'mkdir (coreutils) '* | \ 3929 'mkdir (fileutils) '4.1*) 3930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3931 break 3;; 3932 esac 3933 done 3934 done 3935 done 3936IFS=$as_save_IFS 3937 3938fi 3939 3940 test -d ./--version && rmdir ./--version 3941 if test "${ac_cv_path_mkdir+set}" = set; then 3942 MKDIR_P="$ac_cv_path_mkdir -p" 3943 else 3944 # As a last resort, use the slow shell script. Don't cache a 3945 # value for MKDIR_P within a source directory, because that will 3946 # break other packages using the cache if that directory is 3947 # removed, or if the value is a relative name. 3948 MKDIR_P="$ac_install_sh -d" 3949 fi 3950fi 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3952$as_echo "$MKDIR_P" >&6; } 3953 3954for ac_prog in gawk mawk nawk awk 3955do 3956 # Extract the first word of "$ac_prog", so it can be a program name with args. 3957set dummy $ac_prog; ac_word=$2 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3959$as_echo_n "checking for $ac_word... " >&6; } 3960if ${ac_cv_prog_AWK+:} false; then : 3961 $as_echo_n "(cached) " >&6 3962else 3963 if test -n "$AWK"; then 3964 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3965else 3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3967for as_dir in $PATH 3968do 3969 IFS=$as_save_IFS 3970 test -z "$as_dir" && as_dir=. 3971 for ac_exec_ext in '' $ac_executable_extensions; do 3972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3973 ac_cv_prog_AWK="$ac_prog" 3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3975 break 2 3976 fi 3977done 3978 done 3979IFS=$as_save_IFS 3980 3981fi 3982fi 3983AWK=$ac_cv_prog_AWK 3984if test -n "$AWK"; then 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3986$as_echo "$AWK" >&6; } 3987else 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3989$as_echo "no" >&6; } 3990fi 3991 3992 3993 test -n "$AWK" && break 3994done 3995 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3998set x ${MAKE-make} 3999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 cat >conftest.make <<\_ACEOF 4004SHELL = /bin/sh 4005all: 4006 @echo '@@@%%%=$(MAKE)=@@@%%%' 4007_ACEOF 4008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4009case `${MAKE-make} -f conftest.make 2>/dev/null` in 4010 *@@@%%%=?*=@@@%%%*) 4011 eval ac_cv_prog_make_${ac_make}_set=yes;; 4012 *) 4013 eval ac_cv_prog_make_${ac_make}_set=no;; 4014esac 4015rm -f conftest.make 4016fi 4017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4019$as_echo "yes" >&6; } 4020 SET_MAKE= 4021else 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4023$as_echo "no" >&6; } 4024 SET_MAKE="MAKE=${MAKE-make}" 4025fi 4026 4027rm -rf .tst 2>/dev/null 4028mkdir .tst 2>/dev/null 4029if test -d .tst; then 4030 am__leading_dot=. 4031else 4032 am__leading_dot=_ 4033fi 4034rmdir .tst 2>/dev/null 4035 4036DEPDIR="${am__leading_dot}deps" 4037 4038ac_config_commands="$ac_config_commands depfiles" 4039 4040 4041am_make=${MAKE-make} 4042cat > confinc << 'END' 4043am__doit: 4044 @echo this is the am__doit target 4045.PHONY: am__doit 4046END 4047# If we don't find an include directive, just comment out the code. 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4049$as_echo_n "checking for style of include used by $am_make... " >&6; } 4050am__include="#" 4051am__quote= 4052_am_result=none 4053# First try GNU make style include. 4054echo "include confinc" > confmf 4055# Ignore all kinds of additional output from 'make'. 4056case `$am_make -s -f confmf 2> /dev/null` in #( 4057*the\ am__doit\ target*) 4058 am__include=include 4059 am__quote= 4060 _am_result=GNU 4061 ;; 4062esac 4063# Now try BSD make style include. 4064if test "$am__include" = "#"; then 4065 echo '.include "confinc"' > confmf 4066 case `$am_make -s -f confmf 2> /dev/null` in #( 4067 *the\ am__doit\ target*) 4068 am__include=.include 4069 am__quote="\"" 4070 _am_result=BSD 4071 ;; 4072 esac 4073fi 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4077$as_echo "$_am_result" >&6; } 4078rm -f confinc confmf 4079 4080# Check whether --enable-dependency-tracking was given. 4081if test "${enable_dependency_tracking+set}" = set; then : 4082 enableval=$enable_dependency_tracking; 4083fi 4084 4085if test "x$enable_dependency_tracking" != xno; then 4086 am_depcomp="$ac_aux_dir/depcomp" 4087 AMDEPBACKSLASH='\' 4088 am__nodep='_no' 4089fi 4090 if test "x$enable_dependency_tracking" != xno; then 4091 AMDEP_TRUE= 4092 AMDEP_FALSE='#' 4093else 4094 AMDEP_TRUE='#' 4095 AMDEP_FALSE= 4096fi 4097 4098 4099# Check whether --enable-silent-rules was given. 4100if test "${enable_silent_rules+set}" = set; then : 4101 enableval=$enable_silent_rules; 4102fi 4103 4104case $enable_silent_rules in # ((( 4105 yes) AM_DEFAULT_VERBOSITY=0;; 4106 no) AM_DEFAULT_VERBOSITY=1;; 4107 *) AM_DEFAULT_VERBOSITY=1;; 4108esac 4109am_make=${MAKE-make} 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4111$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4112if ${am_cv_make_support_nested_variables+:} false; then : 4113 $as_echo_n "(cached) " >&6 4114else 4115 if $as_echo 'TRUE=$(BAR$(V)) 4116BAR0=false 4117BAR1=true 4118V=1 4119am__doit: 4120 @$(TRUE) 4121.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4122 am_cv_make_support_nested_variables=yes 4123else 4124 am_cv_make_support_nested_variables=no 4125fi 4126fi 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4128$as_echo "$am_cv_make_support_nested_variables" >&6; } 4129if test $am_cv_make_support_nested_variables = yes; then 4130 AM_V='$(V)' 4131 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4132else 4133 AM_V=$AM_DEFAULT_VERBOSITY 4134 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4135fi 4136AM_BACKSLASH='\' 4137 4138if test "`cd $srcdir && pwd`" != "`pwd`"; then 4139 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4140 # is not polluted with repeated "-I." 4141 am__isrc=' -I$(srcdir)' 4142 # test to see if srcdir already configured 4143 if test -f $srcdir/config.status; then 4144 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4145 fi 4146fi 4147 4148# test whether we have cygpath 4149if test -z "$CYGPATH_W"; then 4150 if (cygpath --version) >/dev/null 2>/dev/null; then 4151 CYGPATH_W='cygpath -w' 4152 else 4153 CYGPATH_W=echo 4154 fi 4155fi 4156 4157 4158# Define the identity of the package. 4159 PACKAGE='xwininfo' 4160 VERSION='1.1.5' 4161 4162 4163cat >>confdefs.h <<_ACEOF 4164#define PACKAGE "$PACKAGE" 4165_ACEOF 4166 4167 4168cat >>confdefs.h <<_ACEOF 4169#define VERSION "$VERSION" 4170_ACEOF 4171 4172# Some tools Automake needs. 4173 4174ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4175 4176 4177AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4178 4179 4180AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4181 4182 4183AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4184 4185 4186MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4187 4188# For better backward compatibility. To be removed once Automake 1.9.x 4189# dies out for good. For more background, see: 4190# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4191# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4192mkdir_p='$(MKDIR_P)' 4193 4194# We need awk for the "check" target (and possibly the TAP driver). The 4195# system "awk" is bad on some platforms. 4196# Always define AMTAR for backward compatibility. Yes, it's still used 4197# in the wild :-( We should find a proper way to deprecate it ... 4198AMTAR='$${TAR-tar}' 4199 4200 4201# We'll loop over all known methods to create a tar archive until one works. 4202_am_tools='gnutar pax cpio none' 4203 4204am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4205 4206 4207 4208 4209 4210depcc="$CC" am_compiler_list= 4211 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4213$as_echo_n "checking dependency style of $depcc... " >&6; } 4214if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4218 # We make a subdir and do the tests there. Otherwise we can end up 4219 # making bogus files that we don't know about and never remove. For 4220 # instance it was reported that on HP-UX the gcc test will end up 4221 # making a dummy file named 'D' -- because '-MD' means "put the output 4222 # in D". 4223 rm -rf conftest.dir 4224 mkdir conftest.dir 4225 # Copy depcomp to subdir because otherwise we won't find it if we're 4226 # using a relative directory. 4227 cp "$am_depcomp" conftest.dir 4228 cd conftest.dir 4229 # We will build objects and dependencies in a subdirectory because 4230 # it helps to detect inapplicable dependency modes. For instance 4231 # both Tru64's cc and ICC support -MD to output dependencies as a 4232 # side effect of compilation, but ICC will put the dependencies in 4233 # the current directory while Tru64 will put them in the object 4234 # directory. 4235 mkdir sub 4236 4237 am_cv_CC_dependencies_compiler_type=none 4238 if test "$am_compiler_list" = ""; then 4239 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4240 fi 4241 am__universal=false 4242 case " $depcc " in #( 4243 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4244 esac 4245 4246 for depmode in $am_compiler_list; do 4247 # Setup a source with many dependencies, because some compilers 4248 # like to wrap large dependency lists on column 80 (with \), and 4249 # we should not choose a depcomp mode which is confused by this. 4250 # 4251 # We need to recreate these files for each test, as the compiler may 4252 # overwrite some of them when testing with obscure command lines. 4253 # This happens at least with the AIX C compiler. 4254 : > sub/conftest.c 4255 for i in 1 2 3 4 5 6; do 4256 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4257 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4258 # Solaris 10 /bin/sh. 4259 echo '/* dummy */' > sub/conftst$i.h 4260 done 4261 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4262 4263 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4264 # mode. It turns out that the SunPro C++ compiler does not properly 4265 # handle '-M -o', and we need to detect this. Also, some Intel 4266 # versions had trouble with output in subdirs. 4267 am__obj=sub/conftest.${OBJEXT-o} 4268 am__minus_obj="-o $am__obj" 4269 case $depmode in 4270 gcc) 4271 # This depmode causes a compiler race in universal mode. 4272 test "$am__universal" = false || continue 4273 ;; 4274 nosideeffect) 4275 # After this tag, mechanisms are not by side-effect, so they'll 4276 # only be used when explicitly requested. 4277 if test "x$enable_dependency_tracking" = xyes; then 4278 continue 4279 else 4280 break 4281 fi 4282 ;; 4283 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4284 # This compiler won't grok '-c -o', but also, the minuso test has 4285 # not run yet. These depmodes are late enough in the game, and 4286 # so weak that their functioning should not be impacted. 4287 am__obj=conftest.${OBJEXT-o} 4288 am__minus_obj= 4289 ;; 4290 none) break ;; 4291 esac 4292 if depmode=$depmode \ 4293 source=sub/conftest.c object=$am__obj \ 4294 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4295 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4296 >/dev/null 2>conftest.err && 4297 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4298 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4299 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4300 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4301 # icc doesn't choke on unknown options, it will just issue warnings 4302 # or remarks (even with -Werror). So we grep stderr for any message 4303 # that says an option was ignored or not supported. 4304 # When given -MP, icc 7.0 and 7.1 complain thusly: 4305 # icc: Command line warning: ignoring option '-M'; no argument required 4306 # The diagnosis changed in icc 8.0: 4307 # icc: Command line remark: option '-MP' not supported 4308 if (grep 'ignoring option' conftest.err || 4309 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4310 am_cv_CC_dependencies_compiler_type=$depmode 4311 break 4312 fi 4313 fi 4314 done 4315 4316 cd .. 4317 rm -rf conftest.dir 4318else 4319 am_cv_CC_dependencies_compiler_type=none 4320fi 4321 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4324$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4325CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4326 4327 if 4328 test "x$enable_dependency_tracking" != xno \ 4329 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4330 am__fastdepCC_TRUE= 4331 am__fastdepCC_FALSE='#' 4332else 4333 am__fastdepCC_TRUE='#' 4334 am__fastdepCC_FALSE= 4335fi 4336 4337 4338 4339# POSIX will say in a future version that running "rm -f" with no argument 4340# is OK; and we want to be able to make that assumption in our Makefile 4341# recipes. So use an aggressive probe to check that the usage we want is 4342# actually supported "in the wild" to an acceptable degree. 4343# See automake bug#10828. 4344# To make any issue more visible, cause the running configure to be aborted 4345# by default if the 'rm' program in use doesn't match our expectations; the 4346# user can still override this though. 4347if rm -f && rm -fr && rm -rf; then : OK; else 4348 cat >&2 <<'END' 4349Oops! 4350 4351Your 'rm' program seems unable to run without file operands specified 4352on the command line, even when the '-f' option is present. This is contrary 4353to the behaviour of most rm programs out there, and not conforming with 4354the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4355 4356Please tell bug-automake@gnu.org about your system, including the value 4357of your $PATH and any error possibly output before this message. This 4358can help us improve future automake versions. 4359 4360END 4361 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4362 echo 'Configuration will proceed anyway, since you have set the' >&2 4363 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4364 echo >&2 4365 else 4366 cat >&2 <<'END' 4367Aborting the configuration process, to ensure you take notice of the issue. 4368 4369You can download and install GNU coreutils to get an 'rm' implementation 4370that behaves properly: <http://www.gnu.org/software/coreutils/>. 4371 4372If you want to complete the configuration process using your problematic 4373'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4374to "yes", and re-run configure. 4375 4376END 4377 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4378 fi 4379fi 4380 4381# Make sure we can run config.sub. 4382$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4383 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4384 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4386$as_echo_n "checking build system type... " >&6; } 4387if ${ac_cv_build+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 ac_build_alias=$build_alias 4391test "x$ac_build_alias" = x && 4392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4393test "x$ac_build_alias" = x && 4394 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4395ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4397 4398fi 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4400$as_echo "$ac_cv_build" >&6; } 4401case $ac_cv_build in 4402*-*-*) ;; 4403*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4404esac 4405build=$ac_cv_build 4406ac_save_IFS=$IFS; IFS='-' 4407set x $ac_cv_build 4408shift 4409build_cpu=$1 4410build_vendor=$2 4411shift; shift 4412# Remember, the first character of IFS is used to create $*, 4413# except with old shells: 4414build_os=$* 4415IFS=$ac_save_IFS 4416case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4417 4418 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4420$as_echo_n "checking host system type... " >&6; } 4421if ${ac_cv_host+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test "x$host_alias" = x; then 4425 ac_cv_host=$ac_cv_build 4426else 4427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4429fi 4430 4431fi 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4433$as_echo "$ac_cv_host" >&6; } 4434case $ac_cv_host in 4435*-*-*) ;; 4436*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4437esac 4438host=$ac_cv_host 4439ac_save_IFS=$IFS; IFS='-' 4440set x $ac_cv_host 4441shift 4442host_cpu=$1 4443host_vendor=$2 4444shift; shift 4445# Remember, the first character of IFS is used to create $*, 4446# except with old shells: 4447host_os=$* 4448IFS=$ac_save_IFS 4449case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4450 4451 4452 4453 if test "X$prefix" = "XNONE"; then 4454 acl_final_prefix="$ac_default_prefix" 4455 else 4456 acl_final_prefix="$prefix" 4457 fi 4458 if test "X$exec_prefix" = "XNONE"; then 4459 acl_final_exec_prefix='${prefix}' 4460 else 4461 acl_final_exec_prefix="$exec_prefix" 4462 fi 4463 acl_save_prefix="$prefix" 4464 prefix="$acl_final_prefix" 4465 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 4466 prefix="$acl_save_prefix" 4467 4468 4469 4470# Check whether --with-gnu-ld was given. 4471if test "${with_gnu_ld+set}" = set; then : 4472 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4473else 4474 with_gnu_ld=no 4475fi 4476 4477# Prepare PATH_SEPARATOR. 4478# The user is always right. 4479if test "${PATH_SEPARATOR+set}" != set; then 4480 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 4481 # contains only /bin. Note that ksh looks also at the FPATH variable, 4482 # so we have to set that as well for the test. 4483 PATH_SEPARATOR=: 4484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 4485 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 4486 || PATH_SEPARATOR=';' 4487 } 4488fi 4489 4490ac_prog=ld 4491if test "$GCC" = yes; then 4492 # Check if gcc -print-prog-name=ld gives a path. 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4494$as_echo_n "checking for ld used by $CC... " >&6; } 4495 case $host in 4496 *-*-mingw*) 4497 # gcc leaves a trailing carriage return which upsets mingw 4498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4499 *) 4500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4501 esac 4502 case $ac_prog in 4503 # Accept absolute paths. 4504 [\\/]* | ?:[\\/]*) 4505 re_direlt='/[^/][^/]*/\.\./' 4506 # Canonicalize the pathname of ld 4507 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 4508 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 4509 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4510 done 4511 test -z "$LD" && LD="$ac_prog" 4512 ;; 4513 "") 4514 # If it fails, then pretend we aren't using GCC. 4515 ac_prog=ld 4516 ;; 4517 *) 4518 # If it is relative, then search for the first ld in PATH. 4519 with_gnu_ld=unknown 4520 ;; 4521 esac 4522elif test "$with_gnu_ld" = yes; then 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4524$as_echo_n "checking for GNU ld... " >&6; } 4525else 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4527$as_echo_n "checking for non-GNU ld... " >&6; } 4528fi 4529if ${acl_cv_path_LD+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -z "$LD"; then 4533 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4534 for ac_dir in $PATH; do 4535 IFS="$acl_save_ifs" 4536 test -z "$ac_dir" && ac_dir=. 4537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4538 acl_cv_path_LD="$ac_dir/$ac_prog" 4539 # Check to see if the program is GNU ld. I'd rather use --version, 4540 # but apparently some variants of GNU ld only accept -v. 4541 # Break only if it was the GNU/non-GNU ld that we prefer. 4542 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 4543 *GNU* | *'with BFD'*) 4544 test "$with_gnu_ld" != no && break 4545 ;; 4546 *) 4547 test "$with_gnu_ld" != yes && break 4548 ;; 4549 esac 4550 fi 4551 done 4552 IFS="$acl_save_ifs" 4553else 4554 acl_cv_path_LD="$LD" # Let the user override the test with a path. 4555fi 4556fi 4557 4558LD="$acl_cv_path_LD" 4559if test -n "$LD"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4561$as_echo "$LD" >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564$as_echo "no" >&6; } 4565fi 4566test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4568$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4569if ${acl_cv_prog_gnu_ld+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4573case `$LD -v 2>&1 </dev/null` in 4574*GNU* | *'with BFD'*) 4575 acl_cv_prog_gnu_ld=yes 4576 ;; 4577*) 4578 acl_cv_prog_gnu_ld=no 4579 ;; 4580esac 4581fi 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 4583$as_echo "$acl_cv_prog_gnu_ld" >&6; } 4584with_gnu_ld=$acl_cv_prog_gnu_ld 4585 4586 4587 4588 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 4590$as_echo_n "checking for shared library run path origin... " >&6; } 4591if ${acl_cv_rpath+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593else 4594 4595 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 4596 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 4597 . ./conftest.sh 4598 rm -f ./conftest.sh 4599 acl_cv_rpath=done 4600 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 4603$as_echo "$acl_cv_rpath" >&6; } 4604 wl="$acl_cv_wl" 4605 acl_libext="$acl_cv_libext" 4606 acl_shlibext="$acl_cv_shlibext" 4607 acl_libname_spec="$acl_cv_libname_spec" 4608 acl_library_names_spec="$acl_cv_library_names_spec" 4609 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 4610 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 4611 acl_hardcode_direct="$acl_cv_hardcode_direct" 4612 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 4613 # Check whether --enable-rpath was given. 4614if test "${enable_rpath+set}" = set; then : 4615 enableval=$enable_rpath; : 4616else 4617 enable_rpath=yes 4618fi 4619 4620 4621 4622 4623 acl_libdirstem=lib 4624 acl_libdirstem2= 4625 case "$host_os" in 4626 solaris*) 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 4628$as_echo_n "checking for 64-bit host... " >&6; } 4629if ${gl_cv_solaris_64bit+:} false; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4633/* end confdefs.h. */ 4634 4635#ifdef _LP64 4636sixtyfour bits 4637#endif 4638 4639_ACEOF 4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4641 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 4642 gl_cv_solaris_64bit=yes 4643else 4644 gl_cv_solaris_64bit=no 4645fi 4646rm -f conftest* 4647 4648 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 4651$as_echo "$gl_cv_solaris_64bit" >&6; } 4652 if test $gl_cv_solaris_64bit = yes; then 4653 acl_libdirstem=lib/64 4654 case "$host_cpu" in 4655 sparc*) acl_libdirstem2=lib/sparcv9 ;; 4656 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 4657 esac 4658 fi 4659 ;; 4660 *) 4661 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 4662 if test -n "$searchpath"; then 4663 acl_save_IFS="${IFS= }"; IFS=":" 4664 for searchdir in $searchpath; do 4665 if test -d "$searchdir"; then 4666 case "$searchdir" in 4667 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 4668 */../ | */.. ) 4669 # Better ignore directories of this form. They are misleading. 4670 ;; 4671 *) searchdir=`cd "$searchdir" && pwd` 4672 case "$searchdir" in 4673 */lib64 ) acl_libdirstem=lib64 ;; 4674 esac ;; 4675 esac 4676 fi 4677 done 4678 IFS="$acl_save_IFS" 4679 fi 4680 ;; 4681 esac 4682 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 use_additional=yes 4696 4697 acl_save_prefix="$prefix" 4698 prefix="$acl_final_prefix" 4699 acl_save_exec_prefix="$exec_prefix" 4700 exec_prefix="$acl_final_exec_prefix" 4701 4702 eval additional_includedir=\"$includedir\" 4703 eval additional_libdir=\"$libdir\" 4704 4705 exec_prefix="$acl_save_exec_prefix" 4706 prefix="$acl_save_prefix" 4707 4708 4709# Check whether --with-libiconv-prefix was given. 4710if test "${with_libiconv_prefix+set}" = set; then : 4711 withval=$with_libiconv_prefix; 4712 if test "X$withval" = "Xno"; then 4713 use_additional=no 4714 else 4715 if test "X$withval" = "X"; then 4716 4717 acl_save_prefix="$prefix" 4718 prefix="$acl_final_prefix" 4719 acl_save_exec_prefix="$exec_prefix" 4720 exec_prefix="$acl_final_exec_prefix" 4721 4722 eval additional_includedir=\"$includedir\" 4723 eval additional_libdir=\"$libdir\" 4724 4725 exec_prefix="$acl_save_exec_prefix" 4726 prefix="$acl_save_prefix" 4727 4728 else 4729 additional_includedir="$withval/include" 4730 additional_libdir="$withval/$acl_libdirstem" 4731 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 4732 && ! test -d "$withval/$acl_libdirstem"; then 4733 additional_libdir="$withval/$acl_libdirstem2" 4734 fi 4735 fi 4736 fi 4737 4738fi 4739 4740 LIBICONV= 4741 LTLIBICONV= 4742 INCICONV= 4743 LIBICONV_PREFIX= 4744 HAVE_LIBICONV= 4745 rpathdirs= 4746 ltrpathdirs= 4747 names_already_handled= 4748 names_next_round='iconv ' 4749 while test -n "$names_next_round"; do 4750 names_this_round="$names_next_round" 4751 names_next_round= 4752 for name in $names_this_round; do 4753 already_handled= 4754 for n in $names_already_handled; do 4755 if test "$n" = "$name"; then 4756 already_handled=yes 4757 break 4758 fi 4759 done 4760 if test -z "$already_handled"; then 4761 names_already_handled="$names_already_handled $name" 4762 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 4763 eval value=\"\$HAVE_LIB$uppername\" 4764 if test -n "$value"; then 4765 if test "$value" = yes; then 4766 eval value=\"\$LIB$uppername\" 4767 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 4768 eval value=\"\$LTLIB$uppername\" 4769 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 4770 else 4771 : 4772 fi 4773 else 4774 found_dir= 4775 found_la= 4776 found_so= 4777 found_a= 4778 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 4779 if test -n "$acl_shlibext"; then 4780 shrext=".$acl_shlibext" # typically: shrext=.so 4781 else 4782 shrext= 4783 fi 4784 if test $use_additional = yes; then 4785 dir="$additional_libdir" 4786 if test -n "$acl_shlibext"; then 4787 if test -f "$dir/$libname$shrext"; then 4788 found_dir="$dir" 4789 found_so="$dir/$libname$shrext" 4790 else 4791 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 4792 ver=`(cd "$dir" && \ 4793 for f in "$libname$shrext".*; do echo "$f"; done \ 4794 | sed -e "s,^$libname$shrext\\\\.,," \ 4795 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 4796 | sed 1q ) 2>/dev/null` 4797 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 4798 found_dir="$dir" 4799 found_so="$dir/$libname$shrext.$ver" 4800 fi 4801 else 4802 eval library_names=\"$acl_library_names_spec\" 4803 for f in $library_names; do 4804 if test -f "$dir/$f"; then 4805 found_dir="$dir" 4806 found_so="$dir/$f" 4807 break 4808 fi 4809 done 4810 fi 4811 fi 4812 fi 4813 if test "X$found_dir" = "X"; then 4814 if test -f "$dir/$libname.$acl_libext"; then 4815 found_dir="$dir" 4816 found_a="$dir/$libname.$acl_libext" 4817 fi 4818 fi 4819 if test "X$found_dir" != "X"; then 4820 if test -f "$dir/$libname.la"; then 4821 found_la="$dir/$libname.la" 4822 fi 4823 fi 4824 fi 4825 if test "X$found_dir" = "X"; then 4826 for x in $LDFLAGS $LTLIBICONV; do 4827 4828 acl_save_prefix="$prefix" 4829 prefix="$acl_final_prefix" 4830 acl_save_exec_prefix="$exec_prefix" 4831 exec_prefix="$acl_final_exec_prefix" 4832 eval x=\"$x\" 4833 exec_prefix="$acl_save_exec_prefix" 4834 prefix="$acl_save_prefix" 4835 4836 case "$x" in 4837 -L*) 4838 dir=`echo "X$x" | sed -e 's/^X-L//'` 4839 if test -n "$acl_shlibext"; then 4840 if test -f "$dir/$libname$shrext"; then 4841 found_dir="$dir" 4842 found_so="$dir/$libname$shrext" 4843 else 4844 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 4845 ver=`(cd "$dir" && \ 4846 for f in "$libname$shrext".*; do echo "$f"; done \ 4847 | sed -e "s,^$libname$shrext\\\\.,," \ 4848 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 4849 | sed 1q ) 2>/dev/null` 4850 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 4851 found_dir="$dir" 4852 found_so="$dir/$libname$shrext.$ver" 4853 fi 4854 else 4855 eval library_names=\"$acl_library_names_spec\" 4856 for f in $library_names; do 4857 if test -f "$dir/$f"; then 4858 found_dir="$dir" 4859 found_so="$dir/$f" 4860 break 4861 fi 4862 done 4863 fi 4864 fi 4865 fi 4866 if test "X$found_dir" = "X"; then 4867 if test -f "$dir/$libname.$acl_libext"; then 4868 found_dir="$dir" 4869 found_a="$dir/$libname.$acl_libext" 4870 fi 4871 fi 4872 if test "X$found_dir" != "X"; then 4873 if test -f "$dir/$libname.la"; then 4874 found_la="$dir/$libname.la" 4875 fi 4876 fi 4877 ;; 4878 esac 4879 if test "X$found_dir" != "X"; then 4880 break 4881 fi 4882 done 4883 fi 4884 if test "X$found_dir" != "X"; then 4885 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 4886 if test "X$found_so" != "X"; then 4887 if test "$enable_rpath" = no \ 4888 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 4889 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 4890 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4891 else 4892 haveit= 4893 for x in $ltrpathdirs; do 4894 if test "X$x" = "X$found_dir"; then 4895 haveit=yes 4896 break 4897 fi 4898 done 4899 if test -z "$haveit"; then 4900 ltrpathdirs="$ltrpathdirs $found_dir" 4901 fi 4902 if test "$acl_hardcode_direct" = yes; then 4903 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4904 else 4905 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 4906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4907 haveit= 4908 for x in $rpathdirs; do 4909 if test "X$x" = "X$found_dir"; then 4910 haveit=yes 4911 break 4912 fi 4913 done 4914 if test -z "$haveit"; then 4915 rpathdirs="$rpathdirs $found_dir" 4916 fi 4917 else 4918 haveit= 4919 for x in $LDFLAGS $LIBICONV; do 4920 4921 acl_save_prefix="$prefix" 4922 prefix="$acl_final_prefix" 4923 acl_save_exec_prefix="$exec_prefix" 4924 exec_prefix="$acl_final_exec_prefix" 4925 eval x=\"$x\" 4926 exec_prefix="$acl_save_exec_prefix" 4927 prefix="$acl_save_prefix" 4928 4929 if test "X$x" = "X-L$found_dir"; then 4930 haveit=yes 4931 break 4932 fi 4933 done 4934 if test -z "$haveit"; then 4935 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 4936 fi 4937 if test "$acl_hardcode_minus_L" != no; then 4938 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4939 else 4940 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4941 fi 4942 fi 4943 fi 4944 fi 4945 else 4946 if test "X$found_a" != "X"; then 4947 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 4948 else 4949 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 4950 fi 4951 fi 4952 additional_includedir= 4953 case "$found_dir" in 4954 */$acl_libdirstem | */$acl_libdirstem/) 4955 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 4956 if test "$name" = 'iconv'; then 4957 LIBICONV_PREFIX="$basedir" 4958 fi 4959 additional_includedir="$basedir/include" 4960 ;; 4961 */$acl_libdirstem2 | */$acl_libdirstem2/) 4962 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 4963 if test "$name" = 'iconv'; then 4964 LIBICONV_PREFIX="$basedir" 4965 fi 4966 additional_includedir="$basedir/include" 4967 ;; 4968 esac 4969 if test "X$additional_includedir" != "X"; then 4970 if test "X$additional_includedir" != "X/usr/include"; then 4971 haveit= 4972 if test "X$additional_includedir" = "X/usr/local/include"; then 4973 if test -n "$GCC"; then 4974 case $host_os in 4975 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 4976 esac 4977 fi 4978 fi 4979 if test -z "$haveit"; then 4980 for x in $CPPFLAGS $INCICONV; do 4981 4982 acl_save_prefix="$prefix" 4983 prefix="$acl_final_prefix" 4984 acl_save_exec_prefix="$exec_prefix" 4985 exec_prefix="$acl_final_exec_prefix" 4986 eval x=\"$x\" 4987 exec_prefix="$acl_save_exec_prefix" 4988 prefix="$acl_save_prefix" 4989 4990 if test "X$x" = "X-I$additional_includedir"; then 4991 haveit=yes 4992 break 4993 fi 4994 done 4995 if test -z "$haveit"; then 4996 if test -d "$additional_includedir"; then 4997 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 4998 fi 4999 fi 5000 fi 5001 fi 5002 fi 5003 if test -n "$found_la"; then 5004 save_libdir="$libdir" 5005 case "$found_la" in 5006 */* | *\\*) . "$found_la" ;; 5007 *) . "./$found_la" ;; 5008 esac 5009 libdir="$save_libdir" 5010 for dep in $dependency_libs; do 5011 case "$dep" in 5012 -L*) 5013 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5014 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 5015 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 5016 haveit= 5017 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 5018 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 5019 if test -n "$GCC"; then 5020 case $host_os in 5021 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5022 esac 5023 fi 5024 fi 5025 if test -z "$haveit"; then 5026 haveit= 5027 for x in $LDFLAGS $LIBICONV; do 5028 5029 acl_save_prefix="$prefix" 5030 prefix="$acl_final_prefix" 5031 acl_save_exec_prefix="$exec_prefix" 5032 exec_prefix="$acl_final_exec_prefix" 5033 eval x=\"$x\" 5034 exec_prefix="$acl_save_exec_prefix" 5035 prefix="$acl_save_prefix" 5036 5037 if test "X$x" = "X-L$additional_libdir"; then 5038 haveit=yes 5039 break 5040 fi 5041 done 5042 if test -z "$haveit"; then 5043 if test -d "$additional_libdir"; then 5044 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 5045 fi 5046 fi 5047 haveit= 5048 for x in $LDFLAGS $LTLIBICONV; do 5049 5050 acl_save_prefix="$prefix" 5051 prefix="$acl_final_prefix" 5052 acl_save_exec_prefix="$exec_prefix" 5053 exec_prefix="$acl_final_exec_prefix" 5054 eval x=\"$x\" 5055 exec_prefix="$acl_save_exec_prefix" 5056 prefix="$acl_save_prefix" 5057 5058 if test "X$x" = "X-L$additional_libdir"; then 5059 haveit=yes 5060 break 5061 fi 5062 done 5063 if test -z "$haveit"; then 5064 if test -d "$additional_libdir"; then 5065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 5066 fi 5067 fi 5068 fi 5069 fi 5070 ;; 5071 -R*) 5072 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5073 if test "$enable_rpath" != no; then 5074 haveit= 5075 for x in $rpathdirs; do 5076 if test "X$x" = "X$dir"; then 5077 haveit=yes 5078 break 5079 fi 5080 done 5081 if test -z "$haveit"; then 5082 rpathdirs="$rpathdirs $dir" 5083 fi 5084 haveit= 5085 for x in $ltrpathdirs; do 5086 if test "X$x" = "X$dir"; then 5087 haveit=yes 5088 break 5089 fi 5090 done 5091 if test -z "$haveit"; then 5092 ltrpathdirs="$ltrpathdirs $dir" 5093 fi 5094 fi 5095 ;; 5096 -l*) 5097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5098 ;; 5099 *.la) 5100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5101 ;; 5102 *) 5103 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 5104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 5105 ;; 5106 esac 5107 done 5108 fi 5109 else 5110 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5111 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 5112 fi 5113 fi 5114 fi 5115 done 5116 done 5117 if test "X$rpathdirs" != "X"; then 5118 if test -n "$acl_hardcode_libdir_separator"; then 5119 alldirs= 5120 for found_dir in $rpathdirs; do 5121 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 5122 done 5123 acl_save_libdir="$libdir" 5124 libdir="$alldirs" 5125 eval flag=\"$acl_hardcode_libdir_flag_spec\" 5126 libdir="$acl_save_libdir" 5127 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5128 else 5129 for found_dir in $rpathdirs; do 5130 acl_save_libdir="$libdir" 5131 libdir="$found_dir" 5132 eval flag=\"$acl_hardcode_libdir_flag_spec\" 5133 libdir="$acl_save_libdir" 5134 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5135 done 5136 fi 5137 fi 5138 if test "X$ltrpathdirs" != "X"; then 5139 for found_dir in $ltrpathdirs; do 5140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5141 done 5142 fi 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 am_save_CPPFLAGS="$CPPFLAGS" 5156 5157 for element in $INCICONV; do 5158 haveit= 5159 for x in $CPPFLAGS; do 5160 5161 acl_save_prefix="$prefix" 5162 prefix="$acl_final_prefix" 5163 acl_save_exec_prefix="$exec_prefix" 5164 exec_prefix="$acl_final_exec_prefix" 5165 eval x=\"$x\" 5166 exec_prefix="$acl_save_exec_prefix" 5167 prefix="$acl_save_prefix" 5168 5169 if test "X$x" = "X$element"; then 5170 haveit=yes 5171 break 5172 fi 5173 done 5174 if test -z "$haveit"; then 5175 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5176 fi 5177 done 5178 5179 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5181$as_echo_n "checking for iconv... " >&6; } 5182if ${am_cv_func_iconv+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 5186 am_cv_func_iconv="no, consider installing GNU libiconv" 5187 am_cv_lib_iconv=no 5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5189/* end confdefs.h. */ 5190 5191#include <stdlib.h> 5192#include <iconv.h> 5193 5194int 5195main () 5196{ 5197iconv_t cd = iconv_open("",""); 5198 iconv(cd,NULL,NULL,NULL,NULL); 5199 iconv_close(cd); 5200 ; 5201 return 0; 5202} 5203_ACEOF 5204if ac_fn_c_try_link "$LINENO"; then : 5205 am_cv_func_iconv=yes 5206fi 5207rm -f core conftest.err conftest.$ac_objext \ 5208 conftest$ac_exeext conftest.$ac_ext 5209 if test "$am_cv_func_iconv" != yes; then 5210 am_save_LIBS="$LIBS" 5211 LIBS="$LIBS $LIBICONV" 5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213/* end confdefs.h. */ 5214 5215#include <stdlib.h> 5216#include <iconv.h> 5217 5218int 5219main () 5220{ 5221iconv_t cd = iconv_open("",""); 5222 iconv(cd,NULL,NULL,NULL,NULL); 5223 iconv_close(cd); 5224 ; 5225 return 0; 5226} 5227_ACEOF 5228if ac_fn_c_try_link "$LINENO"; then : 5229 am_cv_lib_iconv=yes 5230 am_cv_func_iconv=yes 5231fi 5232rm -f core conftest.err conftest.$ac_objext \ 5233 conftest$ac_exeext conftest.$ac_ext 5234 LIBS="$am_save_LIBS" 5235 fi 5236 5237fi 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 5239$as_echo "$am_cv_func_iconv" >&6; } 5240 if test "$am_cv_func_iconv" = yes; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 5242$as_echo_n "checking for working iconv... " >&6; } 5243if ${am_cv_func_iconv_works+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245else 5246 5247 am_save_LIBS="$LIBS" 5248 if test $am_cv_lib_iconv = yes; then 5249 LIBS="$LIBS $LIBICONV" 5250 fi 5251 am_cv_func_iconv_works=no 5252 for ac_iconv_const in '' 'const'; do 5253 if test "$cross_compiling" = yes; then : 5254 case "$host_os" in 5255 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 5256 *) am_cv_func_iconv_works="guessing yes" ;; 5257 esac 5258else 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261 5262#include <iconv.h> 5263#include <string.h> 5264 5265#ifndef ICONV_CONST 5266# define ICONV_CONST $ac_iconv_const 5267#endif 5268 5269int 5270main () 5271{ 5272int result = 0; 5273 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 5274 returns. */ 5275 { 5276 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 5277 if (cd_utf8_to_88591 != (iconv_t)(-1)) 5278 { 5279 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 5280 char buf[10]; 5281 ICONV_CONST char *inptr = input; 5282 size_t inbytesleft = strlen (input); 5283 char *outptr = buf; 5284 size_t outbytesleft = sizeof (buf); 5285 size_t res = iconv (cd_utf8_to_88591, 5286 &inptr, &inbytesleft, 5287 &outptr, &outbytesleft); 5288 if (res == 0) 5289 result |= 1; 5290 iconv_close (cd_utf8_to_88591); 5291 } 5292 } 5293 /* Test against Solaris 10 bug: Failures are not distinguishable from 5294 successful returns. */ 5295 { 5296 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 5297 if (cd_ascii_to_88591 != (iconv_t)(-1)) 5298 { 5299 static ICONV_CONST char input[] = "\263"; 5300 char buf[10]; 5301 ICONV_CONST char *inptr = input; 5302 size_t inbytesleft = strlen (input); 5303 char *outptr = buf; 5304 size_t outbytesleft = sizeof (buf); 5305 size_t res = iconv (cd_ascii_to_88591, 5306 &inptr, &inbytesleft, 5307 &outptr, &outbytesleft); 5308 if (res == 0) 5309 result |= 2; 5310 iconv_close (cd_ascii_to_88591); 5311 } 5312 } 5313 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 5314 { 5315 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 5316 if (cd_88591_to_utf8 != (iconv_t)(-1)) 5317 { 5318 static ICONV_CONST char input[] = "\304"; 5319 static char buf[2] = { (char)0xDE, (char)0xAD }; 5320 ICONV_CONST char *inptr = input; 5321 size_t inbytesleft = 1; 5322 char *outptr = buf; 5323 size_t outbytesleft = 1; 5324 size_t res = iconv (cd_88591_to_utf8, 5325 &inptr, &inbytesleft, 5326 &outptr, &outbytesleft); 5327 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 5328 result |= 4; 5329 iconv_close (cd_88591_to_utf8); 5330 } 5331 } 5332#if 0 /* This bug could be worked around by the caller. */ 5333 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 5334 { 5335 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 5336 if (cd_88591_to_utf8 != (iconv_t)(-1)) 5337 { 5338 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 5339 char buf[50]; 5340 ICONV_CONST char *inptr = input; 5341 size_t inbytesleft = strlen (input); 5342 char *outptr = buf; 5343 size_t outbytesleft = sizeof (buf); 5344 size_t res = iconv (cd_88591_to_utf8, 5345 &inptr, &inbytesleft, 5346 &outptr, &outbytesleft); 5347 if ((int)res > 0) 5348 result |= 8; 5349 iconv_close (cd_88591_to_utf8); 5350 } 5351 } 5352#endif 5353 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 5354 provided. */ 5355 if (/* Try standardized names. */ 5356 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 5357 /* Try IRIX, OSF/1 names. */ 5358 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 5359 /* Try AIX names. */ 5360 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 5361 /* Try HP-UX names. */ 5362 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 5363 result |= 16; 5364 return result; 5365 5366 ; 5367 return 0; 5368} 5369_ACEOF 5370if ac_fn_c_try_run "$LINENO"; then : 5371 am_cv_func_iconv_works=yes 5372fi 5373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5374 conftest.$ac_objext conftest.beam conftest.$ac_ext 5375fi 5376 5377 test "$am_cv_func_iconv_works" = no || break 5378 done 5379 LIBS="$am_save_LIBS" 5380 5381fi 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 5383$as_echo "$am_cv_func_iconv_works" >&6; } 5384 case "$am_cv_func_iconv_works" in 5385 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 5386 *) am_func_iconv=yes ;; 5387 esac 5388 else 5389 am_func_iconv=no am_cv_lib_iconv=no 5390 fi 5391 if test "$am_func_iconv" = yes; then 5392 5393$as_echo "#define HAVE_ICONV 1" >>confdefs.h 5394 5395 fi 5396 if test "$am_cv_lib_iconv" = yes; then 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 5398$as_echo_n "checking how to link with libiconv... " >&6; } 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 5400$as_echo "$LIBICONV" >&6; } 5401 else 5402 CPPFLAGS="$am_save_CPPFLAGS" 5403 LIBICONV= 5404 LTLIBICONV= 5405 fi 5406 5407 5408 5409 if test "$am_cv_func_iconv" = yes; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 5411$as_echo_n "checking for iconv declaration... " >&6; } 5412 if ${am_cv_proto_iconv+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418 5419#include <stdlib.h> 5420#include <iconv.h> 5421extern 5422#ifdef __cplusplus 5423"C" 5424#endif 5425#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 5426size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 5427#else 5428size_t iconv(); 5429#endif 5430 5431int 5432main () 5433{ 5434 5435 ; 5436 return 0; 5437} 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO"; then : 5440 am_cv_proto_iconv_arg1="" 5441else 5442 am_cv_proto_iconv_arg1="const" 5443fi 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 5446fi 5447 5448 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5450 $am_cv_proto_iconv" >&5 5451$as_echo " 5452 $am_cv_proto_iconv" >&6; } 5453 5454cat >>confdefs.h <<_ACEOF 5455#define ICONV_CONST $am_cv_proto_iconv_arg1 5456_ACEOF 5457 5458 5459 fi 5460 5461 5462# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5475$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5476if ${ac_cv_prog_cc_c99+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 ac_cv_prog_cc_c99=no 5480ac_save_CC=$CC 5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483#include <stdarg.h> 5484#include <stdbool.h> 5485#include <stdlib.h> 5486#include <wchar.h> 5487#include <stdio.h> 5488 5489// Check varargs macros. These examples are taken from C99 6.10.3.5. 5490#define debug(...) fprintf (stderr, __VA_ARGS__) 5491#define showlist(...) puts (#__VA_ARGS__) 5492#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5493static void 5494test_varargs_macros (void) 5495{ 5496 int x = 1234; 5497 int y = 5678; 5498 debug ("Flag"); 5499 debug ("X = %d\n", x); 5500 showlist (The first, second, and third items.); 5501 report (x>y, "x is %d but y is %d", x, y); 5502} 5503 5504// Check long long types. 5505#define BIG64 18446744073709551615ull 5506#define BIG32 4294967295ul 5507#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5508#if !BIG_OK 5509 your preprocessor is broken; 5510#endif 5511#if BIG_OK 5512#else 5513 your preprocessor is broken; 5514#endif 5515static long long int bignum = -9223372036854775807LL; 5516static unsigned long long int ubignum = BIG64; 5517 5518struct incomplete_array 5519{ 5520 int datasize; 5521 double data[]; 5522}; 5523 5524struct named_init { 5525 int number; 5526 const wchar_t *name; 5527 double average; 5528}; 5529 5530typedef const char *ccp; 5531 5532static inline int 5533test_restrict (ccp restrict text) 5534{ 5535 // See if C++-style comments work. 5536 // Iterate through items via the restricted pointer. 5537 // Also check for declarations in for loops. 5538 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5539 continue; 5540 return 0; 5541} 5542 5543// Check varargs and va_copy. 5544static void 5545test_varargs (const char *format, ...) 5546{ 5547 va_list args; 5548 va_start (args, format); 5549 va_list args_copy; 5550 va_copy (args_copy, args); 5551 5552 const char *str; 5553 int number; 5554 float fnumber; 5555 5556 while (*format) 5557 { 5558 switch (*format++) 5559 { 5560 case 's': // string 5561 str = va_arg (args_copy, const char *); 5562 break; 5563 case 'd': // int 5564 number = va_arg (args_copy, int); 5565 break; 5566 case 'f': // float 5567 fnumber = va_arg (args_copy, double); 5568 break; 5569 default: 5570 break; 5571 } 5572 } 5573 va_end (args_copy); 5574 va_end (args); 5575} 5576 5577int 5578main () 5579{ 5580 5581 // Check bool. 5582 _Bool success = false; 5583 5584 // Check restrict. 5585 if (test_restrict ("String literal") == 0) 5586 success = true; 5587 char *restrict newvar = "Another string"; 5588 5589 // Check varargs. 5590 test_varargs ("s, d' f .", "string", 65, 34.234); 5591 test_varargs_macros (); 5592 5593 // Check flexible array members. 5594 struct incomplete_array *ia = 5595 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5596 ia->datasize = 10; 5597 for (int i = 0; i < ia->datasize; ++i) 5598 ia->data[i] = i * 1.234; 5599 5600 // Check named initializers. 5601 struct named_init ni = { 5602 .number = 34, 5603 .name = L"Test wide string", 5604 .average = 543.34343, 5605 }; 5606 5607 ni.number = 58; 5608 5609 int dynamic_array[ni.number]; 5610 dynamic_array[ni.number - 1] = 543; 5611 5612 // work around unused variable warnings 5613 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5614 || dynamic_array[ni.number - 1] != 543); 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5621do 5622 CC="$ac_save_CC $ac_arg" 5623 if ac_fn_c_try_compile "$LINENO"; then : 5624 ac_cv_prog_cc_c99=$ac_arg 5625fi 5626rm -f core conftest.err conftest.$ac_objext 5627 test "x$ac_cv_prog_cc_c99" != "xno" && break 5628done 5629rm -f conftest.$ac_ext 5630CC=$ac_save_CC 5631 5632fi 5633# AC_CACHE_VAL 5634case "x$ac_cv_prog_cc_c99" in 5635 x) 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5637$as_echo "none needed" >&6; } ;; 5638 xno) 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5640$as_echo "unsupported" >&6; } ;; 5641 *) 5642 CC="$CC $ac_cv_prog_cc_c99" 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5644$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5645esac 5646if test "x$ac_cv_prog_cc_c99" != xno; then : 5647 5648fi 5649 5650 5651 5652 5653 5654 5655ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 5656if test "x$ac_cv_have_decl___clang__" = xyes; then : 5657 CLANGCC="yes" 5658else 5659 CLANGCC="no" 5660fi 5661 5662ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5663if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 5664 INTELCC="yes" 5665else 5666 INTELCC="no" 5667fi 5668 5669ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5670if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 5671 SUNCC="yes" 5672else 5673 SUNCC="no" 5674fi 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5685 if test -n "$ac_tool_prefix"; then 5686 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5687set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5689$as_echo_n "checking for $ac_word... " >&6; } 5690if ${ac_cv_path_PKG_CONFIG+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 case $PKG_CONFIG in 5694 [\\/]* | ?:[\\/]*) 5695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5696 ;; 5697 *) 5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699for as_dir in $PATH 5700do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709done 5710 done 5711IFS=$as_save_IFS 5712 5713 ;; 5714esac 5715fi 5716PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5717if test -n "$PKG_CONFIG"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5719$as_echo "$PKG_CONFIG" >&6; } 5720else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722$as_echo "no" >&6; } 5723fi 5724 5725 5726fi 5727if test -z "$ac_cv_path_PKG_CONFIG"; then 5728 ac_pt_PKG_CONFIG=$PKG_CONFIG 5729 # Extract the first word of "pkg-config", so it can be a program name with args. 5730set dummy pkg-config; ac_word=$2 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5732$as_echo_n "checking for $ac_word... " >&6; } 5733if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5734 $as_echo_n "(cached) " >&6 5735else 5736 case $ac_pt_PKG_CONFIG in 5737 [\\/]* | ?:[\\/]*) 5738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5739 ;; 5740 *) 5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5742for as_dir in $PATH 5743do 5744 IFS=$as_save_IFS 5745 test -z "$as_dir" && as_dir=. 5746 for ac_exec_ext in '' $ac_executable_extensions; do 5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5748 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5750 break 2 5751 fi 5752done 5753 done 5754IFS=$as_save_IFS 5755 5756 ;; 5757esac 5758fi 5759ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5760if test -n "$ac_pt_PKG_CONFIG"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5762$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5763else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5765$as_echo "no" >&6; } 5766fi 5767 5768 if test "x$ac_pt_PKG_CONFIG" = x; then 5769 PKG_CONFIG="" 5770 else 5771 case $cross_compiling:$ac_tool_warned in 5772yes:) 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5775ac_tool_warned=yes ;; 5776esac 5777 PKG_CONFIG=$ac_pt_PKG_CONFIG 5778 fi 5779else 5780 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5781fi 5782 5783fi 5784if test -n "$PKG_CONFIG"; then 5785 _pkg_min_version=0.9.0 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5787$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5788 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5790$as_echo "yes" >&6; } 5791 else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794 PKG_CONFIG="" 5795 fi 5796fi 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5798$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5799if ${ac_cv_path_SED+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5803 for ac_i in 1 2 3 4 5 6 7; do 5804 ac_script="$ac_script$as_nl$ac_script" 5805 done 5806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5807 { ac_script=; unset ac_script;} 5808 if test -z "$SED"; then 5809 ac_path_SED_found=false 5810 # Loop through the user's path and test for each of PROGNAME-LIST 5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5812for as_dir in $PATH 5813do 5814 IFS=$as_save_IFS 5815 test -z "$as_dir" && as_dir=. 5816 for ac_prog in sed gsed; do 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5819 as_fn_executable_p "$ac_path_SED" || continue 5820# Check for GNU ac_path_SED and select it if it is found. 5821 # Check for GNU $ac_path_SED 5822case `"$ac_path_SED" --version 2>&1` in 5823*GNU*) 5824 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5825*) 5826 ac_count=0 5827 $as_echo_n 0123456789 >"conftest.in" 5828 while : 5829 do 5830 cat "conftest.in" "conftest.in" >"conftest.tmp" 5831 mv "conftest.tmp" "conftest.in" 5832 cp "conftest.in" "conftest.nl" 5833 $as_echo '' >> "conftest.nl" 5834 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5836 as_fn_arith $ac_count + 1 && ac_count=$as_val 5837 if test $ac_count -gt ${ac_path_SED_max-0}; then 5838 # Best one so far, save it but keep looking for a better one 5839 ac_cv_path_SED="$ac_path_SED" 5840 ac_path_SED_max=$ac_count 5841 fi 5842 # 10*(2^10) chars as input seems more than enough 5843 test $ac_count -gt 10 && break 5844 done 5845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5846esac 5847 5848 $ac_path_SED_found && break 3 5849 done 5850 done 5851 done 5852IFS=$as_save_IFS 5853 if test -z "$ac_cv_path_SED"; then 5854 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5855 fi 5856else 5857 ac_cv_path_SED=$SED 5858fi 5859 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5862$as_echo "$ac_cv_path_SED" >&6; } 5863 SED="$ac_cv_path_SED" 5864 rm -f conftest.sed 5865 5866 5867 5868 5869 5870 5871# Check whether --enable-selective-werror was given. 5872if test "${enable_selective_werror+set}" = set; then : 5873 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5874else 5875 SELECTIVE_WERROR=yes 5876fi 5877 5878 5879 5880 5881 5882# -v is too short to test reliably with XORG_TESTSET_CFLAG 5883if test "x$SUNCC" = "xyes"; then 5884 BASE_CFLAGS="-v" 5885else 5886 BASE_CFLAGS="" 5887fi 5888 5889# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903xorg_testset_save_CFLAGS="$CFLAGS" 5904 5905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914int i; 5915_ACEOF 5916if ac_fn_c_try_compile "$LINENO"; then : 5917 xorg_cv_cc_flag_unknown_warning_option=yes 5918else 5919 xorg_cv_cc_flag_unknown_warning_option=no 5920fi 5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5922fi 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5926 CFLAGS="$xorg_testset_save_CFLAGS" 5927fi 5928 5929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5932 fi 5933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5940/* end confdefs.h. */ 5941int i; 5942_ACEOF 5943if ac_fn_c_try_compile "$LINENO"; then : 5944 xorg_cv_cc_flag_unused_command_line_argument=yes 5945else 5946 xorg_cv_cc_flag_unused_command_line_argument=no 5947fi 5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5949fi 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5953 CFLAGS="$xorg_testset_save_CFLAGS" 5954fi 5955 5956found="no" 5957 5958 if test $found = "no" ; then 5959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 fi 5962 5963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5965 fi 5966 5967 CFLAGS="$CFLAGS -Wall" 5968 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5970$as_echo_n "checking if $CC supports -Wall... " >&6; } 5971 cacheid=xorg_cv_cc_flag__Wall 5972 if eval \${$cacheid+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976/* end confdefs.h. */ 5977int i; 5978int 5979main () 5980{ 5981 5982 ; 5983 return 0; 5984} 5985_ACEOF 5986if ac_fn_c_try_link "$LINENO"; then : 5987 eval $cacheid=yes 5988else 5989 eval $cacheid=no 5990fi 5991rm -f core conftest.err conftest.$ac_objext \ 5992 conftest$ac_exeext conftest.$ac_ext 5993fi 5994 5995 5996 CFLAGS="$xorg_testset_save_CFLAGS" 5997 5998 eval supported=\$$cacheid 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6000$as_echo "$supported" >&6; } 6001 if test "$supported" = "yes" ; then 6002 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6003 found="yes" 6004 fi 6005 fi 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021xorg_testset_save_CFLAGS="$CFLAGS" 6022 6023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032int i; 6033_ACEOF 6034if ac_fn_c_try_compile "$LINENO"; then : 6035 xorg_cv_cc_flag_unknown_warning_option=yes 6036else 6037 xorg_cv_cc_flag_unknown_warning_option=no 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6040fi 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6044 CFLAGS="$xorg_testset_save_CFLAGS" 6045fi 6046 6047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6050 fi 6051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6058/* end confdefs.h. */ 6059int i; 6060_ACEOF 6061if ac_fn_c_try_compile "$LINENO"; then : 6062 xorg_cv_cc_flag_unused_command_line_argument=yes 6063else 6064 xorg_cv_cc_flag_unused_command_line_argument=no 6065fi 6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6071 CFLAGS="$xorg_testset_save_CFLAGS" 6072fi 6073 6074found="no" 6075 6076 if test $found = "no" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 6081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6083 fi 6084 6085 CFLAGS="$CFLAGS -Wpointer-arith" 6086 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6088$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 6089 cacheid=xorg_cv_cc_flag__Wpointer_arith 6090 if eval \${$cacheid+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6094/* end confdefs.h. */ 6095int i; 6096int 6097main () 6098{ 6099 6100 ; 6101 return 0; 6102} 6103_ACEOF 6104if ac_fn_c_try_link "$LINENO"; then : 6105 eval $cacheid=yes 6106else 6107 eval $cacheid=no 6108fi 6109rm -f core conftest.err conftest.$ac_objext \ 6110 conftest$ac_exeext conftest.$ac_ext 6111fi 6112 6113 6114 CFLAGS="$xorg_testset_save_CFLAGS" 6115 6116 eval supported=\$$cacheid 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6118$as_echo "$supported" >&6; } 6119 if test "$supported" = "yes" ; then 6120 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6121 found="yes" 6122 fi 6123 fi 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139xorg_testset_save_CFLAGS="$CFLAGS" 6140 6141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150int i; 6151_ACEOF 6152if ac_fn_c_try_compile "$LINENO"; then : 6153 xorg_cv_cc_flag_unknown_warning_option=yes 6154else 6155 xorg_cv_cc_flag_unknown_warning_option=no 6156fi 6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6158fi 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6162 CFLAGS="$xorg_testset_save_CFLAGS" 6163fi 6164 6165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6168 fi 6169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6176/* end confdefs.h. */ 6177int i; 6178_ACEOF 6179if ac_fn_c_try_compile "$LINENO"; then : 6180 xorg_cv_cc_flag_unused_command_line_argument=yes 6181else 6182 xorg_cv_cc_flag_unused_command_line_argument=no 6183fi 6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6185fi 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6189 CFLAGS="$xorg_testset_save_CFLAGS" 6190fi 6191 6192found="no" 6193 6194 if test $found = "no" ; then 6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 fi 6198 6199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6201 fi 6202 6203 CFLAGS="$CFLAGS -Wmissing-declarations" 6204 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6206$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 6207 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6208 if eval \${$cacheid+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214int 6215main () 6216{ 6217 6218 ; 6219 return 0; 6220} 6221_ACEOF 6222if ac_fn_c_try_link "$LINENO"; then : 6223 eval $cacheid=yes 6224else 6225 eval $cacheid=no 6226fi 6227rm -f core conftest.err conftest.$ac_objext \ 6228 conftest$ac_exeext conftest.$ac_ext 6229fi 6230 6231 6232 CFLAGS="$xorg_testset_save_CFLAGS" 6233 6234 eval supported=\$$cacheid 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6236$as_echo "$supported" >&6; } 6237 if test "$supported" = "yes" ; then 6238 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6239 found="yes" 6240 fi 6241 fi 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257xorg_testset_save_CFLAGS="$CFLAGS" 6258 6259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269_ACEOF 6270if ac_fn_c_try_compile "$LINENO"; then : 6271 xorg_cv_cc_flag_unknown_warning_option=yes 6272else 6273 xorg_cv_cc_flag_unknown_warning_option=no 6274fi 6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6276fi 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6280 CFLAGS="$xorg_testset_save_CFLAGS" 6281fi 6282 6283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6286 fi 6287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6294/* end confdefs.h. */ 6295int i; 6296_ACEOF 6297if ac_fn_c_try_compile "$LINENO"; then : 6298 xorg_cv_cc_flag_unused_command_line_argument=yes 6299else 6300 xorg_cv_cc_flag_unused_command_line_argument=no 6301fi 6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6303fi 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6307 CFLAGS="$xorg_testset_save_CFLAGS" 6308fi 6309 6310found="no" 6311 6312 if test $found = "no" ; then 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 fi 6316 6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6319 fi 6320 6321 CFLAGS="$CFLAGS -Wformat=2" 6322 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6324$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 6325 cacheid=xorg_cv_cc_flag__Wformat_2 6326 if eval \${$cacheid+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331int i; 6332int 6333main () 6334{ 6335 6336 ; 6337 return 0; 6338} 6339_ACEOF 6340if ac_fn_c_try_link "$LINENO"; then : 6341 eval $cacheid=yes 6342else 6343 eval $cacheid=no 6344fi 6345rm -f core conftest.err conftest.$ac_objext \ 6346 conftest$ac_exeext conftest.$ac_ext 6347fi 6348 6349 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351 6352 eval supported=\$$cacheid 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6354$as_echo "$supported" >&6; } 6355 if test "$supported" = "yes" ; then 6356 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6357 found="yes" 6358 fi 6359 fi 6360 6361 if test $found = "no" ; then 6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6364 fi 6365 6366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6368 fi 6369 6370 CFLAGS="$CFLAGS -Wformat" 6371 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6373$as_echo_n "checking if $CC supports -Wformat... " >&6; } 6374 cacheid=xorg_cv_cc_flag__Wformat 6375 if eval \${$cacheid+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380int i; 6381int 6382main () 6383{ 6384 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389if ac_fn_c_try_link "$LINENO"; then : 6390 eval $cacheid=yes 6391else 6392 eval $cacheid=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext \ 6395 conftest$ac_exeext conftest.$ac_ext 6396fi 6397 6398 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400 6401 eval supported=\$$cacheid 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6403$as_echo "$supported" >&6; } 6404 if test "$supported" = "yes" ; then 6405 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6406 found="yes" 6407 fi 6408 fi 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426xorg_testset_save_CFLAGS="$CFLAGS" 6427 6428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438_ACEOF 6439if ac_fn_c_try_compile "$LINENO"; then : 6440 xorg_cv_cc_flag_unknown_warning_option=yes 6441else 6442 xorg_cv_cc_flag_unknown_warning_option=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445fi 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450fi 6451 6452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455 fi 6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6460 $as_echo_n "(cached) " >&6 6461else 6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6463/* end confdefs.h. */ 6464int i; 6465_ACEOF 6466if ac_fn_c_try_compile "$LINENO"; then : 6467 xorg_cv_cc_flag_unused_command_line_argument=yes 6468else 6469 xorg_cv_cc_flag_unused_command_line_argument=no 6470fi 6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6476 CFLAGS="$xorg_testset_save_CFLAGS" 6477fi 6478 6479found="no" 6480 6481 if test $found = "no" ; then 6482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6484 fi 6485 6486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6488 fi 6489 6490 CFLAGS="$CFLAGS -Wstrict-prototypes" 6491 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6493$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 6494 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6495 if eval \${$cacheid+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6499/* end confdefs.h. */ 6500int i; 6501int 6502main () 6503{ 6504 6505 ; 6506 return 0; 6507} 6508_ACEOF 6509if ac_fn_c_try_link "$LINENO"; then : 6510 eval $cacheid=yes 6511else 6512 eval $cacheid=no 6513fi 6514rm -f core conftest.err conftest.$ac_objext \ 6515 conftest$ac_exeext conftest.$ac_ext 6516fi 6517 6518 6519 CFLAGS="$xorg_testset_save_CFLAGS" 6520 6521 eval supported=\$$cacheid 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6523$as_echo "$supported" >&6; } 6524 if test "$supported" = "yes" ; then 6525 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6526 found="yes" 6527 fi 6528 fi 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544xorg_testset_save_CFLAGS="$CFLAGS" 6545 6546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556_ACEOF 6557if ac_fn_c_try_compile "$LINENO"; then : 6558 xorg_cv_cc_flag_unknown_warning_option=yes 6559else 6560 xorg_cv_cc_flag_unknown_warning_option=no 6561fi 6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6563fi 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568fi 6569 6570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6573 fi 6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6578 $as_echo_n "(cached) " >&6 6579else 6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581/* end confdefs.h. */ 6582int i; 6583_ACEOF 6584if ac_fn_c_try_compile "$LINENO"; then : 6585 xorg_cv_cc_flag_unused_command_line_argument=yes 6586else 6587 xorg_cv_cc_flag_unused_command_line_argument=no 6588fi 6589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6590fi 6591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6594 CFLAGS="$xorg_testset_save_CFLAGS" 6595fi 6596 6597found="no" 6598 6599 if test $found = "no" ; then 6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 fi 6603 6604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6606 fi 6607 6608 CFLAGS="$CFLAGS -Wmissing-prototypes" 6609 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6611$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 6612 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6613 if eval \${$cacheid+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615else 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618int i; 6619int 6620main () 6621{ 6622 6623 ; 6624 return 0; 6625} 6626_ACEOF 6627if ac_fn_c_try_link "$LINENO"; then : 6628 eval $cacheid=yes 6629else 6630 eval $cacheid=no 6631fi 6632rm -f core conftest.err conftest.$ac_objext \ 6633 conftest$ac_exeext conftest.$ac_ext 6634fi 6635 6636 6637 CFLAGS="$xorg_testset_save_CFLAGS" 6638 6639 eval supported=\$$cacheid 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6641$as_echo "$supported" >&6; } 6642 if test "$supported" = "yes" ; then 6643 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6644 found="yes" 6645 fi 6646 fi 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662xorg_testset_save_CFLAGS="$CFLAGS" 6663 6664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674_ACEOF 6675if ac_fn_c_try_compile "$LINENO"; then : 6676 xorg_cv_cc_flag_unknown_warning_option=yes 6677else 6678 xorg_cv_cc_flag_unknown_warning_option=no 6679fi 6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6681fi 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6685 CFLAGS="$xorg_testset_save_CFLAGS" 6686fi 6687 6688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6691 fi 6692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6696 $as_echo_n "(cached) " >&6 6697else 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700int i; 6701_ACEOF 6702if ac_fn_c_try_compile "$LINENO"; then : 6703 xorg_cv_cc_flag_unused_command_line_argument=yes 6704else 6705 xorg_cv_cc_flag_unused_command_line_argument=no 6706fi 6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6708fi 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6712 CFLAGS="$xorg_testset_save_CFLAGS" 6713fi 6714 6715found="no" 6716 6717 if test $found = "no" ; then 6718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6720 fi 6721 6722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6724 fi 6725 6726 CFLAGS="$CFLAGS -Wnested-externs" 6727 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6729$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6730 cacheid=xorg_cv_cc_flag__Wnested_externs 6731 if eval \${$cacheid+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6735/* end confdefs.h. */ 6736int i; 6737int 6738main () 6739{ 6740 6741 ; 6742 return 0; 6743} 6744_ACEOF 6745if ac_fn_c_try_link "$LINENO"; then : 6746 eval $cacheid=yes 6747else 6748 eval $cacheid=no 6749fi 6750rm -f core conftest.err conftest.$ac_objext \ 6751 conftest$ac_exeext conftest.$ac_ext 6752fi 6753 6754 6755 CFLAGS="$xorg_testset_save_CFLAGS" 6756 6757 eval supported=\$$cacheid 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6759$as_echo "$supported" >&6; } 6760 if test "$supported" = "yes" ; then 6761 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6762 found="yes" 6763 fi 6764 fi 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780xorg_testset_save_CFLAGS="$CFLAGS" 6781 6782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792_ACEOF 6793if ac_fn_c_try_compile "$LINENO"; then : 6794 xorg_cv_cc_flag_unknown_warning_option=yes 6795else 6796 xorg_cv_cc_flag_unknown_warning_option=no 6797fi 6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6799fi 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 fi 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6817/* end confdefs.h. */ 6818int i; 6819_ACEOF 6820if ac_fn_c_try_compile "$LINENO"; then : 6821 xorg_cv_cc_flag_unused_command_line_argument=yes 6822else 6823 xorg_cv_cc_flag_unused_command_line_argument=no 6824fi 6825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6826fi 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6830 CFLAGS="$xorg_testset_save_CFLAGS" 6831fi 6832 6833found="no" 6834 6835 if test $found = "no" ; then 6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 6840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6842 fi 6843 6844 CFLAGS="$CFLAGS -Wbad-function-cast" 6845 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6847$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6848 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6849 if eval \${$cacheid+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6853/* end confdefs.h. */ 6854int i; 6855int 6856main () 6857{ 6858 6859 ; 6860 return 0; 6861} 6862_ACEOF 6863if ac_fn_c_try_link "$LINENO"; then : 6864 eval $cacheid=yes 6865else 6866 eval $cacheid=no 6867fi 6868rm -f core conftest.err conftest.$ac_objext \ 6869 conftest$ac_exeext conftest.$ac_ext 6870fi 6871 6872 6873 CFLAGS="$xorg_testset_save_CFLAGS" 6874 6875 eval supported=\$$cacheid 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6877$as_echo "$supported" >&6; } 6878 if test "$supported" = "yes" ; then 6879 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6880 found="yes" 6881 fi 6882 fi 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898xorg_testset_save_CFLAGS="$CFLAGS" 6899 6900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908/* end confdefs.h. */ 6909int i; 6910_ACEOF 6911if ac_fn_c_try_compile "$LINENO"; then : 6912 xorg_cv_cc_flag_unknown_warning_option=yes 6913else 6914 xorg_cv_cc_flag_unknown_warning_option=no 6915fi 6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6917fi 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6921 CFLAGS="$xorg_testset_save_CFLAGS" 6922fi 6923 6924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6927 fi 6928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6935/* end confdefs.h. */ 6936int i; 6937_ACEOF 6938if ac_fn_c_try_compile "$LINENO"; then : 6939 xorg_cv_cc_flag_unused_command_line_argument=yes 6940else 6941 xorg_cv_cc_flag_unused_command_line_argument=no 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6944fi 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949fi 6950 6951found="no" 6952 6953 if test $found = "no" ; then 6954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6956 fi 6957 6958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6960 fi 6961 6962 CFLAGS="$CFLAGS -Wold-style-definition" 6963 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6965$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6966 cacheid=xorg_cv_cc_flag__Wold_style_definition 6967 if eval \${$cacheid+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971/* end confdefs.h. */ 6972int i; 6973int 6974main () 6975{ 6976 6977 ; 6978 return 0; 6979} 6980_ACEOF 6981if ac_fn_c_try_link "$LINENO"; then : 6982 eval $cacheid=yes 6983else 6984 eval $cacheid=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext \ 6987 conftest$ac_exeext conftest.$ac_ext 6988fi 6989 6990 6991 CFLAGS="$xorg_testset_save_CFLAGS" 6992 6993 eval supported=\$$cacheid 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6995$as_echo "$supported" >&6; } 6996 if test "$supported" = "yes" ; then 6997 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6998 found="yes" 6999 fi 7000 fi 7001 7002 if test $found = "no" ; then 7003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 fi 7006 7007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 fi 7010 7011 CFLAGS="$CFLAGS -fd" 7012 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7014$as_echo_n "checking if $CC supports -fd... " >&6; } 7015 cacheid=xorg_cv_cc_flag__fd 7016 if eval \${$cacheid+:} false; then : 7017 $as_echo_n "(cached) " >&6 7018else 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021int i; 7022int 7023main () 7024{ 7025 7026 ; 7027 return 0; 7028} 7029_ACEOF 7030if ac_fn_c_try_link "$LINENO"; then : 7031 eval $cacheid=yes 7032else 7033 eval $cacheid=no 7034fi 7035rm -f core conftest.err conftest.$ac_objext \ 7036 conftest$ac_exeext conftest.$ac_ext 7037fi 7038 7039 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041 7042 eval supported=\$$cacheid 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7044$as_echo "$supported" >&6; } 7045 if test "$supported" = "yes" ; then 7046 BASE_CFLAGS="$BASE_CFLAGS -fd" 7047 found="yes" 7048 fi 7049 fi 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065xorg_testset_save_CFLAGS="$CFLAGS" 7066 7067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7072 $as_echo_n "(cached) " >&6 7073else 7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076int i; 7077_ACEOF 7078if ac_fn_c_try_compile "$LINENO"; then : 7079 xorg_cv_cc_flag_unknown_warning_option=yes 7080else 7081 xorg_cv_cc_flag_unknown_warning_option=no 7082fi 7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7084fi 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7088 CFLAGS="$xorg_testset_save_CFLAGS" 7089fi 7090 7091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7094 fi 7095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7102/* end confdefs.h. */ 7103int i; 7104_ACEOF 7105if ac_fn_c_try_compile "$LINENO"; then : 7106 xorg_cv_cc_flag_unused_command_line_argument=yes 7107else 7108 xorg_cv_cc_flag_unused_command_line_argument=no 7109fi 7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7111fi 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7115 CFLAGS="$xorg_testset_save_CFLAGS" 7116fi 7117 7118found="no" 7119 7120 if test $found = "no" ; then 7121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7123 fi 7124 7125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7127 fi 7128 7129 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7130 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7132$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7133 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7134 if eval \${$cacheid+:} false; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7138/* end confdefs.h. */ 7139int i; 7140int 7141main () 7142{ 7143 7144 ; 7145 return 0; 7146} 7147_ACEOF 7148if ac_fn_c_try_link "$LINENO"; then : 7149 eval $cacheid=yes 7150else 7151 eval $cacheid=no 7152fi 7153rm -f core conftest.err conftest.$ac_objext \ 7154 conftest$ac_exeext conftest.$ac_ext 7155fi 7156 7157 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159 7160 eval supported=\$$cacheid 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7162$as_echo "$supported" >&6; } 7163 if test "$supported" = "yes" ; then 7164 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7165 found="yes" 7166 fi 7167 fi 7168 7169 7170 7171 7172 7173# This chunk adds additional warnings that could catch undesired effects. 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187xorg_testset_save_CFLAGS="$CFLAGS" 7188 7189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198int i; 7199_ACEOF 7200if ac_fn_c_try_compile "$LINENO"; then : 7201 xorg_cv_cc_flag_unknown_warning_option=yes 7202else 7203 xorg_cv_cc_flag_unknown_warning_option=no 7204fi 7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7206fi 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211fi 7212 7213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225int i; 7226_ACEOF 7227if ac_fn_c_try_compile "$LINENO"; then : 7228 xorg_cv_cc_flag_unused_command_line_argument=yes 7229else 7230 xorg_cv_cc_flag_unused_command_line_argument=no 7231fi 7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7237 CFLAGS="$xorg_testset_save_CFLAGS" 7238fi 7239 7240found="no" 7241 7242 if test $found = "no" ; then 7243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7245 fi 7246 7247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7249 fi 7250 7251 CFLAGS="$CFLAGS -Wunused" 7252 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7254$as_echo_n "checking if $CC supports -Wunused... " >&6; } 7255 cacheid=xorg_cv_cc_flag__Wunused 7256 if eval \${$cacheid+:} false; then : 7257 $as_echo_n "(cached) " >&6 7258else 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261int i; 7262int 7263main () 7264{ 7265 7266 ; 7267 return 0; 7268} 7269_ACEOF 7270if ac_fn_c_try_link "$LINENO"; then : 7271 eval $cacheid=yes 7272else 7273 eval $cacheid=no 7274fi 7275rm -f core conftest.err conftest.$ac_objext \ 7276 conftest$ac_exeext conftest.$ac_ext 7277fi 7278 7279 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281 7282 eval supported=\$$cacheid 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7284$as_echo "$supported" >&6; } 7285 if test "$supported" = "yes" ; then 7286 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7287 found="yes" 7288 fi 7289 fi 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305xorg_testset_save_CFLAGS="$CFLAGS" 7306 7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316int i; 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO"; then : 7319 xorg_cv_cc_flag_unknown_warning_option=yes 7320else 7321 xorg_cv_cc_flag_unknown_warning_option=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7324fi 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329fi 7330 7331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343int i; 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 xorg_cv_cc_flag_unused_command_line_argument=yes 7347else 7348 xorg_cv_cc_flag_unused_command_line_argument=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351fi 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7355 CFLAGS="$xorg_testset_save_CFLAGS" 7356fi 7357 7358found="no" 7359 7360 if test $found = "no" ; then 7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7363 fi 7364 7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7367 fi 7368 7369 CFLAGS="$CFLAGS -Wuninitialized" 7370 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7372$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 7373 cacheid=xorg_cv_cc_flag__Wuninitialized 7374 if eval \${$cacheid+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379int i; 7380int 7381main () 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_c_try_link "$LINENO"; then : 7389 eval $cacheid=yes 7390else 7391 eval $cacheid=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext \ 7394 conftest$ac_exeext conftest.$ac_ext 7395fi 7396 7397 7398 CFLAGS="$xorg_testset_save_CFLAGS" 7399 7400 eval supported=\$$cacheid 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7402$as_echo "$supported" >&6; } 7403 if test "$supported" = "yes" ; then 7404 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7405 found="yes" 7406 fi 7407 fi 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423xorg_testset_save_CFLAGS="$CFLAGS" 7424 7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434int i; 7435_ACEOF 7436if ac_fn_c_try_compile "$LINENO"; then : 7437 xorg_cv_cc_flag_unknown_warning_option=yes 7438else 7439 xorg_cv_cc_flag_unknown_warning_option=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7442fi 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7446 CFLAGS="$xorg_testset_save_CFLAGS" 7447fi 7448 7449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7452 fi 7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461int i; 7462_ACEOF 7463if ac_fn_c_try_compile "$LINENO"; then : 7464 xorg_cv_cc_flag_unused_command_line_argument=yes 7465else 7466 xorg_cv_cc_flag_unused_command_line_argument=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7469fi 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474fi 7475 7476found="no" 7477 7478 if test $found = "no" ; then 7479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7481 fi 7482 7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 fi 7486 7487 CFLAGS="$CFLAGS -Wshadow" 7488 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7490$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 7491 cacheid=xorg_cv_cc_flag__Wshadow 7492 if eval \${$cacheid+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498int 7499main () 7500{ 7501 7502 ; 7503 return 0; 7504} 7505_ACEOF 7506if ac_fn_c_try_link "$LINENO"; then : 7507 eval $cacheid=yes 7508else 7509 eval $cacheid=no 7510fi 7511rm -f core conftest.err conftest.$ac_objext \ 7512 conftest$ac_exeext conftest.$ac_ext 7513fi 7514 7515 7516 CFLAGS="$xorg_testset_save_CFLAGS" 7517 7518 eval supported=\$$cacheid 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7520$as_echo "$supported" >&6; } 7521 if test "$supported" = "yes" ; then 7522 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7523 found="yes" 7524 fi 7525 fi 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541xorg_testset_save_CFLAGS="$CFLAGS" 7542 7543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552int i; 7553_ACEOF 7554if ac_fn_c_try_compile "$LINENO"; then : 7555 xorg_cv_cc_flag_unknown_warning_option=yes 7556else 7557 xorg_cv_cc_flag_unknown_warning_option=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565fi 7566 7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 fi 7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO"; then : 7582 xorg_cv_cc_flag_unused_command_line_argument=yes 7583else 7584 xorg_cv_cc_flag_unused_command_line_argument=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7591 CFLAGS="$xorg_testset_save_CFLAGS" 7592fi 7593 7594found="no" 7595 7596 if test $found = "no" ; then 7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 fi 7600 7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7603 fi 7604 7605 CFLAGS="$CFLAGS -Wmissing-noreturn" 7606 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7608$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 7609 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7610 if eval \${$cacheid+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616int 7617main () 7618{ 7619 7620 ; 7621 return 0; 7622} 7623_ACEOF 7624if ac_fn_c_try_link "$LINENO"; then : 7625 eval $cacheid=yes 7626else 7627 eval $cacheid=no 7628fi 7629rm -f core conftest.err conftest.$ac_objext \ 7630 conftest$ac_exeext conftest.$ac_ext 7631fi 7632 7633 7634 CFLAGS="$xorg_testset_save_CFLAGS" 7635 7636 eval supported=\$$cacheid 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7638$as_echo "$supported" >&6; } 7639 if test "$supported" = "yes" ; then 7640 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7641 found="yes" 7642 fi 7643 fi 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659xorg_testset_save_CFLAGS="$CFLAGS" 7660 7661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667else 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670int i; 7671_ACEOF 7672if ac_fn_c_try_compile "$LINENO"; then : 7673 xorg_cv_cc_flag_unknown_warning_option=yes 7674else 7675 xorg_cv_cc_flag_unknown_warning_option=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7678fi 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683fi 7684 7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688 fi 7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO"; then : 7700 xorg_cv_cc_flag_unused_command_line_argument=yes 7701else 7702 xorg_cv_cc_flag_unused_command_line_argument=no 7703fi 7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7705fi 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7709 CFLAGS="$xorg_testset_save_CFLAGS" 7710fi 7711 7712found="no" 7713 7714 if test $found = "no" ; then 7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 fi 7718 7719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 fi 7722 7723 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7724 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7726$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7727 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7728 if eval \${$cacheid+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733int i; 7734int 7735main () 7736{ 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_link "$LINENO"; then : 7743 eval $cacheid=yes 7744else 7745 eval $cacheid=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext \ 7748 conftest$ac_exeext conftest.$ac_ext 7749fi 7750 7751 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753 7754 eval supported=\$$cacheid 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7756$as_echo "$supported" >&6; } 7757 if test "$supported" = "yes" ; then 7758 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7759 found="yes" 7760 fi 7761 fi 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777xorg_testset_save_CFLAGS="$CFLAGS" 7778 7779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788int i; 7789_ACEOF 7790if ac_fn_c_try_compile "$LINENO"; then : 7791 xorg_cv_cc_flag_unknown_warning_option=yes 7792else 7793 xorg_cv_cc_flag_unknown_warning_option=no 7794fi 7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7796fi 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801fi 7802 7803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7806 fi 7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814/* end confdefs.h. */ 7815int i; 7816_ACEOF 7817if ac_fn_c_try_compile "$LINENO"; then : 7818 xorg_cv_cc_flag_unused_command_line_argument=yes 7819else 7820 xorg_cv_cc_flag_unused_command_line_argument=no 7821fi 7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7823fi 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7827 CFLAGS="$xorg_testset_save_CFLAGS" 7828fi 7829 7830found="no" 7831 7832 if test $found = "no" ; then 7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7835 fi 7836 7837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7839 fi 7840 7841 CFLAGS="$CFLAGS -Wredundant-decls" 7842 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7844$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7845 cacheid=xorg_cv_cc_flag__Wredundant_decls 7846 if eval \${$cacheid+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851int i; 7852int 7853main () 7854{ 7855 7856 ; 7857 return 0; 7858} 7859_ACEOF 7860if ac_fn_c_try_link "$LINENO"; then : 7861 eval $cacheid=yes 7862else 7863 eval $cacheid=no 7864fi 7865rm -f core conftest.err conftest.$ac_objext \ 7866 conftest$ac_exeext conftest.$ac_ext 7867fi 7868 7869 7870 CFLAGS="$xorg_testset_save_CFLAGS" 7871 7872 eval supported=\$$cacheid 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7874$as_echo "$supported" >&6; } 7875 if test "$supported" = "yes" ; then 7876 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7877 found="yes" 7878 fi 7879 fi 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895xorg_testset_save_CFLAGS="$CFLAGS" 7896 7897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906int i; 7907_ACEOF 7908if ac_fn_c_try_compile "$LINENO"; then : 7909 xorg_cv_cc_flag_unknown_warning_option=yes 7910else 7911 xorg_cv_cc_flag_unknown_warning_option=no 7912fi 7913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7914fi 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919fi 7920 7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933int i; 7934_ACEOF 7935if ac_fn_c_try_compile "$LINENO"; then : 7936 xorg_cv_cc_flag_unused_command_line_argument=yes 7937else 7938 xorg_cv_cc_flag_unused_command_line_argument=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7941fi 7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7945 CFLAGS="$xorg_testset_save_CFLAGS" 7946fi 7947 7948found="no" 7949 7950 if test $found = "no" ; then 7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 fi 7954 7955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7957 fi 7958 7959 CFLAGS="$CFLAGS -Wlogical-op" 7960 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7962$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7963 cacheid=xorg_cv_cc_flag__Wlogical_op 7964 if eval \${$cacheid+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970int 7971main () 7972{ 7973 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978if ac_fn_c_try_link "$LINENO"; then : 7979 eval $cacheid=yes 7980else 7981 eval $cacheid=no 7982fi 7983rm -f core conftest.err conftest.$ac_objext \ 7984 conftest$ac_exeext conftest.$ac_ext 7985fi 7986 7987 7988 CFLAGS="$xorg_testset_save_CFLAGS" 7989 7990 eval supported=\$$cacheid 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7992$as_echo "$supported" >&6; } 7993 if test "$supported" = "yes" ; then 7994 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7995 found="yes" 7996 fi 7997 fi 7998 7999 8000 8001# These are currently disabled because they are noisy. They will be enabled 8002# in the future once the codebase is sufficiently modernized to silence 8003# them. For now, I don't want them to drown out the other warnings. 8004# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8005# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8006# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8007 8008# Turn some warnings into errors, so we don't accidently get successful builds 8009# when there are problems that should be fixed. 8010 8011if test "x$SELECTIVE_WERROR" = "xyes" ; then 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025xorg_testset_save_CFLAGS="$CFLAGS" 8026 8027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033else 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036int i; 8037_ACEOF 8038if ac_fn_c_try_compile "$LINENO"; then : 8039 xorg_cv_cc_flag_unknown_warning_option=yes 8040else 8041 xorg_cv_cc_flag_unknown_warning_option=no 8042fi 8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8044fi 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8048 CFLAGS="$xorg_testset_save_CFLAGS" 8049fi 8050 8051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8054 fi 8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064_ACEOF 8065if ac_fn_c_try_compile "$LINENO"; then : 8066 xorg_cv_cc_flag_unused_command_line_argument=yes 8067else 8068 xorg_cv_cc_flag_unused_command_line_argument=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076fi 8077 8078found="no" 8079 8080 if test $found = "no" ; then 8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8083 fi 8084 8085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8087 fi 8088 8089 CFLAGS="$CFLAGS -Werror=implicit" 8090 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8092$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 8093 cacheid=xorg_cv_cc_flag__Werror_implicit 8094 if eval \${$cacheid+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099int i; 8100int 8101main () 8102{ 8103 8104 ; 8105 return 0; 8106} 8107_ACEOF 8108if ac_fn_c_try_link "$LINENO"; then : 8109 eval $cacheid=yes 8110else 8111 eval $cacheid=no 8112fi 8113rm -f core conftest.err conftest.$ac_objext \ 8114 conftest$ac_exeext conftest.$ac_ext 8115fi 8116 8117 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119 8120 eval supported=\$$cacheid 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8122$as_echo "$supported" >&6; } 8123 if test "$supported" = "yes" ; then 8124 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8125 found="yes" 8126 fi 8127 fi 8128 8129 if test $found = "no" ; then 8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 fi 8133 8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8136 fi 8137 8138 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8139 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 8141$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8142 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8143 if eval \${$cacheid+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149int 8150main () 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_link "$LINENO"; then : 8158 eval $cacheid=yes 8159else 8160 eval $cacheid=no 8161fi 8162rm -f core conftest.err conftest.$ac_objext \ 8163 conftest$ac_exeext conftest.$ac_ext 8164fi 8165 8166 8167 CFLAGS="$xorg_testset_save_CFLAGS" 8168 8169 eval supported=\$$cacheid 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8171$as_echo "$supported" >&6; } 8172 if test "$supported" = "yes" ; then 8173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8174 found="yes" 8175 fi 8176 fi 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192xorg_testset_save_CFLAGS="$CFLAGS" 8193 8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204_ACEOF 8205if ac_fn_c_try_compile "$LINENO"; then : 8206 xorg_cv_cc_flag_unknown_warning_option=yes 8207else 8208 xorg_cv_cc_flag_unknown_warning_option=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8221 fi 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO"; then : 8233 xorg_cv_cc_flag_unused_command_line_argument=yes 8234else 8235 xorg_cv_cc_flag_unused_command_line_argument=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8242 CFLAGS="$xorg_testset_save_CFLAGS" 8243fi 8244 8245found="no" 8246 8247 if test $found = "no" ; then 8248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8250 fi 8251 8252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8254 fi 8255 8256 CFLAGS="$CFLAGS -Werror=nonnull" 8257 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8259$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 8260 cacheid=xorg_cv_cc_flag__Werror_nonnull 8261 if eval \${$cacheid+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267int 8268main () 8269{ 8270 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275if ac_fn_c_try_link "$LINENO"; then : 8276 eval $cacheid=yes 8277else 8278 eval $cacheid=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext \ 8281 conftest$ac_exeext conftest.$ac_ext 8282fi 8283 8284 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286 8287 eval supported=\$$cacheid 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8289$as_echo "$supported" >&6; } 8290 if test "$supported" = "yes" ; then 8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8292 found="yes" 8293 fi 8294 fi 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310xorg_testset_save_CFLAGS="$CFLAGS" 8311 8312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8320/* end confdefs.h. */ 8321int i; 8322_ACEOF 8323if ac_fn_c_try_compile "$LINENO"; then : 8324 xorg_cv_cc_flag_unknown_warning_option=yes 8325else 8326 xorg_cv_cc_flag_unknown_warning_option=no 8327fi 8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8329fi 8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334fi 8335 8336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 fi 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345else 8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349_ACEOF 8350if ac_fn_c_try_compile "$LINENO"; then : 8351 xorg_cv_cc_flag_unused_command_line_argument=yes 8352else 8353 xorg_cv_cc_flag_unused_command_line_argument=no 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361fi 8362 8363found="no" 8364 8365 if test $found = "no" ; then 8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8368 fi 8369 8370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8372 fi 8373 8374 CFLAGS="$CFLAGS -Werror=init-self" 8375 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8377$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 8378 cacheid=xorg_cv_cc_flag__Werror_init_self 8379 if eval \${$cacheid+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385int 8386main () 8387{ 8388 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_link "$LINENO"; then : 8394 eval $cacheid=yes 8395else 8396 eval $cacheid=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext \ 8399 conftest$ac_exeext conftest.$ac_ext 8400fi 8401 8402 8403 CFLAGS="$xorg_testset_save_CFLAGS" 8404 8405 eval supported=\$$cacheid 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8407$as_echo "$supported" >&6; } 8408 if test "$supported" = "yes" ; then 8409 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8410 found="yes" 8411 fi 8412 fi 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428xorg_testset_save_CFLAGS="$CFLAGS" 8429 8430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440_ACEOF 8441if ac_fn_c_try_compile "$LINENO"; then : 8442 xorg_cv_cc_flag_unknown_warning_option=yes 8443else 8444 xorg_cv_cc_flag_unknown_warning_option=no 8445fi 8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8451 CFLAGS="$xorg_testset_save_CFLAGS" 8452fi 8453 8454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8457 fi 8458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8465/* end confdefs.h. */ 8466int i; 8467_ACEOF 8468if ac_fn_c_try_compile "$LINENO"; then : 8469 xorg_cv_cc_flag_unused_command_line_argument=yes 8470else 8471 xorg_cv_cc_flag_unused_command_line_argument=no 8472fi 8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8474fi 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479fi 8480 8481found="no" 8482 8483 if test $found = "no" ; then 8484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8486 fi 8487 8488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8490 fi 8491 8492 CFLAGS="$CFLAGS -Werror=main" 8493 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8495$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 8496 cacheid=xorg_cv_cc_flag__Werror_main 8497 if eval \${$cacheid+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502int i; 8503int 8504main () 8505{ 8506 8507 ; 8508 return 0; 8509} 8510_ACEOF 8511if ac_fn_c_try_link "$LINENO"; then : 8512 eval $cacheid=yes 8513else 8514 eval $cacheid=no 8515fi 8516rm -f core conftest.err conftest.$ac_objext \ 8517 conftest$ac_exeext conftest.$ac_ext 8518fi 8519 8520 8521 CFLAGS="$xorg_testset_save_CFLAGS" 8522 8523 eval supported=\$$cacheid 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8525$as_echo "$supported" >&6; } 8526 if test "$supported" = "yes" ; then 8527 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8528 found="yes" 8529 fi 8530 fi 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546xorg_testset_save_CFLAGS="$CFLAGS" 8547 8548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557int i; 8558_ACEOF 8559if ac_fn_c_try_compile "$LINENO"; then : 8560 xorg_cv_cc_flag_unknown_warning_option=yes 8561else 8562 xorg_cv_cc_flag_unknown_warning_option=no 8563fi 8564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8565fi 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8569 CFLAGS="$xorg_testset_save_CFLAGS" 8570fi 8571 8572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8575 fi 8576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584int i; 8585_ACEOF 8586if ac_fn_c_try_compile "$LINENO"; then : 8587 xorg_cv_cc_flag_unused_command_line_argument=yes 8588else 8589 xorg_cv_cc_flag_unused_command_line_argument=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8592fi 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597fi 8598 8599found="no" 8600 8601 if test $found = "no" ; then 8602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 fi 8605 8606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8608 fi 8609 8610 CFLAGS="$CFLAGS -Werror=missing-braces" 8611 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8613$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 8614 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8615 if eval \${$cacheid+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617else 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620int i; 8621int 8622main () 8623{ 8624 8625 ; 8626 return 0; 8627} 8628_ACEOF 8629if ac_fn_c_try_link "$LINENO"; then : 8630 eval $cacheid=yes 8631else 8632 eval $cacheid=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext \ 8635 conftest$ac_exeext conftest.$ac_ext 8636fi 8637 8638 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640 8641 eval supported=\$$cacheid 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8643$as_echo "$supported" >&6; } 8644 if test "$supported" = "yes" ; then 8645 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8646 found="yes" 8647 fi 8648 fi 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664xorg_testset_save_CFLAGS="$CFLAGS" 8665 8666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676_ACEOF 8677if ac_fn_c_try_compile "$LINENO"; then : 8678 xorg_cv_cc_flag_unknown_warning_option=yes 8679else 8680 xorg_cv_cc_flag_unknown_warning_option=no 8681fi 8682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8683fi 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8688fi 8689 8690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693 fi 8694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702int i; 8703_ACEOF 8704if ac_fn_c_try_compile "$LINENO"; then : 8705 xorg_cv_cc_flag_unused_command_line_argument=yes 8706else 8707 xorg_cv_cc_flag_unused_command_line_argument=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8710fi 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715fi 8716 8717found="no" 8718 8719 if test $found = "no" ; then 8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8722 fi 8723 8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 fi 8727 8728 CFLAGS="$CFLAGS -Werror=sequence-point" 8729 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8731$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8732 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8733 if eval \${$cacheid+:} false; then : 8734 $as_echo_n "(cached) " >&6 8735else 8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738int i; 8739int 8740main () 8741{ 8742 8743 ; 8744 return 0; 8745} 8746_ACEOF 8747if ac_fn_c_try_link "$LINENO"; then : 8748 eval $cacheid=yes 8749else 8750 eval $cacheid=no 8751fi 8752rm -f core conftest.err conftest.$ac_objext \ 8753 conftest$ac_exeext conftest.$ac_ext 8754fi 8755 8756 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758 8759 eval supported=\$$cacheid 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8761$as_echo "$supported" >&6; } 8762 if test "$supported" = "yes" ; then 8763 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8764 found="yes" 8765 fi 8766 fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782xorg_testset_save_CFLAGS="$CFLAGS" 8783 8784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793int i; 8794_ACEOF 8795if ac_fn_c_try_compile "$LINENO"; then : 8796 xorg_cv_cc_flag_unknown_warning_option=yes 8797else 8798 xorg_cv_cc_flag_unknown_warning_option=no 8799fi 8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8801fi 8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8805 CFLAGS="$xorg_testset_save_CFLAGS" 8806fi 8807 8808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8811 fi 8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8819/* end confdefs.h. */ 8820int i; 8821_ACEOF 8822if ac_fn_c_try_compile "$LINENO"; then : 8823 xorg_cv_cc_flag_unused_command_line_argument=yes 8824else 8825 xorg_cv_cc_flag_unused_command_line_argument=no 8826fi 8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8832 CFLAGS="$xorg_testset_save_CFLAGS" 8833fi 8834 8835found="no" 8836 8837 if test $found = "no" ; then 8838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8840 fi 8841 8842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8844 fi 8845 8846 CFLAGS="$CFLAGS -Werror=return-type" 8847 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8849$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8850 cacheid=xorg_cv_cc_flag__Werror_return_type 8851 if eval \${$cacheid+:} false; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857int 8858main () 8859{ 8860 8861 ; 8862 return 0; 8863} 8864_ACEOF 8865if ac_fn_c_try_link "$LINENO"; then : 8866 eval $cacheid=yes 8867else 8868 eval $cacheid=no 8869fi 8870rm -f core conftest.err conftest.$ac_objext \ 8871 conftest$ac_exeext conftest.$ac_ext 8872fi 8873 8874 8875 CFLAGS="$xorg_testset_save_CFLAGS" 8876 8877 eval supported=\$$cacheid 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8879$as_echo "$supported" >&6; } 8880 if test "$supported" = "yes" ; then 8881 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8882 found="yes" 8883 fi 8884 fi 8885 8886 if test $found = "no" ; then 8887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8893 fi 8894 8895 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8896 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8898$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8899 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8900 if eval \${$cacheid+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904/* end confdefs.h. */ 8905int i; 8906int 8907main () 8908{ 8909 8910 ; 8911 return 0; 8912} 8913_ACEOF 8914if ac_fn_c_try_link "$LINENO"; then : 8915 eval $cacheid=yes 8916else 8917 eval $cacheid=no 8918fi 8919rm -f core conftest.err conftest.$ac_objext \ 8920 conftest$ac_exeext conftest.$ac_ext 8921fi 8922 8923 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925 8926 eval supported=\$$cacheid 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8928$as_echo "$supported" >&6; } 8929 if test "$supported" = "yes" ; then 8930 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8931 found="yes" 8932 fi 8933 fi 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949xorg_testset_save_CFLAGS="$CFLAGS" 8950 8951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961_ACEOF 8962if ac_fn_c_try_compile "$LINENO"; then : 8963 xorg_cv_cc_flag_unknown_warning_option=yes 8964else 8965 xorg_cv_cc_flag_unknown_warning_option=no 8966fi 8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8968fi 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973fi 8974 8975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986/* end confdefs.h. */ 8987int i; 8988_ACEOF 8989if ac_fn_c_try_compile "$LINENO"; then : 8990 xorg_cv_cc_flag_unused_command_line_argument=yes 8991else 8992 xorg_cv_cc_flag_unused_command_line_argument=no 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995fi 8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000fi 9001 9002found="no" 9003 9004 if test $found = "no" ; then 9005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 9009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9011 fi 9012 9013 CFLAGS="$CFLAGS -Werror=trigraphs" 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9016$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 9017 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9018 if eval \${$cacheid+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023int i; 9024int 9025main () 9026{ 9027 9028 ; 9029 return 0; 9030} 9031_ACEOF 9032if ac_fn_c_try_link "$LINENO"; then : 9033 eval $cacheid=yes 9034else 9035 eval $cacheid=no 9036fi 9037rm -f core conftest.err conftest.$ac_objext \ 9038 conftest$ac_exeext conftest.$ac_ext 9039fi 9040 9041 9042 CFLAGS="$xorg_testset_save_CFLAGS" 9043 9044 eval supported=\$$cacheid 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9046$as_echo "$supported" >&6; } 9047 if test "$supported" = "yes" ; then 9048 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9049 found="yes" 9050 fi 9051 fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067xorg_testset_save_CFLAGS="$CFLAGS" 9068 9069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078int i; 9079_ACEOF 9080if ac_fn_c_try_compile "$LINENO"; then : 9081 xorg_cv_cc_flag_unknown_warning_option=yes 9082else 9083 xorg_cv_cc_flag_unknown_warning_option=no 9084fi 9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9086fi 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091fi 9092 9093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 fi 9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9101 $as_echo_n "(cached) " >&6 9102else 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104/* end confdefs.h. */ 9105int i; 9106_ACEOF 9107if ac_fn_c_try_compile "$LINENO"; then : 9108 xorg_cv_cc_flag_unused_command_line_argument=yes 9109else 9110 xorg_cv_cc_flag_unused_command_line_argument=no 9111fi 9112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9113fi 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9117 CFLAGS="$xorg_testset_save_CFLAGS" 9118fi 9119 9120found="no" 9121 9122 if test $found = "no" ; then 9123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 9127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9129 fi 9130 9131 CFLAGS="$CFLAGS -Werror=array-bounds" 9132 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9134$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 9135 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9136 if eval \${$cacheid+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138else 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141int i; 9142int 9143main () 9144{ 9145 9146 ; 9147 return 0; 9148} 9149_ACEOF 9150if ac_fn_c_try_link "$LINENO"; then : 9151 eval $cacheid=yes 9152else 9153 eval $cacheid=no 9154fi 9155rm -f core conftest.err conftest.$ac_objext \ 9156 conftest$ac_exeext conftest.$ac_ext 9157fi 9158 9159 9160 CFLAGS="$xorg_testset_save_CFLAGS" 9161 9162 eval supported=\$$cacheid 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9164$as_echo "$supported" >&6; } 9165 if test "$supported" = "yes" ; then 9166 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9167 found="yes" 9168 fi 9169 fi 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185xorg_testset_save_CFLAGS="$CFLAGS" 9186 9187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196int i; 9197_ACEOF 9198if ac_fn_c_try_compile "$LINENO"; then : 9199 xorg_cv_cc_flag_unknown_warning_option=yes 9200else 9201 xorg_cv_cc_flag_unknown_warning_option=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9204fi 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220else 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222/* end confdefs.h. */ 9223int i; 9224_ACEOF 9225if ac_fn_c_try_compile "$LINENO"; then : 9226 xorg_cv_cc_flag_unused_command_line_argument=yes 9227else 9228 xorg_cv_cc_flag_unused_command_line_argument=no 9229fi 9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9231fi 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236fi 9237 9238found="no" 9239 9240 if test $found = "no" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 9245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 fi 9248 9249 CFLAGS="$CFLAGS -Werror=write-strings" 9250 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9252$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 9253 cacheid=xorg_cv_cc_flag__Werror_write_strings 9254 if eval \${$cacheid+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260int 9261main () 9262{ 9263 9264 ; 9265 return 0; 9266} 9267_ACEOF 9268if ac_fn_c_try_link "$LINENO"; then : 9269 eval $cacheid=yes 9270else 9271 eval $cacheid=no 9272fi 9273rm -f core conftest.err conftest.$ac_objext \ 9274 conftest$ac_exeext conftest.$ac_ext 9275fi 9276 9277 9278 CFLAGS="$xorg_testset_save_CFLAGS" 9279 9280 eval supported=\$$cacheid 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9282$as_echo "$supported" >&6; } 9283 if test "$supported" = "yes" ; then 9284 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9285 found="yes" 9286 fi 9287 fi 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303xorg_testset_save_CFLAGS="$CFLAGS" 9304 9305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO"; then : 9317 xorg_cv_cc_flag_unknown_warning_option=yes 9318else 9319 xorg_cv_cc_flag_unknown_warning_option=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327fi 9328 9329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338else 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341int i; 9342_ACEOF 9343if ac_fn_c_try_compile "$LINENO"; then : 9344 xorg_cv_cc_flag_unused_command_line_argument=yes 9345else 9346 xorg_cv_cc_flag_unused_command_line_argument=no 9347fi 9348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9349fi 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9353 CFLAGS="$xorg_testset_save_CFLAGS" 9354fi 9355 9356found="no" 9357 9358 if test $found = "no" ; then 9359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 fi 9362 9363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9365 fi 9366 9367 CFLAGS="$CFLAGS -Werror=address" 9368 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9370$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 9371 cacheid=xorg_cv_cc_flag__Werror_address 9372 if eval \${$cacheid+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374else 9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376/* end confdefs.h. */ 9377int i; 9378int 9379main () 9380{ 9381 9382 ; 9383 return 0; 9384} 9385_ACEOF 9386if ac_fn_c_try_link "$LINENO"; then : 9387 eval $cacheid=yes 9388else 9389 eval $cacheid=no 9390fi 9391rm -f core conftest.err conftest.$ac_objext \ 9392 conftest$ac_exeext conftest.$ac_ext 9393fi 9394 9395 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 9398 eval supported=\$$cacheid 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9400$as_echo "$supported" >&6; } 9401 if test "$supported" = "yes" ; then 9402 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9403 found="yes" 9404 fi 9405 fi 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421xorg_testset_save_CFLAGS="$CFLAGS" 9422 9423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432int i; 9433_ACEOF 9434if ac_fn_c_try_compile "$LINENO"; then : 9435 xorg_cv_cc_flag_unknown_warning_option=yes 9436else 9437 xorg_cv_cc_flag_unknown_warning_option=no 9438fi 9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440fi 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445fi 9446 9447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459int i; 9460_ACEOF 9461if ac_fn_c_try_compile "$LINENO"; then : 9462 xorg_cv_cc_flag_unused_command_line_argument=yes 9463else 9464 xorg_cv_cc_flag_unused_command_line_argument=no 9465fi 9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9467fi 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472fi 9473 9474found="no" 9475 9476 if test $found = "no" ; then 9477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 fi 9480 9481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9483 fi 9484 9485 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9486 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9488$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9489 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9490 if eval \${$cacheid+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492else 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494/* end confdefs.h. */ 9495int i; 9496int 9497main () 9498{ 9499 9500 ; 9501 return 0; 9502} 9503_ACEOF 9504if ac_fn_c_try_link "$LINENO"; then : 9505 eval $cacheid=yes 9506else 9507 eval $cacheid=no 9508fi 9509rm -f core conftest.err conftest.$ac_objext \ 9510 conftest$ac_exeext conftest.$ac_ext 9511fi 9512 9513 9514 CFLAGS="$xorg_testset_save_CFLAGS" 9515 9516 eval supported=\$$cacheid 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9518$as_echo "$supported" >&6; } 9519 if test "$supported" = "yes" ; then 9520 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9521 found="yes" 9522 fi 9523 fi 9524 9525 if test $found = "no" ; then 9526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 fi 9529 9530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9532 fi 9533 9534 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9535 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9537$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9538 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9539 if eval \${$cacheid+:} false; then : 9540 $as_echo_n "(cached) " >&6 9541else 9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9543/* end confdefs.h. */ 9544int i; 9545int 9546main () 9547{ 9548 9549 ; 9550 return 0; 9551} 9552_ACEOF 9553if ac_fn_c_try_link "$LINENO"; then : 9554 eval $cacheid=yes 9555else 9556 eval $cacheid=no 9557fi 9558rm -f core conftest.err conftest.$ac_objext \ 9559 conftest$ac_exeext conftest.$ac_ext 9560fi 9561 9562 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564 9565 eval supported=\$$cacheid 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9567$as_echo "$supported" >&6; } 9568 if test "$supported" = "yes" ; then 9569 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9570 found="yes" 9571 fi 9572 fi 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588xorg_testset_save_CFLAGS="$CFLAGS" 9589 9590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599int i; 9600_ACEOF 9601if ac_fn_c_try_compile "$LINENO"; then : 9602 xorg_cv_cc_flag_unknown_warning_option=yes 9603else 9604 xorg_cv_cc_flag_unknown_warning_option=no 9605fi 9606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9607fi 9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612fi 9613 9614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9617 fi 9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9622 $as_echo_n "(cached) " >&6 9623else 9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9625/* end confdefs.h. */ 9626int i; 9627_ACEOF 9628if ac_fn_c_try_compile "$LINENO"; then : 9629 xorg_cv_cc_flag_unused_command_line_argument=yes 9630else 9631 xorg_cv_cc_flag_unused_command_line_argument=no 9632fi 9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9634fi 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9638 CFLAGS="$xorg_testset_save_CFLAGS" 9639fi 9640 9641found="no" 9642 9643 if test $found = "no" ; then 9644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9646 fi 9647 9648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9650 fi 9651 9652 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9653 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9655$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9656 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9657 if eval \${$cacheid+:} false; then : 9658 $as_echo_n "(cached) " >&6 9659else 9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663int 9664main () 9665{ 9666 9667 ; 9668 return 0; 9669} 9670_ACEOF 9671if ac_fn_c_try_link "$LINENO"; then : 9672 eval $cacheid=yes 9673else 9674 eval $cacheid=no 9675fi 9676rm -f core conftest.err conftest.$ac_objext \ 9677 conftest$ac_exeext conftest.$ac_ext 9678fi 9679 9680 9681 CFLAGS="$xorg_testset_save_CFLAGS" 9682 9683 eval supported=\$$cacheid 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9685$as_echo "$supported" >&6; } 9686 if test "$supported" = "yes" ; then 9687 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9688 found="yes" 9689 fi 9690 fi 9691 9692 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9693else 9694{ $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 9695$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;} 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709xorg_testset_save_CFLAGS="$CFLAGS" 9710 9711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721_ACEOF 9722if ac_fn_c_try_compile "$LINENO"; then : 9723 xorg_cv_cc_flag_unknown_warning_option=yes 9724else 9725 xorg_cv_cc_flag_unknown_warning_option=no 9726fi 9727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9728fi 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733fi 9734 9735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9738 fi 9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747int i; 9748_ACEOF 9749if ac_fn_c_try_compile "$LINENO"; then : 9750 xorg_cv_cc_flag_unused_command_line_argument=yes 9751else 9752 xorg_cv_cc_flag_unused_command_line_argument=no 9753fi 9754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9755fi 9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9759 CFLAGS="$xorg_testset_save_CFLAGS" 9760fi 9761 9762found="no" 9763 9764 if test $found = "no" ; then 9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9767 fi 9768 9769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9771 fi 9772 9773 CFLAGS="$CFLAGS -Wimplicit" 9774 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9776$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9777 cacheid=xorg_cv_cc_flag__Wimplicit 9778 if eval \${$cacheid+:} false; then : 9779 $as_echo_n "(cached) " >&6 9780else 9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9782/* end confdefs.h. */ 9783int i; 9784int 9785main () 9786{ 9787 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792if ac_fn_c_try_link "$LINENO"; then : 9793 eval $cacheid=yes 9794else 9795 eval $cacheid=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext \ 9798 conftest$ac_exeext conftest.$ac_ext 9799fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806$as_echo "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9834 $as_echo_n "(cached) " >&6 9835else 9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839_ACEOF 9840if ac_fn_c_try_compile "$LINENO"; then : 9841 xorg_cv_cc_flag_unknown_warning_option=yes 9842else 9843 xorg_cv_cc_flag_unknown_warning_option=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9846fi 9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851fi 9852 9853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9856 fi 9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862else 9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864/* end confdefs.h. */ 9865int i; 9866_ACEOF 9867if ac_fn_c_try_compile "$LINENO"; then : 9868 xorg_cv_cc_flag_unused_command_line_argument=yes 9869else 9870 xorg_cv_cc_flag_unused_command_line_argument=no 9871fi 9872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9873fi 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9877 CFLAGS="$xorg_testset_save_CFLAGS" 9878fi 9879 9880found="no" 9881 9882 if test $found = "no" ; then 9883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9885 fi 9886 9887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9889 fi 9890 9891 CFLAGS="$CFLAGS -Wnonnull" 9892 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9894$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9895 cacheid=xorg_cv_cc_flag__Wnonnull 9896 if eval \${$cacheid+:} false; then : 9897 $as_echo_n "(cached) " >&6 9898else 9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900/* end confdefs.h. */ 9901int i; 9902int 9903main () 9904{ 9905 9906 ; 9907 return 0; 9908} 9909_ACEOF 9910if ac_fn_c_try_link "$LINENO"; then : 9911 eval $cacheid=yes 9912else 9913 eval $cacheid=no 9914fi 9915rm -f core conftest.err conftest.$ac_objext \ 9916 conftest$ac_exeext conftest.$ac_ext 9917fi 9918 9919 9920 CFLAGS="$xorg_testset_save_CFLAGS" 9921 9922 eval supported=\$$cacheid 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9924$as_echo "$supported" >&6; } 9925 if test "$supported" = "yes" ; then 9926 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9927 found="yes" 9928 fi 9929 fi 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945xorg_testset_save_CFLAGS="$CFLAGS" 9946 9947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9952 $as_echo_n "(cached) " >&6 9953else 9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955/* end confdefs.h. */ 9956int i; 9957_ACEOF 9958if ac_fn_c_try_compile "$LINENO"; then : 9959 xorg_cv_cc_flag_unknown_warning_option=yes 9960else 9961 xorg_cv_cc_flag_unknown_warning_option=no 9962fi 9963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9964fi 9965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9968 CFLAGS="$xorg_testset_save_CFLAGS" 9969fi 9970 9971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9974 fi 9975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980else 9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9982/* end confdefs.h. */ 9983int i; 9984_ACEOF 9985if ac_fn_c_try_compile "$LINENO"; then : 9986 xorg_cv_cc_flag_unused_command_line_argument=yes 9987else 9988 xorg_cv_cc_flag_unused_command_line_argument=no 9989fi 9990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9991fi 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996fi 9997 9998found="no" 9999 10000 if test $found = "no" ; then 10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10003 fi 10004 10005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10007 fi 10008 10009 CFLAGS="$CFLAGS -Winit-self" 10010 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10012$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 10013 cacheid=xorg_cv_cc_flag__Winit_self 10014 if eval \${$cacheid+:} false; then : 10015 $as_echo_n "(cached) " >&6 10016else 10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10018/* end confdefs.h. */ 10019int i; 10020int 10021main () 10022{ 10023 10024 ; 10025 return 0; 10026} 10027_ACEOF 10028if ac_fn_c_try_link "$LINENO"; then : 10029 eval $cacheid=yes 10030else 10031 eval $cacheid=no 10032fi 10033rm -f core conftest.err conftest.$ac_objext \ 10034 conftest$ac_exeext conftest.$ac_ext 10035fi 10036 10037 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039 10040 eval supported=\$$cacheid 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10042$as_echo "$supported" >&6; } 10043 if test "$supported" = "yes" ; then 10044 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10045 found="yes" 10046 fi 10047 fi 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063xorg_testset_save_CFLAGS="$CFLAGS" 10064 10065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10070 $as_echo_n "(cached) " >&6 10071else 10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10073/* end confdefs.h. */ 10074int i; 10075_ACEOF 10076if ac_fn_c_try_compile "$LINENO"; then : 10077 xorg_cv_cc_flag_unknown_warning_option=yes 10078else 10079 xorg_cv_cc_flag_unknown_warning_option=no 10080fi 10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10082fi 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10086 CFLAGS="$xorg_testset_save_CFLAGS" 10087fi 10088 10089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10092 fi 10093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10100/* end confdefs.h. */ 10101int i; 10102_ACEOF 10103if ac_fn_c_try_compile "$LINENO"; then : 10104 xorg_cv_cc_flag_unused_command_line_argument=yes 10105else 10106 xorg_cv_cc_flag_unused_command_line_argument=no 10107fi 10108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10109fi 10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10113 CFLAGS="$xorg_testset_save_CFLAGS" 10114fi 10115 10116found="no" 10117 10118 if test $found = "no" ; then 10119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10121 fi 10122 10123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10125 fi 10126 10127 CFLAGS="$CFLAGS -Wmain" 10128 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10130$as_echo_n "checking if $CC supports -Wmain... " >&6; } 10131 cacheid=xorg_cv_cc_flag__Wmain 10132 if eval \${$cacheid+:} false; then : 10133 $as_echo_n "(cached) " >&6 10134else 10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10136/* end confdefs.h. */ 10137int i; 10138int 10139main () 10140{ 10141 10142 ; 10143 return 0; 10144} 10145_ACEOF 10146if ac_fn_c_try_link "$LINENO"; then : 10147 eval $cacheid=yes 10148else 10149 eval $cacheid=no 10150fi 10151rm -f core conftest.err conftest.$ac_objext \ 10152 conftest$ac_exeext conftest.$ac_ext 10153fi 10154 10155 10156 CFLAGS="$xorg_testset_save_CFLAGS" 10157 10158 eval supported=\$$cacheid 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10160$as_echo "$supported" >&6; } 10161 if test "$supported" = "yes" ; then 10162 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10163 found="yes" 10164 fi 10165 fi 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181xorg_testset_save_CFLAGS="$CFLAGS" 10182 10183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192int i; 10193_ACEOF 10194if ac_fn_c_try_compile "$LINENO"; then : 10195 xorg_cv_cc_flag_unknown_warning_option=yes 10196else 10197 xorg_cv_cc_flag_unknown_warning_option=no 10198fi 10199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10200fi 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205fi 10206 10207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219int i; 10220_ACEOF 10221if ac_fn_c_try_compile "$LINENO"; then : 10222 xorg_cv_cc_flag_unused_command_line_argument=yes 10223else 10224 xorg_cv_cc_flag_unused_command_line_argument=no 10225fi 10226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10227fi 10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10231 CFLAGS="$xorg_testset_save_CFLAGS" 10232fi 10233 10234found="no" 10235 10236 if test $found = "no" ; then 10237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10239 fi 10240 10241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10243 fi 10244 10245 CFLAGS="$CFLAGS -Wmissing-braces" 10246 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10248$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 10249 cacheid=xorg_cv_cc_flag__Wmissing_braces 10250 if eval \${$cacheid+:} false; then : 10251 $as_echo_n "(cached) " >&6 10252else 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255int i; 10256int 10257main () 10258{ 10259 10260 ; 10261 return 0; 10262} 10263_ACEOF 10264if ac_fn_c_try_link "$LINENO"; then : 10265 eval $cacheid=yes 10266else 10267 eval $cacheid=no 10268fi 10269rm -f core conftest.err conftest.$ac_objext \ 10270 conftest$ac_exeext conftest.$ac_ext 10271fi 10272 10273 10274 CFLAGS="$xorg_testset_save_CFLAGS" 10275 10276 eval supported=\$$cacheid 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10278$as_echo "$supported" >&6; } 10279 if test "$supported" = "yes" ; then 10280 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10281 found="yes" 10282 fi 10283 fi 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299xorg_testset_save_CFLAGS="$CFLAGS" 10300 10301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10306 $as_echo_n "(cached) " >&6 10307else 10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10309/* end confdefs.h. */ 10310int i; 10311_ACEOF 10312if ac_fn_c_try_compile "$LINENO"; then : 10313 xorg_cv_cc_flag_unknown_warning_option=yes 10314else 10315 xorg_cv_cc_flag_unknown_warning_option=no 10316fi 10317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10318fi 10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323fi 10324 10325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10333 $as_echo_n "(cached) " >&6 10334else 10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10336/* end confdefs.h. */ 10337int i; 10338_ACEOF 10339if ac_fn_c_try_compile "$LINENO"; then : 10340 xorg_cv_cc_flag_unused_command_line_argument=yes 10341else 10342 xorg_cv_cc_flag_unused_command_line_argument=no 10343fi 10344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10345fi 10346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10349 CFLAGS="$xorg_testset_save_CFLAGS" 10350fi 10351 10352found="no" 10353 10354 if test $found = "no" ; then 10355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10357 fi 10358 10359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10361 fi 10362 10363 CFLAGS="$CFLAGS -Wsequence-point" 10364 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10366$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 10367 cacheid=xorg_cv_cc_flag__Wsequence_point 10368 if eval \${$cacheid+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373int i; 10374int 10375main () 10376{ 10377 10378 ; 10379 return 0; 10380} 10381_ACEOF 10382if ac_fn_c_try_link "$LINENO"; then : 10383 eval $cacheid=yes 10384else 10385 eval $cacheid=no 10386fi 10387rm -f core conftest.err conftest.$ac_objext \ 10388 conftest$ac_exeext conftest.$ac_ext 10389fi 10390 10391 10392 CFLAGS="$xorg_testset_save_CFLAGS" 10393 10394 eval supported=\$$cacheid 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10396$as_echo "$supported" >&6; } 10397 if test "$supported" = "yes" ; then 10398 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10399 found="yes" 10400 fi 10401 fi 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417xorg_testset_save_CFLAGS="$CFLAGS" 10418 10419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10424 $as_echo_n "(cached) " >&6 10425else 10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10427/* end confdefs.h. */ 10428int i; 10429_ACEOF 10430if ac_fn_c_try_compile "$LINENO"; then : 10431 xorg_cv_cc_flag_unknown_warning_option=yes 10432else 10433 xorg_cv_cc_flag_unknown_warning_option=no 10434fi 10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10436fi 10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10440 CFLAGS="$xorg_testset_save_CFLAGS" 10441fi 10442 10443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10446 fi 10447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10451 $as_echo_n "(cached) " >&6 10452else 10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10454/* end confdefs.h. */ 10455int i; 10456_ACEOF 10457if ac_fn_c_try_compile "$LINENO"; then : 10458 xorg_cv_cc_flag_unused_command_line_argument=yes 10459else 10460 xorg_cv_cc_flag_unused_command_line_argument=no 10461fi 10462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10463fi 10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10467 CFLAGS="$xorg_testset_save_CFLAGS" 10468fi 10469 10470found="no" 10471 10472 if test $found = "no" ; then 10473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10475 fi 10476 10477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10479 fi 10480 10481 CFLAGS="$CFLAGS -Wreturn-type" 10482 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10484$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 10485 cacheid=xorg_cv_cc_flag__Wreturn_type 10486 if eval \${$cacheid+:} false; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491int i; 10492int 10493main () 10494{ 10495 10496 ; 10497 return 0; 10498} 10499_ACEOF 10500if ac_fn_c_try_link "$LINENO"; then : 10501 eval $cacheid=yes 10502else 10503 eval $cacheid=no 10504fi 10505rm -f core conftest.err conftest.$ac_objext \ 10506 conftest$ac_exeext conftest.$ac_ext 10507fi 10508 10509 10510 CFLAGS="$xorg_testset_save_CFLAGS" 10511 10512 eval supported=\$$cacheid 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10514$as_echo "$supported" >&6; } 10515 if test "$supported" = "yes" ; then 10516 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10517 found="yes" 10518 fi 10519 fi 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535xorg_testset_save_CFLAGS="$CFLAGS" 10536 10537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10542 $as_echo_n "(cached) " >&6 10543else 10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10545/* end confdefs.h. */ 10546int i; 10547_ACEOF 10548if ac_fn_c_try_compile "$LINENO"; then : 10549 xorg_cv_cc_flag_unknown_warning_option=yes 10550else 10551 xorg_cv_cc_flag_unknown_warning_option=no 10552fi 10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10554fi 10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10558 CFLAGS="$xorg_testset_save_CFLAGS" 10559fi 10560 10561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10564 fi 10565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10569 $as_echo_n "(cached) " >&6 10570else 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573int i; 10574_ACEOF 10575if ac_fn_c_try_compile "$LINENO"; then : 10576 xorg_cv_cc_flag_unused_command_line_argument=yes 10577else 10578 xorg_cv_cc_flag_unused_command_line_argument=no 10579fi 10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10581fi 10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10585 CFLAGS="$xorg_testset_save_CFLAGS" 10586fi 10587 10588found="no" 10589 10590 if test $found = "no" ; then 10591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10593 fi 10594 10595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10597 fi 10598 10599 CFLAGS="$CFLAGS -Wtrigraphs" 10600 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10602$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 10603 cacheid=xorg_cv_cc_flag__Wtrigraphs 10604 if eval \${$cacheid+:} false; then : 10605 $as_echo_n "(cached) " >&6 10606else 10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10608/* end confdefs.h. */ 10609int i; 10610int 10611main () 10612{ 10613 10614 ; 10615 return 0; 10616} 10617_ACEOF 10618if ac_fn_c_try_link "$LINENO"; then : 10619 eval $cacheid=yes 10620else 10621 eval $cacheid=no 10622fi 10623rm -f core conftest.err conftest.$ac_objext \ 10624 conftest$ac_exeext conftest.$ac_ext 10625fi 10626 10627 10628 CFLAGS="$xorg_testset_save_CFLAGS" 10629 10630 eval supported=\$$cacheid 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10632$as_echo "$supported" >&6; } 10633 if test "$supported" = "yes" ; then 10634 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10635 found="yes" 10636 fi 10637 fi 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653xorg_testset_save_CFLAGS="$CFLAGS" 10654 10655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661else 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664int i; 10665_ACEOF 10666if ac_fn_c_try_compile "$LINENO"; then : 10667 xorg_cv_cc_flag_unknown_warning_option=yes 10668else 10669 xorg_cv_cc_flag_unknown_warning_option=no 10670fi 10671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10672fi 10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10676 CFLAGS="$xorg_testset_save_CFLAGS" 10677fi 10678 10679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10682 fi 10683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10687 $as_echo_n "(cached) " >&6 10688else 10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10690/* end confdefs.h. */ 10691int i; 10692_ACEOF 10693if ac_fn_c_try_compile "$LINENO"; then : 10694 xorg_cv_cc_flag_unused_command_line_argument=yes 10695else 10696 xorg_cv_cc_flag_unused_command_line_argument=no 10697fi 10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10699fi 10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10703 CFLAGS="$xorg_testset_save_CFLAGS" 10704fi 10705 10706found="no" 10707 10708 if test $found = "no" ; then 10709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10711 fi 10712 10713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10715 fi 10716 10717 CFLAGS="$CFLAGS -Warray-bounds" 10718 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10720$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 10721 cacheid=xorg_cv_cc_flag__Warray_bounds 10722 if eval \${$cacheid+:} false; then : 10723 $as_echo_n "(cached) " >&6 10724else 10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10726/* end confdefs.h. */ 10727int i; 10728int 10729main () 10730{ 10731 10732 ; 10733 return 0; 10734} 10735_ACEOF 10736if ac_fn_c_try_link "$LINENO"; then : 10737 eval $cacheid=yes 10738else 10739 eval $cacheid=no 10740fi 10741rm -f core conftest.err conftest.$ac_objext \ 10742 conftest$ac_exeext conftest.$ac_ext 10743fi 10744 10745 10746 CFLAGS="$xorg_testset_save_CFLAGS" 10747 10748 eval supported=\$$cacheid 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10750$as_echo "$supported" >&6; } 10751 if test "$supported" = "yes" ; then 10752 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10753 found="yes" 10754 fi 10755 fi 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771xorg_testset_save_CFLAGS="$CFLAGS" 10772 10773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10778 $as_echo_n "(cached) " >&6 10779else 10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10781/* end confdefs.h. */ 10782int i; 10783_ACEOF 10784if ac_fn_c_try_compile "$LINENO"; then : 10785 xorg_cv_cc_flag_unknown_warning_option=yes 10786else 10787 xorg_cv_cc_flag_unknown_warning_option=no 10788fi 10789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10790fi 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10794 CFLAGS="$xorg_testset_save_CFLAGS" 10795fi 10796 10797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10800 fi 10801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10805 $as_echo_n "(cached) " >&6 10806else 10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10808/* end confdefs.h. */ 10809int i; 10810_ACEOF 10811if ac_fn_c_try_compile "$LINENO"; then : 10812 xorg_cv_cc_flag_unused_command_line_argument=yes 10813else 10814 xorg_cv_cc_flag_unused_command_line_argument=no 10815fi 10816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10817fi 10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10821 CFLAGS="$xorg_testset_save_CFLAGS" 10822fi 10823 10824found="no" 10825 10826 if test $found = "no" ; then 10827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10829 fi 10830 10831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10833 fi 10834 10835 CFLAGS="$CFLAGS -Wwrite-strings" 10836 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10838$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10839 cacheid=xorg_cv_cc_flag__Wwrite_strings 10840 if eval \${$cacheid+:} false; then : 10841 $as_echo_n "(cached) " >&6 10842else 10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10844/* end confdefs.h. */ 10845int i; 10846int 10847main () 10848{ 10849 10850 ; 10851 return 0; 10852} 10853_ACEOF 10854if ac_fn_c_try_link "$LINENO"; then : 10855 eval $cacheid=yes 10856else 10857 eval $cacheid=no 10858fi 10859rm -f core conftest.err conftest.$ac_objext \ 10860 conftest$ac_exeext conftest.$ac_ext 10861fi 10862 10863 10864 CFLAGS="$xorg_testset_save_CFLAGS" 10865 10866 eval supported=\$$cacheid 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10868$as_echo "$supported" >&6; } 10869 if test "$supported" = "yes" ; then 10870 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10871 found="yes" 10872 fi 10873 fi 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889xorg_testset_save_CFLAGS="$CFLAGS" 10890 10891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10899/* end confdefs.h. */ 10900int i; 10901_ACEOF 10902if ac_fn_c_try_compile "$LINENO"; then : 10903 xorg_cv_cc_flag_unknown_warning_option=yes 10904else 10905 xorg_cv_cc_flag_unknown_warning_option=no 10906fi 10907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10908fi 10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10912 CFLAGS="$xorg_testset_save_CFLAGS" 10913fi 10914 10915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10918 fi 10919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924else 10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10926/* end confdefs.h. */ 10927int i; 10928_ACEOF 10929if ac_fn_c_try_compile "$LINENO"; then : 10930 xorg_cv_cc_flag_unused_command_line_argument=yes 10931else 10932 xorg_cv_cc_flag_unused_command_line_argument=no 10933fi 10934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10935fi 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10939 CFLAGS="$xorg_testset_save_CFLAGS" 10940fi 10941 10942found="no" 10943 10944 if test $found = "no" ; then 10945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10947 fi 10948 10949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10951 fi 10952 10953 CFLAGS="$CFLAGS -Waddress" 10954 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10956$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10957 cacheid=xorg_cv_cc_flag__Waddress 10958 if eval \${$cacheid+:} false; then : 10959 $as_echo_n "(cached) " >&6 10960else 10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10962/* end confdefs.h. */ 10963int i; 10964int 10965main () 10966{ 10967 10968 ; 10969 return 0; 10970} 10971_ACEOF 10972if ac_fn_c_try_link "$LINENO"; then : 10973 eval $cacheid=yes 10974else 10975 eval $cacheid=no 10976fi 10977rm -f core conftest.err conftest.$ac_objext \ 10978 conftest$ac_exeext conftest.$ac_ext 10979fi 10980 10981 10982 CFLAGS="$xorg_testset_save_CFLAGS" 10983 10984 eval supported=\$$cacheid 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10986$as_echo "$supported" >&6; } 10987 if test "$supported" = "yes" ; then 10988 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10989 found="yes" 10990 fi 10991 fi 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007xorg_testset_save_CFLAGS="$CFLAGS" 11008 11009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11017/* end confdefs.h. */ 11018int i; 11019_ACEOF 11020if ac_fn_c_try_compile "$LINENO"; then : 11021 xorg_cv_cc_flag_unknown_warning_option=yes 11022else 11023 xorg_cv_cc_flag_unknown_warning_option=no 11024fi 11025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11030 CFLAGS="$xorg_testset_save_CFLAGS" 11031fi 11032 11033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11036 fi 11037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11041 $as_echo_n "(cached) " >&6 11042else 11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11044/* end confdefs.h. */ 11045int i; 11046_ACEOF 11047if ac_fn_c_try_compile "$LINENO"; then : 11048 xorg_cv_cc_flag_unused_command_line_argument=yes 11049else 11050 xorg_cv_cc_flag_unused_command_line_argument=no 11051fi 11052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11053fi 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11057 CFLAGS="$xorg_testset_save_CFLAGS" 11058fi 11059 11060found="no" 11061 11062 if test $found = "no" ; then 11063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11065 fi 11066 11067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11069 fi 11070 11071 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11072 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11074$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11075 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11076 if eval \${$cacheid+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078else 11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11080/* end confdefs.h. */ 11081int i; 11082int 11083main () 11084{ 11085 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090if ac_fn_c_try_link "$LINENO"; then : 11091 eval $cacheid=yes 11092else 11093 eval $cacheid=no 11094fi 11095rm -f core conftest.err conftest.$ac_objext \ 11096 conftest$ac_exeext conftest.$ac_ext 11097fi 11098 11099 11100 CFLAGS="$xorg_testset_save_CFLAGS" 11101 11102 eval supported=\$$cacheid 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11104$as_echo "$supported" >&6; } 11105 if test "$supported" = "yes" ; then 11106 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11107 found="yes" 11108 fi 11109 fi 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125xorg_testset_save_CFLAGS="$CFLAGS" 11126 11127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11132 $as_echo_n "(cached) " >&6 11133else 11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11135/* end confdefs.h. */ 11136int i; 11137_ACEOF 11138if ac_fn_c_try_compile "$LINENO"; then : 11139 xorg_cv_cc_flag_unknown_warning_option=yes 11140else 11141 xorg_cv_cc_flag_unknown_warning_option=no 11142fi 11143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11144fi 11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11148 CFLAGS="$xorg_testset_save_CFLAGS" 11149fi 11150 11151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11154 fi 11155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11159 $as_echo_n "(cached) " >&6 11160else 11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11162/* end confdefs.h. */ 11163int i; 11164_ACEOF 11165if ac_fn_c_try_compile "$LINENO"; then : 11166 xorg_cv_cc_flag_unused_command_line_argument=yes 11167else 11168 xorg_cv_cc_flag_unused_command_line_argument=no 11169fi 11170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11171fi 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11175 CFLAGS="$xorg_testset_save_CFLAGS" 11176fi 11177 11178found="no" 11179 11180 if test $found = "no" ; then 11181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11183 fi 11184 11185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11187 fi 11188 11189 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11190 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11192$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11193 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11194 if eval \${$cacheid+:} false; then : 11195 $as_echo_n "(cached) " >&6 11196else 11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11198/* end confdefs.h. */ 11199int i; 11200int 11201main () 11202{ 11203 11204 ; 11205 return 0; 11206} 11207_ACEOF 11208if ac_fn_c_try_link "$LINENO"; then : 11209 eval $cacheid=yes 11210else 11211 eval $cacheid=no 11212fi 11213rm -f core conftest.err conftest.$ac_objext \ 11214 conftest$ac_exeext conftest.$ac_ext 11215fi 11216 11217 11218 CFLAGS="$xorg_testset_save_CFLAGS" 11219 11220 eval supported=\$$cacheid 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11222$as_echo "$supported" >&6; } 11223 if test "$supported" = "yes" ; then 11224 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11225 found="yes" 11226 fi 11227 fi 11228 11229 11230fi 11231 11232 11233 11234 11235 11236 11237 11238 CWARNFLAGS="$BASE_CFLAGS" 11239 if test "x$GCC" = xyes ; then 11240 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11241 fi 11242 11243 11244 11245 11246 11247 11248 11249 11250# Check whether --enable-strict-compilation was given. 11251if test "${enable_strict_compilation+set}" = set; then : 11252 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11253else 11254 STRICT_COMPILE=no 11255fi 11256 11257 11258 11259 11260 11261 11262STRICT_CFLAGS="" 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276xorg_testset_save_CFLAGS="$CFLAGS" 11277 11278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11283 $as_echo_n "(cached) " >&6 11284else 11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11286/* end confdefs.h. */ 11287int i; 11288_ACEOF 11289if ac_fn_c_try_compile "$LINENO"; then : 11290 xorg_cv_cc_flag_unknown_warning_option=yes 11291else 11292 xorg_cv_cc_flag_unknown_warning_option=no 11293fi 11294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11295fi 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11299 CFLAGS="$xorg_testset_save_CFLAGS" 11300fi 11301 11302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11305 fi 11306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314int i; 11315_ACEOF 11316if ac_fn_c_try_compile "$LINENO"; then : 11317 xorg_cv_cc_flag_unused_command_line_argument=yes 11318else 11319 xorg_cv_cc_flag_unused_command_line_argument=no 11320fi 11321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11322fi 11323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11326 CFLAGS="$xorg_testset_save_CFLAGS" 11327fi 11328 11329found="no" 11330 11331 if test $found = "no" ; then 11332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11334 fi 11335 11336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11338 fi 11339 11340 CFLAGS="$CFLAGS -pedantic" 11341 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11343$as_echo_n "checking if $CC supports -pedantic... " >&6; } 11344 cacheid=xorg_cv_cc_flag__pedantic 11345 if eval \${$cacheid+:} false; then : 11346 $as_echo_n "(cached) " >&6 11347else 11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349/* end confdefs.h. */ 11350int i; 11351int 11352main () 11353{ 11354 11355 ; 11356 return 0; 11357} 11358_ACEOF 11359if ac_fn_c_try_link "$LINENO"; then : 11360 eval $cacheid=yes 11361else 11362 eval $cacheid=no 11363fi 11364rm -f core conftest.err conftest.$ac_objext \ 11365 conftest$ac_exeext conftest.$ac_ext 11366fi 11367 11368 11369 CFLAGS="$xorg_testset_save_CFLAGS" 11370 11371 eval supported=\$$cacheid 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11373$as_echo "$supported" >&6; } 11374 if test "$supported" = "yes" ; then 11375 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11376 found="yes" 11377 fi 11378 fi 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394xorg_testset_save_CFLAGS="$CFLAGS" 11395 11396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11401 $as_echo_n "(cached) " >&6 11402else 11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11404/* end confdefs.h. */ 11405int i; 11406_ACEOF 11407if ac_fn_c_try_compile "$LINENO"; then : 11408 xorg_cv_cc_flag_unknown_warning_option=yes 11409else 11410 xorg_cv_cc_flag_unknown_warning_option=no 11411fi 11412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11413fi 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11417 CFLAGS="$xorg_testset_save_CFLAGS" 11418fi 11419 11420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11423 fi 11424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11431/* end confdefs.h. */ 11432int i; 11433_ACEOF 11434if ac_fn_c_try_compile "$LINENO"; then : 11435 xorg_cv_cc_flag_unused_command_line_argument=yes 11436else 11437 xorg_cv_cc_flag_unused_command_line_argument=no 11438fi 11439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11440fi 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11444 CFLAGS="$xorg_testset_save_CFLAGS" 11445fi 11446 11447found="no" 11448 11449 if test $found = "no" ; then 11450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11452 fi 11453 11454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11456 fi 11457 11458 CFLAGS="$CFLAGS -Werror" 11459 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11461$as_echo_n "checking if $CC supports -Werror... " >&6; } 11462 cacheid=xorg_cv_cc_flag__Werror 11463 if eval \${$cacheid+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11467/* end confdefs.h. */ 11468int i; 11469int 11470main () 11471{ 11472 11473 ; 11474 return 0; 11475} 11476_ACEOF 11477if ac_fn_c_try_link "$LINENO"; then : 11478 eval $cacheid=yes 11479else 11480 eval $cacheid=no 11481fi 11482rm -f core conftest.err conftest.$ac_objext \ 11483 conftest$ac_exeext conftest.$ac_ext 11484fi 11485 11486 11487 CFLAGS="$xorg_testset_save_CFLAGS" 11488 11489 eval supported=\$$cacheid 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11491$as_echo "$supported" >&6; } 11492 if test "$supported" = "yes" ; then 11493 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11494 found="yes" 11495 fi 11496 fi 11497 11498 if test $found = "no" ; then 11499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11501 fi 11502 11503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11505 fi 11506 11507 CFLAGS="$CFLAGS -errwarn" 11508 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11510$as_echo_n "checking if $CC supports -errwarn... " >&6; } 11511 cacheid=xorg_cv_cc_flag__errwarn 11512 if eval \${$cacheid+:} false; then : 11513 $as_echo_n "(cached) " >&6 11514else 11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11516/* end confdefs.h. */ 11517int i; 11518int 11519main () 11520{ 11521 11522 ; 11523 return 0; 11524} 11525_ACEOF 11526if ac_fn_c_try_link "$LINENO"; then : 11527 eval $cacheid=yes 11528else 11529 eval $cacheid=no 11530fi 11531rm -f core conftest.err conftest.$ac_objext \ 11532 conftest$ac_exeext conftest.$ac_ext 11533fi 11534 11535 11536 CFLAGS="$xorg_testset_save_CFLAGS" 11537 11538 eval supported=\$$cacheid 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11540$as_echo "$supported" >&6; } 11541 if test "$supported" = "yes" ; then 11542 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11543 found="yes" 11544 fi 11545 fi 11546 11547 11548 11549# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11550# activate it with -Werror, so we add it here explicitly. 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564xorg_testset_save_CFLAGS="$CFLAGS" 11565 11566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11571 $as_echo_n "(cached) " >&6 11572else 11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574/* end confdefs.h. */ 11575int i; 11576_ACEOF 11577if ac_fn_c_try_compile "$LINENO"; then : 11578 xorg_cv_cc_flag_unknown_warning_option=yes 11579else 11580 xorg_cv_cc_flag_unknown_warning_option=no 11581fi 11582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11583fi 11584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11587 CFLAGS="$xorg_testset_save_CFLAGS" 11588fi 11589 11590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11593 fi 11594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11598 $as_echo_n "(cached) " >&6 11599else 11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11601/* end confdefs.h. */ 11602int i; 11603_ACEOF 11604if ac_fn_c_try_compile "$LINENO"; then : 11605 xorg_cv_cc_flag_unused_command_line_argument=yes 11606else 11607 xorg_cv_cc_flag_unused_command_line_argument=no 11608fi 11609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11610fi 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11614 CFLAGS="$xorg_testset_save_CFLAGS" 11615fi 11616 11617found="no" 11618 11619 if test $found = "no" ; then 11620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11622 fi 11623 11624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11626 fi 11627 11628 CFLAGS="$CFLAGS -Werror=attributes" 11629 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11631$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 11632 cacheid=xorg_cv_cc_flag__Werror_attributes 11633 if eval \${$cacheid+:} false; then : 11634 $as_echo_n "(cached) " >&6 11635else 11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11637/* end confdefs.h. */ 11638int i; 11639int 11640main () 11641{ 11642 11643 ; 11644 return 0; 11645} 11646_ACEOF 11647if ac_fn_c_try_link "$LINENO"; then : 11648 eval $cacheid=yes 11649else 11650 eval $cacheid=no 11651fi 11652rm -f core conftest.err conftest.$ac_objext \ 11653 conftest$ac_exeext conftest.$ac_ext 11654fi 11655 11656 11657 CFLAGS="$xorg_testset_save_CFLAGS" 11658 11659 eval supported=\$$cacheid 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11661$as_echo "$supported" >&6; } 11662 if test "$supported" = "yes" ; then 11663 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11664 found="yes" 11665 fi 11666 fi 11667 11668 11669 11670if test "x$STRICT_COMPILE" = "xyes"; then 11671 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11672 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11673fi 11674 11675 11676 11677 11678 11679 11680cat >>confdefs.h <<_ACEOF 11681#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11682_ACEOF 11683 11684 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11685 if test "x$PVM" = "x"; then 11686 PVM="0" 11687 fi 11688 11689cat >>confdefs.h <<_ACEOF 11690#define PACKAGE_VERSION_MINOR $PVM 11691_ACEOF 11692 11693 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11694 if test "x$PVP" = "x"; then 11695 PVP="0" 11696 fi 11697 11698cat >>confdefs.h <<_ACEOF 11699#define PACKAGE_VERSION_PATCHLEVEL $PVP 11700_ACEOF 11701 11702 11703 11704CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 11705mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11706|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 11707echo 'git directory not found: installing possibly empty changelog.' >&2)" 11708 11709 11710 11711 11712macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11713INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11714mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11715|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11716echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11717 11718 11719 11720 11721 11722 11723if test x$APP_MAN_SUFFIX = x ; then 11724 APP_MAN_SUFFIX=1 11725fi 11726if test x$APP_MAN_DIR = x ; then 11727 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11728fi 11729 11730if test x$LIB_MAN_SUFFIX = x ; then 11731 LIB_MAN_SUFFIX=3 11732fi 11733if test x$LIB_MAN_DIR = x ; then 11734 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11735fi 11736 11737if test x$FILE_MAN_SUFFIX = x ; then 11738 case $host_os in 11739 # Solaris 2.0 - 11 use SysV man page sections 11740 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 11741 *) FILE_MAN_SUFFIX=5 ;; 11742 esac 11743fi 11744if test x$FILE_MAN_DIR = x ; then 11745 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11746fi 11747 11748if test x$MISC_MAN_SUFFIX = x ; then 11749 case $host_os in 11750 # Solaris 2.0 - 11 use SysV man page sections 11751 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 11752 *) MISC_MAN_SUFFIX=7 ;; 11753 esac 11754fi 11755if test x$MISC_MAN_DIR = x ; then 11756 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11757fi 11758 11759if test x$DRIVER_MAN_SUFFIX = x ; then 11760 case $host_os in 11761 # Solaris 2.0 - 11 use SysV man page sections 11762 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 11763 *) DRIVER_MAN_SUFFIX=4 ;; 11764 esac 11765fi 11766if test x$DRIVER_MAN_DIR = x ; then 11767 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11768fi 11769 11770if test x$ADMIN_MAN_SUFFIX = x ; then 11771 case $host_os in 11772 # Solaris 2.0 - 11 use SysV man page sections 11773 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 11774 *) ADMIN_MAN_SUFFIX=8 ;; 11775 esac 11776fi 11777if test x$ADMIN_MAN_DIR = x ; then 11778 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11779fi 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795XORG_MAN_PAGE="X Version 11" 11796 11797MAN_SUBSTS="\ 11798 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11799 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11800 -e 's|__xservername__|Xorg|g' \ 11801 -e 's|__xconfigfile__|xorg.conf|g' \ 11802 -e 's|__projectroot__|\$(prefix)|g' \ 11803 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11804 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11805 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11806 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11807 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11808 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11809 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11810 11811 11812 11813# Check whether --enable-silent-rules was given. 11814if test "${enable_silent_rules+set}" = set; then : 11815 enableval=$enable_silent_rules; 11816fi 11817 11818case $enable_silent_rules in # ((( 11819 yes) AM_DEFAULT_VERBOSITY=0;; 11820 no) AM_DEFAULT_VERBOSITY=1;; 11821 *) AM_DEFAULT_VERBOSITY=0;; 11822esac 11823am_make=${MAKE-make} 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11825$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11826if ${am_cv_make_support_nested_variables+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828else 11829 if $as_echo 'TRUE=$(BAR$(V)) 11830BAR0=false 11831BAR1=true 11832V=1 11833am__doit: 11834 @$(TRUE) 11835.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11836 am_cv_make_support_nested_variables=yes 11837else 11838 am_cv_make_support_nested_variables=no 11839fi 11840fi 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11842$as_echo "$am_cv_make_support_nested_variables" >&6; } 11843if test $am_cv_make_support_nested_variables = yes; then 11844 AM_V='$(V)' 11845 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11846else 11847 AM_V=$AM_DEFAULT_VERBOSITY 11848 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11849fi 11850AM_BACKSLASH='\' 11851 11852 11853 11854# Checks for library functions 11855for ac_func in strlcat 11856do : 11857 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 11858if test "x$ac_cv_func_strlcat" = xyes; then : 11859 cat >>confdefs.h <<_ACEOF 11860#define HAVE_STRLCAT 1 11861_ACEOF 11862 11863fi 11864done 11865 11866 11867# Use POSIX strnlen or the implementation supplied in this module 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 11869$as_echo_n "checking for working strnlen... " >&6; } 11870if ${ac_cv_func_strnlen_working+:} false; then : 11871 $as_echo_n "(cached) " >&6 11872else 11873 if test "$cross_compiling" = yes; then : 11874 # Guess no on AIX systems, yes otherwise. 11875 case "$host_os" in 11876 aix*) ac_cv_func_strnlen_working=no;; 11877 *) ac_cv_func_strnlen_working=yes;; 11878 esac 11879else 11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11881/* end confdefs.h. */ 11882$ac_includes_default 11883int 11884main () 11885{ 11886 11887#define S "foobar" 11888#define S_LEN (sizeof S - 1) 11889 11890 /* At least one implementation is buggy: that of AIX 4.3 would 11891 give strnlen (S, 1) == 3. */ 11892 11893 int i; 11894 for (i = 0; i < S_LEN + 1; ++i) 11895 { 11896 int expected = i <= S_LEN ? i : S_LEN; 11897 if (strnlen (S, i) != expected) 11898 return 1; 11899 } 11900 return 0; 11901 11902 ; 11903 return 0; 11904} 11905_ACEOF 11906if ac_fn_c_try_run "$LINENO"; then : 11907 ac_cv_func_strnlen_working=yes 11908else 11909 ac_cv_func_strnlen_working=no 11910fi 11911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11912 conftest.$ac_objext conftest.beam conftest.$ac_ext 11913fi 11914 11915fi 11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 11917$as_echo "$ac_cv_func_strnlen_working" >&6; } 11918test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 11919 *" strnlen.$ac_objext "* ) ;; 11920 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 11921 ;; 11922esac 11923 11924 11925if test "x$ac_cv_func_strnlen_working" = xyes; then 11926 11927$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 11928 11929fi 11930 11931# Define a configure option for using the XCB ICCCM helper functions 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5 11933$as_echo_n "checking whether to use xcb-icccm library... " >&6; } 11934 11935# Check whether --with-xcb-icccm was given. 11936if test "${with_xcb_icccm+set}" = set; then : 11937 withval=$with_xcb_icccm; 11938else 11939 with_xcb_icccm=no 11940fi 11941 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5 11943$as_echo "$with_xcb_icccm" >&6; } 11944if test "x$with_xcb_icccm" != xno ; then 11945 11946$as_echo "#define USE_XCB_ICCCM 1" >>confdefs.h 11947 11948 xcb_icccm_pc='xcb-icccm >= 0.3.8' 11949fi 11950 11951# Obtain compiler/linker options for xwininfo dependencies 11952 11953pkg_failed=no 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5 11955$as_echo_n "checking for XWININFO... " >&6; } 11956 11957if test -n "$XWININFO_CFLAGS"; then 11958 pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS" 11959 elif test -n "$PKG_CONFIG"; then 11960 if test -n "$PKG_CONFIG" && \ 11961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5 11962 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5 11963 ac_status=$? 11964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11965 test $ac_status = 0; }; then 11966 pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null` 11967 test "x$?" != "x0" && pkg_failed=yes 11968else 11969 pkg_failed=yes 11970fi 11971 else 11972 pkg_failed=untried 11973fi 11974if test -n "$XWININFO_LIBS"; then 11975 pkg_cv_XWININFO_LIBS="$XWININFO_LIBS" 11976 elif test -n "$PKG_CONFIG"; then 11977 if test -n "$PKG_CONFIG" && \ 11978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5 11979 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5 11980 ac_status=$? 11981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11982 test $ac_status = 0; }; then 11983 pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null` 11984 test "x$?" != "x0" && pkg_failed=yes 11985else 11986 pkg_failed=yes 11987fi 11988 else 11989 pkg_failed=untried 11990fi 11991 11992 11993 11994if test $pkg_failed = yes; then 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11996$as_echo "no" >&6; } 11997 11998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11999 _pkg_short_errors_supported=yes 12000else 12001 _pkg_short_errors_supported=no 12002fi 12003 if test $_pkg_short_errors_supported = yes; then 12004 XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1` 12005 else 12006 XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1` 12007 fi 12008 # Put the nasty error message in config.log where it belongs 12009 echo "$XWININFO_PKG_ERRORS" >&5 12010 12011 as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc}) were not met: 12012 12013$XWININFO_PKG_ERRORS 12014 12015Consider adjusting the PKG_CONFIG_PATH environment variable if you 12016installed software in a non-standard prefix. 12017 12018Alternatively, you may set the environment variables XWININFO_CFLAGS 12019and XWININFO_LIBS to avoid the need to call pkg-config. 12020See the pkg-config man page for more details." "$LINENO" 5 12021elif test $pkg_failed = untried; then 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12023$as_echo "no" >&6; } 12024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12026as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12027is in your PATH or set the PKG_CONFIG environment variable to the full 12028path to pkg-config. 12029 12030Alternatively, you may set the environment variables XWININFO_CFLAGS 12031and XWININFO_LIBS to avoid the need to call pkg-config. 12032See the pkg-config man page for more details. 12033 12034To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12035See \`config.log' for more details" "$LINENO" 5; } 12036else 12037 XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS 12038 XWININFO_LIBS=$pkg_cv_XWININFO_LIBS 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12040$as_echo "yes" >&6; } 12041 12042fi 12043 12044# Even when using xcb, xproto is still required for Xfuncproto.h 12045# and libX11 headers for cursorfont.h 12046 12047pkg_failed=no 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 12049$as_echo_n "checking for XLIB... " >&6; } 12050 12051if test -n "$XLIB_CFLAGS"; then 12052 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 12053 elif test -n "$PKG_CONFIG"; then 12054 if test -n "$PKG_CONFIG" && \ 12055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 12056 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 12057 ac_status=$? 12058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12059 test $ac_status = 0; }; then 12060 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 12061 test "x$?" != "x0" && pkg_failed=yes 12062else 12063 pkg_failed=yes 12064fi 12065 else 12066 pkg_failed=untried 12067fi 12068if test -n "$XLIB_LIBS"; then 12069 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 12070 elif test -n "$PKG_CONFIG"; then 12071 if test -n "$PKG_CONFIG" && \ 12072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 12073 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 12074 ac_status=$? 12075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12076 test $ac_status = 0; }; then 12077 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 12078 test "x$?" != "x0" && pkg_failed=yes 12079else 12080 pkg_failed=yes 12081fi 12082 else 12083 pkg_failed=untried 12084fi 12085 12086 12087 12088if test $pkg_failed = yes; then 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12090$as_echo "no" >&6; } 12091 12092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12093 _pkg_short_errors_supported=yes 12094else 12095 _pkg_short_errors_supported=no 12096fi 12097 if test $_pkg_short_errors_supported = yes; then 12098 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 12099 else 12100 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 12101 fi 12102 # Put the nasty error message in config.log where it belongs 12103 echo "$XLIB_PKG_ERRORS" >&5 12104 12105 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 12106 12107$XLIB_PKG_ERRORS 12108 12109Consider adjusting the PKG_CONFIG_PATH environment variable if you 12110installed software in a non-standard prefix. 12111 12112Alternatively, you may set the environment variables XLIB_CFLAGS 12113and XLIB_LIBS to avoid the need to call pkg-config. 12114See the pkg-config man page for more details." "$LINENO" 5 12115elif test $pkg_failed = untried; then 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12117$as_echo "no" >&6; } 12118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12120as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12121is in your PATH or set the PKG_CONFIG environment variable to the full 12122path to pkg-config. 12123 12124Alternatively, you may set the environment variables XLIB_CFLAGS 12125and XLIB_LIBS to avoid the need to call pkg-config. 12126See the pkg-config man page for more details. 12127 12128To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12129See \`config.log' for more details" "$LINENO" 5; } 12130else 12131 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 12132 XLIB_LIBS=$pkg_cv_XLIB_LIBS 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12134$as_echo "yes" >&6; } 12135 12136fi 12137XWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}" 12138XWININFO_LIBS="${XWININFO_LIBS} ${LIBICONV}" 12139 12140ac_config_files="$ac_config_files Makefile man/Makefile" 12141 12142cat >confcache <<\_ACEOF 12143# This file is a shell script that caches the results of configure 12144# tests run on this system so they can be shared between configure 12145# scripts and configure runs, see configure's option --config-cache. 12146# It is not useful on other systems. If it contains results you don't 12147# want to keep, you may remove or edit it. 12148# 12149# config.status only pays attention to the cache file if you give it 12150# the --recheck option to rerun configure. 12151# 12152# `ac_cv_env_foo' variables (set or unset) will be overridden when 12153# loading this file, other *unset* `ac_cv_foo' will be assigned the 12154# following values. 12155 12156_ACEOF 12157 12158# The following way of writing the cache mishandles newlines in values, 12159# but we know of no workaround that is simple, portable, and efficient. 12160# So, we kill variables containing newlines. 12161# Ultrix sh set writes to stderr and can't be redirected directly, 12162# and sets the high bit in the cache file unless we assign to the vars. 12163( 12164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12165 eval ac_val=\$$ac_var 12166 case $ac_val in #( 12167 *${as_nl}*) 12168 case $ac_var in #( 12169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12171 esac 12172 case $ac_var in #( 12173 _ | IFS | as_nl) ;; #( 12174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12175 *) { eval $ac_var=; unset $ac_var;} ;; 12176 esac ;; 12177 esac 12178 done 12179 12180 (set) 2>&1 | 12181 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12182 *${as_nl}ac_space=\ *) 12183 # `set' does not quote correctly, so add quotes: double-quote 12184 # substitution turns \\\\ into \\, and sed turns \\ into \. 12185 sed -n \ 12186 "s/'/'\\\\''/g; 12187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12188 ;; #( 12189 *) 12190 # `set' quotes correctly as required by POSIX, so do not add quotes. 12191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12192 ;; 12193 esac | 12194 sort 12195) | 12196 sed ' 12197 /^ac_cv_env_/b end 12198 t clear 12199 :clear 12200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12201 t end 12202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12203 :end' >>confcache 12204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12205 if test -w "$cache_file"; then 12206 if test "x$cache_file" != "x/dev/null"; then 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12208$as_echo "$as_me: updating cache $cache_file" >&6;} 12209 if test ! -f "$cache_file" || test -h "$cache_file"; then 12210 cat confcache >"$cache_file" 12211 else 12212 case $cache_file in #( 12213 */* | ?:*) 12214 mv -f confcache "$cache_file"$$ && 12215 mv -f "$cache_file"$$ "$cache_file" ;; #( 12216 *) 12217 mv -f confcache "$cache_file" ;; 12218 esac 12219 fi 12220 fi 12221 else 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12223$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12224 fi 12225fi 12226rm -f confcache 12227 12228test "x$prefix" = xNONE && prefix=$ac_default_prefix 12229# Let make expand exec_prefix. 12230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12231 12232DEFS=-DHAVE_CONFIG_H 12233 12234ac_libobjs= 12235ac_ltlibobjs= 12236U= 12237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12238 # 1. Remove the extension, and $U if already installed. 12239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12242 # will be set to the directory where LIBOBJS objects are built. 12243 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12244 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12245done 12246LIBOBJS=$ac_libobjs 12247 12248LTLIBOBJS=$ac_ltlibobjs 12249 12250 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12252$as_echo_n "checking that generated files are newer than configure... " >&6; } 12253 if test -n "$am_sleep_pid"; then 12254 # Hide warnings about reused PIDs. 12255 wait $am_sleep_pid 2>/dev/null 12256 fi 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12258$as_echo "done" >&6; } 12259if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12260 as_fn_error $? "conditional \"AMDEP\" was never defined. 12261Usually this means the macro was only invoked conditionally." "$LINENO" 5 12262fi 12263if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12264 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12265Usually this means the macro was only invoked conditionally." "$LINENO" 5 12266fi 12267 if test -n "$EXEEXT"; then 12268 am__EXEEXT_TRUE= 12269 am__EXEEXT_FALSE='#' 12270else 12271 am__EXEEXT_TRUE='#' 12272 am__EXEEXT_FALSE= 12273fi 12274 12275 12276: "${CONFIG_STATUS=./config.status}" 12277ac_write_fail=0 12278ac_clean_files_save=$ac_clean_files 12279ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12280{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12281$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12282as_write_fail=0 12283cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12284#! $SHELL 12285# Generated by $as_me. 12286# Run this file to recreate the current configuration. 12287# Compiler output produced by configure, useful for debugging 12288# configure, is in config.log if it exists. 12289 12290debug=false 12291ac_cs_recheck=false 12292ac_cs_silent=false 12293 12294SHELL=\${CONFIG_SHELL-$SHELL} 12295export SHELL 12296_ASEOF 12297cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12298## -------------------- ## 12299## M4sh Initialization. ## 12300## -------------------- ## 12301 12302# Be more Bourne compatible 12303DUALCASE=1; export DUALCASE # for MKS sh 12304if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12305 emulate sh 12306 NULLCMD=: 12307 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12308 # is contrary to our usage. Disable this feature. 12309 alias -g '${1+"$@"}'='"$@"' 12310 setopt NO_GLOB_SUBST 12311else 12312 case `(set -o) 2>/dev/null` in #( 12313 *posix*) : 12314 set -o posix ;; #( 12315 *) : 12316 ;; 12317esac 12318fi 12319 12320 12321as_nl=' 12322' 12323export as_nl 12324# Printing a long string crashes Solaris 7 /usr/bin/printf. 12325as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12326as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12327as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12328# Prefer a ksh shell builtin over an external printf program on Solaris, 12329# but without wasting forks for bash or zsh. 12330if test -z "$BASH_VERSION$ZSH_VERSION" \ 12331 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12332 as_echo='print -r --' 12333 as_echo_n='print -rn --' 12334elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12335 as_echo='printf %s\n' 12336 as_echo_n='printf %s' 12337else 12338 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12339 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12340 as_echo_n='/usr/ucb/echo -n' 12341 else 12342 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12343 as_echo_n_body='eval 12344 arg=$1; 12345 case $arg in #( 12346 *"$as_nl"*) 12347 expr "X$arg" : "X\\(.*\\)$as_nl"; 12348 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12349 esac; 12350 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12351 ' 12352 export as_echo_n_body 12353 as_echo_n='sh -c $as_echo_n_body as_echo' 12354 fi 12355 export as_echo_body 12356 as_echo='sh -c $as_echo_body as_echo' 12357fi 12358 12359# The user is always right. 12360if test "${PATH_SEPARATOR+set}" != set; then 12361 PATH_SEPARATOR=: 12362 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12363 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12364 PATH_SEPARATOR=';' 12365 } 12366fi 12367 12368 12369# IFS 12370# We need space, tab and new line, in precisely that order. Quoting is 12371# there to prevent editors from complaining about space-tab. 12372# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12373# splitting by setting IFS to empty value.) 12374IFS=" "" $as_nl" 12375 12376# Find who we are. Look in the path if we contain no directory separator. 12377as_myself= 12378case $0 in #(( 12379 *[\\/]* ) as_myself=$0 ;; 12380 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12381for as_dir in $PATH 12382do 12383 IFS=$as_save_IFS 12384 test -z "$as_dir" && as_dir=. 12385 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12386 done 12387IFS=$as_save_IFS 12388 12389 ;; 12390esac 12391# We did not find ourselves, most probably we were run as `sh COMMAND' 12392# in which case we are not to be found in the path. 12393if test "x$as_myself" = x; then 12394 as_myself=$0 12395fi 12396if test ! -f "$as_myself"; then 12397 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12398 exit 1 12399fi 12400 12401# Unset variables that we do not need and which cause bugs (e.g. in 12402# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12403# suppresses any "Segmentation fault" message there. '((' could 12404# trigger a bug in pdksh 5.2.14. 12405for as_var in BASH_ENV ENV MAIL MAILPATH 12406do eval test x\${$as_var+set} = xset \ 12407 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12408done 12409PS1='$ ' 12410PS2='> ' 12411PS4='+ ' 12412 12413# NLS nuisances. 12414LC_ALL=C 12415export LC_ALL 12416LANGUAGE=C 12417export LANGUAGE 12418 12419# CDPATH. 12420(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12421 12422 12423# as_fn_error STATUS ERROR [LINENO LOG_FD] 12424# ---------------------------------------- 12425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12427# script with STATUS, using 1 if that was 0. 12428as_fn_error () 12429{ 12430 as_status=$1; test $as_status -eq 0 && as_status=1 12431 if test "$4"; then 12432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12433 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12434 fi 12435 $as_echo "$as_me: error: $2" >&2 12436 as_fn_exit $as_status 12437} # as_fn_error 12438 12439 12440# as_fn_set_status STATUS 12441# ----------------------- 12442# Set $? to STATUS, without forking. 12443as_fn_set_status () 12444{ 12445 return $1 12446} # as_fn_set_status 12447 12448# as_fn_exit STATUS 12449# ----------------- 12450# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12451as_fn_exit () 12452{ 12453 set +e 12454 as_fn_set_status $1 12455 exit $1 12456} # as_fn_exit 12457 12458# as_fn_unset VAR 12459# --------------- 12460# Portably unset VAR. 12461as_fn_unset () 12462{ 12463 { eval $1=; unset $1;} 12464} 12465as_unset=as_fn_unset 12466# as_fn_append VAR VALUE 12467# ---------------------- 12468# Append the text in VALUE to the end of the definition contained in VAR. Take 12469# advantage of any shell optimizations that allow amortized linear growth over 12470# repeated appends, instead of the typical quadratic growth present in naive 12471# implementations. 12472if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12473 eval 'as_fn_append () 12474 { 12475 eval $1+=\$2 12476 }' 12477else 12478 as_fn_append () 12479 { 12480 eval $1=\$$1\$2 12481 } 12482fi # as_fn_append 12483 12484# as_fn_arith ARG... 12485# ------------------ 12486# Perform arithmetic evaluation on the ARGs, and store the result in the 12487# global $as_val. Take advantage of shells that can avoid forks. The arguments 12488# must be portable across $(()) and expr. 12489if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12490 eval 'as_fn_arith () 12491 { 12492 as_val=$(( $* )) 12493 }' 12494else 12495 as_fn_arith () 12496 { 12497 as_val=`expr "$@" || test $? -eq 1` 12498 } 12499fi # as_fn_arith 12500 12501 12502if expr a : '\(a\)' >/dev/null 2>&1 && 12503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12504 as_expr=expr 12505else 12506 as_expr=false 12507fi 12508 12509if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12510 as_basename=basename 12511else 12512 as_basename=false 12513fi 12514 12515if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12516 as_dirname=dirname 12517else 12518 as_dirname=false 12519fi 12520 12521as_me=`$as_basename -- "$0" || 12522$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12523 X"$0" : 'X\(//\)$' \| \ 12524 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12525$as_echo X/"$0" | 12526 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12527 s//\1/ 12528 q 12529 } 12530 /^X\/\(\/\/\)$/{ 12531 s//\1/ 12532 q 12533 } 12534 /^X\/\(\/\).*/{ 12535 s//\1/ 12536 q 12537 } 12538 s/.*/./; q'` 12539 12540# Avoid depending upon Character Ranges. 12541as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12542as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12543as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12544as_cr_digits='0123456789' 12545as_cr_alnum=$as_cr_Letters$as_cr_digits 12546 12547ECHO_C= ECHO_N= ECHO_T= 12548case `echo -n x` in #((((( 12549-n*) 12550 case `echo 'xy\c'` in 12551 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12552 xy) ECHO_C='\c';; 12553 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12554 ECHO_T=' ';; 12555 esac;; 12556*) 12557 ECHO_N='-n';; 12558esac 12559 12560rm -f conf$$ conf$$.exe conf$$.file 12561if test -d conf$$.dir; then 12562 rm -f conf$$.dir/conf$$.file 12563else 12564 rm -f conf$$.dir 12565 mkdir conf$$.dir 2>/dev/null 12566fi 12567if (echo >conf$$.file) 2>/dev/null; then 12568 if ln -s conf$$.file conf$$ 2>/dev/null; then 12569 as_ln_s='ln -s' 12570 # ... but there are two gotchas: 12571 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12572 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12573 # In both cases, we have to default to `cp -pR'. 12574 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12575 as_ln_s='cp -pR' 12576 elif ln conf$$.file conf$$ 2>/dev/null; then 12577 as_ln_s=ln 12578 else 12579 as_ln_s='cp -pR' 12580 fi 12581else 12582 as_ln_s='cp -pR' 12583fi 12584rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12585rmdir conf$$.dir 2>/dev/null 12586 12587 12588# as_fn_mkdir_p 12589# ------------- 12590# Create "$as_dir" as a directory, including parents if necessary. 12591as_fn_mkdir_p () 12592{ 12593 12594 case $as_dir in #( 12595 -*) as_dir=./$as_dir;; 12596 esac 12597 test -d "$as_dir" || eval $as_mkdir_p || { 12598 as_dirs= 12599 while :; do 12600 case $as_dir in #( 12601 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12602 *) as_qdir=$as_dir;; 12603 esac 12604 as_dirs="'$as_qdir' $as_dirs" 12605 as_dir=`$as_dirname -- "$as_dir" || 12606$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12607 X"$as_dir" : 'X\(//\)[^/]' \| \ 12608 X"$as_dir" : 'X\(//\)$' \| \ 12609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12610$as_echo X"$as_dir" | 12611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12612 s//\1/ 12613 q 12614 } 12615 /^X\(\/\/\)[^/].*/{ 12616 s//\1/ 12617 q 12618 } 12619 /^X\(\/\/\)$/{ 12620 s//\1/ 12621 q 12622 } 12623 /^X\(\/\).*/{ 12624 s//\1/ 12625 q 12626 } 12627 s/.*/./; q'` 12628 test -d "$as_dir" && break 12629 done 12630 test -z "$as_dirs" || eval "mkdir $as_dirs" 12631 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12632 12633 12634} # as_fn_mkdir_p 12635if mkdir -p . 2>/dev/null; then 12636 as_mkdir_p='mkdir -p "$as_dir"' 12637else 12638 test -d ./-p && rmdir ./-p 12639 as_mkdir_p=false 12640fi 12641 12642 12643# as_fn_executable_p FILE 12644# ----------------------- 12645# Test if FILE is an executable regular file. 12646as_fn_executable_p () 12647{ 12648 test -f "$1" && test -x "$1" 12649} # as_fn_executable_p 12650as_test_x='test -x' 12651as_executable_p=as_fn_executable_p 12652 12653# Sed expression to map a string onto a valid CPP name. 12654as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12655 12656# Sed expression to map a string onto a valid variable name. 12657as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12658 12659 12660exec 6>&1 12661## ----------------------------------- ## 12662## Main body of $CONFIG_STATUS script. ## 12663## ----------------------------------- ## 12664_ASEOF 12665test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12666 12667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12668# Save the log message, to keep $0 and so on meaningful, and to 12669# report actual input values of CONFIG_FILES etc. instead of their 12670# values after options handling. 12671ac_log=" 12672This file was extended by xwininfo $as_me 1.1.5, which was 12673generated by GNU Autoconf 2.69. Invocation command line was 12674 12675 CONFIG_FILES = $CONFIG_FILES 12676 CONFIG_HEADERS = $CONFIG_HEADERS 12677 CONFIG_LINKS = $CONFIG_LINKS 12678 CONFIG_COMMANDS = $CONFIG_COMMANDS 12679 $ $0 $@ 12680 12681on `(hostname || uname -n) 2>/dev/null | sed 1q` 12682" 12683 12684_ACEOF 12685 12686case $ac_config_files in *" 12687"*) set x $ac_config_files; shift; ac_config_files=$*;; 12688esac 12689 12690case $ac_config_headers in *" 12691"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12692esac 12693 12694 12695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12696# Files that config.status was made for. 12697config_files="$ac_config_files" 12698config_headers="$ac_config_headers" 12699config_commands="$ac_config_commands" 12700 12701_ACEOF 12702 12703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12704ac_cs_usage="\ 12705\`$as_me' instantiates files and other configuration actions 12706from templates according to the current configuration. Unless the files 12707and actions are specified as TAGs, all are instantiated by default. 12708 12709Usage: $0 [OPTION]... [TAG]... 12710 12711 -h, --help print this help, then exit 12712 -V, --version print version number and configuration settings, then exit 12713 --config print configuration, then exit 12714 -q, --quiet, --silent 12715 do not print progress messages 12716 -d, --debug don't remove temporary files 12717 --recheck update $as_me by reconfiguring in the same conditions 12718 --file=FILE[:TEMPLATE] 12719 instantiate the configuration file FILE 12720 --header=FILE[:TEMPLATE] 12721 instantiate the configuration header FILE 12722 12723Configuration files: 12724$config_files 12725 12726Configuration headers: 12727$config_headers 12728 12729Configuration commands: 12730$config_commands 12731 12732Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/issues>." 12733 12734_ACEOF 12735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12736ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12737ac_cs_version="\\ 12738xwininfo config.status 1.1.5 12739configured by $0, generated by GNU Autoconf 2.69, 12740 with options \\"\$ac_cs_config\\" 12741 12742Copyright (C) 2012 Free Software Foundation, Inc. 12743This config.status script is free software; the Free Software Foundation 12744gives unlimited permission to copy, distribute and modify it." 12745 12746ac_pwd='$ac_pwd' 12747srcdir='$srcdir' 12748INSTALL='$INSTALL' 12749MKDIR_P='$MKDIR_P' 12750AWK='$AWK' 12751test -n "\$AWK" || AWK=awk 12752_ACEOF 12753 12754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12755# The default lists apply if the user does not specify any file. 12756ac_need_defaults=: 12757while test $# != 0 12758do 12759 case $1 in 12760 --*=?*) 12761 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12763 ac_shift=: 12764 ;; 12765 --*=) 12766 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12767 ac_optarg= 12768 ac_shift=: 12769 ;; 12770 *) 12771 ac_option=$1 12772 ac_optarg=$2 12773 ac_shift=shift 12774 ;; 12775 esac 12776 12777 case $ac_option in 12778 # Handling of the options. 12779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12780 ac_cs_recheck=: ;; 12781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12782 $as_echo "$ac_cs_version"; exit ;; 12783 --config | --confi | --conf | --con | --co | --c ) 12784 $as_echo "$ac_cs_config"; exit ;; 12785 --debug | --debu | --deb | --de | --d | -d ) 12786 debug=: ;; 12787 --file | --fil | --fi | --f ) 12788 $ac_shift 12789 case $ac_optarg in 12790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12791 '') as_fn_error $? "missing file argument" ;; 12792 esac 12793 as_fn_append CONFIG_FILES " '$ac_optarg'" 12794 ac_need_defaults=false;; 12795 --header | --heade | --head | --hea ) 12796 $ac_shift 12797 case $ac_optarg in 12798 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12799 esac 12800 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12801 ac_need_defaults=false;; 12802 --he | --h) 12803 # Conflict between --help and --header 12804 as_fn_error $? "ambiguous option: \`$1' 12805Try \`$0 --help' for more information.";; 12806 --help | --hel | -h ) 12807 $as_echo "$ac_cs_usage"; exit ;; 12808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12809 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12810 ac_cs_silent=: ;; 12811 12812 # This is an error. 12813 -*) as_fn_error $? "unrecognized option: \`$1' 12814Try \`$0 --help' for more information." ;; 12815 12816 *) as_fn_append ac_config_targets " $1" 12817 ac_need_defaults=false ;; 12818 12819 esac 12820 shift 12821done 12822 12823ac_configure_extra_args= 12824 12825if $ac_cs_silent; then 12826 exec 6>/dev/null 12827 ac_configure_extra_args="$ac_configure_extra_args --silent" 12828fi 12829 12830_ACEOF 12831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12832if \$ac_cs_recheck; then 12833 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12834 shift 12835 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12836 CONFIG_SHELL='$SHELL' 12837 export CONFIG_SHELL 12838 exec "\$@" 12839fi 12840 12841_ACEOF 12842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12843exec 5>>config.log 12844{ 12845 echo 12846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12847## Running $as_me. ## 12848_ASBOX 12849 $as_echo "$ac_log" 12850} >&5 12851 12852_ACEOF 12853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12854# 12855# INIT-COMMANDS 12856# 12857AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12858 12859_ACEOF 12860 12861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12862 12863# Handling of arguments. 12864for ac_config_target in $ac_config_targets 12865do 12866 case $ac_config_target in 12867 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12868 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12869 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12870 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12871 12872 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12873 esac 12874done 12875 12876 12877# If the user did not use the arguments to specify the items to instantiate, 12878# then the envvar interface is used. Set only those that are not. 12879# We use the long form for the default assignment because of an extremely 12880# bizarre bug on SunOS 4.1.3. 12881if $ac_need_defaults; then 12882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12885fi 12886 12887# Have a temporary directory for convenience. Make it in the build tree 12888# simply because there is no reason against having it here, and in addition, 12889# creating and moving files from /tmp can sometimes cause problems. 12890# Hook for its removal unless debugging. 12891# Note that there is a small window in which the directory will not be cleaned: 12892# after its creation but before its name has been assigned to `$tmp'. 12893$debug || 12894{ 12895 tmp= ac_tmp= 12896 trap 'exit_status=$? 12897 : "${ac_tmp:=$tmp}" 12898 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12899' 0 12900 trap 'as_fn_exit 1' 1 2 13 15 12901} 12902# Create a (secure) tmp directory for tmp files. 12903 12904{ 12905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12906 test -d "$tmp" 12907} || 12908{ 12909 tmp=./conf$$-$RANDOM 12910 (umask 077 && mkdir "$tmp") 12911} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12912ac_tmp=$tmp 12913 12914# Set up the scripts for CONFIG_FILES section. 12915# No need to generate them if there are no CONFIG_FILES. 12916# This happens for instance with `./config.status config.h'. 12917if test -n "$CONFIG_FILES"; then 12918 12919 12920ac_cr=`echo X | tr X '\015'` 12921# On cygwin, bash can eat \r inside `` if the user requested igncr. 12922# But we know of no other shell where ac_cr would be empty at this 12923# point, so we can use a bashism as a fallback. 12924if test "x$ac_cr" = x; then 12925 eval ac_cr=\$\'\\r\' 12926fi 12927ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12928if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12929 ac_cs_awk_cr='\\r' 12930else 12931 ac_cs_awk_cr=$ac_cr 12932fi 12933 12934echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12935_ACEOF 12936 12937 12938{ 12939 echo "cat >conf$$subs.awk <<_ACEOF" && 12940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12941 echo "_ACEOF" 12942} >conf$$subs.sh || 12943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12944ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12945ac_delim='%!_!# ' 12946for ac_last_try in false false false false false :; do 12947 . ./conf$$subs.sh || 12948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12949 12950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12951 if test $ac_delim_n = $ac_delim_num; then 12952 break 12953 elif $ac_last_try; then 12954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12955 else 12956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12957 fi 12958done 12959rm -f conf$$subs.sh 12960 12961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12962cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12963_ACEOF 12964sed -n ' 12965h 12966s/^/S["/; s/!.*/"]=/ 12967p 12968g 12969s/^[^!]*!// 12970:repl 12971t repl 12972s/'"$ac_delim"'$// 12973t delim 12974:nl 12975h 12976s/\(.\{148\}\)..*/\1/ 12977t more1 12978s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12979p 12980n 12981b repl 12982:more1 12983s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12984p 12985g 12986s/.\{148\}// 12987t nl 12988:delim 12989h 12990s/\(.\{148\}\)..*/\1/ 12991t more2 12992s/["\\]/\\&/g; s/^/"/; s/$/"/ 12993p 12994b 12995:more2 12996s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12997p 12998g 12999s/.\{148\}// 13000t delim 13001' <conf$$subs.awk | sed ' 13002/^[^""]/{ 13003 N 13004 s/\n// 13005} 13006' >>$CONFIG_STATUS || ac_write_fail=1 13007rm -f conf$$subs.awk 13008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13009_ACAWK 13010cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13011 for (key in S) S_is_set[key] = 1 13012 FS = "" 13013 13014} 13015{ 13016 line = $ 0 13017 nfields = split(line, field, "@") 13018 substed = 0 13019 len = length(field[1]) 13020 for (i = 2; i < nfields; i++) { 13021 key = field[i] 13022 keylen = length(key) 13023 if (S_is_set[key]) { 13024 value = S[key] 13025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13026 len += length(value) + length(field[++i]) 13027 substed = 1 13028 } else 13029 len += 1 + keylen 13030 } 13031 13032 print line 13033} 13034 13035_ACAWK 13036_ACEOF 13037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13038if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13040else 13041 cat 13042fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13043 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13044_ACEOF 13045 13046# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13047# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13048# trailing colons and then remove the whole line if VPATH becomes empty 13049# (actually we leave an empty line to preserve line numbers). 13050if test "x$srcdir" = x.; then 13051 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13052h 13053s/// 13054s/^/:/ 13055s/[ ]*$/:/ 13056s/:\$(srcdir):/:/g 13057s/:\${srcdir}:/:/g 13058s/:@srcdir@:/:/g 13059s/^:*// 13060s/:*$// 13061x 13062s/\(=[ ]*\).*/\1/ 13063G 13064s/\n// 13065s/^[^=]*=[ ]*$// 13066}' 13067fi 13068 13069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13070fi # test -n "$CONFIG_FILES" 13071 13072# Set up the scripts for CONFIG_HEADERS section. 13073# No need to generate them if there are no CONFIG_HEADERS. 13074# This happens for instance with `./config.status Makefile'. 13075if test -n "$CONFIG_HEADERS"; then 13076cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13077BEGIN { 13078_ACEOF 13079 13080# Transform confdefs.h into an awk script `defines.awk', embedded as 13081# here-document in config.status, that substitutes the proper values into 13082# config.h.in to produce config.h. 13083 13084# Create a delimiter string that does not exist in confdefs.h, to ease 13085# handling of long lines. 13086ac_delim='%!_!# ' 13087for ac_last_try in false false :; do 13088 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13089 if test -z "$ac_tt"; then 13090 break 13091 elif $ac_last_try; then 13092 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13093 else 13094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13095 fi 13096done 13097 13098# For the awk script, D is an array of macro values keyed by name, 13099# likewise P contains macro parameters if any. Preserve backslash 13100# newline sequences. 13101 13102ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13103sed -n ' 13104s/.\{148\}/&'"$ac_delim"'/g 13105t rset 13106:rset 13107s/^[ ]*#[ ]*define[ ][ ]*/ / 13108t def 13109d 13110:def 13111s/\\$// 13112t bsnl 13113s/["\\]/\\&/g 13114s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13115D["\1"]=" \3"/p 13116s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13117d 13118:bsnl 13119s/["\\]/\\&/g 13120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13121D["\1"]=" \3\\\\\\n"\\/p 13122t cont 13123s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13124t cont 13125d 13126:cont 13127n 13128s/.\{148\}/&'"$ac_delim"'/g 13129t clear 13130:clear 13131s/\\$// 13132t bsnlc 13133s/["\\]/\\&/g; s/^/"/; s/$/"/p 13134d 13135:bsnlc 13136s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13137b cont 13138' <confdefs.h | sed ' 13139s/'"$ac_delim"'/"\\\ 13140"/g' >>$CONFIG_STATUS || ac_write_fail=1 13141 13142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13143 for (key in D) D_is_set[key] = 1 13144 FS = "" 13145} 13146/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13147 line = \$ 0 13148 split(line, arg, " ") 13149 if (arg[1] == "#") { 13150 defundef = arg[2] 13151 mac1 = arg[3] 13152 } else { 13153 defundef = substr(arg[1], 2) 13154 mac1 = arg[2] 13155 } 13156 split(mac1, mac2, "(") #) 13157 macro = mac2[1] 13158 prefix = substr(line, 1, index(line, defundef) - 1) 13159 if (D_is_set[macro]) { 13160 # Preserve the white space surrounding the "#". 13161 print prefix "define", macro P[macro] D[macro] 13162 next 13163 } else { 13164 # Replace #undef with comments. This is necessary, for example, 13165 # in the case of _POSIX_SOURCE, which is predefined and required 13166 # on some systems where configure will not decide to define it. 13167 if (defundef == "undef") { 13168 print "/*", prefix defundef, macro, "*/" 13169 next 13170 } 13171 } 13172} 13173{ print } 13174_ACAWK 13175_ACEOF 13176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13177 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13178fi # test -n "$CONFIG_HEADERS" 13179 13180 13181eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13182shift 13183for ac_tag 13184do 13185 case $ac_tag in 13186 :[FHLC]) ac_mode=$ac_tag; continue;; 13187 esac 13188 case $ac_mode$ac_tag in 13189 :[FHL]*:*);; 13190 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13191 :[FH]-) ac_tag=-:-;; 13192 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13193 esac 13194 ac_save_IFS=$IFS 13195 IFS=: 13196 set x $ac_tag 13197 IFS=$ac_save_IFS 13198 shift 13199 ac_file=$1 13200 shift 13201 13202 case $ac_mode in 13203 :L) ac_source=$1;; 13204 :[FH]) 13205 ac_file_inputs= 13206 for ac_f 13207 do 13208 case $ac_f in 13209 -) ac_f="$ac_tmp/stdin";; 13210 *) # Look for the file first in the build tree, then in the source tree 13211 # (if the path is not absolute). The absolute path cannot be DOS-style, 13212 # because $ac_f cannot contain `:'. 13213 test -f "$ac_f" || 13214 case $ac_f in 13215 [\\/$]*) false;; 13216 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13217 esac || 13218 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13219 esac 13220 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13221 as_fn_append ac_file_inputs " '$ac_f'" 13222 done 13223 13224 # Let's still pretend it is `configure' which instantiates (i.e., don't 13225 # use $as_me), people would be surprised to read: 13226 # /* config.h. Generated by config.status. */ 13227 configure_input='Generated from '` 13228 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13229 `' by configure.' 13230 if test x"$ac_file" != x-; then 13231 configure_input="$ac_file. $configure_input" 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13233$as_echo "$as_me: creating $ac_file" >&6;} 13234 fi 13235 # Neutralize special characters interpreted by sed in replacement strings. 13236 case $configure_input in #( 13237 *\&* | *\|* | *\\* ) 13238 ac_sed_conf_input=`$as_echo "$configure_input" | 13239 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13240 *) ac_sed_conf_input=$configure_input;; 13241 esac 13242 13243 case $ac_tag in 13244 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13246 esac 13247 ;; 13248 esac 13249 13250 ac_dir=`$as_dirname -- "$ac_file" || 13251$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13252 X"$ac_file" : 'X\(//\)[^/]' \| \ 13253 X"$ac_file" : 'X\(//\)$' \| \ 13254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13255$as_echo X"$ac_file" | 13256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13257 s//\1/ 13258 q 13259 } 13260 /^X\(\/\/\)[^/].*/{ 13261 s//\1/ 13262 q 13263 } 13264 /^X\(\/\/\)$/{ 13265 s//\1/ 13266 q 13267 } 13268 /^X\(\/\).*/{ 13269 s//\1/ 13270 q 13271 } 13272 s/.*/./; q'` 13273 as_dir="$ac_dir"; as_fn_mkdir_p 13274 ac_builddir=. 13275 13276case "$ac_dir" in 13277.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13278*) 13279 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13280 # A ".." for each directory in $ac_dir_suffix. 13281 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13282 case $ac_top_builddir_sub in 13283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13285 esac ;; 13286esac 13287ac_abs_top_builddir=$ac_pwd 13288ac_abs_builddir=$ac_pwd$ac_dir_suffix 13289# for backward compatibility: 13290ac_top_builddir=$ac_top_build_prefix 13291 13292case $srcdir in 13293 .) # We are building in place. 13294 ac_srcdir=. 13295 ac_top_srcdir=$ac_top_builddir_sub 13296 ac_abs_top_srcdir=$ac_pwd ;; 13297 [\\/]* | ?:[\\/]* ) # Absolute name. 13298 ac_srcdir=$srcdir$ac_dir_suffix; 13299 ac_top_srcdir=$srcdir 13300 ac_abs_top_srcdir=$srcdir ;; 13301 *) # Relative name. 13302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13303 ac_top_srcdir=$ac_top_build_prefix$srcdir 13304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13305esac 13306ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13307 13308 13309 case $ac_mode in 13310 :F) 13311 # 13312 # CONFIG_FILE 13313 # 13314 13315 case $INSTALL in 13316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13318 esac 13319 ac_MKDIR_P=$MKDIR_P 13320 case $MKDIR_P in 13321 [\\/$]* | ?:[\\/]* ) ;; 13322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13323 esac 13324_ACEOF 13325 13326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13327# If the template does not know about datarootdir, expand it. 13328# FIXME: This hack should be removed a few years after 2.60. 13329ac_datarootdir_hack=; ac_datarootdir_seen= 13330ac_sed_dataroot=' 13331/datarootdir/ { 13332 p 13333 q 13334} 13335/@datadir@/p 13336/@docdir@/p 13337/@infodir@/p 13338/@localedir@/p 13339/@mandir@/p' 13340case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13341*datarootdir*) ac_datarootdir_seen=yes;; 13342*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13344$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13345_ACEOF 13346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13347 ac_datarootdir_hack=' 13348 s&@datadir@&$datadir&g 13349 s&@docdir@&$docdir&g 13350 s&@infodir@&$infodir&g 13351 s&@localedir@&$localedir&g 13352 s&@mandir@&$mandir&g 13353 s&\\\${datarootdir}&$datarootdir&g' ;; 13354esac 13355_ACEOF 13356 13357# Neutralize VPATH when `$srcdir' = `.'. 13358# Shell code in configure.ac might set extrasub. 13359# FIXME: do we really want to maintain this feature? 13360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13361ac_sed_extra="$ac_vpsub 13362$extrasub 13363_ACEOF 13364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13365:t 13366/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13367s|@configure_input@|$ac_sed_conf_input|;t t 13368s&@top_builddir@&$ac_top_builddir_sub&;t t 13369s&@top_build_prefix@&$ac_top_build_prefix&;t t 13370s&@srcdir@&$ac_srcdir&;t t 13371s&@abs_srcdir@&$ac_abs_srcdir&;t t 13372s&@top_srcdir@&$ac_top_srcdir&;t t 13373s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13374s&@builddir@&$ac_builddir&;t t 13375s&@abs_builddir@&$ac_abs_builddir&;t t 13376s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13377s&@INSTALL@&$ac_INSTALL&;t t 13378s&@MKDIR_P@&$ac_MKDIR_P&;t t 13379$ac_datarootdir_hack 13380" 13381eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13382 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13383 13384test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13385 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13386 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13387 "$ac_tmp/out"`; test -z "$ac_out"; } && 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13389which seems to be undefined. Please make sure it is defined" >&5 13390$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13391which seems to be undefined. Please make sure it is defined" >&2;} 13392 13393 rm -f "$ac_tmp/stdin" 13394 case $ac_file in 13395 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13396 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13397 esac \ 13398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13399 ;; 13400 :H) 13401 # 13402 # CONFIG_HEADER 13403 # 13404 if test x"$ac_file" != x-; then 13405 { 13406 $as_echo "/* $configure_input */" \ 13407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13408 } >"$ac_tmp/config.h" \ 13409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13410 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13412$as_echo "$as_me: $ac_file is unchanged" >&6;} 13413 else 13414 rm -f "$ac_file" 13415 mv "$ac_tmp/config.h" "$ac_file" \ 13416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13417 fi 13418 else 13419 $as_echo "/* $configure_input */" \ 13420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13421 || as_fn_error $? "could not create -" "$LINENO" 5 13422 fi 13423# Compute "$ac_file"'s index in $config_headers. 13424_am_arg="$ac_file" 13425_am_stamp_count=1 13426for _am_header in $config_headers :; do 13427 case $_am_header in 13428 $_am_arg | $_am_arg:* ) 13429 break ;; 13430 * ) 13431 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13432 esac 13433done 13434echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13435$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13436 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13437 X"$_am_arg" : 'X\(//\)$' \| \ 13438 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13439$as_echo X"$_am_arg" | 13440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13441 s//\1/ 13442 q 13443 } 13444 /^X\(\/\/\)[^/].*/{ 13445 s//\1/ 13446 q 13447 } 13448 /^X\(\/\/\)$/{ 13449 s//\1/ 13450 q 13451 } 13452 /^X\(\/\).*/{ 13453 s//\1/ 13454 q 13455 } 13456 s/.*/./; q'`/stamp-h$_am_stamp_count 13457 ;; 13458 13459 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13460$as_echo "$as_me: executing $ac_file commands" >&6;} 13461 ;; 13462 esac 13463 13464 13465 case $ac_file$ac_mode in 13466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13467 # Older Autoconf quotes --file arguments for eval, but not when files 13468 # are listed without --file. Let's play safe and only enable the eval 13469 # if we detect the quoting. 13470 case $CONFIG_FILES in 13471 *\'*) eval set x "$CONFIG_FILES" ;; 13472 *) set x $CONFIG_FILES ;; 13473 esac 13474 shift 13475 for mf 13476 do 13477 # Strip MF so we end up with the name of the file. 13478 mf=`echo "$mf" | sed -e 's/:.*$//'` 13479 # Check whether this is an Automake generated Makefile or not. 13480 # We used to match only the files named 'Makefile.in', but 13481 # some people rename them; so instead we look at the file content. 13482 # Grep'ing the first line is not enough: some people post-process 13483 # each Makefile.in and add a new line on top of each file to say so. 13484 # Grep'ing the whole file is not good either: AIX grep has a line 13485 # limit of 2048, but all sed's we know have understand at least 4000. 13486 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13487 dirpart=`$as_dirname -- "$mf" || 13488$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13489 X"$mf" : 'X\(//\)[^/]' \| \ 13490 X"$mf" : 'X\(//\)$' \| \ 13491 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13492$as_echo X"$mf" | 13493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13494 s//\1/ 13495 q 13496 } 13497 /^X\(\/\/\)[^/].*/{ 13498 s//\1/ 13499 q 13500 } 13501 /^X\(\/\/\)$/{ 13502 s//\1/ 13503 q 13504 } 13505 /^X\(\/\).*/{ 13506 s//\1/ 13507 q 13508 } 13509 s/.*/./; q'` 13510 else 13511 continue 13512 fi 13513 # Extract the definition of DEPDIR, am__include, and am__quote 13514 # from the Makefile without running 'make'. 13515 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13516 test -z "$DEPDIR" && continue 13517 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13518 test -z "$am__include" && continue 13519 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13520 # Find all dependency output files, they are included files with 13521 # $(DEPDIR) in their names. We invoke sed twice because it is the 13522 # simplest approach to changing $(DEPDIR) to its actual value in the 13523 # expansion. 13524 for file in `sed -n " 13525 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 13527 # Make sure the directory exists. 13528 test -f "$dirpart/$file" && continue 13529 fdir=`$as_dirname -- "$file" || 13530$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13531 X"$file" : 'X\(//\)[^/]' \| \ 13532 X"$file" : 'X\(//\)$' \| \ 13533 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13534$as_echo X"$file" | 13535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13536 s//\1/ 13537 q 13538 } 13539 /^X\(\/\/\)[^/].*/{ 13540 s//\1/ 13541 q 13542 } 13543 /^X\(\/\/\)$/{ 13544 s//\1/ 13545 q 13546 } 13547 /^X\(\/\).*/{ 13548 s//\1/ 13549 q 13550 } 13551 s/.*/./; q'` 13552 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13553 # echo "creating $dirpart/$file" 13554 echo '# dummy' > "$dirpart/$file" 13555 done 13556 done 13557} 13558 ;; 13559 13560 esac 13561done # for ac_tag 13562 13563 13564as_fn_exit 0 13565_ACEOF 13566ac_clean_files=$ac_clean_files_save 13567 13568test $ac_write_fail = 0 || 13569 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13570 13571 13572# configure is writing to config.log, and then calls config.status. 13573# config.status does its own redirection, appending to config.log. 13574# Unfortunately, on DOS this fails, as config.log is still kept open 13575# by configure, so config.status won't be able to write to it; its 13576# output is simply discarded. So we exec the FD to /dev/null, 13577# effectively closing config.log, so it can be properly (re)opened and 13578# appended to by config.status. When coming back to configure, we 13579# need to make the FD available again. 13580if test "$no_create" != yes; then 13581 ac_cs_success=: 13582 ac_config_status_args= 13583 test "$silent" = yes && 13584 ac_config_status_args="$ac_config_status_args --quiet" 13585 exec 5>/dev/null 13586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13587 exec 5>>config.log 13588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13589 # would make configure fail if this is the last instruction. 13590 $ac_cs_success || as_fn_exit 1 13591fi 13592if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13594$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13595fi 13596 13597