configure revision 576bbdfc
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xprop 1.2.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xprop' 563PACKAGE_TARNAME='xprop' 564PACKAGE_VERSION='1.2.2' 565PACKAGE_STRING='xprop 1.2.2' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610LINT_FALSE 611LINT_TRUE 612LINT_FLAGS 613LINT 614XPROP_LIBS 615XPROP_CFLAGS 616MAN_SUBSTS 617XORG_MAN_PAGE 618ADMIN_MAN_DIR 619DRIVER_MAN_DIR 620MISC_MAN_DIR 621FILE_MAN_DIR 622LIB_MAN_DIR 623APP_MAN_DIR 624ADMIN_MAN_SUFFIX 625DRIVER_MAN_SUFFIX 626MISC_MAN_SUFFIX 627FILE_MAN_SUFFIX 628LIB_MAN_SUFFIX 629APP_MAN_SUFFIX 630SED 631host_os 632host_vendor 633host_cpu 634host 635build_os 636build_vendor 637build_cpu 638build 639INSTALL_CMD 640PKG_CONFIG 641CHANGELOG_CMD 642STRICT_CFLAGS 643CWARNFLAGS 644BASE_CFLAGS 645EGREP 646GREP 647CPP 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651am__nodep 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658OBJEXT 659EXEEXT 660ac_ct_CC 661CPPFLAGS 662LDFLAGS 663CFLAGS 664CC 665MAINT 666MAINTAINER_MODE_FALSE 667MAINTAINER_MODE_TRUE 668AM_BACKSLASH 669AM_DEFAULT_VERBOSITY 670AM_DEFAULT_V 671AM_V 672am__untar 673am__tar 674AMTAR 675am__leading_dot 676SET_MAKE 677AWK 678mkdir_p 679MKDIR_P 680INSTALL_STRIP_PROGRAM 681STRIP 682install_sh 683MAKEINFO 684AUTOHEADER 685AUTOMAKE 686AUTOCONF 687ACLOCAL 688VERSION 689PACKAGE 690CYGPATH_W 691am__isrc 692INSTALL_DATA 693INSTALL_SCRIPT 694INSTALL_PROGRAM 695target_alias 696host_alias 697build_alias 698LIBS 699ECHO_T 700ECHO_N 701ECHO_C 702DEFS 703mandir 704localedir 705libdir 706psdir 707pdfdir 708dvidir 709htmldir 710infodir 711docdir 712oldincludedir 713includedir 714localstatedir 715sharedstatedir 716sysconfdir 717datadir 718datarootdir 719libexecdir 720sbindir 721bindir 722program_transform_name 723prefix 724exec_prefix 725PACKAGE_URL 726PACKAGE_BUGREPORT 727PACKAGE_STRING 728PACKAGE_VERSION 729PACKAGE_TARNAME 730PACKAGE_NAME 731PATH_SEPARATOR 732SHELL' 733ac_subst_files='' 734ac_user_opts=' 735enable_option_checking 736enable_silent_rules 737enable_maintainer_mode 738enable_dependency_tracking 739enable_selective_werror 740enable_strict_compilation 741with_lint 742' 743 ac_precious_vars='build_alias 744host_alias 745target_alias 746CC 747CFLAGS 748LDFLAGS 749LIBS 750CPPFLAGS 751CPP 752PKG_CONFIG 753XPROP_CFLAGS 754XPROP_LIBS 755LINT 756LINT_FLAGS' 757 758 759# Initialize some variables set by options. 760ac_init_help= 761ac_init_version=false 762ac_unrecognized_opts= 763ac_unrecognized_sep= 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *=) ac_optarg= ;; 821 *) ac_optarg=yes ;; 822 esac 823 824 # Accept the important Cygnus configure options, so we can diagnose typos. 825 826 case $ac_dashdash$ac_option in 827 --) 828 ac_dashdash=yes ;; 829 830 -bindir | --bindir | --bindi | --bind | --bin | --bi) 831 ac_prev=bindir ;; 832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833 bindir=$ac_optarg ;; 834 835 -build | --build | --buil | --bui | --bu) 836 ac_prev=build_alias ;; 837 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838 build_alias=$ac_optarg ;; 839 840 -cache-file | --cache-file | --cache-fil | --cache-fi \ 841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842 ac_prev=cache_file ;; 843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845 cache_file=$ac_optarg ;; 846 847 --config-cache | -C) 848 cache_file=config.cache ;; 849 850 -datadir | --datadir | --datadi | --datad) 851 ac_prev=datadir ;; 852 -datadir=* | --datadir=* | --datadi=* | --datad=*) 853 datadir=$ac_optarg ;; 854 855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856 | --dataroo | --dataro | --datar) 857 ac_prev=datarootdir ;; 858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860 datarootdir=$ac_optarg ;; 861 862 -disable-* | --disable-*) 863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864 # Reject names that are not valid shell variable names. 865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 866 as_fn_error $? "invalid feature name: $ac_useropt" 867 ac_useropt_orig=$ac_useropt 868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 869 case $ac_user_opts in 870 *" 871"enable_$ac_useropt" 872"*) ;; 873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 874 ac_unrecognized_sep=', ';; 875 esac 876 eval enable_$ac_useropt=no ;; 877 878 -docdir | --docdir | --docdi | --doc | --do) 879 ac_prev=docdir ;; 880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 881 docdir=$ac_optarg ;; 882 883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 884 ac_prev=dvidir ;; 885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 886 dvidir=$ac_optarg ;; 887 888 -enable-* | --enable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=\$ac_optarg ;; 903 904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906 | --exec | --exe | --ex) 907 ac_prev=exec_prefix ;; 908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910 | --exec=* | --exe=* | --ex=*) 911 exec_prefix=$ac_optarg ;; 912 913 -gas | --gas | --ga | --g) 914 # Obsolete; use --with-gas. 915 with_gas=yes ;; 916 917 -help | --help | --hel | --he | -h) 918 ac_init_help=long ;; 919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920 ac_init_help=recursive ;; 921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922 ac_init_help=short ;; 923 924 -host | --host | --hos | --ho) 925 ac_prev=host_alias ;; 926 -host=* | --host=* | --hos=* | --ho=*) 927 host_alias=$ac_optarg ;; 928 929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930 ac_prev=htmldir ;; 931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932 | --ht=*) 933 htmldir=$ac_optarg ;; 934 935 -includedir | --includedir | --includedi | --included | --include \ 936 | --includ | --inclu | --incl | --inc) 937 ac_prev=includedir ;; 938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939 | --includ=* | --inclu=* | --incl=* | --inc=*) 940 includedir=$ac_optarg ;; 941 942 -infodir | --infodir | --infodi | --infod | --info | --inf) 943 ac_prev=infodir ;; 944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945 infodir=$ac_optarg ;; 946 947 -libdir | --libdir | --libdi | --libd) 948 ac_prev=libdir ;; 949 -libdir=* | --libdir=* | --libdi=* | --libd=*) 950 libdir=$ac_optarg ;; 951 952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953 | --libexe | --libex | --libe) 954 ac_prev=libexecdir ;; 955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956 | --libexe=* | --libex=* | --libe=*) 957 libexecdir=$ac_optarg ;; 958 959 -localedir | --localedir | --localedi | --localed | --locale) 960 ac_prev=localedir ;; 961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962 localedir=$ac_optarg ;; 963 964 -localstatedir | --localstatedir | --localstatedi | --localstated \ 965 | --localstate | --localstat | --localsta | --localst | --locals) 966 ac_prev=localstatedir ;; 967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969 localstatedir=$ac_optarg ;; 970 971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972 ac_prev=mandir ;; 973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974 mandir=$ac_optarg ;; 975 976 -nfp | --nfp | --nf) 977 # Obsolete; use --without-fp. 978 with_fp=no ;; 979 980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981 | --no-cr | --no-c | -n) 982 no_create=yes ;; 983 984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986 no_recursion=yes ;; 987 988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990 | --oldin | --oldi | --old | --ol | --o) 991 ac_prev=oldincludedir ;; 992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995 oldincludedir=$ac_optarg ;; 996 997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998 ac_prev=prefix ;; 999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000 prefix=$ac_optarg ;; 1001 1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003 | --program-pre | --program-pr | --program-p) 1004 ac_prev=program_prefix ;; 1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007 program_prefix=$ac_optarg ;; 1008 1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010 | --program-suf | --program-su | --program-s) 1011 ac_prev=program_suffix ;; 1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014 program_suffix=$ac_optarg ;; 1015 1016 -program-transform-name | --program-transform-name \ 1017 | --program-transform-nam | --program-transform-na \ 1018 | --program-transform-n | --program-transform- \ 1019 | --program-transform | --program-transfor \ 1020 | --program-transfo | --program-transf \ 1021 | --program-trans | --program-tran \ 1022 | --progr-tra | --program-tr | --program-t) 1023 ac_prev=program_transform_name ;; 1024 -program-transform-name=* | --program-transform-name=* \ 1025 | --program-transform-nam=* | --program-transform-na=* \ 1026 | --program-transform-n=* | --program-transform-=* \ 1027 | --program-transform=* | --program-transfor=* \ 1028 | --program-transfo=* | --program-transf=* \ 1029 | --program-trans=* | --program-tran=* \ 1030 | --progr-tra=* | --program-tr=* | --program-t=*) 1031 program_transform_name=$ac_optarg ;; 1032 1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034 ac_prev=pdfdir ;; 1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036 pdfdir=$ac_optarg ;; 1037 1038 -psdir | --psdir | --psdi | --psd | --ps) 1039 ac_prev=psdir ;; 1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041 psdir=$ac_optarg ;; 1042 1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044 | -silent | --silent | --silen | --sile | --sil) 1045 silent=yes ;; 1046 1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1048 ac_prev=sbindir ;; 1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1050 | --sbi=* | --sb=*) 1051 sbindir=$ac_optarg ;; 1052 1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1055 | --sharedst | --shareds | --shared | --share | --shar \ 1056 | --sha | --sh) 1057 ac_prev=sharedstatedir ;; 1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1061 | --sha=* | --sh=*) 1062 sharedstatedir=$ac_optarg ;; 1063 1064 -site | --site | --sit) 1065 ac_prev=site ;; 1066 -site=* | --site=* | --sit=*) 1067 site=$ac_optarg ;; 1068 1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1070 ac_prev=srcdir ;; 1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1072 srcdir=$ac_optarg ;; 1073 1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1075 | --syscon | --sysco | --sysc | --sys | --sy) 1076 ac_prev=sysconfdir ;; 1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1079 sysconfdir=$ac_optarg ;; 1080 1081 -target | --target | --targe | --targ | --tar | --ta | --t) 1082 ac_prev=target_alias ;; 1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1084 target_alias=$ac_optarg ;; 1085 1086 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1087 verbose=yes ;; 1088 1089 -version | --version | --versio | --versi | --vers | -V) 1090 ac_init_version=: ;; 1091 1092 -with-* | --with-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 as_fn_error $? "invalid package name: $ac_useropt" 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"with_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval with_$ac_useropt=\$ac_optarg ;; 1107 1108 -without-* | --without-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=no ;; 1123 1124 --x) 1125 # Obsolete; use --with-x. 1126 with_x=yes ;; 1127 1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1129 | --x-incl | --x-inc | --x-in | --x-i) 1130 ac_prev=x_includes ;; 1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1133 x_includes=$ac_optarg ;; 1134 1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1137 ac_prev=x_libraries ;; 1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1140 x_libraries=$ac_optarg ;; 1141 1142 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1143Try \`$0 --help' for more information" 1144 ;; 1145 1146 *=*) 1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1148 # Reject names that are not valid shell variable names. 1149 case $ac_envvar in #( 1150 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1152 esac 1153 eval $ac_envvar=\$ac_optarg 1154 export $ac_envvar ;; 1155 1156 *) 1157 # FIXME: should be removed in autoconf 3.0. 1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1162 ;; 1163 1164 esac 1165done 1166 1167if test -n "$ac_prev"; then 1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1169 as_fn_error $? "missing argument to $ac_option" 1170fi 1171 1172if test -n "$ac_unrecognized_opts"; then 1173 case $enable_option_checking in 1174 no) ;; 1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1177 esac 1178fi 1179 1180# Check all directory arguments for consistency. 1181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1182 datadir sysconfdir sharedstatedir localstatedir includedir \ 1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1184 libdir localedir mandir 1185do 1186 eval ac_val=\$$ac_var 1187 # Remove trailing slashes. 1188 case $ac_val in 1189 */ ) 1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1191 eval $ac_var=\$ac_val;; 1192 esac 1193 # Be sure to have absolute directory names. 1194 case $ac_val in 1195 [\\/$]* | ?:[\\/]* ) continue;; 1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197 esac 1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1199done 1200 1201# There might be people who depend on the old broken behavior: `$host' 1202# used to hold the argument of --host etc. 1203# FIXME: To remove some day. 1204build=$build_alias 1205host=$host_alias 1206target=$target_alias 1207 1208# FIXME: To remove some day. 1209if test "x$host_alias" != x; then 1210 if test "x$build_alias" = x; then 1211 cross_compiling=maybe 1212 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1213 If a cross compiler is detected then cross compile mode will be used" >&2 1214 elif test "x$build_alias" != "x$host_alias"; then 1215 cross_compiling=yes 1216 fi 1217fi 1218 1219ac_tool_prefix= 1220test -n "$host_alias" && ac_tool_prefix=$host_alias- 1221 1222test "$silent" = yes && exec 6>/dev/null 1223 1224 1225ac_pwd=`pwd` && test -n "$ac_pwd" && 1226ac_ls_di=`ls -di .` && 1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228 as_fn_error $? "working directory cannot be determined" 1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1230 as_fn_error $? "pwd does not report name of working directory" 1231 1232 1233# Find the source files, if location was not specified. 1234if test -z "$srcdir"; then 1235 ac_srcdir_defaulted=yes 1236 # Try the directory containing this script, then the parent directory. 1237 ac_confdir=`$as_dirname -- "$as_myself" || 1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239 X"$as_myself" : 'X\(//\)[^/]' \| \ 1240 X"$as_myself" : 'X\(//\)$' \| \ 1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1242$as_echo X"$as_myself" | 1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\/\)[^/].*/{ 1248 s//\1/ 1249 q 1250 } 1251 /^X\(\/\/\)$/{ 1252 s//\1/ 1253 q 1254 } 1255 /^X\(\/\).*/{ 1256 s//\1/ 1257 q 1258 } 1259 s/.*/./; q'` 1260 srcdir=$ac_confdir 1261 if test ! -r "$srcdir/$ac_unique_file"; then 1262 srcdir=.. 1263 fi 1264else 1265 ac_srcdir_defaulted=no 1266fi 1267if test ! -r "$srcdir/$ac_unique_file"; then 1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1270fi 1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1272ac_abs_confdir=`( 1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1274 pwd)` 1275# When building in place, set srcdir=. 1276if test "$ac_abs_confdir" = "$ac_pwd"; then 1277 srcdir=. 1278fi 1279# Remove unnecessary trailing slashes from srcdir. 1280# Double slashes in file names in object file debugging info 1281# mess up M-x gdb in Emacs. 1282case $srcdir in 1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1284esac 1285for ac_var in $ac_precious_vars; do 1286 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_env_${ac_var}_value=\$${ac_var} 1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1289 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1290done 1291 1292# 1293# Report the --help message. 1294# 1295if test "$ac_init_help" = "long"; then 1296 # Omit some internal or obsolete options to make the list less imposing. 1297 # This message is too long to be a string in the A/UX 3.1 sh. 1298 cat <<_ACEOF 1299\`configure' configures xprop 1.2.2 to adapt to many kinds of systems. 1300 1301Usage: $0 [OPTION]... [VAR=VALUE]... 1302 1303To assign environment variables (e.g., CC, CFLAGS...), specify them as 1304VAR=VALUE. See below for descriptions of some of the useful variables. 1305 1306Defaults for the options are specified in brackets. 1307 1308Configuration: 1309 -h, --help display this help and exit 1310 --help=short display options specific to this package 1311 --help=recursive display the short help of all the included packages 1312 -V, --version display version information and exit 1313 -q, --quiet, --silent do not print \`checking ...' messages 1314 --cache-file=FILE cache test results in FILE [disabled] 1315 -C, --config-cache alias for \`--cache-file=config.cache' 1316 -n, --no-create do not create output files 1317 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1318 1319Installation directories: 1320 --prefix=PREFIX install architecture-independent files in PREFIX 1321 [$ac_default_prefix] 1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1323 [PREFIX] 1324 1325By default, \`make install' will install all the files in 1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1327an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1328for instance \`--prefix=\$HOME'. 1329 1330For better control, use the options below. 1331 1332Fine tuning of the installation directories: 1333 --bindir=DIR user executables [EPREFIX/bin] 1334 --sbindir=DIR system admin executables [EPREFIX/sbin] 1335 --libexecdir=DIR program executables [EPREFIX/libexec] 1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1339 --libdir=DIR object code libraries [EPREFIX/lib] 1340 --includedir=DIR C header files [PREFIX/include] 1341 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1344 --infodir=DIR info documentation [DATAROOTDIR/info] 1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1346 --mandir=DIR man documentation [DATAROOTDIR/man] 1347 --docdir=DIR documentation root [DATAROOTDIR/doc/xprop] 1348 --htmldir=DIR html documentation [DOCDIR] 1349 --dvidir=DIR dvi documentation [DOCDIR] 1350 --pdfdir=DIR pdf documentation [DOCDIR] 1351 --psdir=DIR ps documentation [DOCDIR] 1352_ACEOF 1353 1354 cat <<\_ACEOF 1355 1356Program names: 1357 --program-prefix=PREFIX prepend PREFIX to installed program names 1358 --program-suffix=SUFFIX append SUFFIX to installed program names 1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1360 1361System types: 1362 --build=BUILD configure for building on BUILD [guessed] 1363 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1364_ACEOF 1365fi 1366 1367if test -n "$ac_init_help"; then 1368 case $ac_init_help in 1369 short | recursive ) echo "Configuration of xprop 1.2.2:";; 1370 esac 1371 cat <<\_ACEOF 1372 1373Optional Features: 1374 --disable-option-checking ignore unrecognized --enable/--with options 1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377 --enable-silent-rules less verbose build output (undo: "make V=1") 1378 --disable-silent-rules verbose build output (undo: "make V=0") 1379 --enable-maintainer-mode 1380 enable make rules and dependencies not useful (and 1381 sometimes confusing) to the casual installer 1382 --enable-dependency-tracking 1383 do not reject slow dependency extractors 1384 --disable-dependency-tracking 1385 speeds up one-time build 1386 --disable-selective-werror 1387 Turn off selective compiler errors. (default: 1388 enabled) 1389 --enable-strict-compilation 1390 Enable all warnings from compiler and make them 1391 errors (default: disabled) 1392 1393Optional Packages: 1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1396 --with-lint Use a lint-style source code checker (default: 1397 disabled) 1398 1399Some influential environment variables: 1400 CC C compiler command 1401 CFLAGS C compiler flags 1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1403 nonstandard directory <lib dir> 1404 LIBS libraries to pass to the linker, e.g. -l<library> 1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1406 you have headers in a nonstandard directory <include dir> 1407 CPP C preprocessor 1408 PKG_CONFIG path to pkg-config utility 1409 XPROP_CFLAGS 1410 C compiler flags for XPROP, overriding pkg-config 1411 XPROP_LIBS linker flags for XPROP, overriding pkg-config 1412 LINT Path to a lint-style command 1413 LINT_FLAGS Flags for the lint-style command 1414 1415Use these variables to override the choices made by `configure' or to help 1416it to find libraries and programs with nonstandard names/locations. 1417 1418Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1419_ACEOF 1420ac_status=$? 1421fi 1422 1423if test "$ac_init_help" = "recursive"; then 1424 # If there are subdirs, report their specific --help. 1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1426 test -d "$ac_dir" || 1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1428 continue 1429 ac_builddir=. 1430 1431case "$ac_dir" in 1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1433*) 1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1435 # A ".." for each directory in $ac_dir_suffix. 1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1437 case $ac_top_builddir_sub in 1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1440 esac ;; 1441esac 1442ac_abs_top_builddir=$ac_pwd 1443ac_abs_builddir=$ac_pwd$ac_dir_suffix 1444# for backward compatibility: 1445ac_top_builddir=$ac_top_build_prefix 1446 1447case $srcdir in 1448 .) # We are building in place. 1449 ac_srcdir=. 1450 ac_top_srcdir=$ac_top_builddir_sub 1451 ac_abs_top_srcdir=$ac_pwd ;; 1452 [\\/]* | ?:[\\/]* ) # Absolute name. 1453 ac_srcdir=$srcdir$ac_dir_suffix; 1454 ac_top_srcdir=$srcdir 1455 ac_abs_top_srcdir=$srcdir ;; 1456 *) # Relative name. 1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1458 ac_top_srcdir=$ac_top_build_prefix$srcdir 1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1460esac 1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1462 1463 cd "$ac_dir" || { ac_status=$?; continue; } 1464 # Check for guested configure. 1465 if test -f "$ac_srcdir/configure.gnu"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1468 elif test -f "$ac_srcdir/configure"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure" --help=recursive 1471 else 1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1473 fi || ac_status=$? 1474 cd "$ac_pwd" || { ac_status=$?; break; } 1475 done 1476fi 1477 1478test -n "$ac_init_help" && exit $ac_status 1479if $ac_init_version; then 1480 cat <<\_ACEOF 1481xprop configure 1.2.2 1482generated by GNU Autoconf 2.68 1483 1484Copyright (C) 2010 Free Software Foundation, Inc. 1485This configure script is free software; the Free Software Foundation 1486gives unlimited permission to copy, distribute and modify it. 1487_ACEOF 1488 exit 1489fi 1490 1491## ------------------------ ## 1492## Autoconf initialization. ## 1493## ------------------------ ## 1494 1495# ac_fn_c_try_compile LINENO 1496# -------------------------- 1497# Try to compile conftest.$ac_ext, and return whether this succeeded. 1498ac_fn_c_try_compile () 1499{ 1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1501 rm -f conftest.$ac_objext 1502 if { { ac_try="$ac_compile" 1503case "(($ac_try" in 1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1505 *) ac_try_echo=$ac_try;; 1506esac 1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1508$as_echo "$ac_try_echo"; } >&5 1509 (eval "$ac_compile") 2>conftest.err 1510 ac_status=$? 1511 if test -s conftest.err; then 1512 grep -v '^ *+' conftest.err >conftest.er1 1513 cat conftest.er1 >&5 1514 mv -f conftest.er1 conftest.err 1515 fi 1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1517 test $ac_status = 0; } && { 1518 test -z "$ac_c_werror_flag" || 1519 test ! -s conftest.err 1520 } && test -s conftest.$ac_objext; then : 1521 ac_retval=0 1522else 1523 $as_echo "$as_me: failed program was:" >&5 1524sed 's/^/| /' conftest.$ac_ext >&5 1525 1526 ac_retval=1 1527fi 1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1529 as_fn_set_status $ac_retval 1530 1531} # ac_fn_c_try_compile 1532 1533# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1534# --------------------------------------------- 1535# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1536# accordingly. 1537ac_fn_c_check_decl () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 as_decl_name=`echo $2|sed 's/ *(.*//'` 1541 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1543$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1544if eval \${$3+:} false; then : 1545 $as_echo_n "(cached) " >&6 1546else 1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1548/* end confdefs.h. */ 1549$4 1550int 1551main () 1552{ 1553#ifndef $as_decl_name 1554#ifdef __cplusplus 1555 (void) $as_decl_use; 1556#else 1557 (void) $as_decl_name; 1558#endif 1559#endif 1560 1561 ; 1562 return 0; 1563} 1564_ACEOF 1565if ac_fn_c_try_compile "$LINENO"; then : 1566 eval "$3=yes" 1567else 1568 eval "$3=no" 1569fi 1570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1571fi 1572eval ac_res=\$$3 1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1574$as_echo "$ac_res" >&6; } 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 1577} # ac_fn_c_check_decl 1578 1579# ac_fn_c_try_cpp LINENO 1580# ---------------------- 1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_cpp () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 if { { ac_try="$ac_cpp conftest.$ac_ext" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } > conftest.i && { 1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 }; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_cpp 1615 1616# ac_fn_c_try_run LINENO 1617# ---------------------- 1618# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1619# that executables *can* be run. 1620ac_fn_c_try_run () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 if { { ac_try="$ac_link" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_link") 2>&5 1631 ac_status=$? 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1634 { { case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_try") 2>&5 1641 ac_status=$? 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; }; }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: program exited with status $ac_status" >&5 1647 $as_echo "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=$ac_status 1651fi 1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_run 1657 1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1659# ------------------------------------------------------- 1660# Tests whether HEADER exists and can be compiled using the include files in 1661# INCLUDES, setting the cache variable VAR accordingly. 1662ac_fn_c_check_header_compile () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669else 1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1671/* end confdefs.h. */ 1672$4 1673#include <$2> 1674_ACEOF 1675if ac_fn_c_try_compile "$LINENO"; then : 1676 eval "$3=yes" 1677else 1678 eval "$3=no" 1679fi 1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1681fi 1682eval ac_res=\$$3 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684$as_echo "$ac_res" >&6; } 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687} # ac_fn_c_check_header_compile 1688 1689# ac_fn_c_try_link LINENO 1690# ----------------------- 1691# Try to link conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_link () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 rm -f conftest.$ac_objext conftest$ac_exeext 1696 if { { ac_try="$ac_link" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_link") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { 1712 test -z "$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 } && test -s conftest$ac_exeext && { 1715 test "$cross_compiling" = yes || 1716 $as_test_x conftest$ac_exeext 1717 }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1727 # interfere with the next link command; also delete a directory that is 1728 # left behind by Apple's compiler. We do this before executing the actions. 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_link 1734 1735# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1736# ------------------------------------------------------- 1737# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1738# the include files in INCLUDES and setting the cache variable VAR 1739# accordingly. 1740ac_fn_c_check_header_mongrel () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if eval \${$3+:} false; then : 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752else 1753 # Is the header compilable? 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1755$as_echo_n "checking $2 usability... " >&6; } 1756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$4 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO"; then : 1762 ac_header_compiler=yes 1763else 1764 ac_header_compiler=no 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1768$as_echo "$ac_header_compiler" >&6; } 1769 1770# Is the header present? 1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1772$as_echo_n "checking $2 presence... " >&6; } 1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775#include <$2> 1776_ACEOF 1777if ac_fn_c_try_cpp "$LINENO"; then : 1778 ac_header_preproc=yes 1779else 1780 ac_header_preproc=no 1781fi 1782rm -f conftest.err conftest.i conftest.$ac_ext 1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1784$as_echo "$ac_header_preproc" >&6; } 1785 1786# So? What about this header? 1787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1788 yes:no: ) 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1790$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1793 ;; 1794 no:yes:* ) 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1796$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1798$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1800$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1802$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1805( $as_echo "## ---------------------------------------------------------------------- ## 1806## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1807## ---------------------------------------------------------------------- ##" 1808 ) | sed "s/^/$as_me: WARNING: /" >&2 1809 ;; 1810esac 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 eval "$3=\$ac_header_compiler" 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 1824} # ac_fn_c_check_header_mongrel 1825cat >config.log <<_ACEOF 1826This file contains any messages produced by compilers while 1827running configure, to aid debugging if configure makes a mistake. 1828 1829It was created by xprop $as_me 1.2.2, which was 1830generated by GNU Autoconf 2.68. Invocation command line was 1831 1832 $ $0 $@ 1833 1834_ACEOF 1835exec 5>>config.log 1836{ 1837cat <<_ASUNAME 1838## --------- ## 1839## Platform. ## 1840## --------- ## 1841 1842hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1843uname -m = `(uname -m) 2>/dev/null || echo unknown` 1844uname -r = `(uname -r) 2>/dev/null || echo unknown` 1845uname -s = `(uname -s) 2>/dev/null || echo unknown` 1846uname -v = `(uname -v) 2>/dev/null || echo unknown` 1847 1848/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1849/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1850 1851/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1852/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1853/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1854/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1855/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1856/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1857/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1858 1859_ASUNAME 1860 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 $as_echo "PATH: $as_dir" 1867 done 1868IFS=$as_save_IFS 1869 1870} >&5 1871 1872cat >&5 <<_ACEOF 1873 1874 1875## ----------- ## 1876## Core tests. ## 1877## ----------- ## 1878 1879_ACEOF 1880 1881 1882# Keep a trace of the command line. 1883# Strip out --no-create and --no-recursion so they do not pile up. 1884# Strip out --silent because we don't want to record it for future runs. 1885# Also quote any args containing shell meta-characters. 1886# Make two passes to allow for proper duplicate-argument suppression. 1887ac_configure_args= 1888ac_configure_args0= 1889ac_configure_args1= 1890ac_must_keep_next=false 1891for ac_pass in 1 2 1892do 1893 for ac_arg 1894 do 1895 case $ac_arg in 1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1898 | -silent | --silent | --silen | --sile | --sil) 1899 continue ;; 1900 *\'*) 1901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1902 esac 1903 case $ac_pass in 1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1905 2) 1906 as_fn_append ac_configure_args1 " '$ac_arg'" 1907 if test $ac_must_keep_next = true; then 1908 ac_must_keep_next=false # Got value, back to normal. 1909 else 1910 case $ac_arg in 1911 *=* | --config-cache | -C | -disable-* | --disable-* \ 1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1914 | -with-* | --with-* | -without-* | --without-* | --x) 1915 case "$ac_configure_args0 " in 1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1917 esac 1918 ;; 1919 -* ) ac_must_keep_next=true ;; 1920 esac 1921 fi 1922 as_fn_append ac_configure_args " '$ac_arg'" 1923 ;; 1924 esac 1925 done 1926done 1927{ ac_configure_args0=; unset ac_configure_args0;} 1928{ ac_configure_args1=; unset ac_configure_args1;} 1929 1930# When interrupted or exit'd, cleanup temporary files, and complete 1931# config.log. We remove comments because anyway the quotes in there 1932# would cause problems or look ugly. 1933# WARNING: Use '\'' to represent an apostrophe within the trap. 1934# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1935trap 'exit_status=$? 1936 # Save into config.log some information that might help in debugging. 1937 { 1938 echo 1939 1940 $as_echo "## ---------------- ## 1941## Cache variables. ## 1942## ---------------- ##" 1943 echo 1944 # The following way of writing the cache mishandles newlines in values, 1945( 1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1947 eval ac_val=\$$ac_var 1948 case $ac_val in #( 1949 *${as_nl}*) 1950 case $ac_var in #( 1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1952$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1953 esac 1954 case $ac_var in #( 1955 _ | IFS | as_nl) ;; #( 1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1957 *) { eval $ac_var=; unset $ac_var;} ;; 1958 esac ;; 1959 esac 1960 done 1961 (set) 2>&1 | 1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1963 *${as_nl}ac_space=\ *) 1964 sed -n \ 1965 "s/'\''/'\''\\\\'\'''\''/g; 1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1967 ;; #( 1968 *) 1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1970 ;; 1971 esac | 1972 sort 1973) 1974 echo 1975 1976 $as_echo "## ----------------- ## 1977## Output variables. ## 1978## ----------------- ##" 1979 echo 1980 for ac_var in $ac_subst_vars 1981 do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in 1984 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1985 esac 1986 $as_echo "$ac_var='\''$ac_val'\''" 1987 done | sort 1988 echo 1989 1990 if test -n "$ac_subst_files"; then 1991 $as_echo "## ------------------- ## 1992## File substitutions. ## 1993## ------------------- ##" 1994 echo 1995 for ac_var in $ac_subst_files 1996 do 1997 eval ac_val=\$$ac_var 1998 case $ac_val in 1999 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2000 esac 2001 $as_echo "$ac_var='\''$ac_val'\''" 2002 done | sort 2003 echo 2004 fi 2005 2006 if test -s confdefs.h; then 2007 $as_echo "## ----------- ## 2008## confdefs.h. ## 2009## ----------- ##" 2010 echo 2011 cat confdefs.h 2012 echo 2013 fi 2014 test "$ac_signal" != 0 && 2015 $as_echo "$as_me: caught signal $ac_signal" 2016 $as_echo "$as_me: exit $exit_status" 2017 } >&5 2018 rm -f core *.core core.conftest.* && 2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2020 exit $exit_status 2021' 0 2022for ac_signal in 1 2 13 15; do 2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2024done 2025ac_signal=0 2026 2027# confdefs.h avoids OS command line length limits that DEFS can exceed. 2028rm -f -r conftest* confdefs.h 2029 2030$as_echo "/* confdefs.h */" > confdefs.h 2031 2032# Predefined preprocessor variables. 2033 2034cat >>confdefs.h <<_ACEOF 2035#define PACKAGE_NAME "$PACKAGE_NAME" 2036_ACEOF 2037 2038cat >>confdefs.h <<_ACEOF 2039#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2040_ACEOF 2041 2042cat >>confdefs.h <<_ACEOF 2043#define PACKAGE_VERSION "$PACKAGE_VERSION" 2044_ACEOF 2045 2046cat >>confdefs.h <<_ACEOF 2047#define PACKAGE_STRING "$PACKAGE_STRING" 2048_ACEOF 2049 2050cat >>confdefs.h <<_ACEOF 2051#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2052_ACEOF 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_URL "$PACKAGE_URL" 2056_ACEOF 2057 2058 2059# Let the site file select an alternate cache file if it wants to. 2060# Prefer an explicitly selected file to automatically selected ones. 2061ac_site_file1=NONE 2062ac_site_file2=NONE 2063if test -n "$CONFIG_SITE"; then 2064 # We do not want a PATH search for config.site. 2065 case $CONFIG_SITE in #(( 2066 -*) ac_site_file1=./$CONFIG_SITE;; 2067 */*) ac_site_file1=$CONFIG_SITE;; 2068 *) ac_site_file1=./$CONFIG_SITE;; 2069 esac 2070elif test "x$prefix" != xNONE; then 2071 ac_site_file1=$prefix/share/config.site 2072 ac_site_file2=$prefix/etc/config.site 2073else 2074 ac_site_file1=$ac_default_prefix/share/config.site 2075 ac_site_file2=$ac_default_prefix/etc/config.site 2076fi 2077for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2078do 2079 test "x$ac_site_file" = xNONE && continue 2080 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2082$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2083 sed 's/^/| /' "$ac_site_file" >&5 2084 . "$ac_site_file" \ 2085 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2087as_fn_error $? "failed to load site script $ac_site_file 2088See \`config.log' for more details" "$LINENO" 5; } 2089 fi 2090done 2091 2092if test -r "$cache_file"; then 2093 # Some versions of bash will fail to source /dev/null (special files 2094 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2095 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2097$as_echo "$as_me: loading cache $cache_file" >&6;} 2098 case $cache_file in 2099 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2100 *) . "./$cache_file";; 2101 esac 2102 fi 2103else 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2105$as_echo "$as_me: creating cache $cache_file" >&6;} 2106 >$cache_file 2107fi 2108 2109# Check that the precious variables saved in the cache have kept the same 2110# value. 2111ac_cache_corrupted=false 2112for ac_var in $ac_precious_vars; do 2113 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2114 eval ac_new_set=\$ac_env_${ac_var}_set 2115 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2116 eval ac_new_val=\$ac_env_${ac_var}_value 2117 case $ac_old_set,$ac_new_set in 2118 set,) 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2120$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2121 ac_cache_corrupted=: ;; 2122 ,set) 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2124$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2125 ac_cache_corrupted=: ;; 2126 ,);; 2127 *) 2128 if test "x$ac_old_val" != "x$ac_new_val"; then 2129 # differences in whitespace do not lead to failure. 2130 ac_old_val_w=`echo x $ac_old_val` 2131 ac_new_val_w=`echo x $ac_new_val` 2132 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2134$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2135 ac_cache_corrupted=: 2136 else 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2138$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2139 eval $ac_var=\$ac_old_val 2140 fi 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2142$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2144$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2145 fi;; 2146 esac 2147 # Pass precious variables to config.status. 2148 if test "$ac_new_set" = set; then 2149 case $ac_new_val in 2150 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2151 *) ac_arg=$ac_var=$ac_new_val ;; 2152 esac 2153 case " $ac_configure_args " in 2154 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2155 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2156 esac 2157 fi 2158done 2159if $ac_cache_corrupted; then 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2163$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2164 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2165fi 2166## -------------------- ## 2167## Main body of script. ## 2168## -------------------- ## 2169 2170ac_ext=c 2171ac_cpp='$CPP $CPPFLAGS' 2172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2174ac_compiler_gnu=$ac_cv_c_compiler_gnu 2175 2176 2177 2178ac_config_headers="$ac_config_headers config.h" 2179 2180 2181# Initialize Automake 2182am__api_version='1.14' 2183 2184ac_aux_dir= 2185for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2186 if test -f "$ac_dir/install-sh"; then 2187 ac_aux_dir=$ac_dir 2188 ac_install_sh="$ac_aux_dir/install-sh -c" 2189 break 2190 elif test -f "$ac_dir/install.sh"; then 2191 ac_aux_dir=$ac_dir 2192 ac_install_sh="$ac_aux_dir/install.sh -c" 2193 break 2194 elif test -f "$ac_dir/shtool"; then 2195 ac_aux_dir=$ac_dir 2196 ac_install_sh="$ac_aux_dir/shtool install -c" 2197 break 2198 fi 2199done 2200if test -z "$ac_aux_dir"; then 2201 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2202fi 2203 2204# These three variables are undocumented and unsupported, 2205# and are intended to be withdrawn in a future Autoconf release. 2206# They can cause serious problems if a builder's source tree is in a directory 2207# whose full name contains unusual characters. 2208ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2209ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2210ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2211 2212 2213# Find a good install program. We prefer a C program (faster), 2214# so one script is as good as another. But avoid the broken or 2215# incompatible versions: 2216# SysV /etc/install, /usr/sbin/install 2217# SunOS /usr/etc/install 2218# IRIX /sbin/install 2219# AIX /bin/install 2220# AmigaOS /C/install, which installs bootblocks on floppy discs 2221# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2222# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2223# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2224# OS/2's system install, which has a completely different semantic 2225# ./install, which can be erroneously created by make from ./install.sh. 2226# Reject install programs that cannot install multiple files. 2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2228$as_echo_n "checking for a BSD-compatible install... " >&6; } 2229if test -z "$INSTALL"; then 2230if ${ac_cv_path_install+:} false; then : 2231 $as_echo_n "(cached) " >&6 2232else 2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 # Account for people who put trailing slashes in PATH elements. 2239case $as_dir/ in #(( 2240 ./ | .// | /[cC]/* | \ 2241 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2242 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2243 /usr/ucb/* ) ;; 2244 *) 2245 # OSF1 and SCO ODT 3.0 have their own names for install. 2246 # Don't use installbsd from OSF since it installs stuff as root 2247 # by default. 2248 for ac_prog in ginstall scoinst install; do 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2251 if test $ac_prog = install && 2252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2253 # AIX install. It has an incompatible calling convention. 2254 : 2255 elif test $ac_prog = install && 2256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2257 # program-specific install script used by HP pwplus--don't use. 2258 : 2259 else 2260 rm -rf conftest.one conftest.two conftest.dir 2261 echo one > conftest.one 2262 echo two > conftest.two 2263 mkdir conftest.dir 2264 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2265 test -s conftest.one && test -s conftest.two && 2266 test -s conftest.dir/conftest.one && 2267 test -s conftest.dir/conftest.two 2268 then 2269 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2270 break 3 2271 fi 2272 fi 2273 fi 2274 done 2275 done 2276 ;; 2277esac 2278 2279 done 2280IFS=$as_save_IFS 2281 2282rm -rf conftest.one conftest.two conftest.dir 2283 2284fi 2285 if test "${ac_cv_path_install+set}" = set; then 2286 INSTALL=$ac_cv_path_install 2287 else 2288 # As a last resort, use the slow shell script. Don't cache a 2289 # value for INSTALL within a source directory, because that will 2290 # break other packages using the cache if that directory is 2291 # removed, or if the value is a relative name. 2292 INSTALL=$ac_install_sh 2293 fi 2294fi 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2296$as_echo "$INSTALL" >&6; } 2297 2298# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2299# It thinks the first close brace ends the variable substitution. 2300test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2301 2302test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2303 2304test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2305 2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2307$as_echo_n "checking whether build environment is sane... " >&6; } 2308# Reject unsafe characters in $srcdir or the absolute working directory 2309# name. Accept space and tab only in the latter. 2310am_lf=' 2311' 2312case `pwd` in 2313 *[\\\"\#\$\&\'\`$am_lf]*) 2314 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2315esac 2316case $srcdir in 2317 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2318 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2319esac 2320 2321# Do 'set' in a subshell so we don't clobber the current shell's 2322# arguments. Must try -L first in case configure is actually a 2323# symlink; some systems play weird games with the mod time of symlinks 2324# (eg FreeBSD returns the mod time of the symlink's containing 2325# directory). 2326if ( 2327 am_has_slept=no 2328 for am_try in 1 2; do 2329 echo "timestamp, slept: $am_has_slept" > conftest.file 2330 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2331 if test "$*" = "X"; then 2332 # -L didn't work. 2333 set X `ls -t "$srcdir/configure" conftest.file` 2334 fi 2335 if test "$*" != "X $srcdir/configure conftest.file" \ 2336 && test "$*" != "X conftest.file $srcdir/configure"; then 2337 2338 # If neither matched, then we have a broken ls. This can happen 2339 # if, for instance, CONFIG_SHELL is bash and it inherits a 2340 # broken ls alias from the environment. This has actually 2341 # happened. Such a system could not be considered "sane". 2342 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2343 alias in your environment" "$LINENO" 5 2344 fi 2345 if test "$2" = conftest.file || test $am_try -eq 2; then 2346 break 2347 fi 2348 # Just in case. 2349 sleep 1 2350 am_has_slept=yes 2351 done 2352 test "$2" = conftest.file 2353 ) 2354then 2355 # Ok. 2356 : 2357else 2358 as_fn_error $? "newly created file is older than distributed files! 2359Check your system clock" "$LINENO" 5 2360fi 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2362$as_echo "yes" >&6; } 2363# If we didn't sleep, we still need to ensure time stamps of config.status and 2364# generated files are strictly newer. 2365am_sleep_pid= 2366if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2367 ( sleep 1 ) & 2368 am_sleep_pid=$! 2369fi 2370 2371rm -f conftest.file 2372 2373test "$program_prefix" != NONE && 2374 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2375# Use a double $ so make ignores it. 2376test "$program_suffix" != NONE && 2377 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2378# Double any \ or $. 2379# By default was `s,x,x', remove it if useless. 2380ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2381program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2382 2383# expand $ac_aux_dir to an absolute path 2384am_aux_dir=`cd $ac_aux_dir && pwd` 2385 2386if test x"${MISSING+set}" != xset; then 2387 case $am_aux_dir in 2388 *\ * | *\ *) 2389 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2390 *) 2391 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2392 esac 2393fi 2394# Use eval to expand $SHELL 2395if eval "$MISSING --is-lightweight"; then 2396 am_missing_run="$MISSING " 2397else 2398 am_missing_run= 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2400$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2401fi 2402 2403if test x"${install_sh}" != xset; then 2404 case $am_aux_dir in 2405 *\ * | *\ *) 2406 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2407 *) 2408 install_sh="\${SHELL} $am_aux_dir/install-sh" 2409 esac 2410fi 2411 2412# Installed binaries are usually stripped using 'strip' when the user 2413# run "make install-strip". However 'strip' might not be the right 2414# tool to use in cross-compilation environments, therefore Automake 2415# will honor the 'STRIP' environment variable to overrule this program. 2416if test "$cross_compiling" != no; then 2417 if test -n "$ac_tool_prefix"; then 2418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2419set dummy ${ac_tool_prefix}strip; ac_word=$2 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2421$as_echo_n "checking for $ac_word... " >&6; } 2422if ${ac_cv_prog_STRIP+:} false; then : 2423 $as_echo_n "(cached) " >&6 2424else 2425 if test -n "$STRIP"; then 2426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2435 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440 done 2441IFS=$as_save_IFS 2442 2443fi 2444fi 2445STRIP=$ac_cv_prog_STRIP 2446if test -n "$STRIP"; then 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2448$as_echo "$STRIP" >&6; } 2449else 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2451$as_echo "no" >&6; } 2452fi 2453 2454 2455fi 2456if test -z "$ac_cv_prog_STRIP"; then 2457 ac_ct_STRIP=$STRIP 2458 # Extract the first word of "strip", so it can be a program name with args. 2459set dummy strip; ac_word=$2 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2461$as_echo_n "checking for $ac_word... " >&6; } 2462if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2463 $as_echo_n "(cached) " >&6 2464else 2465 if test -n "$ac_ct_STRIP"; then 2466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2475 ac_cv_prog_ac_ct_STRIP="strip" 2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480 done 2481IFS=$as_save_IFS 2482 2483fi 2484fi 2485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2486if test -n "$ac_ct_STRIP"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2488$as_echo "$ac_ct_STRIP" >&6; } 2489else 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 if test "x$ac_ct_STRIP" = x; then 2495 STRIP=":" 2496 else 2497 case $cross_compiling:$ac_tool_warned in 2498yes:) 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2501ac_tool_warned=yes ;; 2502esac 2503 STRIP=$ac_ct_STRIP 2504 fi 2505else 2506 STRIP="$ac_cv_prog_STRIP" 2507fi 2508 2509fi 2510INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2511 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2513$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2514if test -z "$MKDIR_P"; then 2515 if ${ac_cv_path_mkdir+:} false; then : 2516 $as_echo_n "(cached) " >&6 2517else 2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_prog in mkdir gmkdir; do 2524 for ac_exec_ext in '' $ac_executable_extensions; do 2525 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2526 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2527 'mkdir (GNU coreutils) '* | \ 2528 'mkdir (coreutils) '* | \ 2529 'mkdir (fileutils) '4.1*) 2530 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2531 break 3;; 2532 esac 2533 done 2534 done 2535 done 2536IFS=$as_save_IFS 2537 2538fi 2539 2540 test -d ./--version && rmdir ./--version 2541 if test "${ac_cv_path_mkdir+set}" = set; then 2542 MKDIR_P="$ac_cv_path_mkdir -p" 2543 else 2544 # As a last resort, use the slow shell script. Don't cache a 2545 # value for MKDIR_P within a source directory, because that will 2546 # break other packages using the cache if that directory is 2547 # removed, or if the value is a relative name. 2548 MKDIR_P="$ac_install_sh -d" 2549 fi 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2552$as_echo "$MKDIR_P" >&6; } 2553 2554for ac_prog in gawk mawk nawk awk 2555do 2556 # Extract the first word of "$ac_prog", so it can be a program name with args. 2557set dummy $ac_prog; ac_word=$2 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2559$as_echo_n "checking for $ac_word... " >&6; } 2560if ${ac_cv_prog_AWK+:} false; then : 2561 $as_echo_n "(cached) " >&6 2562else 2563 if test -n "$AWK"; then 2564 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_AWK="$ac_prog" 2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578 done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583AWK=$ac_cv_prog_AWK 2584if test -n "$AWK"; then 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2586$as_echo "$AWK" >&6; } 2587else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2589$as_echo "no" >&6; } 2590fi 2591 2592 2593 test -n "$AWK" && break 2594done 2595 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2597$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2598set x ${MAKE-make} 2599ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2600if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 cat >conftest.make <<\_ACEOF 2604SHELL = /bin/sh 2605all: 2606 @echo '@@@%%%=$(MAKE)=@@@%%%' 2607_ACEOF 2608# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2609case `${MAKE-make} -f conftest.make 2>/dev/null` in 2610 *@@@%%%=?*=@@@%%%*) 2611 eval ac_cv_prog_make_${ac_make}_set=yes;; 2612 *) 2613 eval ac_cv_prog_make_${ac_make}_set=no;; 2614esac 2615rm -f conftest.make 2616fi 2617if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2619$as_echo "yes" >&6; } 2620 SET_MAKE= 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2623$as_echo "no" >&6; } 2624 SET_MAKE="MAKE=${MAKE-make}" 2625fi 2626 2627rm -rf .tst 2>/dev/null 2628mkdir .tst 2>/dev/null 2629if test -d .tst; then 2630 am__leading_dot=. 2631else 2632 am__leading_dot=_ 2633fi 2634rmdir .tst 2>/dev/null 2635 2636# Check whether --enable-silent-rules was given. 2637if test "${enable_silent_rules+set}" = set; then : 2638 enableval=$enable_silent_rules; 2639fi 2640 2641case $enable_silent_rules in # ((( 2642 yes) AM_DEFAULT_VERBOSITY=0;; 2643 no) AM_DEFAULT_VERBOSITY=1;; 2644 *) AM_DEFAULT_VERBOSITY=1;; 2645esac 2646am_make=${MAKE-make} 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2648$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2649if ${am_cv_make_support_nested_variables+:} false; then : 2650 $as_echo_n "(cached) " >&6 2651else 2652 if $as_echo 'TRUE=$(BAR$(V)) 2653BAR0=false 2654BAR1=true 2655V=1 2656am__doit: 2657 @$(TRUE) 2658.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2659 am_cv_make_support_nested_variables=yes 2660else 2661 am_cv_make_support_nested_variables=no 2662fi 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2665$as_echo "$am_cv_make_support_nested_variables" >&6; } 2666if test $am_cv_make_support_nested_variables = yes; then 2667 AM_V='$(V)' 2668 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2669else 2670 AM_V=$AM_DEFAULT_VERBOSITY 2671 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2672fi 2673AM_BACKSLASH='\' 2674 2675if test "`cd $srcdir && pwd`" != "`pwd`"; then 2676 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2677 # is not polluted with repeated "-I." 2678 am__isrc=' -I$(srcdir)' 2679 # test to see if srcdir already configured 2680 if test -f $srcdir/config.status; then 2681 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2682 fi 2683fi 2684 2685# test whether we have cygpath 2686if test -z "$CYGPATH_W"; then 2687 if (cygpath --version) >/dev/null 2>/dev/null; then 2688 CYGPATH_W='cygpath -w' 2689 else 2690 CYGPATH_W=echo 2691 fi 2692fi 2693 2694 2695# Define the identity of the package. 2696 PACKAGE='xprop' 2697 VERSION='1.2.2' 2698 2699 2700cat >>confdefs.h <<_ACEOF 2701#define PACKAGE "$PACKAGE" 2702_ACEOF 2703 2704 2705cat >>confdefs.h <<_ACEOF 2706#define VERSION "$VERSION" 2707_ACEOF 2708 2709# Some tools Automake needs. 2710 2711ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2712 2713 2714AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2715 2716 2717AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2718 2719 2720AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2721 2722 2723MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2724 2725# For better backward compatibility. To be removed once Automake 1.9.x 2726# dies out for good. For more background, see: 2727# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2728# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2729mkdir_p='$(MKDIR_P)' 2730 2731# We need awk for the "check" target. The system "awk" is bad on 2732# some platforms. 2733# Always define AMTAR for backward compatibility. Yes, it's still used 2734# in the wild :-( We should find a proper way to deprecate it ... 2735AMTAR='$${TAR-tar}' 2736 2737 2738# We'll loop over all known methods to create a tar archive until one works. 2739_am_tools='gnutar pax cpio none' 2740 2741am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2742 2743 2744 2745 2746 2747 2748# POSIX will say in a future version that running "rm -f" with no argument 2749# is OK; and we want to be able to make that assumption in our Makefile 2750# recipes. So use an aggressive probe to check that the usage we want is 2751# actually supported "in the wild" to an acceptable degree. 2752# See automake bug#10828. 2753# To make any issue more visible, cause the running configure to be aborted 2754# by default if the 'rm' program in use doesn't match our expectations; the 2755# user can still override this though. 2756if rm -f && rm -fr && rm -rf; then : OK; else 2757 cat >&2 <<'END' 2758Oops! 2759 2760Your 'rm' program seems unable to run without file operands specified 2761on the command line, even when the '-f' option is present. This is contrary 2762to the behaviour of most rm programs out there, and not conforming with 2763the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2764 2765Please tell bug-automake@gnu.org about your system, including the value 2766of your $PATH and any error possibly output before this message. This 2767can help us improve future automake versions. 2768 2769END 2770 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2771 echo 'Configuration will proceed anyway, since you have set the' >&2 2772 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2773 echo >&2 2774 else 2775 cat >&2 <<'END' 2776Aborting the configuration process, to ensure you take notice of the issue. 2777 2778You can download and install GNU coreutils to get an 'rm' implementation 2779that behaves properly: <http://www.gnu.org/software/coreutils/>. 2780 2781If you want to complete the configuration process using your problematic 2782'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2783to "yes", and re-run configure. 2784 2785END 2786 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2787 fi 2788fi 2789 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2791$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2792 # Check whether --enable-maintainer-mode was given. 2793if test "${enable_maintainer_mode+set}" = set; then : 2794 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2795else 2796 USE_MAINTAINER_MODE=no 2797fi 2798 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2800$as_echo "$USE_MAINTAINER_MODE" >&6; } 2801 if test $USE_MAINTAINER_MODE = yes; then 2802 MAINTAINER_MODE_TRUE= 2803 MAINTAINER_MODE_FALSE='#' 2804else 2805 MAINTAINER_MODE_TRUE='#' 2806 MAINTAINER_MODE_FALSE= 2807fi 2808 2809 MAINT=$MAINTAINER_MODE_TRUE 2810 2811 2812 2813# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825DEPDIR="${am__leading_dot}deps" 2826 2827ac_config_commands="$ac_config_commands depfiles" 2828 2829 2830am_make=${MAKE-make} 2831cat > confinc << 'END' 2832am__doit: 2833 @echo this is the am__doit target 2834.PHONY: am__doit 2835END 2836# If we don't find an include directive, just comment out the code. 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2838$as_echo_n "checking for style of include used by $am_make... " >&6; } 2839am__include="#" 2840am__quote= 2841_am_result=none 2842# First try GNU make style include. 2843echo "include confinc" > confmf 2844# Ignore all kinds of additional output from 'make'. 2845case `$am_make -s -f confmf 2> /dev/null` in #( 2846*the\ am__doit\ target*) 2847 am__include=include 2848 am__quote= 2849 _am_result=GNU 2850 ;; 2851esac 2852# Now try BSD make style include. 2853if test "$am__include" = "#"; then 2854 echo '.include "confinc"' > confmf 2855 case `$am_make -s -f confmf 2> /dev/null` in #( 2856 *the\ am__doit\ target*) 2857 am__include=.include 2858 am__quote="\"" 2859 _am_result=BSD 2860 ;; 2861 esac 2862fi 2863 2864 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2866$as_echo "$_am_result" >&6; } 2867rm -f confinc confmf 2868 2869# Check whether --enable-dependency-tracking was given. 2870if test "${enable_dependency_tracking+set}" = set; then : 2871 enableval=$enable_dependency_tracking; 2872fi 2873 2874if test "x$enable_dependency_tracking" != xno; then 2875 am_depcomp="$ac_aux_dir/depcomp" 2876 AMDEPBACKSLASH='\' 2877 am__nodep='_no' 2878fi 2879 if test "x$enable_dependency_tracking" != xno; then 2880 AMDEP_TRUE= 2881 AMDEP_FALSE='#' 2882else 2883 AMDEP_TRUE='#' 2884 AMDEP_FALSE= 2885fi 2886 2887 2888ac_ext=c 2889ac_cpp='$CPP $CPPFLAGS' 2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2892ac_compiler_gnu=$ac_cv_c_compiler_gnu 2893if test -n "$ac_tool_prefix"; then 2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2895set dummy ${ac_tool_prefix}gcc; ac_word=$2 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897$as_echo_n "checking for $ac_word... " >&6; } 2898if ${ac_cv_prog_CC+:} false; then : 2899 $as_echo_n "(cached) " >&6 2900else 2901 if test -n "$CC"; then 2902 ac_cv_prog_CC="$CC" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2911 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916 done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921CC=$ac_cv_prog_CC 2922if test -n "$CC"; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2924$as_echo "$CC" >&6; } 2925else 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927$as_echo "no" >&6; } 2928fi 2929 2930 2931fi 2932if test -z "$ac_cv_prog_CC"; then 2933 ac_ct_CC=$CC 2934 # Extract the first word of "gcc", so it can be a program name with args. 2935set dummy gcc; ac_word=$2 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2937$as_echo_n "checking for $ac_word... " >&6; } 2938if ${ac_cv_prog_ac_ct_CC+:} false; then : 2939 $as_echo_n "(cached) " >&6 2940else 2941 if test -n "$ac_ct_CC"; then 2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2943else 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945for as_dir in $PATH 2946do 2947 IFS=$as_save_IFS 2948 test -z "$as_dir" && as_dir=. 2949 for ac_exec_ext in '' $ac_executable_extensions; do 2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2951 ac_cv_prog_ac_ct_CC="gcc" 2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2953 break 2 2954 fi 2955done 2956 done 2957IFS=$as_save_IFS 2958 2959fi 2960fi 2961ac_ct_CC=$ac_cv_prog_ac_ct_CC 2962if test -n "$ac_ct_CC"; then 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2964$as_echo "$ac_ct_CC" >&6; } 2965else 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967$as_echo "no" >&6; } 2968fi 2969 2970 if test "x$ac_ct_CC" = x; then 2971 CC="" 2972 else 2973 case $cross_compiling:$ac_tool_warned in 2974yes:) 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2977ac_tool_warned=yes ;; 2978esac 2979 CC=$ac_ct_CC 2980 fi 2981else 2982 CC="$ac_cv_prog_CC" 2983fi 2984 2985if test -z "$CC"; then 2986 if test -n "$ac_tool_prefix"; then 2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2988set dummy ${ac_tool_prefix}cc; ac_word=$2 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990$as_echo_n "checking for $ac_word... " >&6; } 2991if ${ac_cv_prog_CC+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 if test -n "$CC"; then 2995 ac_cv_prog_CC="$CC" # Let the user override the test. 2996else 2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998for as_dir in $PATH 2999do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3004 ac_cv_prog_CC="${ac_tool_prefix}cc" 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008done 3009 done 3010IFS=$as_save_IFS 3011 3012fi 3013fi 3014CC=$ac_cv_prog_CC 3015if test -n "$CC"; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3017$as_echo "$CC" >&6; } 3018else 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020$as_echo "no" >&6; } 3021fi 3022 3023 3024 fi 3025fi 3026if test -z "$CC"; then 3027 # Extract the first word of "cc", so it can be a program name with args. 3028set dummy cc; ac_word=$2 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3030$as_echo_n "checking for $ac_word... " >&6; } 3031if ${ac_cv_prog_CC+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033else 3034 if test -n "$CC"; then 3035 ac_cv_prog_CC="$CC" # Let the user override the test. 3036else 3037 ac_prog_rejected=no 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3046 ac_prog_rejected=yes 3047 continue 3048 fi 3049 ac_cv_prog_CC="cc" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057if test $ac_prog_rejected = yes; then 3058 # We found a bogon in the path, so make sure we never use it. 3059 set dummy $ac_cv_prog_CC 3060 shift 3061 if test $# != 0; then 3062 # We chose a different compiler from the bogus one. 3063 # However, it has the same basename, so the bogon will be chosen 3064 # first if we set CC to just the basename; use the full file name. 3065 shift 3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3067 fi 3068fi 3069fi 3070fi 3071CC=$ac_cv_prog_CC 3072if test -n "$CC"; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3074$as_echo "$CC" >&6; } 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078fi 3079 3080 3081fi 3082if test -z "$CC"; then 3083 if test -n "$ac_tool_prefix"; then 3084 for ac_prog in cl.exe 3085 do 3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3089$as_echo_n "checking for $ac_word... " >&6; } 3090if ${ac_cv_prog_CC+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 if test -n "$CC"; then 3094 ac_cv_prog_CC="$CC" # Let the user override the test. 3095else 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111fi 3112fi 3113CC=$ac_cv_prog_CC 3114if test -n "$CC"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3116$as_echo "$CC" >&6; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120fi 3121 3122 3123 test -n "$CC" && break 3124 done 3125fi 3126if test -z "$CC"; then 3127 ac_ct_CC=$CC 3128 for ac_prog in cl.exe 3129do 3130 # Extract the first word of "$ac_prog", so it can be a program name with args. 3131set dummy $ac_prog; ac_word=$2 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3133$as_echo_n "checking for $ac_word... " >&6; } 3134if ${ac_cv_prog_ac_ct_CC+:} false; then : 3135 $as_echo_n "(cached) " >&6 3136else 3137 if test -n "$ac_ct_CC"; then 3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3139else 3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3141for as_dir in $PATH 3142do 3143 IFS=$as_save_IFS 3144 test -z "$as_dir" && as_dir=. 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3147 ac_cv_prog_ac_ct_CC="$ac_prog" 3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3149 break 2 3150 fi 3151done 3152 done 3153IFS=$as_save_IFS 3154 3155fi 3156fi 3157ac_ct_CC=$ac_cv_prog_ac_ct_CC 3158if test -n "$ac_ct_CC"; then 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3160$as_echo "$ac_ct_CC" >&6; } 3161else 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3163$as_echo "no" >&6; } 3164fi 3165 3166 3167 test -n "$ac_ct_CC" && break 3168done 3169 3170 if test "x$ac_ct_CC" = x; then 3171 CC="" 3172 else 3173 case $cross_compiling:$ac_tool_warned in 3174yes:) 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3177ac_tool_warned=yes ;; 3178esac 3179 CC=$ac_ct_CC 3180 fi 3181fi 3182 3183fi 3184 3185 3186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3188as_fn_error $? "no acceptable C compiler found in \$PATH 3189See \`config.log' for more details" "$LINENO" 5; } 3190 3191# Provide some information about the compiler. 3192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3193set X $ac_compile 3194ac_compiler=$2 3195for ac_option in --version -v -V -qversion; do 3196 { { ac_try="$ac_compiler $ac_option >&5" 3197case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200esac 3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3202$as_echo "$ac_try_echo"; } >&5 3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3204 ac_status=$? 3205 if test -s conftest.err; then 3206 sed '10a\ 3207... rest of stderr output deleted ... 3208 10q' conftest.err >conftest.er1 3209 cat conftest.er1 >&5 3210 fi 3211 rm -f conftest.er1 conftest.err 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; } 3214done 3215 3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3217/* end confdefs.h. */ 3218 3219int 3220main () 3221{ 3222 3223 ; 3224 return 0; 3225} 3226_ACEOF 3227ac_clean_files_save=$ac_clean_files 3228ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3229# Try to create an executable without -o first, disregard a.out. 3230# It will help us diagnose broken compilers, and finding out an intuition 3231# of exeext. 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3233$as_echo_n "checking whether the C compiler works... " >&6; } 3234ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3235 3236# The possible output files: 3237ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3238 3239ac_rmfiles= 3240for ac_file in $ac_files 3241do 3242 case $ac_file in 3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3245 esac 3246done 3247rm -f $ac_rmfiles 3248 3249if { { ac_try="$ac_link_default" 3250case "(($ac_try" in 3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3252 *) ac_try_echo=$ac_try;; 3253esac 3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3255$as_echo "$ac_try_echo"; } >&5 3256 (eval "$ac_link_default") 2>&5 3257 ac_status=$? 3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3259 test $ac_status = 0; }; then : 3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3261# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3262# in a Makefile. We should not override ac_cv_exeext if it was cached, 3263# so that the user can short-circuit this test for compilers unknown to 3264# Autoconf. 3265for ac_file in $ac_files '' 3266do 3267 test -f "$ac_file" || continue 3268 case $ac_file in 3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3270 ;; 3271 [ab].out ) 3272 # We found the default executable, but exeext='' is most 3273 # certainly right. 3274 break;; 3275 *.* ) 3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3277 then :; else 3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3279 fi 3280 # We set ac_cv_exeext here because the later test for it is not 3281 # safe: cross compilers may not add the suffix if given an `-o' 3282 # argument, so we may need to know it at that point already. 3283 # Even if this section looks crufty: it has the advantage of 3284 # actually working. 3285 break;; 3286 * ) 3287 break;; 3288 esac 3289done 3290test "$ac_cv_exeext" = no && ac_cv_exeext= 3291 3292else 3293 ac_file='' 3294fi 3295if test -z "$ac_file"; then : 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297$as_echo "no" >&6; } 3298$as_echo "$as_me: failed program was:" >&5 3299sed 's/^/| /' conftest.$ac_ext >&5 3300 3301{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3303as_fn_error 77 "C compiler cannot create executables 3304See \`config.log' for more details" "$LINENO" 5; } 3305else 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3307$as_echo "yes" >&6; } 3308fi 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3310$as_echo_n "checking for C compiler default output file name... " >&6; } 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3312$as_echo "$ac_file" >&6; } 3313ac_exeext=$ac_cv_exeext 3314 3315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3316ac_clean_files=$ac_clean_files_save 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3318$as_echo_n "checking for suffix of executables... " >&6; } 3319if { { ac_try="$ac_link" 3320case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3325$as_echo "$ac_try_echo"; } >&5 3326 (eval "$ac_link") 2>&5 3327 ac_status=$? 3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3329 test $ac_status = 0; }; then : 3330 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3331# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3332# work properly (i.e., refer to `conftest.exe'), while it won't with 3333# `rm'. 3334for ac_file in conftest.exe conftest conftest.*; do 3335 test -f "$ac_file" || continue 3336 case $ac_file in 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3339 break;; 3340 * ) break;; 3341 esac 3342done 3343else 3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3346as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3347See \`config.log' for more details" "$LINENO" 5; } 3348fi 3349rm -f conftest conftest$ac_cv_exeext 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3351$as_echo "$ac_cv_exeext" >&6; } 3352 3353rm -f conftest.$ac_ext 3354EXEEXT=$ac_cv_exeext 3355ac_exeext=$EXEEXT 3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357/* end confdefs.h. */ 3358#include <stdio.h> 3359int 3360main () 3361{ 3362FILE *f = fopen ("conftest.out", "w"); 3363 return ferror (f) || fclose (f) != 0; 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369ac_clean_files="$ac_clean_files conftest.out" 3370# Check that the compiler produces executables we can run. If not, either 3371# the compiler is broken, or we cross compile. 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3373$as_echo_n "checking whether we are cross compiling... " >&6; } 3374if test "$cross_compiling" != yes; then 3375 { { ac_try="$ac_link" 3376case "(($ac_try" in 3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3378 *) ac_try_echo=$ac_try;; 3379esac 3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3381$as_echo "$ac_try_echo"; } >&5 3382 (eval "$ac_link") 2>&5 3383 ac_status=$? 3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3385 test $ac_status = 0; } 3386 if { ac_try='./conftest$ac_cv_exeext' 3387 { { case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392$as_echo "$ac_try_echo"; } >&5 3393 (eval "$ac_try") 2>&5 3394 ac_status=$? 3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; }; }; then 3397 cross_compiling=no 3398 else 3399 if test "$cross_compiling" = maybe; then 3400 cross_compiling=yes 3401 else 3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3404as_fn_error $? "cannot run C compiled programs. 3405If you meant to cross compile, use \`--host'. 3406See \`config.log' for more details" "$LINENO" 5; } 3407 fi 3408 fi 3409fi 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3411$as_echo "$cross_compiling" >&6; } 3412 3413rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3414ac_clean_files=$ac_clean_files_save 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3416$as_echo_n "checking for suffix of object files... " >&6; } 3417if ${ac_cv_objext+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422 3423int 3424main () 3425{ 3426 3427 ; 3428 return 0; 3429} 3430_ACEOF 3431rm -f conftest.o conftest.obj 3432if { { ac_try="$ac_compile" 3433case "(($ac_try" in 3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3435 *) ac_try_echo=$ac_try;; 3436esac 3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3438$as_echo "$ac_try_echo"; } >&5 3439 (eval "$ac_compile") 2>&5 3440 ac_status=$? 3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3442 test $ac_status = 0; }; then : 3443 for ac_file in conftest.o conftest.obj conftest.*; do 3444 test -f "$ac_file" || continue; 3445 case $ac_file in 3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3448 break;; 3449 esac 3450done 3451else 3452 $as_echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3457as_fn_error $? "cannot compute suffix of object files: cannot compile 3458See \`config.log' for more details" "$LINENO" 5; } 3459fi 3460rm -f conftest.$ac_cv_objext conftest.$ac_ext 3461fi 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3463$as_echo "$ac_cv_objext" >&6; } 3464OBJEXT=$ac_cv_objext 3465ac_objext=$OBJEXT 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3467$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3468if ${ac_cv_c_compiler_gnu+:} false; then : 3469 $as_echo_n "(cached) " >&6 3470else 3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473 3474int 3475main () 3476{ 3477#ifndef __GNUC__ 3478 choke me 3479#endif 3480 3481 ; 3482 return 0; 3483} 3484_ACEOF 3485if ac_fn_c_try_compile "$LINENO"; then : 3486 ac_compiler_gnu=yes 3487else 3488 ac_compiler_gnu=no 3489fi 3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3491ac_cv_c_compiler_gnu=$ac_compiler_gnu 3492 3493fi 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3495$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3496if test $ac_compiler_gnu = yes; then 3497 GCC=yes 3498else 3499 GCC= 3500fi 3501ac_test_CFLAGS=${CFLAGS+set} 3502ac_save_CFLAGS=$CFLAGS 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3504$as_echo_n "checking whether $CC accepts -g... " >&6; } 3505if ${ac_cv_prog_cc_g+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 ac_save_c_werror_flag=$ac_c_werror_flag 3509 ac_c_werror_flag=yes 3510 ac_cv_prog_cc_g=no 3511 CFLAGS="-g" 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514 3515int 3516main () 3517{ 3518 3519 ; 3520 return 0; 3521} 3522_ACEOF 3523if ac_fn_c_try_compile "$LINENO"; then : 3524 ac_cv_prog_cc_g=yes 3525else 3526 CFLAGS="" 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528/* end confdefs.h. */ 3529 3530int 3531main () 3532{ 3533 3534 ; 3535 return 0; 3536} 3537_ACEOF 3538if ac_fn_c_try_compile "$LINENO"; then : 3539 3540else 3541 ac_c_werror_flag=$ac_save_c_werror_flag 3542 CFLAGS="-g" 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545 3546int 3547main () 3548{ 3549 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554if ac_fn_c_try_compile "$LINENO"; then : 3555 ac_cv_prog_cc_g=yes 3556fi 3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3558fi 3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3560fi 3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3562 ac_c_werror_flag=$ac_save_c_werror_flag 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3565$as_echo "$ac_cv_prog_cc_g" >&6; } 3566if test "$ac_test_CFLAGS" = set; then 3567 CFLAGS=$ac_save_CFLAGS 3568elif test $ac_cv_prog_cc_g = yes; then 3569 if test "$GCC" = yes; then 3570 CFLAGS="-g -O2" 3571 else 3572 CFLAGS="-g" 3573 fi 3574else 3575 if test "$GCC" = yes; then 3576 CFLAGS="-O2" 3577 else 3578 CFLAGS= 3579 fi 3580fi 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3582$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3583if ${ac_cv_prog_cc_c89+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 ac_cv_prog_cc_c89=no 3587ac_save_CC=$CC 3588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590#include <stdarg.h> 3591#include <stdio.h> 3592#include <sys/types.h> 3593#include <sys/stat.h> 3594/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3595struct buf { int x; }; 3596FILE * (*rcsopen) (struct buf *, struct stat *, int); 3597static char *e (p, i) 3598 char **p; 3599 int i; 3600{ 3601 return p[i]; 3602} 3603static char *f (char * (*g) (char **, int), char **p, ...) 3604{ 3605 char *s; 3606 va_list v; 3607 va_start (v,p); 3608 s = g (p, va_arg (v,int)); 3609 va_end (v); 3610 return s; 3611} 3612 3613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3614 function prototypes and stuff, but not '\xHH' hex character constants. 3615 These don't provoke an error unfortunately, instead are silently treated 3616 as 'x'. The following induces an error, until -std is added to get 3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3618 array size at least. It's necessary to write '\x00'==0 to get something 3619 that's true only with -std. */ 3620int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3621 3622/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3623 inside strings and character constants. */ 3624#define FOO(x) 'x' 3625int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3626 3627int test (int i, double x); 3628struct s1 {int (*f) (int a);}; 3629struct s2 {int (*f) (double a);}; 3630int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3631int argc; 3632char **argv; 3633int 3634main () 3635{ 3636return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3637 ; 3638 return 0; 3639} 3640_ACEOF 3641for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3643do 3644 CC="$ac_save_CC $ac_arg" 3645 if ac_fn_c_try_compile "$LINENO"; then : 3646 ac_cv_prog_cc_c89=$ac_arg 3647fi 3648rm -f core conftest.err conftest.$ac_objext 3649 test "x$ac_cv_prog_cc_c89" != "xno" && break 3650done 3651rm -f conftest.$ac_ext 3652CC=$ac_save_CC 3653 3654fi 3655# AC_CACHE_VAL 3656case "x$ac_cv_prog_cc_c89" in 3657 x) 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3659$as_echo "none needed" >&6; } ;; 3660 xno) 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3662$as_echo "unsupported" >&6; } ;; 3663 *) 3664 CC="$CC $ac_cv_prog_cc_c89" 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3666$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3667esac 3668if test "x$ac_cv_prog_cc_c89" != xno; then : 3669 3670fi 3671 3672ac_ext=c 3673ac_cpp='$CPP $CPPFLAGS' 3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3676ac_compiler_gnu=$ac_cv_c_compiler_gnu 3677 3678ac_ext=c 3679ac_cpp='$CPP $CPPFLAGS' 3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3682ac_compiler_gnu=$ac_cv_c_compiler_gnu 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3684$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3685if ${am_cv_prog_cc_c_o+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699 # Make sure it works both with $CC and with simple cc. 3700 # Following AC_PROG_CC_C_O, we do the test twice because some 3701 # compilers refuse to overwrite an existing .o file with -o, 3702 # though they will create one. 3703 am_cv_prog_cc_c_o=yes 3704 for am_i in 1 2; do 3705 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3706 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3707 ac_status=$? 3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 (exit $ac_status); } \ 3710 && test -f conftest2.$ac_objext; then 3711 : OK 3712 else 3713 am_cv_prog_cc_c_o=no 3714 break 3715 fi 3716 done 3717 rm -f core conftest* 3718 unset am_i 3719fi 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3721$as_echo "$am_cv_prog_cc_c_o" >&6; } 3722if test "$am_cv_prog_cc_c_o" != yes; then 3723 # Losing compiler, so override with the script. 3724 # FIXME: It is wrong to rewrite CC. 3725 # But if we don't then we get into trouble of one sort or another. 3726 # A longer-term fix would be to have automake use am__CC in this case, 3727 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3728 CC="$am_aux_dir/compile $CC" 3729fi 3730ac_ext=c 3731ac_cpp='$CPP $CPPFLAGS' 3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3734ac_compiler_gnu=$ac_cv_c_compiler_gnu 3735 3736 3737depcc="$CC" am_compiler_list= 3738 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3740$as_echo_n "checking dependency style of $depcc... " >&6; } 3741if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3745 # We make a subdir and do the tests there. Otherwise we can end up 3746 # making bogus files that we don't know about and never remove. For 3747 # instance it was reported that on HP-UX the gcc test will end up 3748 # making a dummy file named 'D' -- because '-MD' means "put the output 3749 # in D". 3750 rm -rf conftest.dir 3751 mkdir conftest.dir 3752 # Copy depcomp to subdir because otherwise we won't find it if we're 3753 # using a relative directory. 3754 cp "$am_depcomp" conftest.dir 3755 cd conftest.dir 3756 # We will build objects and dependencies in a subdirectory because 3757 # it helps to detect inapplicable dependency modes. For instance 3758 # both Tru64's cc and ICC support -MD to output dependencies as a 3759 # side effect of compilation, but ICC will put the dependencies in 3760 # the current directory while Tru64 will put them in the object 3761 # directory. 3762 mkdir sub 3763 3764 am_cv_CC_dependencies_compiler_type=none 3765 if test "$am_compiler_list" = ""; then 3766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3767 fi 3768 am__universal=false 3769 case " $depcc " in #( 3770 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3771 esac 3772 3773 for depmode in $am_compiler_list; do 3774 # Setup a source with many dependencies, because some compilers 3775 # like to wrap large dependency lists on column 80 (with \), and 3776 # we should not choose a depcomp mode which is confused by this. 3777 # 3778 # We need to recreate these files for each test, as the compiler may 3779 # overwrite some of them when testing with obscure command lines. 3780 # This happens at least with the AIX C compiler. 3781 : > sub/conftest.c 3782 for i in 1 2 3 4 5 6; do 3783 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3784 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3785 # Solaris 10 /bin/sh. 3786 echo '/* dummy */' > sub/conftst$i.h 3787 done 3788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3789 3790 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3791 # mode. It turns out that the SunPro C++ compiler does not properly 3792 # handle '-M -o', and we need to detect this. Also, some Intel 3793 # versions had trouble with output in subdirs. 3794 am__obj=sub/conftest.${OBJEXT-o} 3795 am__minus_obj="-o $am__obj" 3796 case $depmode in 3797 gcc) 3798 # This depmode causes a compiler race in universal mode. 3799 test "$am__universal" = false || continue 3800 ;; 3801 nosideeffect) 3802 # After this tag, mechanisms are not by side-effect, so they'll 3803 # only be used when explicitly requested. 3804 if test "x$enable_dependency_tracking" = xyes; then 3805 continue 3806 else 3807 break 3808 fi 3809 ;; 3810 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3811 # This compiler won't grok '-c -o', but also, the minuso test has 3812 # not run yet. These depmodes are late enough in the game, and 3813 # so weak that their functioning should not be impacted. 3814 am__obj=conftest.${OBJEXT-o} 3815 am__minus_obj= 3816 ;; 3817 none) break ;; 3818 esac 3819 if depmode=$depmode \ 3820 source=sub/conftest.c object=$am__obj \ 3821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3823 >/dev/null 2>conftest.err && 3824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3828 # icc doesn't choke on unknown options, it will just issue warnings 3829 # or remarks (even with -Werror). So we grep stderr for any message 3830 # that says an option was ignored or not supported. 3831 # When given -MP, icc 7.0 and 7.1 complain thusly: 3832 # icc: Command line warning: ignoring option '-M'; no argument required 3833 # The diagnosis changed in icc 8.0: 3834 # icc: Command line remark: option '-MP' not supported 3835 if (grep 'ignoring option' conftest.err || 3836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3837 am_cv_CC_dependencies_compiler_type=$depmode 3838 break 3839 fi 3840 fi 3841 done 3842 3843 cd .. 3844 rm -rf conftest.dir 3845else 3846 am_cv_CC_dependencies_compiler_type=none 3847fi 3848 3849fi 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3851$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3852CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3853 3854 if 3855 test "x$enable_dependency_tracking" != xno \ 3856 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3857 am__fastdepCC_TRUE= 3858 am__fastdepCC_FALSE='#' 3859else 3860 am__fastdepCC_TRUE='#' 3861 am__fastdepCC_FALSE= 3862fi 3863 3864 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3866$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3867if ${ac_cv_prog_cc_c99+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 ac_cv_prog_cc_c99=no 3871ac_save_CC=$CC 3872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874#include <stdarg.h> 3875#include <stdbool.h> 3876#include <stdlib.h> 3877#include <wchar.h> 3878#include <stdio.h> 3879 3880// Check varargs macros. These examples are taken from C99 6.10.3.5. 3881#define debug(...) fprintf (stderr, __VA_ARGS__) 3882#define showlist(...) puts (#__VA_ARGS__) 3883#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3884static void 3885test_varargs_macros (void) 3886{ 3887 int x = 1234; 3888 int y = 5678; 3889 debug ("Flag"); 3890 debug ("X = %d\n", x); 3891 showlist (The first, second, and third items.); 3892 report (x>y, "x is %d but y is %d", x, y); 3893} 3894 3895// Check long long types. 3896#define BIG64 18446744073709551615ull 3897#define BIG32 4294967295ul 3898#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3899#if !BIG_OK 3900 your preprocessor is broken; 3901#endif 3902#if BIG_OK 3903#else 3904 your preprocessor is broken; 3905#endif 3906static long long int bignum = -9223372036854775807LL; 3907static unsigned long long int ubignum = BIG64; 3908 3909struct incomplete_array 3910{ 3911 int datasize; 3912 double data[]; 3913}; 3914 3915struct named_init { 3916 int number; 3917 const wchar_t *name; 3918 double average; 3919}; 3920 3921typedef const char *ccp; 3922 3923static inline int 3924test_restrict (ccp restrict text) 3925{ 3926 // See if C++-style comments work. 3927 // Iterate through items via the restricted pointer. 3928 // Also check for declarations in for loops. 3929 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3930 continue; 3931 return 0; 3932} 3933 3934// Check varargs and va_copy. 3935static void 3936test_varargs (const char *format, ...) 3937{ 3938 va_list args; 3939 va_start (args, format); 3940 va_list args_copy; 3941 va_copy (args_copy, args); 3942 3943 const char *str; 3944 int number; 3945 float fnumber; 3946 3947 while (*format) 3948 { 3949 switch (*format++) 3950 { 3951 case 's': // string 3952 str = va_arg (args_copy, const char *); 3953 break; 3954 case 'd': // int 3955 number = va_arg (args_copy, int); 3956 break; 3957 case 'f': // float 3958 fnumber = va_arg (args_copy, double); 3959 break; 3960 default: 3961 break; 3962 } 3963 } 3964 va_end (args_copy); 3965 va_end (args); 3966} 3967 3968int 3969main () 3970{ 3971 3972 // Check bool. 3973 _Bool success = false; 3974 3975 // Check restrict. 3976 if (test_restrict ("String literal") == 0) 3977 success = true; 3978 char *restrict newvar = "Another string"; 3979 3980 // Check varargs. 3981 test_varargs ("s, d' f .", "string", 65, 34.234); 3982 test_varargs_macros (); 3983 3984 // Check flexible array members. 3985 struct incomplete_array *ia = 3986 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3987 ia->datasize = 10; 3988 for (int i = 0; i < ia->datasize; ++i) 3989 ia->data[i] = i * 1.234; 3990 3991 // Check named initializers. 3992 struct named_init ni = { 3993 .number = 34, 3994 .name = L"Test wide string", 3995 .average = 543.34343, 3996 }; 3997 3998 ni.number = 58; 3999 4000 int dynamic_array[ni.number]; 4001 dynamic_array[ni.number - 1] = 543; 4002 4003 // work around unused variable warnings 4004 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4005 || dynamic_array[ni.number - 1] != 543); 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4012do 4013 CC="$ac_save_CC $ac_arg" 4014 if ac_fn_c_try_compile "$LINENO"; then : 4015 ac_cv_prog_cc_c99=$ac_arg 4016fi 4017rm -f core conftest.err conftest.$ac_objext 4018 test "x$ac_cv_prog_cc_c99" != "xno" && break 4019done 4020rm -f conftest.$ac_ext 4021CC=$ac_save_CC 4022 4023fi 4024# AC_CACHE_VAL 4025case "x$ac_cv_prog_cc_c99" in 4026 x) 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4028$as_echo "none needed" >&6; } ;; 4029 xno) 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4031$as_echo "unsupported" >&6; } ;; 4032 *) 4033 CC="$CC $ac_cv_prog_cc_c99" 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4035$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4036esac 4037if test "x$ac_cv_prog_cc_c99" != xno; then : 4038 4039fi 4040 4041 4042 4043ac_ext=c 4044ac_cpp='$CPP $CPPFLAGS' 4045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4047ac_compiler_gnu=$ac_cv_c_compiler_gnu 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4049$as_echo_n "checking how to run the C preprocessor... " >&6; } 4050# On Suns, sometimes $CPP names a directory. 4051if test -n "$CPP" && test -d "$CPP"; then 4052 CPP= 4053fi 4054if test -z "$CPP"; then 4055 if ${ac_cv_prog_CPP+:} false; then : 4056 $as_echo_n "(cached) " >&6 4057else 4058 # Double quotes because CPP needs to be expanded 4059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4060 do 4061 ac_preproc_ok=false 4062for ac_c_preproc_warn_flag in '' yes 4063do 4064 # Use a header file that comes with gcc, so configuring glibc 4065 # with a fresh cross-compiler works. 4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4067 # <limits.h> exists even on freestanding compilers. 4068 # On the NeXT, cc -E runs the code through the compiler's parser, 4069 # not just through cpp. "Syntax error" is here to catch this case. 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072#ifdef __STDC__ 4073# include <limits.h> 4074#else 4075# include <assert.h> 4076#endif 4077 Syntax error 4078_ACEOF 4079if ac_fn_c_try_cpp "$LINENO"; then : 4080 4081else 4082 # Broken: fails on valid input. 4083continue 4084fi 4085rm -f conftest.err conftest.i conftest.$ac_ext 4086 4087 # OK, works on sane cases. Now check whether nonexistent headers 4088 # can be detected and how. 4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091#include <ac_nonexistent.h> 4092_ACEOF 4093if ac_fn_c_try_cpp "$LINENO"; then : 4094 # Broken: success on invalid input. 4095continue 4096else 4097 # Passes both tests. 4098ac_preproc_ok=: 4099break 4100fi 4101rm -f conftest.err conftest.i conftest.$ac_ext 4102 4103done 4104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4105rm -f conftest.i conftest.err conftest.$ac_ext 4106if $ac_preproc_ok; then : 4107 break 4108fi 4109 4110 done 4111 ac_cv_prog_CPP=$CPP 4112 4113fi 4114 CPP=$ac_cv_prog_CPP 4115else 4116 ac_cv_prog_CPP=$CPP 4117fi 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4119$as_echo "$CPP" >&6; } 4120ac_preproc_ok=false 4121for ac_c_preproc_warn_flag in '' yes 4122do 4123 # Use a header file that comes with gcc, so configuring glibc 4124 # with a fresh cross-compiler works. 4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4126 # <limits.h> exists even on freestanding compilers. 4127 # On the NeXT, cc -E runs the code through the compiler's parser, 4128 # not just through cpp. "Syntax error" is here to catch this case. 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131#ifdef __STDC__ 4132# include <limits.h> 4133#else 4134# include <assert.h> 4135#endif 4136 Syntax error 4137_ACEOF 4138if ac_fn_c_try_cpp "$LINENO"; then : 4139 4140else 4141 # Broken: fails on valid input. 4142continue 4143fi 4144rm -f conftest.err conftest.i conftest.$ac_ext 4145 4146 # OK, works on sane cases. Now check whether nonexistent headers 4147 # can be detected and how. 4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4149/* end confdefs.h. */ 4150#include <ac_nonexistent.h> 4151_ACEOF 4152if ac_fn_c_try_cpp "$LINENO"; then : 4153 # Broken: success on invalid input. 4154continue 4155else 4156 # Passes both tests. 4157ac_preproc_ok=: 4158break 4159fi 4160rm -f conftest.err conftest.i conftest.$ac_ext 4161 4162done 4163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4164rm -f conftest.i conftest.err conftest.$ac_ext 4165if $ac_preproc_ok; then : 4166 4167else 4168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4170as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4171See \`config.log' for more details" "$LINENO" 5; } 4172fi 4173 4174ac_ext=c 4175ac_cpp='$CPP $CPPFLAGS' 4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4178ac_compiler_gnu=$ac_cv_c_compiler_gnu 4179 4180 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4182$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4183if ${ac_cv_path_GREP+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 if test -z "$GREP"; then 4187 ac_path_GREP_found=false 4188 # Loop through the user's path and test for each of PROGNAME-LIST 4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4191do 4192 IFS=$as_save_IFS 4193 test -z "$as_dir" && as_dir=. 4194 for ac_prog in grep ggrep; do 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4197 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4198# Check for GNU ac_path_GREP and select it if it is found. 4199 # Check for GNU $ac_path_GREP 4200case `"$ac_path_GREP" --version 2>&1` in 4201*GNU*) 4202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4203*) 4204 ac_count=0 4205 $as_echo_n 0123456789 >"conftest.in" 4206 while : 4207 do 4208 cat "conftest.in" "conftest.in" >"conftest.tmp" 4209 mv "conftest.tmp" "conftest.in" 4210 cp "conftest.in" "conftest.nl" 4211 $as_echo 'GREP' >> "conftest.nl" 4212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4214 as_fn_arith $ac_count + 1 && ac_count=$as_val 4215 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4216 # Best one so far, save it but keep looking for a better one 4217 ac_cv_path_GREP="$ac_path_GREP" 4218 ac_path_GREP_max=$ac_count 4219 fi 4220 # 10*(2^10) chars as input seems more than enough 4221 test $ac_count -gt 10 && break 4222 done 4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4224esac 4225 4226 $ac_path_GREP_found && break 3 4227 done 4228 done 4229 done 4230IFS=$as_save_IFS 4231 if test -z "$ac_cv_path_GREP"; then 4232 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4233 fi 4234else 4235 ac_cv_path_GREP=$GREP 4236fi 4237 4238fi 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4240$as_echo "$ac_cv_path_GREP" >&6; } 4241 GREP="$ac_cv_path_GREP" 4242 4243 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4245$as_echo_n "checking for egrep... " >&6; } 4246if ${ac_cv_path_EGREP+:} false; then : 4247 $as_echo_n "(cached) " >&6 4248else 4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4250 then ac_cv_path_EGREP="$GREP -E" 4251 else 4252 if test -z "$EGREP"; then 4253 ac_path_EGREP_found=false 4254 # Loop through the user's path and test for each of PROGNAME-LIST 4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4257do 4258 IFS=$as_save_IFS 4259 test -z "$as_dir" && as_dir=. 4260 for ac_prog in egrep; do 4261 for ac_exec_ext in '' $ac_executable_extensions; do 4262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4263 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4264# Check for GNU ac_path_EGREP and select it if it is found. 4265 # Check for GNU $ac_path_EGREP 4266case `"$ac_path_EGREP" --version 2>&1` in 4267*GNU*) 4268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4269*) 4270 ac_count=0 4271 $as_echo_n 0123456789 >"conftest.in" 4272 while : 4273 do 4274 cat "conftest.in" "conftest.in" >"conftest.tmp" 4275 mv "conftest.tmp" "conftest.in" 4276 cp "conftest.in" "conftest.nl" 4277 $as_echo 'EGREP' >> "conftest.nl" 4278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4280 as_fn_arith $ac_count + 1 && ac_count=$as_val 4281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4282 # Best one so far, save it but keep looking for a better one 4283 ac_cv_path_EGREP="$ac_path_EGREP" 4284 ac_path_EGREP_max=$ac_count 4285 fi 4286 # 10*(2^10) chars as input seems more than enough 4287 test $ac_count -gt 10 && break 4288 done 4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4290esac 4291 4292 $ac_path_EGREP_found && break 3 4293 done 4294 done 4295 done 4296IFS=$as_save_IFS 4297 if test -z "$ac_cv_path_EGREP"; then 4298 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4299 fi 4300else 4301 ac_cv_path_EGREP=$EGREP 4302fi 4303 4304 fi 4305fi 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4307$as_echo "$ac_cv_path_EGREP" >&6; } 4308 EGREP="$ac_cv_path_EGREP" 4309 4310 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4312$as_echo_n "checking for ANSI C header files... " >&6; } 4313if ${ac_cv_header_stdc+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318#include <stdlib.h> 4319#include <stdarg.h> 4320#include <string.h> 4321#include <float.h> 4322 4323int 4324main () 4325{ 4326 4327 ; 4328 return 0; 4329} 4330_ACEOF 4331if ac_fn_c_try_compile "$LINENO"; then : 4332 ac_cv_header_stdc=yes 4333else 4334 ac_cv_header_stdc=no 4335fi 4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4337 4338if test $ac_cv_header_stdc = yes; then 4339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342#include <string.h> 4343 4344_ACEOF 4345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4346 $EGREP "memchr" >/dev/null 2>&1; then : 4347 4348else 4349 ac_cv_header_stdc=no 4350fi 4351rm -f conftest* 4352 4353fi 4354 4355if test $ac_cv_header_stdc = yes; then 4356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358/* end confdefs.h. */ 4359#include <stdlib.h> 4360 4361_ACEOF 4362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4363 $EGREP "free" >/dev/null 2>&1; then : 4364 4365else 4366 ac_cv_header_stdc=no 4367fi 4368rm -f conftest* 4369 4370fi 4371 4372if test $ac_cv_header_stdc = yes; then 4373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4374 if test "$cross_compiling" = yes; then : 4375 : 4376else 4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4378/* end confdefs.h. */ 4379#include <ctype.h> 4380#include <stdlib.h> 4381#if ((' ' & 0x0FF) == 0x020) 4382# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4383# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4384#else 4385# define ISLOWER(c) \ 4386 (('a' <= (c) && (c) <= 'i') \ 4387 || ('j' <= (c) && (c) <= 'r') \ 4388 || ('s' <= (c) && (c) <= 'z')) 4389# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4390#endif 4391 4392#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4393int 4394main () 4395{ 4396 int i; 4397 for (i = 0; i < 256; i++) 4398 if (XOR (islower (i), ISLOWER (i)) 4399 || toupper (i) != TOUPPER (i)) 4400 return 2; 4401 return 0; 4402} 4403_ACEOF 4404if ac_fn_c_try_run "$LINENO"; then : 4405 4406else 4407 ac_cv_header_stdc=no 4408fi 4409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4410 conftest.$ac_objext conftest.beam conftest.$ac_ext 4411fi 4412 4413fi 4414fi 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4416$as_echo "$ac_cv_header_stdc" >&6; } 4417if test $ac_cv_header_stdc = yes; then 4418 4419$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4420 4421fi 4422 4423# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4424for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4425 inttypes.h stdint.h unistd.h 4426do : 4427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4428ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4429" 4430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4431 cat >>confdefs.h <<_ACEOF 4432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4433_ACEOF 4434 4435fi 4436 4437done 4438 4439 4440 4441 4442 4443 4444ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4445if test "x$ac_cv_have_decl___clang__" = xyes; then : 4446 CLANGCC="yes" 4447else 4448 CLANGCC="no" 4449fi 4450 4451ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4452if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4453 INTELCC="yes" 4454else 4455 INTELCC="no" 4456fi 4457 4458ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4459if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4460 SUNCC="yes" 4461else 4462 SUNCC="no" 4463fi 4464 4465 4466 4467 4468if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4469 if test -n "$ac_tool_prefix"; then 4470 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4471set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4473$as_echo_n "checking for $ac_word... " >&6; } 4474if ${ac_cv_path_PKG_CONFIG+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 case $PKG_CONFIG in 4478 [\\/]* | ?:[\\/]*) 4479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4480 ;; 4481 *) 4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4491 break 2 4492 fi 4493done 4494 done 4495IFS=$as_save_IFS 4496 4497 ;; 4498esac 4499fi 4500PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4501if test -n "$PKG_CONFIG"; then 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4503$as_echo "$PKG_CONFIG" >&6; } 4504else 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4506$as_echo "no" >&6; } 4507fi 4508 4509 4510fi 4511if test -z "$ac_cv_path_PKG_CONFIG"; then 4512 ac_pt_PKG_CONFIG=$PKG_CONFIG 4513 # Extract the first word of "pkg-config", so it can be a program name with args. 4514set dummy pkg-config; ac_word=$2 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4516$as_echo_n "checking for $ac_word... " >&6; } 4517if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 case $ac_pt_PKG_CONFIG in 4521 [\\/]* | ?:[\\/]*) 4522 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4523 ;; 4524 *) 4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4526for as_dir in $PATH 4527do 4528 IFS=$as_save_IFS 4529 test -z "$as_dir" && as_dir=. 4530 for ac_exec_ext in '' $ac_executable_extensions; do 4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4532 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4534 break 2 4535 fi 4536done 4537 done 4538IFS=$as_save_IFS 4539 4540 ;; 4541esac 4542fi 4543ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4544if test -n "$ac_pt_PKG_CONFIG"; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4546$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4547else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550fi 4551 4552 if test "x$ac_pt_PKG_CONFIG" = x; then 4553 PKG_CONFIG="" 4554 else 4555 case $cross_compiling:$ac_tool_warned in 4556yes:) 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4559ac_tool_warned=yes ;; 4560esac 4561 PKG_CONFIG=$ac_pt_PKG_CONFIG 4562 fi 4563else 4564 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4565fi 4566 4567fi 4568if test -n "$PKG_CONFIG"; then 4569 _pkg_min_version=0.9.0 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4571$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4572 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4574$as_echo "yes" >&6; } 4575 else 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577$as_echo "no" >&6; } 4578 PKG_CONFIG="" 4579 fi 4580 4581fi 4582# Make sure we can run config.sub. 4583$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4584 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4585 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4587$as_echo_n "checking build system type... " >&6; } 4588if ${ac_cv_build+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 ac_build_alias=$build_alias 4592test "x$ac_build_alias" = x && 4593 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4594test "x$ac_build_alias" = x && 4595 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4596ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4598 4599fi 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4601$as_echo "$ac_cv_build" >&6; } 4602case $ac_cv_build in 4603*-*-*) ;; 4604*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4605esac 4606build=$ac_cv_build 4607ac_save_IFS=$IFS; IFS='-' 4608set x $ac_cv_build 4609shift 4610build_cpu=$1 4611build_vendor=$2 4612shift; shift 4613# Remember, the first character of IFS is used to create $*, 4614# except with old shells: 4615build_os=$* 4616IFS=$ac_save_IFS 4617case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4618 4619 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4621$as_echo_n "checking host system type... " >&6; } 4622if ${ac_cv_host+:} false; then : 4623 $as_echo_n "(cached) " >&6 4624else 4625 if test "x$host_alias" = x; then 4626 ac_cv_host=$ac_cv_build 4627else 4628 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4630fi 4631 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4634$as_echo "$ac_cv_host" >&6; } 4635case $ac_cv_host in 4636*-*-*) ;; 4637*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4638esac 4639host=$ac_cv_host 4640ac_save_IFS=$IFS; IFS='-' 4641set x $ac_cv_host 4642shift 4643host_cpu=$1 4644host_vendor=$2 4645shift; shift 4646# Remember, the first character of IFS is used to create $*, 4647# except with old shells: 4648host_os=$* 4649IFS=$ac_save_IFS 4650case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4651 4652 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4654$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4655if ${ac_cv_path_SED+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4659 for ac_i in 1 2 3 4 5 6 7; do 4660 ac_script="$ac_script$as_nl$ac_script" 4661 done 4662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4663 { ac_script=; unset ac_script;} 4664 if test -z "$SED"; then 4665 ac_path_SED_found=false 4666 # Loop through the user's path and test for each of PROGNAME-LIST 4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4668for as_dir in $PATH 4669do 4670 IFS=$as_save_IFS 4671 test -z "$as_dir" && as_dir=. 4672 for ac_prog in sed gsed; do 4673 for ac_exec_ext in '' $ac_executable_extensions; do 4674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4675 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4676# Check for GNU ac_path_SED and select it if it is found. 4677 # Check for GNU $ac_path_SED 4678case `"$ac_path_SED" --version 2>&1` in 4679*GNU*) 4680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4681*) 4682 ac_count=0 4683 $as_echo_n 0123456789 >"conftest.in" 4684 while : 4685 do 4686 cat "conftest.in" "conftest.in" >"conftest.tmp" 4687 mv "conftest.tmp" "conftest.in" 4688 cp "conftest.in" "conftest.nl" 4689 $as_echo '' >> "conftest.nl" 4690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4692 as_fn_arith $ac_count + 1 && ac_count=$as_val 4693 if test $ac_count -gt ${ac_path_SED_max-0}; then 4694 # Best one so far, save it but keep looking for a better one 4695 ac_cv_path_SED="$ac_path_SED" 4696 ac_path_SED_max=$ac_count 4697 fi 4698 # 10*(2^10) chars as input seems more than enough 4699 test $ac_count -gt 10 && break 4700 done 4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4702esac 4703 4704 $ac_path_SED_found && break 3 4705 done 4706 done 4707 done 4708IFS=$as_save_IFS 4709 if test -z "$ac_cv_path_SED"; then 4710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4711 fi 4712else 4713 ac_cv_path_SED=$SED 4714fi 4715 4716fi 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4718$as_echo "$ac_cv_path_SED" >&6; } 4719 SED="$ac_cv_path_SED" 4720 rm -f conftest.sed 4721 4722 4723 4724 4725 4726 4727# Check whether --enable-selective-werror was given. 4728if test "${enable_selective_werror+set}" = set; then : 4729 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4730else 4731 SELECTIVE_WERROR=yes 4732fi 4733 4734 4735 4736 4737 4738# -v is too short to test reliably with XORG_TESTSET_CFLAG 4739if test "x$SUNCC" = "xyes"; then 4740 BASE_CFLAGS="-v" 4741else 4742 BASE_CFLAGS="" 4743fi 4744 4745# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759xorg_testset_save_CFLAGS="$CFLAGS" 4760 4761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770int i; 4771_ACEOF 4772if ac_fn_c_try_compile "$LINENO"; then : 4773 xorg_cv_cc_flag_unknown_warning_option=yes 4774else 4775 xorg_cv_cc_flag_unknown_warning_option=no 4776fi 4777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4782 CFLAGS="$xorg_testset_save_CFLAGS" 4783fi 4784 4785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4788 fi 4789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4796/* end confdefs.h. */ 4797int i; 4798_ACEOF 4799if ac_fn_c_try_compile "$LINENO"; then : 4800 xorg_cv_cc_flag_unused_command_line_argument=yes 4801else 4802 xorg_cv_cc_flag_unused_command_line_argument=no 4803fi 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4805fi 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4809 CFLAGS="$xorg_testset_save_CFLAGS" 4810fi 4811 4812found="no" 4813 4814 if test $found = "no" ; then 4815 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4817 fi 4818 4819 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4821 fi 4822 4823 CFLAGS="$CFLAGS -Wall" 4824 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4826$as_echo_n "checking if $CC supports -Wall... " >&6; } 4827 cacheid=xorg_cv_cc_flag__Wall 4828 if eval \${$cacheid+:} false; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4832/* end confdefs.h. */ 4833int i; 4834int 4835main () 4836{ 4837 4838 ; 4839 return 0; 4840} 4841_ACEOF 4842if ac_fn_c_try_link "$LINENO"; then : 4843 eval $cacheid=yes 4844else 4845 eval $cacheid=no 4846fi 4847rm -f core conftest.err conftest.$ac_objext \ 4848 conftest$ac_exeext conftest.$ac_ext 4849fi 4850 4851 4852 CFLAGS="$xorg_testset_save_CFLAGS" 4853 4854 eval supported=\$$cacheid 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4856$as_echo "$supported" >&6; } 4857 if test "$supported" = "yes" ; then 4858 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4859 found="yes" 4860 fi 4861 fi 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877xorg_testset_save_CFLAGS="$CFLAGS" 4878 4879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888int i; 4889_ACEOF 4890if ac_fn_c_try_compile "$LINENO"; then : 4891 xorg_cv_cc_flag_unknown_warning_option=yes 4892else 4893 xorg_cv_cc_flag_unknown_warning_option=no 4894fi 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896fi 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4900 CFLAGS="$xorg_testset_save_CFLAGS" 4901fi 4902 4903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4906 fi 4907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915int i; 4916_ACEOF 4917if ac_fn_c_try_compile "$LINENO"; then : 4918 xorg_cv_cc_flag_unused_command_line_argument=yes 4919else 4920 xorg_cv_cc_flag_unused_command_line_argument=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928fi 4929 4930found="no" 4931 4932 if test $found = "no" ; then 4933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4935 fi 4936 4937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4939 fi 4940 4941 CFLAGS="$CFLAGS -Wpointer-arith" 4942 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4944$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4945 cacheid=xorg_cv_cc_flag__Wpointer_arith 4946 if eval \${$cacheid+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951int i; 4952int 4953main () 4954{ 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960if ac_fn_c_try_link "$LINENO"; then : 4961 eval $cacheid=yes 4962else 4963 eval $cacheid=no 4964fi 4965rm -f core conftest.err conftest.$ac_objext \ 4966 conftest$ac_exeext conftest.$ac_ext 4967fi 4968 4969 4970 CFLAGS="$xorg_testset_save_CFLAGS" 4971 4972 eval supported=\$$cacheid 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4974$as_echo "$supported" >&6; } 4975 if test "$supported" = "yes" ; then 4976 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4977 found="yes" 4978 fi 4979 fi 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995xorg_testset_save_CFLAGS="$CFLAGS" 4996 4997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5005/* end confdefs.h. */ 5006int i; 5007_ACEOF 5008if ac_fn_c_try_compile "$LINENO"; then : 5009 xorg_cv_cc_flag_unknown_warning_option=yes 5010else 5011 xorg_cv_cc_flag_unknown_warning_option=no 5012fi 5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5014fi 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5018 CFLAGS="$xorg_testset_save_CFLAGS" 5019fi 5020 5021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5024 fi 5025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032/* end confdefs.h. */ 5033int i; 5034_ACEOF 5035if ac_fn_c_try_compile "$LINENO"; then : 5036 xorg_cv_cc_flag_unused_command_line_argument=yes 5037else 5038 xorg_cv_cc_flag_unused_command_line_argument=no 5039fi 5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5041fi 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5045 CFLAGS="$xorg_testset_save_CFLAGS" 5046fi 5047 5048found="no" 5049 5050 if test $found = "no" ; then 5051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5053 fi 5054 5055 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5057 fi 5058 5059 CFLAGS="$CFLAGS -Wmissing-declarations" 5060 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5062$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5063 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5064 if eval \${$cacheid+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5068/* end confdefs.h. */ 5069int i; 5070int 5071main () 5072{ 5073 5074 ; 5075 return 0; 5076} 5077_ACEOF 5078if ac_fn_c_try_link "$LINENO"; then : 5079 eval $cacheid=yes 5080else 5081 eval $cacheid=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext \ 5084 conftest$ac_exeext conftest.$ac_ext 5085fi 5086 5087 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089 5090 eval supported=\$$cacheid 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5092$as_echo "$supported" >&6; } 5093 if test "$supported" = "yes" ; then 5094 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5095 found="yes" 5096 fi 5097 fi 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113xorg_testset_save_CFLAGS="$CFLAGS" 5114 5115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124int i; 5125_ACEOF 5126if ac_fn_c_try_compile "$LINENO"; then : 5127 xorg_cv_cc_flag_unknown_warning_option=yes 5128else 5129 xorg_cv_cc_flag_unknown_warning_option=no 5130fi 5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5136 CFLAGS="$xorg_testset_save_CFLAGS" 5137fi 5138 5139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5142 fi 5143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151int i; 5152_ACEOF 5153if ac_fn_c_try_compile "$LINENO"; then : 5154 xorg_cv_cc_flag_unused_command_line_argument=yes 5155else 5156 xorg_cv_cc_flag_unused_command_line_argument=no 5157fi 5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5159fi 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5163 CFLAGS="$xorg_testset_save_CFLAGS" 5164fi 5165 5166found="no" 5167 5168 if test $found = "no" ; then 5169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5171 fi 5172 5173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5175 fi 5176 5177 CFLAGS="$CFLAGS -Wformat=2" 5178 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5180$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5181 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5182 if eval \${$cacheid+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187int i; 5188int 5189main () 5190{ 5191 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196if ac_fn_c_try_link "$LINENO"; then : 5197 eval $cacheid=yes 5198else 5199 eval $cacheid=no 5200fi 5201rm -f core conftest.err conftest.$ac_objext \ 5202 conftest$ac_exeext conftest.$ac_ext 5203fi 5204 5205 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207 5208 eval supported=\$$cacheid 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5210$as_echo "$supported" >&6; } 5211 if test "$supported" = "yes" ; then 5212 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5213 found="yes" 5214 fi 5215 fi 5216 5217 if test $found = "no" ; then 5218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5220 fi 5221 5222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5224 fi 5225 5226 CFLAGS="$CFLAGS -Wformat" 5227 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5229$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5230 cacheid=xorg_cv_cc_flag__Wformat 5231 if eval \${$cacheid+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236int i; 5237int 5238main () 5239{ 5240 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245if ac_fn_c_try_link "$LINENO"; then : 5246 eval $cacheid=yes 5247else 5248 eval $cacheid=no 5249fi 5250rm -f core conftest.err conftest.$ac_objext \ 5251 conftest$ac_exeext conftest.$ac_ext 5252fi 5253 5254 5255 CFLAGS="$xorg_testset_save_CFLAGS" 5256 5257 eval supported=\$$cacheid 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5259$as_echo "$supported" >&6; } 5260 if test "$supported" = "yes" ; then 5261 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5262 found="yes" 5263 fi 5264 fi 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282xorg_testset_save_CFLAGS="$CFLAGS" 5283 5284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294_ACEOF 5295if ac_fn_c_try_compile "$LINENO"; then : 5296 xorg_cv_cc_flag_unknown_warning_option=yes 5297else 5298 xorg_cv_cc_flag_unknown_warning_option=no 5299fi 5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5301fi 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5305 CFLAGS="$xorg_testset_save_CFLAGS" 5306fi 5307 5308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 fi 5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5319/* end confdefs.h. */ 5320int i; 5321_ACEOF 5322if ac_fn_c_try_compile "$LINENO"; then : 5323 xorg_cv_cc_flag_unused_command_line_argument=yes 5324else 5325 xorg_cv_cc_flag_unused_command_line_argument=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5328fi 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333fi 5334 5335found="no" 5336 5337 if test $found = "no" ; then 5338 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 5342 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344 fi 5345 5346 CFLAGS="$CFLAGS -Wstrict-prototypes" 5347 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5349$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5350 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5351 if eval \${$cacheid+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356int i; 5357int 5358main () 5359{ 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365if ac_fn_c_try_link "$LINENO"; then : 5366 eval $cacheid=yes 5367else 5368 eval $cacheid=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext \ 5371 conftest$ac_exeext conftest.$ac_ext 5372fi 5373 5374 5375 CFLAGS="$xorg_testset_save_CFLAGS" 5376 5377 eval supported=\$$cacheid 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5379$as_echo "$supported" >&6; } 5380 if test "$supported" = "yes" ; then 5381 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5382 found="yes" 5383 fi 5384 fi 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400xorg_testset_save_CFLAGS="$CFLAGS" 5401 5402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5410/* end confdefs.h. */ 5411int i; 5412_ACEOF 5413if ac_fn_c_try_compile "$LINENO"; then : 5414 xorg_cv_cc_flag_unknown_warning_option=yes 5415else 5416 xorg_cv_cc_flag_unknown_warning_option=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419fi 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5423 CFLAGS="$xorg_testset_save_CFLAGS" 5424fi 5425 5426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 fi 5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437/* end confdefs.h. */ 5438int i; 5439_ACEOF 5440if ac_fn_c_try_compile "$LINENO"; then : 5441 xorg_cv_cc_flag_unused_command_line_argument=yes 5442else 5443 xorg_cv_cc_flag_unused_command_line_argument=no 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446fi 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451fi 5452 5453found="no" 5454 5455 if test $found = "no" ; then 5456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458 fi 5459 5460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5462 fi 5463 5464 CFLAGS="$CFLAGS -Wmissing-prototypes" 5465 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5467$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5468 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5469 if eval \${$cacheid+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474int i; 5475int 5476main () 5477{ 5478 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483if ac_fn_c_try_link "$LINENO"; then : 5484 eval $cacheid=yes 5485else 5486 eval $cacheid=no 5487fi 5488rm -f core conftest.err conftest.$ac_objext \ 5489 conftest$ac_exeext conftest.$ac_ext 5490fi 5491 5492 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494 5495 eval supported=\$$cacheid 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5497$as_echo "$supported" >&6; } 5498 if test "$supported" = "yes" ; then 5499 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5500 found="yes" 5501 fi 5502 fi 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518xorg_testset_save_CFLAGS="$CFLAGS" 5519 5520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5528/* end confdefs.h. */ 5529int i; 5530_ACEOF 5531if ac_fn_c_try_compile "$LINENO"; then : 5532 xorg_cv_cc_flag_unknown_warning_option=yes 5533else 5534 xorg_cv_cc_flag_unknown_warning_option=no 5535fi 5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5537fi 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5541 CFLAGS="$xorg_testset_save_CFLAGS" 5542fi 5543 5544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547 fi 5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556int i; 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO"; then : 5559 xorg_cv_cc_flag_unused_command_line_argument=yes 5560else 5561 xorg_cv_cc_flag_unused_command_line_argument=no 5562fi 5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5564fi 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5568 CFLAGS="$xorg_testset_save_CFLAGS" 5569fi 5570 5571found="no" 5572 5573 if test $found = "no" ; then 5574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5576 fi 5577 5578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5580 fi 5581 5582 CFLAGS="$CFLAGS -Wnested-externs" 5583 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5585$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5586 cacheid=xorg_cv_cc_flag__Wnested_externs 5587 if eval \${$cacheid+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592int i; 5593int 5594main () 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_link "$LINENO"; then : 5602 eval $cacheid=yes 5603else 5604 eval $cacheid=no 5605fi 5606rm -f core conftest.err conftest.$ac_objext \ 5607 conftest$ac_exeext conftest.$ac_ext 5608fi 5609 5610 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612 5613 eval supported=\$$cacheid 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615$as_echo "$supported" >&6; } 5616 if test "$supported" = "yes" ; then 5617 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5618 found="yes" 5619 fi 5620 fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636xorg_testset_save_CFLAGS="$CFLAGS" 5637 5638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646/* end confdefs.h. */ 5647int i; 5648_ACEOF 5649if ac_fn_c_try_compile "$LINENO"; then : 5650 xorg_cv_cc_flag_unknown_warning_option=yes 5651else 5652 xorg_cv_cc_flag_unknown_warning_option=no 5653fi 5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655fi 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5659 CFLAGS="$xorg_testset_save_CFLAGS" 5660fi 5661 5662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5665 fi 5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674int i; 5675_ACEOF 5676if ac_fn_c_try_compile "$LINENO"; then : 5677 xorg_cv_cc_flag_unused_command_line_argument=yes 5678else 5679 xorg_cv_cc_flag_unused_command_line_argument=no 5680fi 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682fi 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5686 CFLAGS="$xorg_testset_save_CFLAGS" 5687fi 5688 5689found="no" 5690 5691 if test $found = "no" ; then 5692 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694 fi 5695 5696 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5698 fi 5699 5700 CFLAGS="$CFLAGS -Wbad-function-cast" 5701 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5703$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5704 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5705 if eval \${$cacheid+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709/* end confdefs.h. */ 5710int i; 5711int 5712main () 5713{ 5714 5715 ; 5716 return 0; 5717} 5718_ACEOF 5719if ac_fn_c_try_link "$LINENO"; then : 5720 eval $cacheid=yes 5721else 5722 eval $cacheid=no 5723fi 5724rm -f core conftest.err conftest.$ac_objext \ 5725 conftest$ac_exeext conftest.$ac_ext 5726fi 5727 5728 5729 CFLAGS="$xorg_testset_save_CFLAGS" 5730 5731 eval supported=\$$cacheid 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5733$as_echo "$supported" >&6; } 5734 if test "$supported" = "yes" ; then 5735 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5736 found="yes" 5737 fi 5738 fi 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754xorg_testset_save_CFLAGS="$CFLAGS" 5755 5756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5761 $as_echo_n "(cached) " >&6 5762else 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5764/* end confdefs.h. */ 5765int i; 5766_ACEOF 5767if ac_fn_c_try_compile "$LINENO"; then : 5768 xorg_cv_cc_flag_unknown_warning_option=yes 5769else 5770 xorg_cv_cc_flag_unknown_warning_option=no 5771fi 5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5773fi 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5777 CFLAGS="$xorg_testset_save_CFLAGS" 5778fi 5779 5780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783 fi 5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792int i; 5793_ACEOF 5794if ac_fn_c_try_compile "$LINENO"; then : 5795 xorg_cv_cc_flag_unused_command_line_argument=yes 5796else 5797 xorg_cv_cc_flag_unused_command_line_argument=no 5798fi 5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5800fi 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5804 CFLAGS="$xorg_testset_save_CFLAGS" 5805fi 5806 5807found="no" 5808 5809 if test $found = "no" ; then 5810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5812 fi 5813 5814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5816 fi 5817 5818 CFLAGS="$CFLAGS -Wold-style-definition" 5819 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5821$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5822 cacheid=xorg_cv_cc_flag__Wold_style_definition 5823 if eval \${$cacheid+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828int i; 5829int 5830main () 5831{ 5832 5833 ; 5834 return 0; 5835} 5836_ACEOF 5837if ac_fn_c_try_link "$LINENO"; then : 5838 eval $cacheid=yes 5839else 5840 eval $cacheid=no 5841fi 5842rm -f core conftest.err conftest.$ac_objext \ 5843 conftest$ac_exeext conftest.$ac_ext 5844fi 5845 5846 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848 5849 eval supported=\$$cacheid 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5851$as_echo "$supported" >&6; } 5852 if test "$supported" = "yes" ; then 5853 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5854 found="yes" 5855 fi 5856 fi 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872xorg_testset_save_CFLAGS="$CFLAGS" 5873 5874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882/* end confdefs.h. */ 5883int i; 5884_ACEOF 5885if ac_fn_c_try_compile "$LINENO"; then : 5886 xorg_cv_cc_flag_unknown_warning_option=yes 5887else 5888 xorg_cv_cc_flag_unknown_warning_option=no 5889fi 5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5891fi 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5895 CFLAGS="$xorg_testset_save_CFLAGS" 5896fi 5897 5898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5901 fi 5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911_ACEOF 5912if ac_fn_c_try_compile "$LINENO"; then : 5913 xorg_cv_cc_flag_unused_command_line_argument=yes 5914else 5915 xorg_cv_cc_flag_unused_command_line_argument=no 5916fi 5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918fi 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5922 CFLAGS="$xorg_testset_save_CFLAGS" 5923fi 5924 5925found="no" 5926 5927 if test $found = "no" ; then 5928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5930 fi 5931 5932 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5934 fi 5935 5936 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5937 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5939$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5940 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5941 if eval \${$cacheid+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5945/* end confdefs.h. */ 5946int i; 5947int 5948main () 5949{ 5950 5951 ; 5952 return 0; 5953} 5954_ACEOF 5955if ac_fn_c_try_link "$LINENO"; then : 5956 eval $cacheid=yes 5957else 5958 eval $cacheid=no 5959fi 5960rm -f core conftest.err conftest.$ac_objext \ 5961 conftest$ac_exeext conftest.$ac_ext 5962fi 5963 5964 5965 CFLAGS="$xorg_testset_save_CFLAGS" 5966 5967 eval supported=\$$cacheid 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5969$as_echo "$supported" >&6; } 5970 if test "$supported" = "yes" ; then 5971 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5972 found="yes" 5973 fi 5974 fi 5975 5976 5977 5978 5979 5980# This chunk adds additional warnings that could catch undesired effects. 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994xorg_testset_save_CFLAGS="$CFLAGS" 5995 5996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005int i; 6006_ACEOF 6007if ac_fn_c_try_compile "$LINENO"; then : 6008 xorg_cv_cc_flag_unknown_warning_option=yes 6009else 6010 xorg_cv_cc_flag_unknown_warning_option=no 6011fi 6012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6013fi 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6017 CFLAGS="$xorg_testset_save_CFLAGS" 6018fi 6019 6020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6023 fi 6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6027if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6036else 6037 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6044 CFLAGS="$xorg_testset_save_CFLAGS" 6045fi 6046 6047found="no" 6048 6049 if test $found = "no" ; then 6050 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6052 fi 6053 6054 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6056 fi 6057 6058 CFLAGS="$CFLAGS -Wunused" 6059 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6061$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6062 cacheid=xorg_cv_cc_flag__Wunused 6063 if eval \${$cacheid+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067/* end confdefs.h. */ 6068int i; 6069int 6070main () 6071{ 6072 6073 ; 6074 return 0; 6075} 6076_ACEOF 6077if ac_fn_c_try_link "$LINENO"; then : 6078 eval $cacheid=yes 6079else 6080 eval $cacheid=no 6081fi 6082rm -f core conftest.err conftest.$ac_objext \ 6083 conftest$ac_exeext conftest.$ac_ext 6084fi 6085 6086 6087 CFLAGS="$xorg_testset_save_CFLAGS" 6088 6089 eval supported=\$$cacheid 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6091$as_echo "$supported" >&6; } 6092 if test "$supported" = "yes" ; then 6093 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6094 found="yes" 6095 fi 6096 fi 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112xorg_testset_save_CFLAGS="$CFLAGS" 6113 6114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123int i; 6124_ACEOF 6125if ac_fn_c_try_compile "$LINENO"; then : 6126 xorg_cv_cc_flag_unknown_warning_option=yes 6127else 6128 xorg_cv_cc_flag_unknown_warning_option=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6131fi 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136fi 6137 6138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 fi 6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6145if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6154else 6155 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6162 CFLAGS="$xorg_testset_save_CFLAGS" 6163fi 6164 6165found="no" 6166 6167 if test $found = "no" ; then 6168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6170 fi 6171 6172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6174 fi 6175 6176 CFLAGS="$CFLAGS -Wuninitialized" 6177 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6179$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6180 cacheid=xorg_cv_cc_flag__Wuninitialized 6181 if eval \${$cacheid+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187int 6188main () 6189{ 6190 6191 ; 6192 return 0; 6193} 6194_ACEOF 6195if ac_fn_c_try_link "$LINENO"; then : 6196 eval $cacheid=yes 6197else 6198 eval $cacheid=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext \ 6201 conftest$ac_exeext conftest.$ac_ext 6202fi 6203 6204 6205 CFLAGS="$xorg_testset_save_CFLAGS" 6206 6207 eval supported=\$$cacheid 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6209$as_echo "$supported" >&6; } 6210 if test "$supported" = "yes" ; then 6211 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6212 found="yes" 6213 fi 6214 fi 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230xorg_testset_save_CFLAGS="$CFLAGS" 6231 6232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6240/* end confdefs.h. */ 6241int i; 6242_ACEOF 6243if ac_fn_c_try_compile "$LINENO"; then : 6244 xorg_cv_cc_flag_unknown_warning_option=yes 6245else 6246 xorg_cv_cc_flag_unknown_warning_option=no 6247fi 6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6249fi 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6253 CFLAGS="$xorg_testset_save_CFLAGS" 6254fi 6255 6256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 fi 6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6263if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6272else 6273 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6280 CFLAGS="$xorg_testset_save_CFLAGS" 6281fi 6282 6283found="no" 6284 6285 if test $found = "no" ; then 6286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6288 fi 6289 6290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6292 fi 6293 6294 CFLAGS="$CFLAGS -Wshadow" 6295 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6297$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6298 cacheid=xorg_cv_cc_flag__Wshadow 6299 if eval \${$cacheid+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304int i; 6305int 6306main () 6307{ 6308 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313if ac_fn_c_try_link "$LINENO"; then : 6314 eval $cacheid=yes 6315else 6316 eval $cacheid=no 6317fi 6318rm -f core conftest.err conftest.$ac_objext \ 6319 conftest$ac_exeext conftest.$ac_ext 6320fi 6321 6322 6323 CFLAGS="$xorg_testset_save_CFLAGS" 6324 6325 eval supported=\$$cacheid 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6327$as_echo "$supported" >&6; } 6328 if test "$supported" = "yes" ; then 6329 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6330 found="yes" 6331 fi 6332 fi 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348xorg_testset_save_CFLAGS="$CFLAGS" 6349 6350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359int i; 6360_ACEOF 6361if ac_fn_c_try_compile "$LINENO"; then : 6362 xorg_cv_cc_flag_unknown_warning_option=yes 6363else 6364 xorg_cv_cc_flag_unknown_warning_option=no 6365fi 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367fi 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6371 CFLAGS="$xorg_testset_save_CFLAGS" 6372fi 6373 6374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 fi 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386int i; 6387_ACEOF 6388if ac_fn_c_try_compile "$LINENO"; then : 6389 xorg_cv_cc_flag_unused_command_line_argument=yes 6390else 6391 xorg_cv_cc_flag_unused_command_line_argument=no 6392fi 6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6394fi 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6398 CFLAGS="$xorg_testset_save_CFLAGS" 6399fi 6400 6401found="no" 6402 6403 if test $found = "no" ; then 6404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 fi 6407 6408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6410 fi 6411 6412 CFLAGS="$CFLAGS -Wcast-qual" 6413 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6415$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6416 cacheid=xorg_cv_cc_flag__Wcast_qual 6417 if eval \${$cacheid+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422int i; 6423int 6424main () 6425{ 6426 6427 ; 6428 return 0; 6429} 6430_ACEOF 6431if ac_fn_c_try_link "$LINENO"; then : 6432 eval $cacheid=yes 6433else 6434 eval $cacheid=no 6435fi 6436rm -f core conftest.err conftest.$ac_objext \ 6437 conftest$ac_exeext conftest.$ac_ext 6438fi 6439 6440 6441 CFLAGS="$xorg_testset_save_CFLAGS" 6442 6443 eval supported=\$$cacheid 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6445$as_echo "$supported" >&6; } 6446 if test "$supported" = "yes" ; then 6447 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6448 found="yes" 6449 fi 6450 fi 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466xorg_testset_save_CFLAGS="$CFLAGS" 6467 6468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477int i; 6478_ACEOF 6479if ac_fn_c_try_compile "$LINENO"; then : 6480 xorg_cv_cc_flag_unknown_warning_option=yes 6481else 6482 xorg_cv_cc_flag_unknown_warning_option=no 6483fi 6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6485fi 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490fi 6491 6492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 fi 6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505_ACEOF 6506if ac_fn_c_try_compile "$LINENO"; then : 6507 xorg_cv_cc_flag_unused_command_line_argument=yes 6508else 6509 xorg_cv_cc_flag_unused_command_line_argument=no 6510fi 6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6512fi 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6516 CFLAGS="$xorg_testset_save_CFLAGS" 6517fi 6518 6519found="no" 6520 6521 if test $found = "no" ; then 6522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6524 fi 6525 6526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6528 fi 6529 6530 CFLAGS="$CFLAGS -Wmissing-noreturn" 6531 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6533$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6534 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6535 if eval \${$cacheid+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540int i; 6541int 6542main () 6543{ 6544 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_c_try_link "$LINENO"; then : 6550 eval $cacheid=yes 6551else 6552 eval $cacheid=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext \ 6555 conftest$ac_exeext conftest.$ac_ext 6556fi 6557 6558 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560 6561 eval supported=\$$cacheid 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6563$as_echo "$supported" >&6; } 6564 if test "$supported" = "yes" ; then 6565 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6566 found="yes" 6567 fi 6568 fi 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584xorg_testset_save_CFLAGS="$CFLAGS" 6585 6586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595int i; 6596_ACEOF 6597if ac_fn_c_try_compile "$LINENO"; then : 6598 xorg_cv_cc_flag_unknown_warning_option=yes 6599else 6600 xorg_cv_cc_flag_unknown_warning_option=no 6601fi 6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608fi 6609 6610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6613 fi 6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622int i; 6623_ACEOF 6624if ac_fn_c_try_compile "$LINENO"; then : 6625 xorg_cv_cc_flag_unused_command_line_argument=yes 6626else 6627 xorg_cv_cc_flag_unused_command_line_argument=no 6628fi 6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6630fi 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6634 CFLAGS="$xorg_testset_save_CFLAGS" 6635fi 6636 6637found="no" 6638 6639 if test $found = "no" ; then 6640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6642 fi 6643 6644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6646 fi 6647 6648 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6649 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6651$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6652 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6653 if eval \${$cacheid+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659int 6660main () 6661{ 6662 6663 ; 6664 return 0; 6665} 6666_ACEOF 6667if ac_fn_c_try_link "$LINENO"; then : 6668 eval $cacheid=yes 6669else 6670 eval $cacheid=no 6671fi 6672rm -f core conftest.err conftest.$ac_objext \ 6673 conftest$ac_exeext conftest.$ac_ext 6674fi 6675 6676 6677 CFLAGS="$xorg_testset_save_CFLAGS" 6678 6679 eval supported=\$$cacheid 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6681$as_echo "$supported" >&6; } 6682 if test "$supported" = "yes" ; then 6683 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6684 found="yes" 6685 fi 6686 fi 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702xorg_testset_save_CFLAGS="$CFLAGS" 6703 6704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO"; then : 6716 xorg_cv_cc_flag_unknown_warning_option=yes 6717else 6718 xorg_cv_cc_flag_unknown_warning_option=no 6719fi 6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726fi 6727 6728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 fi 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740int i; 6741_ACEOF 6742if ac_fn_c_try_compile "$LINENO"; then : 6743 xorg_cv_cc_flag_unused_command_line_argument=yes 6744else 6745 xorg_cv_cc_flag_unused_command_line_argument=no 6746fi 6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753fi 6754 6755found="no" 6756 6757 if test $found = "no" ; then 6758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760 fi 6761 6762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6764 fi 6765 6766 CFLAGS="$CFLAGS -Wredundant-decls" 6767 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6769$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6770 cacheid=xorg_cv_cc_flag__Wredundant_decls 6771 if eval \${$cacheid+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6775/* end confdefs.h. */ 6776int i; 6777int 6778main () 6779{ 6780 6781 ; 6782 return 0; 6783} 6784_ACEOF 6785if ac_fn_c_try_link "$LINENO"; then : 6786 eval $cacheid=yes 6787else 6788 eval $cacheid=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext \ 6791 conftest$ac_exeext conftest.$ac_ext 6792fi 6793 6794 6795 CFLAGS="$xorg_testset_save_CFLAGS" 6796 6797 eval supported=\$$cacheid 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6799$as_echo "$supported" >&6; } 6800 if test "$supported" = "yes" ; then 6801 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6802 found="yes" 6803 fi 6804 fi 6805 6806 6807 6808# These are currently disabled because they are noisy. They will be enabled 6809# in the future once the codebase is sufficiently modernized to silence 6810# them. For now, I don't want them to drown out the other warnings. 6811# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6812# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6813# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6814 6815# Turn some warnings into errors, so we don't accidently get successful builds 6816# when there are problems that should be fixed. 6817 6818if test "x$SELECTIVE_WERROR" = "xyes" ; then 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832xorg_testset_save_CFLAGS="$CFLAGS" 6833 6834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843int i; 6844_ACEOF 6845if ac_fn_c_try_compile "$LINENO"; then : 6846 xorg_cv_cc_flag_unknown_warning_option=yes 6847else 6848 xorg_cv_cc_flag_unknown_warning_option=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856fi 6857 6858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 fi 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870int i; 6871_ACEOF 6872if ac_fn_c_try_compile "$LINENO"; then : 6873 xorg_cv_cc_flag_unused_command_line_argument=yes 6874else 6875 xorg_cv_cc_flag_unused_command_line_argument=no 6876fi 6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6878fi 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883fi 6884 6885found="no" 6886 6887 if test $found = "no" ; then 6888 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 fi 6891 6892 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 fi 6895 6896 CFLAGS="$CFLAGS -Werror=implicit" 6897 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6899$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6900 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6901 if eval \${$cacheid+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907int 6908main () 6909{ 6910 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915if ac_fn_c_try_link "$LINENO"; then : 6916 eval $cacheid=yes 6917else 6918 eval $cacheid=no 6919fi 6920rm -f core conftest.err conftest.$ac_objext \ 6921 conftest$ac_exeext conftest.$ac_ext 6922fi 6923 6924 6925 CFLAGS="$xorg_testset_save_CFLAGS" 6926 6927 eval supported=\$$cacheid 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6929$as_echo "$supported" >&6; } 6930 if test "$supported" = "yes" ; then 6931 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6932 found="yes" 6933 fi 6934 fi 6935 6936 if test $found = "no" ; then 6937 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 fi 6940 6941 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6943 fi 6944 6945 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6946 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6948$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6949 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6950 if eval \${$cacheid+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955int i; 6956int 6957main () 6958{ 6959 6960 ; 6961 return 0; 6962} 6963_ACEOF 6964if ac_fn_c_try_link "$LINENO"; then : 6965 eval $cacheid=yes 6966else 6967 eval $cacheid=no 6968fi 6969rm -f core conftest.err conftest.$ac_objext \ 6970 conftest$ac_exeext conftest.$ac_ext 6971fi 6972 6973 6974 CFLAGS="$xorg_testset_save_CFLAGS" 6975 6976 eval supported=\$$cacheid 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6978$as_echo "$supported" >&6; } 6979 if test "$supported" = "yes" ; then 6980 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6981 found="yes" 6982 fi 6983 fi 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999xorg_testset_save_CFLAGS="$CFLAGS" 7000 7001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7006 $as_echo_n "(cached) " >&6 7007else 7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009/* end confdefs.h. */ 7010int i; 7011_ACEOF 7012if ac_fn_c_try_compile "$LINENO"; then : 7013 xorg_cv_cc_flag_unknown_warning_option=yes 7014else 7015 xorg_cv_cc_flag_unknown_warning_option=no 7016fi 7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7018fi 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7022 CFLAGS="$xorg_testset_save_CFLAGS" 7023fi 7024 7025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7028 fi 7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037int i; 7038_ACEOF 7039if ac_fn_c_try_compile "$LINENO"; then : 7040 xorg_cv_cc_flag_unused_command_line_argument=yes 7041else 7042 xorg_cv_cc_flag_unused_command_line_argument=no 7043fi 7044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7045fi 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7049 CFLAGS="$xorg_testset_save_CFLAGS" 7050fi 7051 7052found="no" 7053 7054 if test $found = "no" ; then 7055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7057 fi 7058 7059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7061 fi 7062 7063 CFLAGS="$CFLAGS -Werror=nonnull" 7064 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7066$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7067 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7068 if eval \${$cacheid+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7072/* end confdefs.h. */ 7073int i; 7074int 7075main () 7076{ 7077 7078 ; 7079 return 0; 7080} 7081_ACEOF 7082if ac_fn_c_try_link "$LINENO"; then : 7083 eval $cacheid=yes 7084else 7085 eval $cacheid=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext \ 7088 conftest$ac_exeext conftest.$ac_ext 7089fi 7090 7091 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093 7094 eval supported=\$$cacheid 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7096$as_echo "$supported" >&6; } 7097 if test "$supported" = "yes" ; then 7098 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7099 found="yes" 7100 fi 7101 fi 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117xorg_testset_save_CFLAGS="$CFLAGS" 7118 7119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128int i; 7129_ACEOF 7130if ac_fn_c_try_compile "$LINENO"; then : 7131 xorg_cv_cc_flag_unknown_warning_option=yes 7132else 7133 xorg_cv_cc_flag_unknown_warning_option=no 7134fi 7135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7136fi 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7140 CFLAGS="$xorg_testset_save_CFLAGS" 7141fi 7142 7143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7146 fi 7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156_ACEOF 7157if ac_fn_c_try_compile "$LINENO"; then : 7158 xorg_cv_cc_flag_unused_command_line_argument=yes 7159else 7160 xorg_cv_cc_flag_unused_command_line_argument=no 7161fi 7162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7163fi 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7167 CFLAGS="$xorg_testset_save_CFLAGS" 7168fi 7169 7170found="no" 7171 7172 if test $found = "no" ; then 7173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7175 fi 7176 7177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7179 fi 7180 7181 CFLAGS="$CFLAGS -Werror=init-self" 7182 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7184$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7185 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7186 if eval \${$cacheid+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191int i; 7192int 7193main () 7194{ 7195 7196 ; 7197 return 0; 7198} 7199_ACEOF 7200if ac_fn_c_try_link "$LINENO"; then : 7201 eval $cacheid=yes 7202else 7203 eval $cacheid=no 7204fi 7205rm -f core conftest.err conftest.$ac_objext \ 7206 conftest$ac_exeext conftest.$ac_ext 7207fi 7208 7209 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211 7212 eval supported=\$$cacheid 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7214$as_echo "$supported" >&6; } 7215 if test "$supported" = "yes" ; then 7216 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7217 found="yes" 7218 fi 7219 fi 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235xorg_testset_save_CFLAGS="$CFLAGS" 7236 7237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246int i; 7247_ACEOF 7248if ac_fn_c_try_compile "$LINENO"; then : 7249 xorg_cv_cc_flag_unknown_warning_option=yes 7250else 7251 xorg_cv_cc_flag_unknown_warning_option=no 7252fi 7253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259fi 7260 7261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274_ACEOF 7275if ac_fn_c_try_compile "$LINENO"; then : 7276 xorg_cv_cc_flag_unused_command_line_argument=yes 7277else 7278 xorg_cv_cc_flag_unused_command_line_argument=no 7279fi 7280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7281fi 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7285 CFLAGS="$xorg_testset_save_CFLAGS" 7286fi 7287 7288found="no" 7289 7290 if test $found = "no" ; then 7291 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293 fi 7294 7295 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 fi 7298 7299 CFLAGS="$CFLAGS -Werror=main" 7300 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7302$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7303 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7304 if eval \${$cacheid+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309int i; 7310int 7311main () 7312{ 7313 7314 ; 7315 return 0; 7316} 7317_ACEOF 7318if ac_fn_c_try_link "$LINENO"; then : 7319 eval $cacheid=yes 7320else 7321 eval $cacheid=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext \ 7324 conftest$ac_exeext conftest.$ac_ext 7325fi 7326 7327 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329 7330 eval supported=\$$cacheid 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7332$as_echo "$supported" >&6; } 7333 if test "$supported" = "yes" ; then 7334 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7335 found="yes" 7336 fi 7337 fi 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353xorg_testset_save_CFLAGS="$CFLAGS" 7354 7355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7363/* end confdefs.h. */ 7364int i; 7365_ACEOF 7366if ac_fn_c_try_compile "$LINENO"; then : 7367 xorg_cv_cc_flag_unknown_warning_option=yes 7368else 7369 xorg_cv_cc_flag_unknown_warning_option=no 7370fi 7371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7372fi 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7376 CFLAGS="$xorg_testset_save_CFLAGS" 7377fi 7378 7379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 fi 7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392_ACEOF 7393if ac_fn_c_try_compile "$LINENO"; then : 7394 xorg_cv_cc_flag_unused_command_line_argument=yes 7395else 7396 xorg_cv_cc_flag_unused_command_line_argument=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7399fi 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7403 CFLAGS="$xorg_testset_save_CFLAGS" 7404fi 7405 7406found="no" 7407 7408 if test $found = "no" ; then 7409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7411 fi 7412 7413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7415 fi 7416 7417 CFLAGS="$CFLAGS -Werror=missing-braces" 7418 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7420$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7421 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7422 if eval \${$cacheid+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428int 7429main () 7430{ 7431 7432 ; 7433 return 0; 7434} 7435_ACEOF 7436if ac_fn_c_try_link "$LINENO"; then : 7437 eval $cacheid=yes 7438else 7439 eval $cacheid=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext \ 7442 conftest$ac_exeext conftest.$ac_ext 7443fi 7444 7445 7446 CFLAGS="$xorg_testset_save_CFLAGS" 7447 7448 eval supported=\$$cacheid 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7450$as_echo "$supported" >&6; } 7451 if test "$supported" = "yes" ; then 7452 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7453 found="yes" 7454 fi 7455 fi 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471xorg_testset_save_CFLAGS="$CFLAGS" 7472 7473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482int i; 7483_ACEOF 7484if ac_fn_c_try_compile "$LINENO"; then : 7485 xorg_cv_cc_flag_unknown_warning_option=yes 7486else 7487 xorg_cv_cc_flag_unknown_warning_option=no 7488fi 7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7500 fi 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO"; then : 7512 xorg_cv_cc_flag_unused_command_line_argument=yes 7513else 7514 xorg_cv_cc_flag_unused_command_line_argument=no 7515fi 7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7517fi 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7521 CFLAGS="$xorg_testset_save_CFLAGS" 7522fi 7523 7524found="no" 7525 7526 if test $found = "no" ; then 7527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 fi 7530 7531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7533 fi 7534 7535 CFLAGS="$CFLAGS -Werror=sequence-point" 7536 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7538$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7539 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7540 if eval \${$cacheid+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546int 7547main () 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_link "$LINENO"; then : 7555 eval $cacheid=yes 7556else 7557 eval $cacheid=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext \ 7560 conftest$ac_exeext conftest.$ac_ext 7561fi 7562 7563 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 7566 eval supported=\$$cacheid 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7568$as_echo "$supported" >&6; } 7569 if test "$supported" = "yes" ; then 7570 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7571 found="yes" 7572 fi 7573 fi 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589xorg_testset_save_CFLAGS="$CFLAGS" 7590 7591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO"; then : 7603 xorg_cv_cc_flag_unknown_warning_option=yes 7604else 7605 xorg_cv_cc_flag_unknown_warning_option=no 7606fi 7607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613fi 7614 7615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 fi 7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627int i; 7628_ACEOF 7629if ac_fn_c_try_compile "$LINENO"; then : 7630 xorg_cv_cc_flag_unused_command_line_argument=yes 7631else 7632 xorg_cv_cc_flag_unused_command_line_argument=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7635fi 7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640fi 7641 7642found="no" 7643 7644 if test $found = "no" ; then 7645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7647 fi 7648 7649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 fi 7652 7653 CFLAGS="$CFLAGS -Werror=return-type" 7654 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7656$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7657 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7658 if eval \${$cacheid+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664int 7665main () 7666{ 7667 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672if ac_fn_c_try_link "$LINENO"; then : 7673 eval $cacheid=yes 7674else 7675 eval $cacheid=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679fi 7680 7681 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683 7684 eval supported=\$$cacheid 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7686$as_echo "$supported" >&6; } 7687 if test "$supported" = "yes" ; then 7688 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7689 found="yes" 7690 fi 7691 fi 7692 7693 if test $found = "no" ; then 7694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 fi 7697 7698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7700 fi 7701 7702 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7703 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7705$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7706 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7707 if eval \${$cacheid+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712int i; 7713int 7714main () 7715{ 7716 7717 ; 7718 return 0; 7719} 7720_ACEOF 7721if ac_fn_c_try_link "$LINENO"; then : 7722 eval $cacheid=yes 7723else 7724 eval $cacheid=no 7725fi 7726rm -f core conftest.err conftest.$ac_objext \ 7727 conftest$ac_exeext conftest.$ac_ext 7728fi 7729 7730 7731 CFLAGS="$xorg_testset_save_CFLAGS" 7732 7733 eval supported=\$$cacheid 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7735$as_echo "$supported" >&6; } 7736 if test "$supported" = "yes" ; then 7737 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7738 found="yes" 7739 fi 7740 fi 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756xorg_testset_save_CFLAGS="$CFLAGS" 7757 7758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767int i; 7768_ACEOF 7769if ac_fn_c_try_compile "$LINENO"; then : 7770 xorg_cv_cc_flag_unknown_warning_option=yes 7771else 7772 xorg_cv_cc_flag_unknown_warning_option=no 7773fi 7774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7775fi 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7779 CFLAGS="$xorg_testset_save_CFLAGS" 7780fi 7781 7782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7785 fi 7786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795_ACEOF 7796if ac_fn_c_try_compile "$LINENO"; then : 7797 xorg_cv_cc_flag_unused_command_line_argument=yes 7798else 7799 xorg_cv_cc_flag_unused_command_line_argument=no 7800fi 7801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7802fi 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7806 CFLAGS="$xorg_testset_save_CFLAGS" 7807fi 7808 7809found="no" 7810 7811 if test $found = "no" ; then 7812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 7816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 fi 7819 7820 CFLAGS="$CFLAGS -Werror=trigraphs" 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7823$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7824 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7825 if eval \${$cacheid+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829/* end confdefs.h. */ 7830int i; 7831int 7832main () 7833{ 7834 7835 ; 7836 return 0; 7837} 7838_ACEOF 7839if ac_fn_c_try_link "$LINENO"; then : 7840 eval $cacheid=yes 7841else 7842 eval $cacheid=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext \ 7845 conftest$ac_exeext conftest.$ac_ext 7846fi 7847 7848 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850 7851 eval supported=\$$cacheid 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7853$as_echo "$supported" >&6; } 7854 if test "$supported" = "yes" ; then 7855 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7856 found="yes" 7857 fi 7858 fi 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874xorg_testset_save_CFLAGS="$CFLAGS" 7875 7876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884/* end confdefs.h. */ 7885int i; 7886_ACEOF 7887if ac_fn_c_try_compile "$LINENO"; then : 7888 xorg_cv_cc_flag_unknown_warning_option=yes 7889else 7890 xorg_cv_cc_flag_unknown_warning_option=no 7891fi 7892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7893fi 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7897 CFLAGS="$xorg_testset_save_CFLAGS" 7898fi 7899 7900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 fi 7904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO"; then : 7915 xorg_cv_cc_flag_unused_command_line_argument=yes 7916else 7917 xorg_cv_cc_flag_unused_command_line_argument=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7920fi 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925fi 7926 7927found="no" 7928 7929 if test $found = "no" ; then 7930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7932 fi 7933 7934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7936 fi 7937 7938 CFLAGS="$CFLAGS -Werror=array-bounds" 7939 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7941$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7942 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7943 if eval \${$cacheid+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949int 7950main () 7951{ 7952 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957if ac_fn_c_try_link "$LINENO"; then : 7958 eval $cacheid=yes 7959else 7960 eval $cacheid=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext \ 7963 conftest$ac_exeext conftest.$ac_ext 7964fi 7965 7966 7967 CFLAGS="$xorg_testset_save_CFLAGS" 7968 7969 eval supported=\$$cacheid 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7971$as_echo "$supported" >&6; } 7972 if test "$supported" = "yes" ; then 7973 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7974 found="yes" 7975 fi 7976 fi 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992xorg_testset_save_CFLAGS="$CFLAGS" 7993 7994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000else 8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003int i; 8004_ACEOF 8005if ac_fn_c_try_compile "$LINENO"; then : 8006 xorg_cv_cc_flag_unknown_warning_option=yes 8007else 8008 xorg_cv_cc_flag_unknown_warning_option=no 8009fi 8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8011fi 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016fi 8017 8018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021 fi 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031_ACEOF 8032if ac_fn_c_try_compile "$LINENO"; then : 8033 xorg_cv_cc_flag_unused_command_line_argument=yes 8034else 8035 xorg_cv_cc_flag_unused_command_line_argument=no 8036fi 8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8042 CFLAGS="$xorg_testset_save_CFLAGS" 8043fi 8044 8045found="no" 8046 8047 if test $found = "no" ; then 8048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 fi 8051 8052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8054 fi 8055 8056 CFLAGS="$CFLAGS -Werror=write-strings" 8057 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8059$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8060 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8061 if eval \${$cacheid+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066int i; 8067int 8068main () 8069{ 8070 8071 ; 8072 return 0; 8073} 8074_ACEOF 8075if ac_fn_c_try_link "$LINENO"; then : 8076 eval $cacheid=yes 8077else 8078 eval $cacheid=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext \ 8081 conftest$ac_exeext conftest.$ac_ext 8082fi 8083 8084 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086 8087 eval supported=\$$cacheid 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8089$as_echo "$supported" >&6; } 8090 if test "$supported" = "yes" ; then 8091 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8092 found="yes" 8093 fi 8094 fi 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110xorg_testset_save_CFLAGS="$CFLAGS" 8111 8112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118else 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120/* end confdefs.h. */ 8121int i; 8122_ACEOF 8123if ac_fn_c_try_compile "$LINENO"; then : 8124 xorg_cv_cc_flag_unknown_warning_option=yes 8125else 8126 xorg_cv_cc_flag_unknown_warning_option=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134fi 8135 8136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149_ACEOF 8150if ac_fn_c_try_compile "$LINENO"; then : 8151 xorg_cv_cc_flag_unused_command_line_argument=yes 8152else 8153 xorg_cv_cc_flag_unused_command_line_argument=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8156fi 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163found="no" 8164 8165 if test $found = "no" ; then 8166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 fi 8169 8170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8172 fi 8173 8174 CFLAGS="$CFLAGS -Werror=address" 8175 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8177$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8178 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8179 if eval \${$cacheid+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185int 8186main () 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_link "$LINENO"; then : 8194 eval $cacheid=yes 8195else 8196 eval $cacheid=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext conftest.$ac_ext 8200fi 8201 8202 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204 8205 eval supported=\$$cacheid 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8207$as_echo "$supported" >&6; } 8208 if test "$supported" = "yes" ; then 8209 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8210 found="yes" 8211 fi 8212 fi 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228xorg_testset_save_CFLAGS="$CFLAGS" 8229 8230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240_ACEOF 8241if ac_fn_c_try_compile "$LINENO"; then : 8242 xorg_cv_cc_flag_unknown_warning_option=yes 8243else 8244 xorg_cv_cc_flag_unknown_warning_option=no 8245fi 8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247fi 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8251 CFLAGS="$xorg_testset_save_CFLAGS" 8252fi 8253 8254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267_ACEOF 8268if ac_fn_c_try_compile "$LINENO"; then : 8269 xorg_cv_cc_flag_unused_command_line_argument=yes 8270else 8271 xorg_cv_cc_flag_unused_command_line_argument=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8274fi 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279fi 8280 8281found="no" 8282 8283 if test $found = "no" ; then 8284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 fi 8287 8288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 fi 8291 8292 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8293 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8295$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8296 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8297 if eval \${$cacheid+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303int 8304main () 8305{ 8306 8307 ; 8308 return 0; 8309} 8310_ACEOF 8311if ac_fn_c_try_link "$LINENO"; then : 8312 eval $cacheid=yes 8313else 8314 eval $cacheid=no 8315fi 8316rm -f core conftest.err conftest.$ac_objext \ 8317 conftest$ac_exeext conftest.$ac_ext 8318fi 8319 8320 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322 8323 eval supported=\$$cacheid 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8325$as_echo "$supported" >&6; } 8326 if test "$supported" = "yes" ; then 8327 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8328 found="yes" 8329 fi 8330 fi 8331 8332 if test $found = "no" ; then 8333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 fi 8336 8337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8339 fi 8340 8341 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8342 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8344$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8345 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8346 if eval \${$cacheid+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348else 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350/* end confdefs.h. */ 8351int i; 8352int 8353main () 8354{ 8355 8356 ; 8357 return 0; 8358} 8359_ACEOF 8360if ac_fn_c_try_link "$LINENO"; then : 8361 eval $cacheid=yes 8362else 8363 eval $cacheid=no 8364fi 8365rm -f core conftest.err conftest.$ac_objext \ 8366 conftest$ac_exeext conftest.$ac_ext 8367fi 8368 8369 8370 CFLAGS="$xorg_testset_save_CFLAGS" 8371 8372 eval supported=\$$cacheid 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8374$as_echo "$supported" >&6; } 8375 if test "$supported" = "yes" ; then 8376 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8377 found="yes" 8378 fi 8379 fi 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395xorg_testset_save_CFLAGS="$CFLAGS" 8396 8397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403else 8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8405/* end confdefs.h. */ 8406int i; 8407_ACEOF 8408if ac_fn_c_try_compile "$LINENO"; then : 8409 xorg_cv_cc_flag_unknown_warning_option=yes 8410else 8411 xorg_cv_cc_flag_unknown_warning_option=no 8412fi 8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8414fi 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8418 CFLAGS="$xorg_testset_save_CFLAGS" 8419fi 8420 8421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 fi 8425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434_ACEOF 8435if ac_fn_c_try_compile "$LINENO"; then : 8436 xorg_cv_cc_flag_unused_command_line_argument=yes 8437else 8438 xorg_cv_cc_flag_unused_command_line_argument=no 8439fi 8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8441fi 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8445 CFLAGS="$xorg_testset_save_CFLAGS" 8446fi 8447 8448found="no" 8449 8450 if test $found = "no" ; then 8451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8453 fi 8454 8455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8457 fi 8458 8459 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8460 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8462$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8463 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8464 if eval \${$cacheid+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468/* end confdefs.h. */ 8469int i; 8470int 8471main () 8472{ 8473 8474 ; 8475 return 0; 8476} 8477_ACEOF 8478if ac_fn_c_try_link "$LINENO"; then : 8479 eval $cacheid=yes 8480else 8481 eval $cacheid=no 8482fi 8483rm -f core conftest.err conftest.$ac_objext \ 8484 conftest$ac_exeext conftest.$ac_ext 8485fi 8486 8487 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489 8490 eval supported=\$$cacheid 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8492$as_echo "$supported" >&6; } 8493 if test "$supported" = "yes" ; then 8494 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8495 found="yes" 8496 fi 8497 fi 8498 8499 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8500else 8501{ $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 8502$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;} 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516xorg_testset_save_CFLAGS="$CFLAGS" 8517 8518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8526/* end confdefs.h. */ 8527int i; 8528_ACEOF 8529if ac_fn_c_try_compile "$LINENO"; then : 8530 xorg_cv_cc_flag_unknown_warning_option=yes 8531else 8532 xorg_cv_cc_flag_unknown_warning_option=no 8533fi 8534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8535fi 8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8539 CFLAGS="$xorg_testset_save_CFLAGS" 8540fi 8541 8542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8545 fi 8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555_ACEOF 8556if ac_fn_c_try_compile "$LINENO"; then : 8557 xorg_cv_cc_flag_unused_command_line_argument=yes 8558else 8559 xorg_cv_cc_flag_unused_command_line_argument=no 8560fi 8561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8562fi 8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8566 CFLAGS="$xorg_testset_save_CFLAGS" 8567fi 8568 8569found="no" 8570 8571 if test $found = "no" ; then 8572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8574 fi 8575 8576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8578 fi 8579 8580 CFLAGS="$CFLAGS -Wimplicit" 8581 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8583$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8584 cacheid=xorg_cv_cc_flag__Wimplicit 8585 if eval \${$cacheid+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587else 8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8589/* end confdefs.h. */ 8590int i; 8591int 8592main () 8593{ 8594 8595 ; 8596 return 0; 8597} 8598_ACEOF 8599if ac_fn_c_try_link "$LINENO"; then : 8600 eval $cacheid=yes 8601else 8602 eval $cacheid=no 8603fi 8604rm -f core conftest.err conftest.$ac_objext \ 8605 conftest$ac_exeext conftest.$ac_ext 8606fi 8607 8608 8609 CFLAGS="$xorg_testset_save_CFLAGS" 8610 8611 eval supported=\$$cacheid 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8613$as_echo "$supported" >&6; } 8614 if test "$supported" = "yes" ; then 8615 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8616 found="yes" 8617 fi 8618 fi 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634xorg_testset_save_CFLAGS="$CFLAGS" 8635 8636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8641 $as_echo_n "(cached) " >&6 8642else 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645int i; 8646_ACEOF 8647if ac_fn_c_try_compile "$LINENO"; then : 8648 xorg_cv_cc_flag_unknown_warning_option=yes 8649else 8650 xorg_cv_cc_flag_unknown_warning_option=no 8651fi 8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8653fi 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658fi 8659 8660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 fi 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO"; then : 8675 xorg_cv_cc_flag_unused_command_line_argument=yes 8676else 8677 xorg_cv_cc_flag_unused_command_line_argument=no 8678fi 8679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8680fi 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8684 CFLAGS="$xorg_testset_save_CFLAGS" 8685fi 8686 8687found="no" 8688 8689 if test $found = "no" ; then 8690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692 fi 8693 8694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8696 fi 8697 8698 CFLAGS="$CFLAGS -Wnonnull" 8699 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8701$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8702 cacheid=xorg_cv_cc_flag__Wnonnull 8703 if eval \${$cacheid+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707/* end confdefs.h. */ 8708int i; 8709int 8710main () 8711{ 8712 8713 ; 8714 return 0; 8715} 8716_ACEOF 8717if ac_fn_c_try_link "$LINENO"; then : 8718 eval $cacheid=yes 8719else 8720 eval $cacheid=no 8721fi 8722rm -f core conftest.err conftest.$ac_objext \ 8723 conftest$ac_exeext conftest.$ac_ext 8724fi 8725 8726 8727 CFLAGS="$xorg_testset_save_CFLAGS" 8728 8729 eval supported=\$$cacheid 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8731$as_echo "$supported" >&6; } 8732 if test "$supported" = "yes" ; then 8733 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8734 found="yes" 8735 fi 8736 fi 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752xorg_testset_save_CFLAGS="$CFLAGS" 8753 8754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8759 $as_echo_n "(cached) " >&6 8760else 8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762/* end confdefs.h. */ 8763int i; 8764_ACEOF 8765if ac_fn_c_try_compile "$LINENO"; then : 8766 xorg_cv_cc_flag_unknown_warning_option=yes 8767else 8768 xorg_cv_cc_flag_unknown_warning_option=no 8769fi 8770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8771fi 8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8775 CFLAGS="$xorg_testset_save_CFLAGS" 8776fi 8777 8778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 fi 8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791_ACEOF 8792if ac_fn_c_try_compile "$LINENO"; then : 8793 xorg_cv_cc_flag_unused_command_line_argument=yes 8794else 8795 xorg_cv_cc_flag_unused_command_line_argument=no 8796fi 8797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8798fi 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8802 CFLAGS="$xorg_testset_save_CFLAGS" 8803fi 8804 8805found="no" 8806 8807 if test $found = "no" ; then 8808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8810 fi 8811 8812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8814 fi 8815 8816 CFLAGS="$CFLAGS -Winit-self" 8817 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8819$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8820 cacheid=xorg_cv_cc_flag__Winit_self 8821 if eval \${$cacheid+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823else 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826int i; 8827int 8828main () 8829{ 8830 8831 ; 8832 return 0; 8833} 8834_ACEOF 8835if ac_fn_c_try_link "$LINENO"; then : 8836 eval $cacheid=yes 8837else 8838 eval $cacheid=no 8839fi 8840rm -f core conftest.err conftest.$ac_objext \ 8841 conftest$ac_exeext conftest.$ac_ext 8842fi 8843 8844 8845 CFLAGS="$xorg_testset_save_CFLAGS" 8846 8847 eval supported=\$$cacheid 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8849$as_echo "$supported" >&6; } 8850 if test "$supported" = "yes" ; then 8851 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8852 found="yes" 8853 fi 8854 fi 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870xorg_testset_save_CFLAGS="$CFLAGS" 8871 8872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880/* end confdefs.h. */ 8881int i; 8882_ACEOF 8883if ac_fn_c_try_compile "$LINENO"; then : 8884 xorg_cv_cc_flag_unknown_warning_option=yes 8885else 8886 xorg_cv_cc_flag_unknown_warning_option=no 8887fi 8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8889fi 8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8893 CFLAGS="$xorg_testset_save_CFLAGS" 8894fi 8895 8896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8899 fi 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909_ACEOF 8910if ac_fn_c_try_compile "$LINENO"; then : 8911 xorg_cv_cc_flag_unused_command_line_argument=yes 8912else 8913 xorg_cv_cc_flag_unused_command_line_argument=no 8914fi 8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8916fi 8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8920 CFLAGS="$xorg_testset_save_CFLAGS" 8921fi 8922 8923found="no" 8924 8925 if test $found = "no" ; then 8926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8928 fi 8929 8930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8932 fi 8933 8934 CFLAGS="$CFLAGS -Wmain" 8935 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8937$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8938 cacheid=xorg_cv_cc_flag__Wmain 8939 if eval \${$cacheid+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944int i; 8945int 8946main () 8947{ 8948 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953if ac_fn_c_try_link "$LINENO"; then : 8954 eval $cacheid=yes 8955else 8956 eval $cacheid=no 8957fi 8958rm -f core conftest.err conftest.$ac_objext \ 8959 conftest$ac_exeext conftest.$ac_ext 8960fi 8961 8962 8963 CFLAGS="$xorg_testset_save_CFLAGS" 8964 8965 eval supported=\$$cacheid 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8967$as_echo "$supported" >&6; } 8968 if test "$supported" = "yes" ; then 8969 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8970 found="yes" 8971 fi 8972 fi 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988xorg_testset_save_CFLAGS="$CFLAGS" 8989 8990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998/* end confdefs.h. */ 8999int i; 9000_ACEOF 9001if ac_fn_c_try_compile "$LINENO"; then : 9002 xorg_cv_cc_flag_unknown_warning_option=yes 9003else 9004 xorg_cv_cc_flag_unknown_warning_option=no 9005fi 9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9011 CFLAGS="$xorg_testset_save_CFLAGS" 9012fi 9013 9014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 fi 9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026int i; 9027_ACEOF 9028if ac_fn_c_try_compile "$LINENO"; then : 9029 xorg_cv_cc_flag_unused_command_line_argument=yes 9030else 9031 xorg_cv_cc_flag_unused_command_line_argument=no 9032fi 9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9034fi 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9038 CFLAGS="$xorg_testset_save_CFLAGS" 9039fi 9040 9041found="no" 9042 9043 if test $found = "no" ; then 9044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9046 fi 9047 9048 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9050 fi 9051 9052 CFLAGS="$CFLAGS -Wmissing-braces" 9053 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9055$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9056 cacheid=xorg_cv_cc_flag__Wmissing_braces 9057 if eval \${$cacheid+:} false; then : 9058 $as_echo_n "(cached) " >&6 9059else 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061/* end confdefs.h. */ 9062int i; 9063int 9064main () 9065{ 9066 9067 ; 9068 return 0; 9069} 9070_ACEOF 9071if ac_fn_c_try_link "$LINENO"; then : 9072 eval $cacheid=yes 9073else 9074 eval $cacheid=no 9075fi 9076rm -f core conftest.err conftest.$ac_objext \ 9077 conftest$ac_exeext conftest.$ac_ext 9078fi 9079 9080 9081 CFLAGS="$xorg_testset_save_CFLAGS" 9082 9083 eval supported=\$$cacheid 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9085$as_echo "$supported" >&6; } 9086 if test "$supported" = "yes" ; then 9087 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9088 found="yes" 9089 fi 9090 fi 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106xorg_testset_save_CFLAGS="$CFLAGS" 9107 9108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114else 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117int i; 9118_ACEOF 9119if ac_fn_c_try_compile "$LINENO"; then : 9120 xorg_cv_cc_flag_unknown_warning_option=yes 9121else 9122 xorg_cv_cc_flag_unknown_warning_option=no 9123fi 9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9125fi 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130fi 9131 9132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 fi 9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145_ACEOF 9146if ac_fn_c_try_compile "$LINENO"; then : 9147 xorg_cv_cc_flag_unused_command_line_argument=yes 9148else 9149 xorg_cv_cc_flag_unused_command_line_argument=no 9150fi 9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9152fi 9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157fi 9158 9159found="no" 9160 9161 if test $found = "no" ; then 9162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9164 fi 9165 9166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9168 fi 9169 9170 CFLAGS="$CFLAGS -Wsequence-point" 9171 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9173$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9174 cacheid=xorg_cv_cc_flag__Wsequence_point 9175 if eval \${$cacheid+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179/* end confdefs.h. */ 9180int i; 9181int 9182main () 9183{ 9184 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189if ac_fn_c_try_link "$LINENO"; then : 9190 eval $cacheid=yes 9191else 9192 eval $cacheid=no 9193fi 9194rm -f core conftest.err conftest.$ac_objext \ 9195 conftest$ac_exeext conftest.$ac_ext 9196fi 9197 9198 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200 9201 eval supported=\$$cacheid 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9203$as_echo "$supported" >&6; } 9204 if test "$supported" = "yes" ; then 9205 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9206 found="yes" 9207 fi 9208 fi 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224xorg_testset_save_CFLAGS="$CFLAGS" 9225 9226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9231 $as_echo_n "(cached) " >&6 9232else 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234/* end confdefs.h. */ 9235int i; 9236_ACEOF 9237if ac_fn_c_try_compile "$LINENO"; then : 9238 xorg_cv_cc_flag_unknown_warning_option=yes 9239else 9240 xorg_cv_cc_flag_unknown_warning_option=no 9241fi 9242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9243fi 9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9247 CFLAGS="$xorg_testset_save_CFLAGS" 9248fi 9249 9250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9253 fi 9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9261/* end confdefs.h. */ 9262int i; 9263_ACEOF 9264if ac_fn_c_try_compile "$LINENO"; then : 9265 xorg_cv_cc_flag_unused_command_line_argument=yes 9266else 9267 xorg_cv_cc_flag_unused_command_line_argument=no 9268fi 9269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9270fi 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275fi 9276 9277found="no" 9278 9279 if test $found = "no" ; then 9280 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 fi 9283 9284 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9286 fi 9287 9288 CFLAGS="$CFLAGS -Wreturn-type" 9289 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9291$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9292 cacheid=xorg_cv_cc_flag__Wreturn_type 9293 if eval \${$cacheid+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298int i; 9299int 9300main () 9301{ 9302 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307if ac_fn_c_try_link "$LINENO"; then : 9308 eval $cacheid=yes 9309else 9310 eval $cacheid=no 9311fi 9312rm -f core conftest.err conftest.$ac_objext \ 9313 conftest$ac_exeext conftest.$ac_ext 9314fi 9315 9316 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318 9319 eval supported=\$$cacheid 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9321$as_echo "$supported" >&6; } 9322 if test "$supported" = "yes" ; then 9323 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9324 found="yes" 9325 fi 9326 fi 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342xorg_testset_save_CFLAGS="$CFLAGS" 9343 9344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353int i; 9354_ACEOF 9355if ac_fn_c_try_compile "$LINENO"; then : 9356 xorg_cv_cc_flag_unknown_warning_option=yes 9357else 9358 xorg_cv_cc_flag_unknown_warning_option=no 9359fi 9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9361fi 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366fi 9367 9368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379/* end confdefs.h. */ 9380int i; 9381_ACEOF 9382if ac_fn_c_try_compile "$LINENO"; then : 9383 xorg_cv_cc_flag_unused_command_line_argument=yes 9384else 9385 xorg_cv_cc_flag_unused_command_line_argument=no 9386fi 9387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9388fi 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393fi 9394 9395found="no" 9396 9397 if test $found = "no" ; then 9398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9400 fi 9401 9402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9404 fi 9405 9406 CFLAGS="$CFLAGS -Wtrigraphs" 9407 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9409$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9410 cacheid=xorg_cv_cc_flag__Wtrigraphs 9411 if eval \${$cacheid+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417int 9418main () 9419{ 9420 9421 ; 9422 return 0; 9423} 9424_ACEOF 9425if ac_fn_c_try_link "$LINENO"; then : 9426 eval $cacheid=yes 9427else 9428 eval $cacheid=no 9429fi 9430rm -f core conftest.err conftest.$ac_objext \ 9431 conftest$ac_exeext conftest.$ac_ext 9432fi 9433 9434 9435 CFLAGS="$xorg_testset_save_CFLAGS" 9436 9437 eval supported=\$$cacheid 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9439$as_echo "$supported" >&6; } 9440 if test "$supported" = "yes" ; then 9441 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9442 found="yes" 9443 fi 9444 fi 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460xorg_testset_save_CFLAGS="$CFLAGS" 9461 9462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472_ACEOF 9473if ac_fn_c_try_compile "$LINENO"; then : 9474 xorg_cv_cc_flag_unknown_warning_option=yes 9475else 9476 xorg_cv_cc_flag_unknown_warning_option=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9489 fi 9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int i; 9499_ACEOF 9500if ac_fn_c_try_compile "$LINENO"; then : 9501 xorg_cv_cc_flag_unused_command_line_argument=yes 9502else 9503 xorg_cv_cc_flag_unused_command_line_argument=no 9504fi 9505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9506fi 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9510 CFLAGS="$xorg_testset_save_CFLAGS" 9511fi 9512 9513found="no" 9514 9515 if test $found = "no" ; then 9516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9518 fi 9519 9520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9522 fi 9523 9524 CFLAGS="$CFLAGS -Warray-bounds" 9525 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9527$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9528 cacheid=xorg_cv_cc_flag__Warray_bounds 9529 if eval \${$cacheid+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535int 9536main () 9537{ 9538 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543if ac_fn_c_try_link "$LINENO"; then : 9544 eval $cacheid=yes 9545else 9546 eval $cacheid=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext \ 9549 conftest$ac_exeext conftest.$ac_ext 9550fi 9551 9552 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554 9555 eval supported=\$$cacheid 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9557$as_echo "$supported" >&6; } 9558 if test "$supported" = "yes" ; then 9559 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9560 found="yes" 9561 fi 9562 fi 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578xorg_testset_save_CFLAGS="$CFLAGS" 9579 9580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588/* end confdefs.h. */ 9589int i; 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO"; then : 9592 xorg_cv_cc_flag_unknown_warning_option=yes 9593else 9594 xorg_cv_cc_flag_unknown_warning_option=no 9595fi 9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9597fi 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602fi 9603 9604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617_ACEOF 9618if ac_fn_c_try_compile "$LINENO"; then : 9619 xorg_cv_cc_flag_unused_command_line_argument=yes 9620else 9621 xorg_cv_cc_flag_unused_command_line_argument=no 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9624fi 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9628 CFLAGS="$xorg_testset_save_CFLAGS" 9629fi 9630 9631found="no" 9632 9633 if test $found = "no" ; then 9634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9636 fi 9637 9638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9640 fi 9641 9642 CFLAGS="$CFLAGS -Wwrite-strings" 9643 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9645$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9646 cacheid=xorg_cv_cc_flag__Wwrite_strings 9647 if eval \${$cacheid+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653int 9654main () 9655{ 9656 9657 ; 9658 return 0; 9659} 9660_ACEOF 9661if ac_fn_c_try_link "$LINENO"; then : 9662 eval $cacheid=yes 9663else 9664 eval $cacheid=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext \ 9667 conftest$ac_exeext conftest.$ac_ext 9668fi 9669 9670 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672 9673 eval supported=\$$cacheid 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675$as_echo "$supported" >&6; } 9676 if test "$supported" = "yes" ; then 9677 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9678 found="yes" 9679 fi 9680 fi 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696xorg_testset_save_CFLAGS="$CFLAGS" 9697 9698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704else 9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706/* end confdefs.h. */ 9707int i; 9708_ACEOF 9709if ac_fn_c_try_compile "$LINENO"; then : 9710 xorg_cv_cc_flag_unknown_warning_option=yes 9711else 9712 xorg_cv_cc_flag_unknown_warning_option=no 9713fi 9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9715fi 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9719 CFLAGS="$xorg_testset_save_CFLAGS" 9720fi 9721 9722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9725 fi 9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734int i; 9735_ACEOF 9736if ac_fn_c_try_compile "$LINENO"; then : 9737 xorg_cv_cc_flag_unused_command_line_argument=yes 9738else 9739 xorg_cv_cc_flag_unused_command_line_argument=no 9740fi 9741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9742fi 9743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9746 CFLAGS="$xorg_testset_save_CFLAGS" 9747fi 9748 9749found="no" 9750 9751 if test $found = "no" ; then 9752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 fi 9755 9756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9758 fi 9759 9760 CFLAGS="$CFLAGS -Waddress" 9761 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9763$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9764 cacheid=xorg_cv_cc_flag__Waddress 9765 if eval \${$cacheid+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770int i; 9771int 9772main () 9773{ 9774 9775 ; 9776 return 0; 9777} 9778_ACEOF 9779if ac_fn_c_try_link "$LINENO"; then : 9780 eval $cacheid=yes 9781else 9782 eval $cacheid=no 9783fi 9784rm -f core conftest.err conftest.$ac_objext \ 9785 conftest$ac_exeext conftest.$ac_ext 9786fi 9787 9788 9789 CFLAGS="$xorg_testset_save_CFLAGS" 9790 9791 eval supported=\$$cacheid 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9793$as_echo "$supported" >&6; } 9794 if test "$supported" = "yes" ; then 9795 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9796 found="yes" 9797 fi 9798 fi 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814xorg_testset_save_CFLAGS="$CFLAGS" 9815 9816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824/* end confdefs.h. */ 9825int i; 9826_ACEOF 9827if ac_fn_c_try_compile "$LINENO"; then : 9828 xorg_cv_cc_flag_unknown_warning_option=yes 9829else 9830 xorg_cv_cc_flag_unknown_warning_option=no 9831fi 9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9833fi 9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9837 CFLAGS="$xorg_testset_save_CFLAGS" 9838fi 9839 9840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 fi 9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853_ACEOF 9854if ac_fn_c_try_compile "$LINENO"; then : 9855 xorg_cv_cc_flag_unused_command_line_argument=yes 9856else 9857 xorg_cv_cc_flag_unused_command_line_argument=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9860fi 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9864 CFLAGS="$xorg_testset_save_CFLAGS" 9865fi 9866 9867found="no" 9868 9869 if test $found = "no" ; then 9870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9872 fi 9873 9874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9876 fi 9877 9878 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9879 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9881$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9882 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9883 if eval \${$cacheid+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888int i; 9889int 9890main () 9891{ 9892 9893 ; 9894 return 0; 9895} 9896_ACEOF 9897if ac_fn_c_try_link "$LINENO"; then : 9898 eval $cacheid=yes 9899else 9900 eval $cacheid=no 9901fi 9902rm -f core conftest.err conftest.$ac_objext \ 9903 conftest$ac_exeext conftest.$ac_ext 9904fi 9905 9906 9907 CFLAGS="$xorg_testset_save_CFLAGS" 9908 9909 eval supported=\$$cacheid 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9911$as_echo "$supported" >&6; } 9912 if test "$supported" = "yes" ; then 9913 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9914 found="yes" 9915 fi 9916 fi 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932xorg_testset_save_CFLAGS="$CFLAGS" 9933 9934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942/* end confdefs.h. */ 9943int i; 9944_ACEOF 9945if ac_fn_c_try_compile "$LINENO"; then : 9946 xorg_cv_cc_flag_unknown_warning_option=yes 9947else 9948 xorg_cv_cc_flag_unknown_warning_option=no 9949fi 9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9951fi 9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9955 CFLAGS="$xorg_testset_save_CFLAGS" 9956fi 9957 9958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 fi 9962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970int i; 9971_ACEOF 9972if ac_fn_c_try_compile "$LINENO"; then : 9973 xorg_cv_cc_flag_unused_command_line_argument=yes 9974else 9975 xorg_cv_cc_flag_unused_command_line_argument=no 9976fi 9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9978fi 9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983fi 9984 9985found="no" 9986 9987 if test $found = "no" ; then 9988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9990 fi 9991 9992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9994 fi 9995 9996 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9997 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9999$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10000 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10001 if eval \${$cacheid+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006int i; 10007int 10008main () 10009{ 10010 10011 ; 10012 return 0; 10013} 10014_ACEOF 10015if ac_fn_c_try_link "$LINENO"; then : 10016 eval $cacheid=yes 10017else 10018 eval $cacheid=no 10019fi 10020rm -f core conftest.err conftest.$ac_objext \ 10021 conftest$ac_exeext conftest.$ac_ext 10022fi 10023 10024 10025 CFLAGS="$xorg_testset_save_CFLAGS" 10026 10027 eval supported=\$$cacheid 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10029$as_echo "$supported" >&6; } 10030 if test "$supported" = "yes" ; then 10031 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10032 found="yes" 10033 fi 10034 fi 10035 10036 10037fi 10038 10039 10040 10041 10042 10043 10044 10045 CWARNFLAGS="$BASE_CFLAGS" 10046 if test "x$GCC" = xyes ; then 10047 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10048 fi 10049 10050 10051 10052 10053 10054 10055 10056 10057# Check whether --enable-strict-compilation was given. 10058if test "${enable_strict_compilation+set}" = set; then : 10059 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10060else 10061 STRICT_COMPILE=no 10062fi 10063 10064 10065 10066 10067 10068 10069STRICT_CFLAGS="" 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083xorg_testset_save_CFLAGS="$CFLAGS" 10084 10085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094int i; 10095_ACEOF 10096if ac_fn_c_try_compile "$LINENO"; then : 10097 xorg_cv_cc_flag_unknown_warning_option=yes 10098else 10099 xorg_cv_cc_flag_unknown_warning_option=no 10100fi 10101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10102fi 10103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10106 CFLAGS="$xorg_testset_save_CFLAGS" 10107fi 10108 10109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10112 fi 10113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122_ACEOF 10123if ac_fn_c_try_compile "$LINENO"; then : 10124 xorg_cv_cc_flag_unused_command_line_argument=yes 10125else 10126 xorg_cv_cc_flag_unused_command_line_argument=no 10127fi 10128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10129fi 10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10133 CFLAGS="$xorg_testset_save_CFLAGS" 10134fi 10135 10136found="no" 10137 10138 if test $found = "no" ; then 10139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10141 fi 10142 10143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10145 fi 10146 10147 CFLAGS="$CFLAGS -pedantic" 10148 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10150$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10151 cacheid=xorg_cv_cc_flag__pedantic 10152 if eval \${$cacheid+:} false; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157int i; 10158int 10159main () 10160{ 10161 10162 ; 10163 return 0; 10164} 10165_ACEOF 10166if ac_fn_c_try_link "$LINENO"; then : 10167 eval $cacheid=yes 10168else 10169 eval $cacheid=no 10170fi 10171rm -f core conftest.err conftest.$ac_objext \ 10172 conftest$ac_exeext conftest.$ac_ext 10173fi 10174 10175 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177 10178 eval supported=\$$cacheid 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10180$as_echo "$supported" >&6; } 10181 if test "$supported" = "yes" ; then 10182 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10183 found="yes" 10184 fi 10185 fi 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201xorg_testset_save_CFLAGS="$CFLAGS" 10202 10203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10208 $as_echo_n "(cached) " >&6 10209else 10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10211/* end confdefs.h. */ 10212int i; 10213_ACEOF 10214if ac_fn_c_try_compile "$LINENO"; then : 10215 xorg_cv_cc_flag_unknown_warning_option=yes 10216else 10217 xorg_cv_cc_flag_unknown_warning_option=no 10218fi 10219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10220fi 10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225fi 10226 10227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240_ACEOF 10241if ac_fn_c_try_compile "$LINENO"; then : 10242 xorg_cv_cc_flag_unused_command_line_argument=yes 10243else 10244 xorg_cv_cc_flag_unused_command_line_argument=no 10245fi 10246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10247fi 10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252fi 10253 10254found="no" 10255 10256 if test $found = "no" ; then 10257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10259 fi 10260 10261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10263 fi 10264 10265 CFLAGS="$CFLAGS -Werror" 10266 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10268$as_echo_n "checking if $CC supports -Werror... " >&6; } 10269 cacheid=xorg_cv_cc_flag__Werror 10270 if eval \${$cacheid+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275int i; 10276int 10277main () 10278{ 10279 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_c_try_link "$LINENO"; then : 10285 eval $cacheid=yes 10286else 10287 eval $cacheid=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext \ 10290 conftest$ac_exeext conftest.$ac_ext 10291fi 10292 10293 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295 10296 eval supported=\$$cacheid 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10298$as_echo "$supported" >&6; } 10299 if test "$supported" = "yes" ; then 10300 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10301 found="yes" 10302 fi 10303 fi 10304 10305 if test $found = "no" ; then 10306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10308 fi 10309 10310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10312 fi 10313 10314 CFLAGS="$CFLAGS -errwarn" 10315 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10317$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10318 cacheid=xorg_cv_cc_flag__errwarn 10319 if eval \${$cacheid+:} false; then : 10320 $as_echo_n "(cached) " >&6 10321else 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323/* end confdefs.h. */ 10324int i; 10325int 10326main () 10327{ 10328 10329 ; 10330 return 0; 10331} 10332_ACEOF 10333if ac_fn_c_try_link "$LINENO"; then : 10334 eval $cacheid=yes 10335else 10336 eval $cacheid=no 10337fi 10338rm -f core conftest.err conftest.$ac_objext \ 10339 conftest$ac_exeext conftest.$ac_ext 10340fi 10341 10342 10343 CFLAGS="$xorg_testset_save_CFLAGS" 10344 10345 eval supported=\$$cacheid 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10347$as_echo "$supported" >&6; } 10348 if test "$supported" = "yes" ; then 10349 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10350 found="yes" 10351 fi 10352 fi 10353 10354 10355 10356# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10357# activate it with -Werror, so we add it here explicitly. 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371xorg_testset_save_CFLAGS="$CFLAGS" 10372 10373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10378 $as_echo_n "(cached) " >&6 10379else 10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10381/* end confdefs.h. */ 10382int i; 10383_ACEOF 10384if ac_fn_c_try_compile "$LINENO"; then : 10385 xorg_cv_cc_flag_unknown_warning_option=yes 10386else 10387 xorg_cv_cc_flag_unknown_warning_option=no 10388fi 10389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10390fi 10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10394 CFLAGS="$xorg_testset_save_CFLAGS" 10395fi 10396 10397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 fi 10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10405 $as_echo_n "(cached) " >&6 10406else 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409int i; 10410_ACEOF 10411if ac_fn_c_try_compile "$LINENO"; then : 10412 xorg_cv_cc_flag_unused_command_line_argument=yes 10413else 10414 xorg_cv_cc_flag_unused_command_line_argument=no 10415fi 10416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10417fi 10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10421 CFLAGS="$xorg_testset_save_CFLAGS" 10422fi 10423 10424found="no" 10425 10426 if test $found = "no" ; then 10427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10429 fi 10430 10431 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10433 fi 10434 10435 CFLAGS="$CFLAGS -Werror=attributes" 10436 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10438$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10439 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10440 if eval \${$cacheid+:} false; then : 10441 $as_echo_n "(cached) " >&6 10442else 10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10444/* end confdefs.h. */ 10445int i; 10446int 10447main () 10448{ 10449 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454if ac_fn_c_try_link "$LINENO"; then : 10455 eval $cacheid=yes 10456else 10457 eval $cacheid=no 10458fi 10459rm -f core conftest.err conftest.$ac_objext \ 10460 conftest$ac_exeext conftest.$ac_ext 10461fi 10462 10463 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465 10466 eval supported=\$$cacheid 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10468$as_echo "$supported" >&6; } 10469 if test "$supported" = "yes" ; then 10470 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10471 found="yes" 10472 fi 10473 fi 10474 10475 10476 10477if test "x$STRICT_COMPILE" = "xyes"; then 10478 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10479 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10480fi 10481 10482 10483 10484 10485 10486 10487cat >>confdefs.h <<_ACEOF 10488#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10489_ACEOF 10490 10491 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10492 if test "x$PVM" = "x"; then 10493 PVM="0" 10494 fi 10495 10496cat >>confdefs.h <<_ACEOF 10497#define PACKAGE_VERSION_MINOR $PVM 10498_ACEOF 10499 10500 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10501 if test "x$PVP" = "x"; then 10502 PVP="0" 10503 fi 10504 10505cat >>confdefs.h <<_ACEOF 10506#define PACKAGE_VERSION_PATCHLEVEL $PVP 10507_ACEOF 10508 10509 10510 10511CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10512mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10513|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10514echo 'git directory not found: installing possibly empty changelog.' >&2)" 10515 10516 10517 10518 10519macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10520INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10521mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10522|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10523echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10524 10525 10526 10527 10528 10529 10530if test x$APP_MAN_SUFFIX = x ; then 10531 APP_MAN_SUFFIX=1 10532fi 10533if test x$APP_MAN_DIR = x ; then 10534 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10535fi 10536 10537if test x$LIB_MAN_SUFFIX = x ; then 10538 LIB_MAN_SUFFIX=3 10539fi 10540if test x$LIB_MAN_DIR = x ; then 10541 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10542fi 10543 10544if test x$FILE_MAN_SUFFIX = x ; then 10545 case $host_os in 10546 solaris*) FILE_MAN_SUFFIX=4 ;; 10547 *) FILE_MAN_SUFFIX=5 ;; 10548 esac 10549fi 10550if test x$FILE_MAN_DIR = x ; then 10551 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10552fi 10553 10554if test x$MISC_MAN_SUFFIX = x ; then 10555 case $host_os in 10556 solaris*) MISC_MAN_SUFFIX=5 ;; 10557 *) MISC_MAN_SUFFIX=7 ;; 10558 esac 10559fi 10560if test x$MISC_MAN_DIR = x ; then 10561 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10562fi 10563 10564if test x$DRIVER_MAN_SUFFIX = x ; then 10565 case $host_os in 10566 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10567 *) DRIVER_MAN_SUFFIX=4 ;; 10568 esac 10569fi 10570if test x$DRIVER_MAN_DIR = x ; then 10571 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10572fi 10573 10574if test x$ADMIN_MAN_SUFFIX = x ; then 10575 case $host_os in 10576 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10577 *) ADMIN_MAN_SUFFIX=8 ;; 10578 esac 10579fi 10580if test x$ADMIN_MAN_DIR = x ; then 10581 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10582fi 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598XORG_MAN_PAGE="X Version 11" 10599 10600MAN_SUBSTS="\ 10601 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10602 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10603 -e 's|__xservername__|Xorg|g' \ 10604 -e 's|__xconfigfile__|xorg.conf|g' \ 10605 -e 's|__projectroot__|\$(prefix)|g' \ 10606 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10607 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10608 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10609 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10610 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10611 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10612 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10613 10614 10615 10616# Check whether --enable-silent-rules was given. 10617if test "${enable_silent_rules+set}" = set; then : 10618 enableval=$enable_silent_rules; 10619fi 10620 10621case $enable_silent_rules in # ((( 10622 yes) AM_DEFAULT_VERBOSITY=0;; 10623 no) AM_DEFAULT_VERBOSITY=1;; 10624 *) AM_DEFAULT_VERBOSITY=0;; 10625esac 10626am_make=${MAKE-make} 10627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10628$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10629if ${am_cv_make_support_nested_variables+:} false; then : 10630 $as_echo_n "(cached) " >&6 10631else 10632 if $as_echo 'TRUE=$(BAR$(V)) 10633BAR0=false 10634BAR1=true 10635V=1 10636am__doit: 10637 @$(TRUE) 10638.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10639 am_cv_make_support_nested_variables=yes 10640else 10641 am_cv_make_support_nested_variables=no 10642fi 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10645$as_echo "$am_cv_make_support_nested_variables" >&6; } 10646if test $am_cv_make_support_nested_variables = yes; then 10647 AM_V='$(V)' 10648 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10649else 10650 AM_V=$AM_DEFAULT_VERBOSITY 10651 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10652fi 10653AM_BACKSLASH='\' 10654 10655 10656 10657for ac_header in wchar.h wctype.h langinfo.h 10658do : 10659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10660ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10662 cat >>confdefs.h <<_ACEOF 10663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10664_ACEOF 10665 10666fi 10667 10668done 10669 10670 10671# Checks for pkg-config packages 10672 10673pkg_failed=no 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5 10675$as_echo_n "checking for XPROP... " >&6; } 10676 10677if test -n "$XPROP_CFLAGS"; then 10678 pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS" 10679 elif test -n "$PKG_CONFIG"; then 10680 if test -n "$PKG_CONFIG" && \ 10681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 10682 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 10683 ac_status=$? 10684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10685 test $ac_status = 0; }; then 10686 pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 10687else 10688 pkg_failed=yes 10689fi 10690 else 10691 pkg_failed=untried 10692fi 10693if test -n "$XPROP_LIBS"; then 10694 pkg_cv_XPROP_LIBS="$XPROP_LIBS" 10695 elif test -n "$PKG_CONFIG"; then 10696 if test -n "$PKG_CONFIG" && \ 10697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 10698 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 10699 ac_status=$? 10700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10701 test $ac_status = 0; }; then 10702 pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 10703else 10704 pkg_failed=yes 10705fi 10706 else 10707 pkg_failed=untried 10708fi 10709 10710 10711 10712if test $pkg_failed = yes; then 10713 10714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10715 _pkg_short_errors_supported=yes 10716else 10717 _pkg_short_errors_supported=no 10718fi 10719 if test $_pkg_short_errors_supported = yes; then 10720 XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1` 10721 else 10722 XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1` 10723 fi 10724 # Put the nasty error message in config.log where it belongs 10725 echo "$XPROP_PKG_ERRORS" >&5 10726 10727 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 10728 10729$XPROP_PKG_ERRORS 10730 10731Consider adjusting the PKG_CONFIG_PATH environment variable if you 10732installed software in a non-standard prefix. 10733 10734Alternatively, you may set the environment variables XPROP_CFLAGS 10735and XPROP_LIBS to avoid the need to call pkg-config. 10736See the pkg-config man page for more details. 10737" "$LINENO" 5 10738elif test $pkg_failed = untried; then 10739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10741as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10742is in your PATH or set the PKG_CONFIG environment variable to the full 10743path to pkg-config. 10744 10745Alternatively, you may set the environment variables XPROP_CFLAGS 10746and XPROP_LIBS to avoid the need to call pkg-config. 10747See the pkg-config man page for more details. 10748 10749To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10750See \`config.log' for more details" "$LINENO" 5; } 10751else 10752 XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS 10753 XPROP_LIBS=$pkg_cv_XPROP_LIBS 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10755$as_echo "yes" >&6; } 10756 : 10757fi 10758 10759 10760 10761 10762 10763 10764# Check whether --with-lint was given. 10765if test "${with_lint+set}" = set; then : 10766 withval=$with_lint; use_lint=$withval 10767else 10768 use_lint=no 10769fi 10770 10771 10772# Obtain platform specific info like program name and options 10773# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10774case $host_os in 10775 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10776 lint_name=splint 10777 lint_options="-badflag" 10778 ;; 10779 *freebsd* | *netbsd*) 10780 lint_name=lint 10781 lint_options="-u -b" 10782 ;; 10783 *solaris*) 10784 lint_name=lint 10785 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10786 ;; 10787esac 10788 10789# Test for the presence of the program (either guessed by the code or spelled out by the user) 10790if test "x$use_lint" = x"yes" ; then 10791 # Extract the first word of "$lint_name", so it can be a program name with args. 10792set dummy $lint_name; ac_word=$2 10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10794$as_echo_n "checking for $ac_word... " >&6; } 10795if ${ac_cv_path_LINT+:} false; then : 10796 $as_echo_n "(cached) " >&6 10797else 10798 case $LINT in 10799 [\\/]* | ?:[\\/]*) 10800 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10801 ;; 10802 *) 10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10804for as_dir in $PATH 10805do 10806 IFS=$as_save_IFS 10807 test -z "$as_dir" && as_dir=. 10808 for ac_exec_ext in '' $ac_executable_extensions; do 10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10810 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10812 break 2 10813 fi 10814done 10815 done 10816IFS=$as_save_IFS 10817 10818 ;; 10819esac 10820fi 10821LINT=$ac_cv_path_LINT 10822if test -n "$LINT"; then 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10824$as_echo "$LINT" >&6; } 10825else 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10827$as_echo "no" >&6; } 10828fi 10829 10830 10831 if test "x$LINT" = "x"; then 10832 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10833 fi 10834elif test "x$use_lint" = x"no" ; then 10835 if test "x$LINT" != "x"; then 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10837$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10838 fi 10839else 10840 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10841fi 10842 10843# User supplied flags override default flags 10844if test "x$LINT_FLAGS" != "x"; then 10845 lint_options=$LINT_FLAGS 10846fi 10847 10848LINT_FLAGS=$lint_options 10849 10850 if test "x$LINT" != x; then 10851 LINT_TRUE= 10852 LINT_FALSE='#' 10853else 10854 LINT_TRUE='#' 10855 LINT_FALSE= 10856fi 10857 10858 10859 10860 10861ac_config_files="$ac_config_files Makefile man/Makefile" 10862 10863cat >confcache <<\_ACEOF 10864# This file is a shell script that caches the results of configure 10865# tests run on this system so they can be shared between configure 10866# scripts and configure runs, see configure's option --config-cache. 10867# It is not useful on other systems. If it contains results you don't 10868# want to keep, you may remove or edit it. 10869# 10870# config.status only pays attention to the cache file if you give it 10871# the --recheck option to rerun configure. 10872# 10873# `ac_cv_env_foo' variables (set or unset) will be overridden when 10874# loading this file, other *unset* `ac_cv_foo' will be assigned the 10875# following values. 10876 10877_ACEOF 10878 10879# The following way of writing the cache mishandles newlines in values, 10880# but we know of no workaround that is simple, portable, and efficient. 10881# So, we kill variables containing newlines. 10882# Ultrix sh set writes to stderr and can't be redirected directly, 10883# and sets the high bit in the cache file unless we assign to the vars. 10884( 10885 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10886 eval ac_val=\$$ac_var 10887 case $ac_val in #( 10888 *${as_nl}*) 10889 case $ac_var in #( 10890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10891$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10892 esac 10893 case $ac_var in #( 10894 _ | IFS | as_nl) ;; #( 10895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10896 *) { eval $ac_var=; unset $ac_var;} ;; 10897 esac ;; 10898 esac 10899 done 10900 10901 (set) 2>&1 | 10902 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10903 *${as_nl}ac_space=\ *) 10904 # `set' does not quote correctly, so add quotes: double-quote 10905 # substitution turns \\\\ into \\, and sed turns \\ into \. 10906 sed -n \ 10907 "s/'/'\\\\''/g; 10908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10909 ;; #( 10910 *) 10911 # `set' quotes correctly as required by POSIX, so do not add quotes. 10912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10913 ;; 10914 esac | 10915 sort 10916) | 10917 sed ' 10918 /^ac_cv_env_/b end 10919 t clear 10920 :clear 10921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10922 t end 10923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10924 :end' >>confcache 10925if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10926 if test -w "$cache_file"; then 10927 if test "x$cache_file" != "x/dev/null"; then 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10929$as_echo "$as_me: updating cache $cache_file" >&6;} 10930 if test ! -f "$cache_file" || test -h "$cache_file"; then 10931 cat confcache >"$cache_file" 10932 else 10933 case $cache_file in #( 10934 */* | ?:*) 10935 mv -f confcache "$cache_file"$$ && 10936 mv -f "$cache_file"$$ "$cache_file" ;; #( 10937 *) 10938 mv -f confcache "$cache_file" ;; 10939 esac 10940 fi 10941 fi 10942 else 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10944$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10945 fi 10946fi 10947rm -f confcache 10948 10949test "x$prefix" = xNONE && prefix=$ac_default_prefix 10950# Let make expand exec_prefix. 10951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10952 10953DEFS=-DHAVE_CONFIG_H 10954 10955ac_libobjs= 10956ac_ltlibobjs= 10957U= 10958for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10959 # 1. Remove the extension, and $U if already installed. 10960 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10961 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10963 # will be set to the directory where LIBOBJS objects are built. 10964 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10965 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10966done 10967LIBOBJS=$ac_libobjs 10968 10969LTLIBOBJS=$ac_ltlibobjs 10970 10971 10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10973$as_echo_n "checking that generated files are newer than configure... " >&6; } 10974 if test -n "$am_sleep_pid"; then 10975 # Hide warnings about reused PIDs. 10976 wait $am_sleep_pid 2>/dev/null 10977 fi 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10979$as_echo "done" >&6; } 10980 if test -n "$EXEEXT"; then 10981 am__EXEEXT_TRUE= 10982 am__EXEEXT_FALSE='#' 10983else 10984 am__EXEEXT_TRUE='#' 10985 am__EXEEXT_FALSE= 10986fi 10987 10988if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10989 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10990Usually this means the macro was only invoked conditionally." "$LINENO" 5 10991fi 10992if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10993 as_fn_error $? "conditional \"AMDEP\" was never defined. 10994Usually this means the macro was only invoked conditionally." "$LINENO" 5 10995fi 10996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10997 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10998Usually this means the macro was only invoked conditionally." "$LINENO" 5 10999fi 11000if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11001 as_fn_error $? "conditional \"LINT\" was never defined. 11002Usually this means the macro was only invoked conditionally." "$LINENO" 5 11003fi 11004 11005: "${CONFIG_STATUS=./config.status}" 11006ac_write_fail=0 11007ac_clean_files_save=$ac_clean_files 11008ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11010$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11011as_write_fail=0 11012cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11013#! $SHELL 11014# Generated by $as_me. 11015# Run this file to recreate the current configuration. 11016# Compiler output produced by configure, useful for debugging 11017# configure, is in config.log if it exists. 11018 11019debug=false 11020ac_cs_recheck=false 11021ac_cs_silent=false 11022 11023SHELL=\${CONFIG_SHELL-$SHELL} 11024export SHELL 11025_ASEOF 11026cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11027## -------------------- ## 11028## M4sh Initialization. ## 11029## -------------------- ## 11030 11031# Be more Bourne compatible 11032DUALCASE=1; export DUALCASE # for MKS sh 11033if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11034 emulate sh 11035 NULLCMD=: 11036 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11037 # is contrary to our usage. Disable this feature. 11038 alias -g '${1+"$@"}'='"$@"' 11039 setopt NO_GLOB_SUBST 11040else 11041 case `(set -o) 2>/dev/null` in #( 11042 *posix*) : 11043 set -o posix ;; #( 11044 *) : 11045 ;; 11046esac 11047fi 11048 11049 11050as_nl=' 11051' 11052export as_nl 11053# Printing a long string crashes Solaris 7 /usr/bin/printf. 11054as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11055as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11056as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11057# Prefer a ksh shell builtin over an external printf program on Solaris, 11058# but without wasting forks for bash or zsh. 11059if test -z "$BASH_VERSION$ZSH_VERSION" \ 11060 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11061 as_echo='print -r --' 11062 as_echo_n='print -rn --' 11063elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11064 as_echo='printf %s\n' 11065 as_echo_n='printf %s' 11066else 11067 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11068 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11069 as_echo_n='/usr/ucb/echo -n' 11070 else 11071 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11072 as_echo_n_body='eval 11073 arg=$1; 11074 case $arg in #( 11075 *"$as_nl"*) 11076 expr "X$arg" : "X\\(.*\\)$as_nl"; 11077 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11078 esac; 11079 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11080 ' 11081 export as_echo_n_body 11082 as_echo_n='sh -c $as_echo_n_body as_echo' 11083 fi 11084 export as_echo_body 11085 as_echo='sh -c $as_echo_body as_echo' 11086fi 11087 11088# The user is always right. 11089if test "${PATH_SEPARATOR+set}" != set; then 11090 PATH_SEPARATOR=: 11091 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11092 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11093 PATH_SEPARATOR=';' 11094 } 11095fi 11096 11097 11098# IFS 11099# We need space, tab and new line, in precisely that order. Quoting is 11100# there to prevent editors from complaining about space-tab. 11101# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11102# splitting by setting IFS to empty value.) 11103IFS=" "" $as_nl" 11104 11105# Find who we are. Look in the path if we contain no directory separator. 11106as_myself= 11107case $0 in #(( 11108 *[\\/]* ) as_myself=$0 ;; 11109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11110for as_dir in $PATH 11111do 11112 IFS=$as_save_IFS 11113 test -z "$as_dir" && as_dir=. 11114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11115 done 11116IFS=$as_save_IFS 11117 11118 ;; 11119esac 11120# We did not find ourselves, most probably we were run as `sh COMMAND' 11121# in which case we are not to be found in the path. 11122if test "x$as_myself" = x; then 11123 as_myself=$0 11124fi 11125if test ! -f "$as_myself"; then 11126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11127 exit 1 11128fi 11129 11130# Unset variables that we do not need and which cause bugs (e.g. in 11131# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11132# suppresses any "Segmentation fault" message there. '((' could 11133# trigger a bug in pdksh 5.2.14. 11134for as_var in BASH_ENV ENV MAIL MAILPATH 11135do eval test x\${$as_var+set} = xset \ 11136 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11137done 11138PS1='$ ' 11139PS2='> ' 11140PS4='+ ' 11141 11142# NLS nuisances. 11143LC_ALL=C 11144export LC_ALL 11145LANGUAGE=C 11146export LANGUAGE 11147 11148# CDPATH. 11149(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11150 11151 11152# as_fn_error STATUS ERROR [LINENO LOG_FD] 11153# ---------------------------------------- 11154# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11155# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11156# script with STATUS, using 1 if that was 0. 11157as_fn_error () 11158{ 11159 as_status=$1; test $as_status -eq 0 && as_status=1 11160 if test "$4"; then 11161 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11162 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11163 fi 11164 $as_echo "$as_me: error: $2" >&2 11165 as_fn_exit $as_status 11166} # as_fn_error 11167 11168 11169# as_fn_set_status STATUS 11170# ----------------------- 11171# Set $? to STATUS, without forking. 11172as_fn_set_status () 11173{ 11174 return $1 11175} # as_fn_set_status 11176 11177# as_fn_exit STATUS 11178# ----------------- 11179# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11180as_fn_exit () 11181{ 11182 set +e 11183 as_fn_set_status $1 11184 exit $1 11185} # as_fn_exit 11186 11187# as_fn_unset VAR 11188# --------------- 11189# Portably unset VAR. 11190as_fn_unset () 11191{ 11192 { eval $1=; unset $1;} 11193} 11194as_unset=as_fn_unset 11195# as_fn_append VAR VALUE 11196# ---------------------- 11197# Append the text in VALUE to the end of the definition contained in VAR. Take 11198# advantage of any shell optimizations that allow amortized linear growth over 11199# repeated appends, instead of the typical quadratic growth present in naive 11200# implementations. 11201if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11202 eval 'as_fn_append () 11203 { 11204 eval $1+=\$2 11205 }' 11206else 11207 as_fn_append () 11208 { 11209 eval $1=\$$1\$2 11210 } 11211fi # as_fn_append 11212 11213# as_fn_arith ARG... 11214# ------------------ 11215# Perform arithmetic evaluation on the ARGs, and store the result in the 11216# global $as_val. Take advantage of shells that can avoid forks. The arguments 11217# must be portable across $(()) and expr. 11218if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11219 eval 'as_fn_arith () 11220 { 11221 as_val=$(( $* )) 11222 }' 11223else 11224 as_fn_arith () 11225 { 11226 as_val=`expr "$@" || test $? -eq 1` 11227 } 11228fi # as_fn_arith 11229 11230 11231if expr a : '\(a\)' >/dev/null 2>&1 && 11232 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11233 as_expr=expr 11234else 11235 as_expr=false 11236fi 11237 11238if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11239 as_basename=basename 11240else 11241 as_basename=false 11242fi 11243 11244if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11245 as_dirname=dirname 11246else 11247 as_dirname=false 11248fi 11249 11250as_me=`$as_basename -- "$0" || 11251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11252 X"$0" : 'X\(//\)$' \| \ 11253 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11254$as_echo X/"$0" | 11255 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11256 s//\1/ 11257 q 11258 } 11259 /^X\/\(\/\/\)$/{ 11260 s//\1/ 11261 q 11262 } 11263 /^X\/\(\/\).*/{ 11264 s//\1/ 11265 q 11266 } 11267 s/.*/./; q'` 11268 11269# Avoid depending upon Character Ranges. 11270as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11271as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11272as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11273as_cr_digits='0123456789' 11274as_cr_alnum=$as_cr_Letters$as_cr_digits 11275 11276ECHO_C= ECHO_N= ECHO_T= 11277case `echo -n x` in #((((( 11278-n*) 11279 case `echo 'xy\c'` in 11280 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11281 xy) ECHO_C='\c';; 11282 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11283 ECHO_T=' ';; 11284 esac;; 11285*) 11286 ECHO_N='-n';; 11287esac 11288 11289rm -f conf$$ conf$$.exe conf$$.file 11290if test -d conf$$.dir; then 11291 rm -f conf$$.dir/conf$$.file 11292else 11293 rm -f conf$$.dir 11294 mkdir conf$$.dir 2>/dev/null 11295fi 11296if (echo >conf$$.file) 2>/dev/null; then 11297 if ln -s conf$$.file conf$$ 2>/dev/null; then 11298 as_ln_s='ln -s' 11299 # ... but there are two gotchas: 11300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11302 # In both cases, we have to default to `cp -p'. 11303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11304 as_ln_s='cp -p' 11305 elif ln conf$$.file conf$$ 2>/dev/null; then 11306 as_ln_s=ln 11307 else 11308 as_ln_s='cp -p' 11309 fi 11310else 11311 as_ln_s='cp -p' 11312fi 11313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11314rmdir conf$$.dir 2>/dev/null 11315 11316 11317# as_fn_mkdir_p 11318# ------------- 11319# Create "$as_dir" as a directory, including parents if necessary. 11320as_fn_mkdir_p () 11321{ 11322 11323 case $as_dir in #( 11324 -*) as_dir=./$as_dir;; 11325 esac 11326 test -d "$as_dir" || eval $as_mkdir_p || { 11327 as_dirs= 11328 while :; do 11329 case $as_dir in #( 11330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11331 *) as_qdir=$as_dir;; 11332 esac 11333 as_dirs="'$as_qdir' $as_dirs" 11334 as_dir=`$as_dirname -- "$as_dir" || 11335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11336 X"$as_dir" : 'X\(//\)[^/]' \| \ 11337 X"$as_dir" : 'X\(//\)$' \| \ 11338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11339$as_echo X"$as_dir" | 11340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11341 s//\1/ 11342 q 11343 } 11344 /^X\(\/\/\)[^/].*/{ 11345 s//\1/ 11346 q 11347 } 11348 /^X\(\/\/\)$/{ 11349 s//\1/ 11350 q 11351 } 11352 /^X\(\/\).*/{ 11353 s//\1/ 11354 q 11355 } 11356 s/.*/./; q'` 11357 test -d "$as_dir" && break 11358 done 11359 test -z "$as_dirs" || eval "mkdir $as_dirs" 11360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11361 11362 11363} # as_fn_mkdir_p 11364if mkdir -p . 2>/dev/null; then 11365 as_mkdir_p='mkdir -p "$as_dir"' 11366else 11367 test -d ./-p && rmdir ./-p 11368 as_mkdir_p=false 11369fi 11370 11371if test -x / >/dev/null 2>&1; then 11372 as_test_x='test -x' 11373else 11374 if ls -dL / >/dev/null 2>&1; then 11375 as_ls_L_option=L 11376 else 11377 as_ls_L_option= 11378 fi 11379 as_test_x=' 11380 eval sh -c '\'' 11381 if test -d "$1"; then 11382 test -d "$1/."; 11383 else 11384 case $1 in #( 11385 -*)set "./$1";; 11386 esac; 11387 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11388 ???[sx]*):;;*)false;;esac;fi 11389 '\'' sh 11390 ' 11391fi 11392as_executable_p=$as_test_x 11393 11394# Sed expression to map a string onto a valid CPP name. 11395as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11396 11397# Sed expression to map a string onto a valid variable name. 11398as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11399 11400 11401exec 6>&1 11402## ----------------------------------- ## 11403## Main body of $CONFIG_STATUS script. ## 11404## ----------------------------------- ## 11405_ASEOF 11406test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11407 11408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11409# Save the log message, to keep $0 and so on meaningful, and to 11410# report actual input values of CONFIG_FILES etc. instead of their 11411# values after options handling. 11412ac_log=" 11413This file was extended by xprop $as_me 1.2.2, which was 11414generated by GNU Autoconf 2.68. Invocation command line was 11415 11416 CONFIG_FILES = $CONFIG_FILES 11417 CONFIG_HEADERS = $CONFIG_HEADERS 11418 CONFIG_LINKS = $CONFIG_LINKS 11419 CONFIG_COMMANDS = $CONFIG_COMMANDS 11420 $ $0 $@ 11421 11422on `(hostname || uname -n) 2>/dev/null | sed 1q` 11423" 11424 11425_ACEOF 11426 11427case $ac_config_files in *" 11428"*) set x $ac_config_files; shift; ac_config_files=$*;; 11429esac 11430 11431case $ac_config_headers in *" 11432"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11433esac 11434 11435 11436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11437# Files that config.status was made for. 11438config_files="$ac_config_files" 11439config_headers="$ac_config_headers" 11440config_commands="$ac_config_commands" 11441 11442_ACEOF 11443 11444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11445ac_cs_usage="\ 11446\`$as_me' instantiates files and other configuration actions 11447from templates according to the current configuration. Unless the files 11448and actions are specified as TAGs, all are instantiated by default. 11449 11450Usage: $0 [OPTION]... [TAG]... 11451 11452 -h, --help print this help, then exit 11453 -V, --version print version number and configuration settings, then exit 11454 --config print configuration, then exit 11455 -q, --quiet, --silent 11456 do not print progress messages 11457 -d, --debug don't remove temporary files 11458 --recheck update $as_me by reconfiguring in the same conditions 11459 --file=FILE[:TEMPLATE] 11460 instantiate the configuration file FILE 11461 --header=FILE[:TEMPLATE] 11462 instantiate the configuration header FILE 11463 11464Configuration files: 11465$config_files 11466 11467Configuration headers: 11468$config_headers 11469 11470Configuration commands: 11471$config_commands 11472 11473Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11474 11475_ACEOF 11476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11477ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11478ac_cs_version="\\ 11479xprop config.status 1.2.2 11480configured by $0, generated by GNU Autoconf 2.68, 11481 with options \\"\$ac_cs_config\\" 11482 11483Copyright (C) 2010 Free Software Foundation, Inc. 11484This config.status script is free software; the Free Software Foundation 11485gives unlimited permission to copy, distribute and modify it." 11486 11487ac_pwd='$ac_pwd' 11488srcdir='$srcdir' 11489INSTALL='$INSTALL' 11490MKDIR_P='$MKDIR_P' 11491AWK='$AWK' 11492test -n "\$AWK" || AWK=awk 11493_ACEOF 11494 11495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11496# The default lists apply if the user does not specify any file. 11497ac_need_defaults=: 11498while test $# != 0 11499do 11500 case $1 in 11501 --*=?*) 11502 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11503 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11504 ac_shift=: 11505 ;; 11506 --*=) 11507 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11508 ac_optarg= 11509 ac_shift=: 11510 ;; 11511 *) 11512 ac_option=$1 11513 ac_optarg=$2 11514 ac_shift=shift 11515 ;; 11516 esac 11517 11518 case $ac_option in 11519 # Handling of the options. 11520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11521 ac_cs_recheck=: ;; 11522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11523 $as_echo "$ac_cs_version"; exit ;; 11524 --config | --confi | --conf | --con | --co | --c ) 11525 $as_echo "$ac_cs_config"; exit ;; 11526 --debug | --debu | --deb | --de | --d | -d ) 11527 debug=: ;; 11528 --file | --fil | --fi | --f ) 11529 $ac_shift 11530 case $ac_optarg in 11531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11532 '') as_fn_error $? "missing file argument" ;; 11533 esac 11534 as_fn_append CONFIG_FILES " '$ac_optarg'" 11535 ac_need_defaults=false;; 11536 --header | --heade | --head | --hea ) 11537 $ac_shift 11538 case $ac_optarg in 11539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11540 esac 11541 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11542 ac_need_defaults=false;; 11543 --he | --h) 11544 # Conflict between --help and --header 11545 as_fn_error $? "ambiguous option: \`$1' 11546Try \`$0 --help' for more information.";; 11547 --help | --hel | -h ) 11548 $as_echo "$ac_cs_usage"; exit ;; 11549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11550 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11551 ac_cs_silent=: ;; 11552 11553 # This is an error. 11554 -*) as_fn_error $? "unrecognized option: \`$1' 11555Try \`$0 --help' for more information." ;; 11556 11557 *) as_fn_append ac_config_targets " $1" 11558 ac_need_defaults=false ;; 11559 11560 esac 11561 shift 11562done 11563 11564ac_configure_extra_args= 11565 11566if $ac_cs_silent; then 11567 exec 6>/dev/null 11568 ac_configure_extra_args="$ac_configure_extra_args --silent" 11569fi 11570 11571_ACEOF 11572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11573if \$ac_cs_recheck; then 11574 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11575 shift 11576 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11577 CONFIG_SHELL='$SHELL' 11578 export CONFIG_SHELL 11579 exec "\$@" 11580fi 11581 11582_ACEOF 11583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11584exec 5>>config.log 11585{ 11586 echo 11587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11588## Running $as_me. ## 11589_ASBOX 11590 $as_echo "$ac_log" 11591} >&5 11592 11593_ACEOF 11594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11595# 11596# INIT-COMMANDS 11597# 11598AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11599 11600_ACEOF 11601 11602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11603 11604# Handling of arguments. 11605for ac_config_target in $ac_config_targets 11606do 11607 case $ac_config_target in 11608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11611 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11612 11613 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11614 esac 11615done 11616 11617 11618# If the user did not use the arguments to specify the items to instantiate, 11619# then the envvar interface is used. Set only those that are not. 11620# We use the long form for the default assignment because of an extremely 11621# bizarre bug on SunOS 4.1.3. 11622if $ac_need_defaults; then 11623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11626fi 11627 11628# Have a temporary directory for convenience. Make it in the build tree 11629# simply because there is no reason against having it here, and in addition, 11630# creating and moving files from /tmp can sometimes cause problems. 11631# Hook for its removal unless debugging. 11632# Note that there is a small window in which the directory will not be cleaned: 11633# after its creation but before its name has been assigned to `$tmp'. 11634$debug || 11635{ 11636 tmp= ac_tmp= 11637 trap 'exit_status=$? 11638 : "${ac_tmp:=$tmp}" 11639 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11640' 0 11641 trap 'as_fn_exit 1' 1 2 13 15 11642} 11643# Create a (secure) tmp directory for tmp files. 11644 11645{ 11646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11647 test -d "$tmp" 11648} || 11649{ 11650 tmp=./conf$$-$RANDOM 11651 (umask 077 && mkdir "$tmp") 11652} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11653ac_tmp=$tmp 11654 11655# Set up the scripts for CONFIG_FILES section. 11656# No need to generate them if there are no CONFIG_FILES. 11657# This happens for instance with `./config.status config.h'. 11658if test -n "$CONFIG_FILES"; then 11659 11660 11661ac_cr=`echo X | tr X '\015'` 11662# On cygwin, bash can eat \r inside `` if the user requested igncr. 11663# But we know of no other shell where ac_cr would be empty at this 11664# point, so we can use a bashism as a fallback. 11665if test "x$ac_cr" = x; then 11666 eval ac_cr=\$\'\\r\' 11667fi 11668ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11669if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11670 ac_cs_awk_cr='\\r' 11671else 11672 ac_cs_awk_cr=$ac_cr 11673fi 11674 11675echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11676_ACEOF 11677 11678 11679{ 11680 echo "cat >conf$$subs.awk <<_ACEOF" && 11681 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11682 echo "_ACEOF" 11683} >conf$$subs.sh || 11684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11685ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11686ac_delim='%!_!# ' 11687for ac_last_try in false false false false false :; do 11688 . ./conf$$subs.sh || 11689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11690 11691 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11692 if test $ac_delim_n = $ac_delim_num; then 11693 break 11694 elif $ac_last_try; then 11695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11696 else 11697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11698 fi 11699done 11700rm -f conf$$subs.sh 11701 11702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11703cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11704_ACEOF 11705sed -n ' 11706h 11707s/^/S["/; s/!.*/"]=/ 11708p 11709g 11710s/^[^!]*!// 11711:repl 11712t repl 11713s/'"$ac_delim"'$// 11714t delim 11715:nl 11716h 11717s/\(.\{148\}\)..*/\1/ 11718t more1 11719s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11720p 11721n 11722b repl 11723:more1 11724s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11725p 11726g 11727s/.\{148\}// 11728t nl 11729:delim 11730h 11731s/\(.\{148\}\)..*/\1/ 11732t more2 11733s/["\\]/\\&/g; s/^/"/; s/$/"/ 11734p 11735b 11736:more2 11737s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11738p 11739g 11740s/.\{148\}// 11741t delim 11742' <conf$$subs.awk | sed ' 11743/^[^""]/{ 11744 N 11745 s/\n// 11746} 11747' >>$CONFIG_STATUS || ac_write_fail=1 11748rm -f conf$$subs.awk 11749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11750_ACAWK 11751cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11752 for (key in S) S_is_set[key] = 1 11753 FS = "" 11754 11755} 11756{ 11757 line = $ 0 11758 nfields = split(line, field, "@") 11759 substed = 0 11760 len = length(field[1]) 11761 for (i = 2; i < nfields; i++) { 11762 key = field[i] 11763 keylen = length(key) 11764 if (S_is_set[key]) { 11765 value = S[key] 11766 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11767 len += length(value) + length(field[++i]) 11768 substed = 1 11769 } else 11770 len += 1 + keylen 11771 } 11772 11773 print line 11774} 11775 11776_ACAWK 11777_ACEOF 11778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11779if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11781else 11782 cat 11783fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11784 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11785_ACEOF 11786 11787# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11788# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11789# trailing colons and then remove the whole line if VPATH becomes empty 11790# (actually we leave an empty line to preserve line numbers). 11791if test "x$srcdir" = x.; then 11792 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11793h 11794s/// 11795s/^/:/ 11796s/[ ]*$/:/ 11797s/:\$(srcdir):/:/g 11798s/:\${srcdir}:/:/g 11799s/:@srcdir@:/:/g 11800s/^:*// 11801s/:*$// 11802x 11803s/\(=[ ]*\).*/\1/ 11804G 11805s/\n// 11806s/^[^=]*=[ ]*$// 11807}' 11808fi 11809 11810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11811fi # test -n "$CONFIG_FILES" 11812 11813# Set up the scripts for CONFIG_HEADERS section. 11814# No need to generate them if there are no CONFIG_HEADERS. 11815# This happens for instance with `./config.status Makefile'. 11816if test -n "$CONFIG_HEADERS"; then 11817cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11818BEGIN { 11819_ACEOF 11820 11821# Transform confdefs.h into an awk script `defines.awk', embedded as 11822# here-document in config.status, that substitutes the proper values into 11823# config.h.in to produce config.h. 11824 11825# Create a delimiter string that does not exist in confdefs.h, to ease 11826# handling of long lines. 11827ac_delim='%!_!# ' 11828for ac_last_try in false false :; do 11829 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11830 if test -z "$ac_tt"; then 11831 break 11832 elif $ac_last_try; then 11833 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11834 else 11835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11836 fi 11837done 11838 11839# For the awk script, D is an array of macro values keyed by name, 11840# likewise P contains macro parameters if any. Preserve backslash 11841# newline sequences. 11842 11843ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11844sed -n ' 11845s/.\{148\}/&'"$ac_delim"'/g 11846t rset 11847:rset 11848s/^[ ]*#[ ]*define[ ][ ]*/ / 11849t def 11850d 11851:def 11852s/\\$// 11853t bsnl 11854s/["\\]/\\&/g 11855s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11856D["\1"]=" \3"/p 11857s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11858d 11859:bsnl 11860s/["\\]/\\&/g 11861s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11862D["\1"]=" \3\\\\\\n"\\/p 11863t cont 11864s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11865t cont 11866d 11867:cont 11868n 11869s/.\{148\}/&'"$ac_delim"'/g 11870t clear 11871:clear 11872s/\\$// 11873t bsnlc 11874s/["\\]/\\&/g; s/^/"/; s/$/"/p 11875d 11876:bsnlc 11877s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11878b cont 11879' <confdefs.h | sed ' 11880s/'"$ac_delim"'/"\\\ 11881"/g' >>$CONFIG_STATUS || ac_write_fail=1 11882 11883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11884 for (key in D) D_is_set[key] = 1 11885 FS = "" 11886} 11887/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11888 line = \$ 0 11889 split(line, arg, " ") 11890 if (arg[1] == "#") { 11891 defundef = arg[2] 11892 mac1 = arg[3] 11893 } else { 11894 defundef = substr(arg[1], 2) 11895 mac1 = arg[2] 11896 } 11897 split(mac1, mac2, "(") #) 11898 macro = mac2[1] 11899 prefix = substr(line, 1, index(line, defundef) - 1) 11900 if (D_is_set[macro]) { 11901 # Preserve the white space surrounding the "#". 11902 print prefix "define", macro P[macro] D[macro] 11903 next 11904 } else { 11905 # Replace #undef with comments. This is necessary, for example, 11906 # in the case of _POSIX_SOURCE, which is predefined and required 11907 # on some systems where configure will not decide to define it. 11908 if (defundef == "undef") { 11909 print "/*", prefix defundef, macro, "*/" 11910 next 11911 } 11912 } 11913} 11914{ print } 11915_ACAWK 11916_ACEOF 11917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11918 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11919fi # test -n "$CONFIG_HEADERS" 11920 11921 11922eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11923shift 11924for ac_tag 11925do 11926 case $ac_tag in 11927 :[FHLC]) ac_mode=$ac_tag; continue;; 11928 esac 11929 case $ac_mode$ac_tag in 11930 :[FHL]*:*);; 11931 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11932 :[FH]-) ac_tag=-:-;; 11933 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11934 esac 11935 ac_save_IFS=$IFS 11936 IFS=: 11937 set x $ac_tag 11938 IFS=$ac_save_IFS 11939 shift 11940 ac_file=$1 11941 shift 11942 11943 case $ac_mode in 11944 :L) ac_source=$1;; 11945 :[FH]) 11946 ac_file_inputs= 11947 for ac_f 11948 do 11949 case $ac_f in 11950 -) ac_f="$ac_tmp/stdin";; 11951 *) # Look for the file first in the build tree, then in the source tree 11952 # (if the path is not absolute). The absolute path cannot be DOS-style, 11953 # because $ac_f cannot contain `:'. 11954 test -f "$ac_f" || 11955 case $ac_f in 11956 [\\/$]*) false;; 11957 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11958 esac || 11959 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11960 esac 11961 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11962 as_fn_append ac_file_inputs " '$ac_f'" 11963 done 11964 11965 # Let's still pretend it is `configure' which instantiates (i.e., don't 11966 # use $as_me), people would be surprised to read: 11967 # /* config.h. Generated by config.status. */ 11968 configure_input='Generated from '` 11969 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11970 `' by configure.' 11971 if test x"$ac_file" != x-; then 11972 configure_input="$ac_file. $configure_input" 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11974$as_echo "$as_me: creating $ac_file" >&6;} 11975 fi 11976 # Neutralize special characters interpreted by sed in replacement strings. 11977 case $configure_input in #( 11978 *\&* | *\|* | *\\* ) 11979 ac_sed_conf_input=`$as_echo "$configure_input" | 11980 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11981 *) ac_sed_conf_input=$configure_input;; 11982 esac 11983 11984 case $ac_tag in 11985 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11987 esac 11988 ;; 11989 esac 11990 11991 ac_dir=`$as_dirname -- "$ac_file" || 11992$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11993 X"$ac_file" : 'X\(//\)[^/]' \| \ 11994 X"$ac_file" : 'X\(//\)$' \| \ 11995 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11996$as_echo X"$ac_file" | 11997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11998 s//\1/ 11999 q 12000 } 12001 /^X\(\/\/\)[^/].*/{ 12002 s//\1/ 12003 q 12004 } 12005 /^X\(\/\/\)$/{ 12006 s//\1/ 12007 q 12008 } 12009 /^X\(\/\).*/{ 12010 s//\1/ 12011 q 12012 } 12013 s/.*/./; q'` 12014 as_dir="$ac_dir"; as_fn_mkdir_p 12015 ac_builddir=. 12016 12017case "$ac_dir" in 12018.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12019*) 12020 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12021 # A ".." for each directory in $ac_dir_suffix. 12022 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12023 case $ac_top_builddir_sub in 12024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12026 esac ;; 12027esac 12028ac_abs_top_builddir=$ac_pwd 12029ac_abs_builddir=$ac_pwd$ac_dir_suffix 12030# for backward compatibility: 12031ac_top_builddir=$ac_top_build_prefix 12032 12033case $srcdir in 12034 .) # We are building in place. 12035 ac_srcdir=. 12036 ac_top_srcdir=$ac_top_builddir_sub 12037 ac_abs_top_srcdir=$ac_pwd ;; 12038 [\\/]* | ?:[\\/]* ) # Absolute name. 12039 ac_srcdir=$srcdir$ac_dir_suffix; 12040 ac_top_srcdir=$srcdir 12041 ac_abs_top_srcdir=$srcdir ;; 12042 *) # Relative name. 12043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12044 ac_top_srcdir=$ac_top_build_prefix$srcdir 12045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12046esac 12047ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12048 12049 12050 case $ac_mode in 12051 :F) 12052 # 12053 # CONFIG_FILE 12054 # 12055 12056 case $INSTALL in 12057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12058 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12059 esac 12060 ac_MKDIR_P=$MKDIR_P 12061 case $MKDIR_P in 12062 [\\/$]* | ?:[\\/]* ) ;; 12063 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12064 esac 12065_ACEOF 12066 12067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12068# If the template does not know about datarootdir, expand it. 12069# FIXME: This hack should be removed a few years after 2.60. 12070ac_datarootdir_hack=; ac_datarootdir_seen= 12071ac_sed_dataroot=' 12072/datarootdir/ { 12073 p 12074 q 12075} 12076/@datadir@/p 12077/@docdir@/p 12078/@infodir@/p 12079/@localedir@/p 12080/@mandir@/p' 12081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12082*datarootdir*) ac_datarootdir_seen=yes;; 12083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12086_ACEOF 12087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12088 ac_datarootdir_hack=' 12089 s&@datadir@&$datadir&g 12090 s&@docdir@&$docdir&g 12091 s&@infodir@&$infodir&g 12092 s&@localedir@&$localedir&g 12093 s&@mandir@&$mandir&g 12094 s&\\\${datarootdir}&$datarootdir&g' ;; 12095esac 12096_ACEOF 12097 12098# Neutralize VPATH when `$srcdir' = `.'. 12099# Shell code in configure.ac might set extrasub. 12100# FIXME: do we really want to maintain this feature? 12101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12102ac_sed_extra="$ac_vpsub 12103$extrasub 12104_ACEOF 12105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12106:t 12107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12108s|@configure_input@|$ac_sed_conf_input|;t t 12109s&@top_builddir@&$ac_top_builddir_sub&;t t 12110s&@top_build_prefix@&$ac_top_build_prefix&;t t 12111s&@srcdir@&$ac_srcdir&;t t 12112s&@abs_srcdir@&$ac_abs_srcdir&;t t 12113s&@top_srcdir@&$ac_top_srcdir&;t t 12114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12115s&@builddir@&$ac_builddir&;t t 12116s&@abs_builddir@&$ac_abs_builddir&;t t 12117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12118s&@INSTALL@&$ac_INSTALL&;t t 12119s&@MKDIR_P@&$ac_MKDIR_P&;t t 12120$ac_datarootdir_hack 12121" 12122eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12123 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12124 12125test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12126 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12128 "$ac_tmp/out"`; test -z "$ac_out"; } && 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12130which seems to be undefined. Please make sure it is defined" >&5 12131$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12132which seems to be undefined. Please make sure it is defined" >&2;} 12133 12134 rm -f "$ac_tmp/stdin" 12135 case $ac_file in 12136 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12137 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12138 esac \ 12139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12140 ;; 12141 :H) 12142 # 12143 # CONFIG_HEADER 12144 # 12145 if test x"$ac_file" != x-; then 12146 { 12147 $as_echo "/* $configure_input */" \ 12148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12149 } >"$ac_tmp/config.h" \ 12150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12151 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12153$as_echo "$as_me: $ac_file is unchanged" >&6;} 12154 else 12155 rm -f "$ac_file" 12156 mv "$ac_tmp/config.h" "$ac_file" \ 12157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12158 fi 12159 else 12160 $as_echo "/* $configure_input */" \ 12161 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12162 || as_fn_error $? "could not create -" "$LINENO" 5 12163 fi 12164# Compute "$ac_file"'s index in $config_headers. 12165_am_arg="$ac_file" 12166_am_stamp_count=1 12167for _am_header in $config_headers :; do 12168 case $_am_header in 12169 $_am_arg | $_am_arg:* ) 12170 break ;; 12171 * ) 12172 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12173 esac 12174done 12175echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12176$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12177 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12178 X"$_am_arg" : 'X\(//\)$' \| \ 12179 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12180$as_echo X"$_am_arg" | 12181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12182 s//\1/ 12183 q 12184 } 12185 /^X\(\/\/\)[^/].*/{ 12186 s//\1/ 12187 q 12188 } 12189 /^X\(\/\/\)$/{ 12190 s//\1/ 12191 q 12192 } 12193 /^X\(\/\).*/{ 12194 s//\1/ 12195 q 12196 } 12197 s/.*/./; q'`/stamp-h$_am_stamp_count 12198 ;; 12199 12200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12201$as_echo "$as_me: executing $ac_file commands" >&6;} 12202 ;; 12203 esac 12204 12205 12206 case $ac_file$ac_mode in 12207 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12208 # Older Autoconf quotes --file arguments for eval, but not when files 12209 # are listed without --file. Let's play safe and only enable the eval 12210 # if we detect the quoting. 12211 case $CONFIG_FILES in 12212 *\'*) eval set x "$CONFIG_FILES" ;; 12213 *) set x $CONFIG_FILES ;; 12214 esac 12215 shift 12216 for mf 12217 do 12218 # Strip MF so we end up with the name of the file. 12219 mf=`echo "$mf" | sed -e 's/:.*$//'` 12220 # Check whether this is an Automake generated Makefile or not. 12221 # We used to match only the files named 'Makefile.in', but 12222 # some people rename them; so instead we look at the file content. 12223 # Grep'ing the first line is not enough: some people post-process 12224 # each Makefile.in and add a new line on top of each file to say so. 12225 # Grep'ing the whole file is not good either: AIX grep has a line 12226 # limit of 2048, but all sed's we know have understand at least 4000. 12227 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12228 dirpart=`$as_dirname -- "$mf" || 12229$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12230 X"$mf" : 'X\(//\)[^/]' \| \ 12231 X"$mf" : 'X\(//\)$' \| \ 12232 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12233$as_echo X"$mf" | 12234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12235 s//\1/ 12236 q 12237 } 12238 /^X\(\/\/\)[^/].*/{ 12239 s//\1/ 12240 q 12241 } 12242 /^X\(\/\/\)$/{ 12243 s//\1/ 12244 q 12245 } 12246 /^X\(\/\).*/{ 12247 s//\1/ 12248 q 12249 } 12250 s/.*/./; q'` 12251 else 12252 continue 12253 fi 12254 # Extract the definition of DEPDIR, am__include, and am__quote 12255 # from the Makefile without running 'make'. 12256 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12257 test -z "$DEPDIR" && continue 12258 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12259 test -z "$am__include" && continue 12260 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12261 # Find all dependency output files, they are included files with 12262 # $(DEPDIR) in their names. We invoke sed twice because it is the 12263 # simplest approach to changing $(DEPDIR) to its actual value in the 12264 # expansion. 12265 for file in `sed -n " 12266 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12267 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12268 # Make sure the directory exists. 12269 test -f "$dirpart/$file" && continue 12270 fdir=`$as_dirname -- "$file" || 12271$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12272 X"$file" : 'X\(//\)[^/]' \| \ 12273 X"$file" : 'X\(//\)$' \| \ 12274 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12275$as_echo X"$file" | 12276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12277 s//\1/ 12278 q 12279 } 12280 /^X\(\/\/\)[^/].*/{ 12281 s//\1/ 12282 q 12283 } 12284 /^X\(\/\/\)$/{ 12285 s//\1/ 12286 q 12287 } 12288 /^X\(\/\).*/{ 12289 s//\1/ 12290 q 12291 } 12292 s/.*/./; q'` 12293 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12294 # echo "creating $dirpart/$file" 12295 echo '# dummy' > "$dirpart/$file" 12296 done 12297 done 12298} 12299 ;; 12300 12301 esac 12302done # for ac_tag 12303 12304 12305as_fn_exit 0 12306_ACEOF 12307ac_clean_files=$ac_clean_files_save 12308 12309test $ac_write_fail = 0 || 12310 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12311 12312 12313# configure is writing to config.log, and then calls config.status. 12314# config.status does its own redirection, appending to config.log. 12315# Unfortunately, on DOS this fails, as config.log is still kept open 12316# by configure, so config.status won't be able to write to it; its 12317# output is simply discarded. So we exec the FD to /dev/null, 12318# effectively closing config.log, so it can be properly (re)opened and 12319# appended to by config.status. When coming back to configure, we 12320# need to make the FD available again. 12321if test "$no_create" != yes; then 12322 ac_cs_success=: 12323 ac_config_status_args= 12324 test "$silent" = yes && 12325 ac_config_status_args="$ac_config_status_args --quiet" 12326 exec 5>/dev/null 12327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12328 exec 5>>config.log 12329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12330 # would make configure fail if this is the last instruction. 12331 $ac_cs_success || as_fn_exit 1 12332fi 12333if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12335$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12336fi 12337 12338