configure revision 74b97a6c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xwd 1.0.8. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/xwd/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='xwd' 614PACKAGE_TARNAME='xwd' 615PACKAGE_VERSION='1.0.8' 616PACKAGE_STRING='xwd 1.0.8' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwd/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657XWD_LIBS 658XWD_CFLAGS 659MAN_SUBSTS 660XORG_MAN_PAGE 661ADMIN_MAN_DIR 662DRIVER_MAN_DIR 663MISC_MAN_DIR 664FILE_MAN_DIR 665LIB_MAN_DIR 666APP_MAN_DIR 667ADMIN_MAN_SUFFIX 668DRIVER_MAN_SUFFIX 669MISC_MAN_SUFFIX 670FILE_MAN_SUFFIX 671LIB_MAN_SUFFIX 672APP_MAN_SUFFIX 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682INSTALL_CMD 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686CHANGELOG_CMD 687STRICT_CFLAGS 688CWARNFLAGS 689BASE_CFLAGS 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706AM_BACKSLASH 707AM_DEFAULT_VERBOSITY 708AM_DEFAULT_V 709AM_V 710CSCOPE 711ETAGS 712CTAGS 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733INSTALL_DATA 734INSTALL_SCRIPT 735INSTALL_PROGRAM 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_silent_rules 780enable_dependency_tracking 781enable_selective_werror 782enable_strict_compilation 783with_xkb 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793PKG_CONFIG 794PKG_CONFIG_PATH 795PKG_CONFIG_LIBDIR 796XWD_CFLAGS 797XWD_LIBS' 798 799 800# Initialize some variables set by options. 801ac_init_help= 802ac_init_version=false 803ac_unrecognized_opts= 804ac_unrecognized_sep= 805# The variables have the same names as the options, with 806# dashes changed to underlines. 807cache_file=/dev/null 808exec_prefix=NONE 809no_create= 810no_recursion= 811prefix=NONE 812program_prefix=NONE 813program_suffix=NONE 814program_transform_name=s,x,x, 815silent= 816site= 817srcdir= 818verbose= 819x_includes=NONE 820x_libraries=NONE 821 822# Installation directory options. 823# These are left unexpanded so users can "make install exec_prefix=/foo" 824# and all the variables that are supposed to be based on exec_prefix 825# by default will actually change. 826# Use braces instead of parens because sh, perl, etc. also accept them. 827# (The list follows the same order as the GNU Coding Standards.) 828bindir='${exec_prefix}/bin' 829sbindir='${exec_prefix}/sbin' 830libexecdir='${exec_prefix}/libexec' 831datarootdir='${prefix}/share' 832datadir='${datarootdir}' 833sysconfdir='${prefix}/etc' 834sharedstatedir='${prefix}/com' 835localstatedir='${prefix}/var' 836runstatedir='${localstatedir}/run' 837includedir='${prefix}/include' 838oldincludedir='/usr/include' 839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840infodir='${datarootdir}/info' 841htmldir='${docdir}' 842dvidir='${docdir}' 843pdfdir='${docdir}' 844psdir='${docdir}' 845libdir='${exec_prefix}/lib' 846localedir='${datarootdir}/locale' 847mandir='${datarootdir}/man' 848 849ac_prev= 850ac_dashdash= 851for ac_option 852do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *=) ac_optarg= ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: \`$ac_useropt'" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: \`$ac_useropt'" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1088 | --runstate | --runstat | --runsta | --runst | --runs \ 1089 | --run | --ru | --r) 1090 ac_prev=runstatedir ;; 1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1093 | --run=* | --ru=* | --r=*) 1094 runstatedir=$ac_optarg ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: \`$ac_useropt'" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: \`$ac_useropt'" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir runstatedir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289printf "%s\n" X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures xwd 1.0.8 to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/xwd] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400_ACEOF 1401 1402 cat <<\_ACEOF 1403 1404Program names: 1405 --program-prefix=PREFIX prepend PREFIX to installed program names 1406 --program-suffix=SUFFIX append SUFFIX to installed program names 1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408 1409System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412_ACEOF 1413fi 1414 1415if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of xwd 1.0.8:";; 1418 esac 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-silent-rules less verbose build output (undo: "make V=1") 1426 --disable-silent-rules verbose build output (undo: "make V=0") 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --disable-selective-werror 1432 Turn off selective compiler errors. (default: 1433 enabled) 1434 --enable-strict-compilation 1435 Enable all warnings from compiler and make them 1436 errors (default: disabled) 1437 1438Optional Packages: 1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1441 --without-xkb Disable use of XKB to sound bells (Default is 1442 with-xkb) 1443 1444Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 PKG_CONFIG path to pkg-config utility 1453 PKG_CONFIG_PATH 1454 directories to add to pkg-config's search path 1455 PKG_CONFIG_LIBDIR 1456 path overriding pkg-config's built-in search path 1457 XWD_CFLAGS C compiler flags for XWD, overriding pkg-config 1458 XWD_LIBS linker flags for XWD, overriding pkg-config 1459 1460Use these variables to override the choices made by `configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for configure.gnu first; this name is used for a wrapper for 1510 # Metaconfig's "Configure" on case-insensitive file systems. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527xwd configure 1.0.8 1528generated by GNU Autoconf 2.71 1529 1530Copyright (C) 2021 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext conftest.beam 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554printf "%s\n" "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext 1567then : 1568 ac_retval=0 1569else $as_nop 1570 printf "%s\n" "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 1574fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578} # ac_fn_c_try_compile 1579 1580# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1581# ------------------------------------------------------------------ 1582# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1583# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1584ac_fn_check_decl () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 as_decl_name=`echo $2|sed 's/ *(.*//'` 1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1589printf %s "checking whether $as_decl_name is declared... " >&6; } 1590if eval test \${$3+y} 1591then : 1592 printf %s "(cached) " >&6 1593else $as_nop 1594 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1595 eval ac_save_FLAGS=\$$6 1596 as_fn_append $6 " $5" 1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1598/* end confdefs.h. */ 1599$4 1600int 1601main (void) 1602{ 1603#ifndef $as_decl_name 1604#ifdef __cplusplus 1605 (void) $as_decl_use; 1606#else 1607 (void) $as_decl_name; 1608#endif 1609#endif 1610 1611 ; 1612 return 0; 1613} 1614_ACEOF 1615if ac_fn_c_try_compile "$LINENO" 1616then : 1617 eval "$3=yes" 1618else $as_nop 1619 eval "$3=no" 1620fi 1621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1622 eval $6=\$ac_save_FLAGS 1623 1624fi 1625eval ac_res=\$$3 1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627printf "%s\n" "$ac_res" >&6; } 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 1630} # ac_fn_check_decl 1631 1632# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633# ------------------------------------------------------- 1634# Tests whether HEADER exists and can be compiled using the include files in 1635# INCLUDES, setting the cache variable VAR accordingly. 1636ac_fn_c_check_header_compile () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640printf %s "checking for $2... " >&6; } 1641if eval test \${$3+y} 1642then : 1643 printf %s "(cached) " >&6 1644else $as_nop 1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1646/* end confdefs.h. */ 1647$4 1648#include <$2> 1649_ACEOF 1650if ac_fn_c_try_compile "$LINENO" 1651then : 1652 eval "$3=yes" 1653else $as_nop 1654 eval "$3=no" 1655fi 1656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1657fi 1658eval ac_res=\$$3 1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1660printf "%s\n" "$ac_res" >&6; } 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 1663} # ac_fn_c_check_header_compile 1664 1665# ac_fn_c_try_link LINENO 1666# ----------------------- 1667# Try to link conftest.$ac_ext, and return whether this succeeded. 1668ac_fn_c_try_link () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1672 if { { ac_try="$ac_link" 1673case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678printf "%s\n" "$ac_try_echo"; } >&5 1679 (eval "$ac_link") 2>conftest.err 1680 ac_status=$? 1681 if test -s conftest.err; then 1682 grep -v '^ *+' conftest.err >conftest.er1 1683 cat conftest.er1 >&5 1684 mv -f conftest.er1 conftest.err 1685 fi 1686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; } && { 1688 test -z "$ac_c_werror_flag" || 1689 test ! -s conftest.err 1690 } && test -s conftest$ac_exeext && { 1691 test "$cross_compiling" = yes || 1692 test -x conftest$ac_exeext 1693 } 1694then : 1695 ac_retval=0 1696else $as_nop 1697 printf "%s\n" "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1704 # interfere with the next link command; also delete a directory that is 1705 # left behind by Apple's compiler. We do this before executing the actions. 1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_link 1711ac_configure_args_raw= 1712for ac_arg 1713do 1714 case $ac_arg in 1715 *\'*) 1716 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1717 esac 1718 as_fn_append ac_configure_args_raw " '$ac_arg'" 1719done 1720 1721case $ac_configure_args_raw in 1722 *$as_nl*) 1723 ac_safe_unquote= ;; 1724 *) 1725 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1726 ac_unsafe_a="$ac_unsafe_z#~" 1727 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1728 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1729esac 1730 1731cat >config.log <<_ACEOF 1732This file contains any messages produced by compilers while 1733running configure, to aid debugging if configure makes a mistake. 1734 1735It was created by xwd $as_me 1.0.8, which was 1736generated by GNU Autoconf 2.71. Invocation command line was 1737 1738 $ $0$ac_configure_args_raw 1739 1740_ACEOF 1741exec 5>>config.log 1742{ 1743cat <<_ASUNAME 1744## --------- ## 1745## Platform. ## 1746## --------- ## 1747 1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1749uname -m = `(uname -m) 2>/dev/null || echo unknown` 1750uname -r = `(uname -r) 2>/dev/null || echo unknown` 1751uname -s = `(uname -s) 2>/dev/null || echo unknown` 1752uname -v = `(uname -v) 2>/dev/null || echo unknown` 1753 1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1755/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1756 1757/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1758/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1760/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1761/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1762/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1763/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1764 1765_ASUNAME 1766 1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1768for as_dir in $PATH 1769do 1770 IFS=$as_save_IFS 1771 case $as_dir in #((( 1772 '') as_dir=./ ;; 1773 */) ;; 1774 *) as_dir=$as_dir/ ;; 1775 esac 1776 printf "%s\n" "PATH: $as_dir" 1777 done 1778IFS=$as_save_IFS 1779 1780} >&5 1781 1782cat >&5 <<_ACEOF 1783 1784 1785## ----------- ## 1786## Core tests. ## 1787## ----------- ## 1788 1789_ACEOF 1790 1791 1792# Keep a trace of the command line. 1793# Strip out --no-create and --no-recursion so they do not pile up. 1794# Strip out --silent because we don't want to record it for future runs. 1795# Also quote any args containing shell meta-characters. 1796# Make two passes to allow for proper duplicate-argument suppression. 1797ac_configure_args= 1798ac_configure_args0= 1799ac_configure_args1= 1800ac_must_keep_next=false 1801for ac_pass in 1 2 1802do 1803 for ac_arg 1804 do 1805 case $ac_arg in 1806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1808 | -silent | --silent | --silen | --sile | --sil) 1809 continue ;; 1810 *\'*) 1811 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1812 esac 1813 case $ac_pass in 1814 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1815 2) 1816 as_fn_append ac_configure_args1 " '$ac_arg'" 1817 if test $ac_must_keep_next = true; then 1818 ac_must_keep_next=false # Got value, back to normal. 1819 else 1820 case $ac_arg in 1821 *=* | --config-cache | -C | -disable-* | --disable-* \ 1822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1824 | -with-* | --with-* | -without-* | --without-* | --x) 1825 case "$ac_configure_args0 " in 1826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1827 esac 1828 ;; 1829 -* ) ac_must_keep_next=true ;; 1830 esac 1831 fi 1832 as_fn_append ac_configure_args " '$ac_arg'" 1833 ;; 1834 esac 1835 done 1836done 1837{ ac_configure_args0=; unset ac_configure_args0;} 1838{ ac_configure_args1=; unset ac_configure_args1;} 1839 1840# When interrupted or exit'd, cleanup temporary files, and complete 1841# config.log. We remove comments because anyway the quotes in there 1842# would cause problems or look ugly. 1843# WARNING: Use '\'' to represent an apostrophe within the trap. 1844# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1845trap 'exit_status=$? 1846 # Sanitize IFS. 1847 IFS=" "" $as_nl" 1848 # Save into config.log some information that might help in debugging. 1849 { 1850 echo 1851 1852 printf "%s\n" "## ---------------- ## 1853## Cache variables. ## 1854## ---------------- ##" 1855 echo 1856 # The following way of writing the cache mishandles newlines in values, 1857( 1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1859 eval ac_val=\$$ac_var 1860 case $ac_val in #( 1861 *${as_nl}*) 1862 case $ac_var in #( 1863 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1864printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1865 esac 1866 case $ac_var in #( 1867 _ | IFS | as_nl) ;; #( 1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1869 *) { eval $ac_var=; unset $ac_var;} ;; 1870 esac ;; 1871 esac 1872 done 1873 (set) 2>&1 | 1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1875 *${as_nl}ac_space=\ *) 1876 sed -n \ 1877 "s/'\''/'\''\\\\'\'''\''/g; 1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1879 ;; #( 1880 *) 1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1882 ;; 1883 esac | 1884 sort 1885) 1886 echo 1887 1888 printf "%s\n" "## ----------------- ## 1889## Output variables. ## 1890## ----------------- ##" 1891 echo 1892 for ac_var in $ac_subst_vars 1893 do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in 1896 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897 esac 1898 printf "%s\n" "$ac_var='\''$ac_val'\''" 1899 done | sort 1900 echo 1901 1902 if test -n "$ac_subst_files"; then 1903 printf "%s\n" "## ------------------- ## 1904## File substitutions. ## 1905## ------------------- ##" 1906 echo 1907 for ac_var in $ac_subst_files 1908 do 1909 eval ac_val=\$$ac_var 1910 case $ac_val in 1911 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912 esac 1913 printf "%s\n" "$ac_var='\''$ac_val'\''" 1914 done | sort 1915 echo 1916 fi 1917 1918 if test -s confdefs.h; then 1919 printf "%s\n" "## ----------- ## 1920## confdefs.h. ## 1921## ----------- ##" 1922 echo 1923 cat confdefs.h 1924 echo 1925 fi 1926 test "$ac_signal" != 0 && 1927 printf "%s\n" "$as_me: caught signal $ac_signal" 1928 printf "%s\n" "$as_me: exit $exit_status" 1929 } >&5 1930 rm -f core *.core core.conftest.* && 1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1932 exit $exit_status 1933' 0 1934for ac_signal in 1 2 13 15; do 1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1936done 1937ac_signal=0 1938 1939# confdefs.h avoids OS command line length limits that DEFS can exceed. 1940rm -f -r conftest* confdefs.h 1941 1942printf "%s\n" "/* confdefs.h */" > confdefs.h 1943 1944# Predefined preprocessor variables. 1945 1946printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1947 1948printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1949 1950printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1951 1952printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1953 1954printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1955 1956printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1957 1958 1959# Let the site file select an alternate cache file if it wants to. 1960# Prefer an explicitly selected file to automatically selected ones. 1961if test -n "$CONFIG_SITE"; then 1962 ac_site_files="$CONFIG_SITE" 1963elif test "x$prefix" != xNONE; then 1964 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1965else 1966 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1967fi 1968 1969for ac_site_file in $ac_site_files 1970do 1971 case $ac_site_file in #( 1972 */*) : 1973 ;; #( 1974 *) : 1975 ac_site_file=./$ac_site_file ;; 1976esac 1977 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1979printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1980 sed 's/^/| /' "$ac_site_file" >&5 1981 . "$ac_site_file" \ 1982 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1983printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1984as_fn_error $? "failed to load site script $ac_site_file 1985See \`config.log' for more details" "$LINENO" 5; } 1986 fi 1987done 1988 1989if test -r "$cache_file"; then 1990 # Some versions of bash will fail to source /dev/null (special files 1991 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1992 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1994printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1995 case $cache_file in 1996 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1997 *) . "./$cache_file";; 1998 esac 1999 fi 2000else 2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2002printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2003 >$cache_file 2004fi 2005 2006# Test code for whether the C compiler supports C89 (global declarations) 2007ac_c_conftest_c89_globals=' 2008/* Does the compiler advertise C89 conformance? 2009 Do not test the value of __STDC__, because some compilers set it to 0 2010 while being otherwise adequately conformant. */ 2011#if !defined __STDC__ 2012# error "Compiler does not advertise C89 conformance" 2013#endif 2014 2015#include <stddef.h> 2016#include <stdarg.h> 2017struct stat; 2018/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2019struct buf { int x; }; 2020struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2021static char *e (p, i) 2022 char **p; 2023 int i; 2024{ 2025 return p[i]; 2026} 2027static char *f (char * (*g) (char **, int), char **p, ...) 2028{ 2029 char *s; 2030 va_list v; 2031 va_start (v,p); 2032 s = g (p, va_arg (v,int)); 2033 va_end (v); 2034 return s; 2035} 2036 2037/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2038 function prototypes and stuff, but not \xHH hex character constants. 2039 These do not provoke an error unfortunately, instead are silently treated 2040 as an "x". The following induces an error, until -std is added to get 2041 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2042 array size at least. It is necessary to write \x00 == 0 to get something 2043 that is true only with -std. */ 2044int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2045 2046/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2047 inside strings and character constants. */ 2048#define FOO(x) '\''x'\'' 2049int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2050 2051int test (int i, double x); 2052struct s1 {int (*f) (int a);}; 2053struct s2 {int (*f) (double a);}; 2054int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2055 int, int);' 2056 2057# Test code for whether the C compiler supports C89 (body of main). 2058ac_c_conftest_c89_main=' 2059ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2060' 2061 2062# Test code for whether the C compiler supports C99 (global declarations) 2063ac_c_conftest_c99_globals=' 2064// Does the compiler advertise C99 conformance? 2065#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2066# error "Compiler does not advertise C99 conformance" 2067#endif 2068 2069#include <stdbool.h> 2070extern int puts (const char *); 2071extern int printf (const char *, ...); 2072extern int dprintf (int, const char *, ...); 2073extern void *malloc (size_t); 2074 2075// Check varargs macros. These examples are taken from C99 6.10.3.5. 2076// dprintf is used instead of fprintf to avoid needing to declare 2077// FILE and stderr. 2078#define debug(...) dprintf (2, __VA_ARGS__) 2079#define showlist(...) puts (#__VA_ARGS__) 2080#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2081static void 2082test_varargs_macros (void) 2083{ 2084 int x = 1234; 2085 int y = 5678; 2086 debug ("Flag"); 2087 debug ("X = %d\n", x); 2088 showlist (The first, second, and third items.); 2089 report (x>y, "x is %d but y is %d", x, y); 2090} 2091 2092// Check long long types. 2093#define BIG64 18446744073709551615ull 2094#define BIG32 4294967295ul 2095#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2096#if !BIG_OK 2097 #error "your preprocessor is broken" 2098#endif 2099#if BIG_OK 2100#else 2101 #error "your preprocessor is broken" 2102#endif 2103static long long int bignum = -9223372036854775807LL; 2104static unsigned long long int ubignum = BIG64; 2105 2106struct incomplete_array 2107{ 2108 int datasize; 2109 double data[]; 2110}; 2111 2112struct named_init { 2113 int number; 2114 const wchar_t *name; 2115 double average; 2116}; 2117 2118typedef const char *ccp; 2119 2120static inline int 2121test_restrict (ccp restrict text) 2122{ 2123 // See if C++-style comments work. 2124 // Iterate through items via the restricted pointer. 2125 // Also check for declarations in for loops. 2126 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2127 continue; 2128 return 0; 2129} 2130 2131// Check varargs and va_copy. 2132static bool 2133test_varargs (const char *format, ...) 2134{ 2135 va_list args; 2136 va_start (args, format); 2137 va_list args_copy; 2138 va_copy (args_copy, args); 2139 2140 const char *str = ""; 2141 int number = 0; 2142 float fnumber = 0; 2143 2144 while (*format) 2145 { 2146 switch (*format++) 2147 { 2148 case '\''s'\'': // string 2149 str = va_arg (args_copy, const char *); 2150 break; 2151 case '\''d'\'': // int 2152 number = va_arg (args_copy, int); 2153 break; 2154 case '\''f'\'': // float 2155 fnumber = va_arg (args_copy, double); 2156 break; 2157 default: 2158 break; 2159 } 2160 } 2161 va_end (args_copy); 2162 va_end (args); 2163 2164 return *str && number && fnumber; 2165} 2166' 2167 2168# Test code for whether the C compiler supports C99 (body of main). 2169ac_c_conftest_c99_main=' 2170 // Check bool. 2171 _Bool success = false; 2172 success |= (argc != 0); 2173 2174 // Check restrict. 2175 if (test_restrict ("String literal") == 0) 2176 success = true; 2177 char *restrict newvar = "Another string"; 2178 2179 // Check varargs. 2180 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2181 test_varargs_macros (); 2182 2183 // Check flexible array members. 2184 struct incomplete_array *ia = 2185 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2186 ia->datasize = 10; 2187 for (int i = 0; i < ia->datasize; ++i) 2188 ia->data[i] = i * 1.234; 2189 2190 // Check named initializers. 2191 struct named_init ni = { 2192 .number = 34, 2193 .name = L"Test wide string", 2194 .average = 543.34343, 2195 }; 2196 2197 ni.number = 58; 2198 2199 int dynamic_array[ni.number]; 2200 dynamic_array[0] = argv[0][0]; 2201 dynamic_array[ni.number - 1] = 543; 2202 2203 // work around unused variable warnings 2204 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2205 || dynamic_array[ni.number - 1] != 543); 2206' 2207 2208# Test code for whether the C compiler supports C11 (global declarations) 2209ac_c_conftest_c11_globals=' 2210// Does the compiler advertise C11 conformance? 2211#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2212# error "Compiler does not advertise C11 conformance" 2213#endif 2214 2215// Check _Alignas. 2216char _Alignas (double) aligned_as_double; 2217char _Alignas (0) no_special_alignment; 2218extern char aligned_as_int; 2219char _Alignas (0) _Alignas (int) aligned_as_int; 2220 2221// Check _Alignof. 2222enum 2223{ 2224 int_alignment = _Alignof (int), 2225 int_array_alignment = _Alignof (int[100]), 2226 char_alignment = _Alignof (char) 2227}; 2228_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2229 2230// Check _Noreturn. 2231int _Noreturn does_not_return (void) { for (;;) continue; } 2232 2233// Check _Static_assert. 2234struct test_static_assert 2235{ 2236 int x; 2237 _Static_assert (sizeof (int) <= sizeof (long int), 2238 "_Static_assert does not work in struct"); 2239 long int y; 2240}; 2241 2242// Check UTF-8 literals. 2243#define u8 syntax error! 2244char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2245 2246// Check duplicate typedefs. 2247typedef long *long_ptr; 2248typedef long int *long_ptr; 2249typedef long_ptr long_ptr; 2250 2251// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2252struct anonymous 2253{ 2254 union { 2255 struct { int i; int j; }; 2256 struct { int k; long int l; } w; 2257 }; 2258 int m; 2259} v1; 2260' 2261 2262# Test code for whether the C compiler supports C11 (body of main). 2263ac_c_conftest_c11_main=' 2264 _Static_assert ((offsetof (struct anonymous, i) 2265 == offsetof (struct anonymous, w.k)), 2266 "Anonymous union alignment botch"); 2267 v1.i = 2; 2268 v1.w.k = 5; 2269 ok |= v1.i != 5; 2270' 2271 2272# Test code for whether the C compiler supports C11 (complete). 2273ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2274${ac_c_conftest_c99_globals} 2275${ac_c_conftest_c11_globals} 2276 2277int 2278main (int argc, char **argv) 2279{ 2280 int ok = 0; 2281 ${ac_c_conftest_c89_main} 2282 ${ac_c_conftest_c99_main} 2283 ${ac_c_conftest_c11_main} 2284 return ok; 2285} 2286" 2287 2288# Test code for whether the C compiler supports C99 (complete). 2289ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2290${ac_c_conftest_c99_globals} 2291 2292int 2293main (int argc, char **argv) 2294{ 2295 int ok = 0; 2296 ${ac_c_conftest_c89_main} 2297 ${ac_c_conftest_c99_main} 2298 return ok; 2299} 2300" 2301 2302# Test code for whether the C compiler supports C89 (complete). 2303ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2304 2305int 2306main (int argc, char **argv) 2307{ 2308 int ok = 0; 2309 ${ac_c_conftest_c89_main} 2310 return ok; 2311} 2312" 2313 2314as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2315as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2316as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2317as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2318as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2319as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2320as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2321as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2322as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2323 2324# Auxiliary files required by this configure script. 2325ac_aux_files="config.guess config.sub compile missing install-sh" 2326 2327# Locations in which to look for auxiliary files. 2328ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2329 2330# Search for a directory containing all of the required auxiliary files, 2331# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2332# If we don't find one directory that contains all the files we need, 2333# we report the set of missing files from the *first* directory in 2334# $ac_aux_dir_candidates and give up. 2335ac_missing_aux_files="" 2336ac_first_candidate=: 2337printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339as_found=false 2340for as_dir in $ac_aux_dir_candidates 2341do 2342 IFS=$as_save_IFS 2343 case $as_dir in #((( 2344 '') as_dir=./ ;; 2345 */) ;; 2346 *) as_dir=$as_dir/ ;; 2347 esac 2348 as_found=: 2349 2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2351 ac_aux_dir_found=yes 2352 ac_install_sh= 2353 for ac_aux in $ac_aux_files 2354 do 2355 # As a special case, if "install-sh" is required, that requirement 2356 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2357 # and $ac_install_sh is set appropriately for whichever one is found. 2358 if test x"$ac_aux" = x"install-sh" 2359 then 2360 if test -f "${as_dir}install-sh"; then 2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2362 ac_install_sh="${as_dir}install-sh -c" 2363 elif test -f "${as_dir}install.sh"; then 2364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2365 ac_install_sh="${as_dir}install.sh -c" 2366 elif test -f "${as_dir}shtool"; then 2367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2368 ac_install_sh="${as_dir}shtool install -c" 2369 else 2370 ac_aux_dir_found=no 2371 if $ac_first_candidate; then 2372 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2373 else 2374 break 2375 fi 2376 fi 2377 else 2378 if test -f "${as_dir}${ac_aux}"; then 2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2380 else 2381 ac_aux_dir_found=no 2382 if $ac_first_candidate; then 2383 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2384 else 2385 break 2386 fi 2387 fi 2388 fi 2389 done 2390 if test "$ac_aux_dir_found" = yes; then 2391 ac_aux_dir="$as_dir" 2392 break 2393 fi 2394 ac_first_candidate=false 2395 2396 as_found=false 2397done 2398IFS=$as_save_IFS 2399if $as_found 2400then : 2401 2402else $as_nop 2403 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2404fi 2405 2406 2407# These three variables are undocumented and unsupported, 2408# and are intended to be withdrawn in a future Autoconf release. 2409# They can cause serious problems if a builder's source tree is in a directory 2410# whose full name contains unusual characters. 2411if test -f "${ac_aux_dir}config.guess"; then 2412 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2413fi 2414if test -f "${ac_aux_dir}config.sub"; then 2415 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2416fi 2417if test -f "$ac_aux_dir/configure"; then 2418 ac_configure="$SHELL ${ac_aux_dir}configure" 2419fi 2420 2421# Check that the precious variables saved in the cache have kept the same 2422# value. 2423ac_cache_corrupted=false 2424for ac_var in $ac_precious_vars; do 2425 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2426 eval ac_new_set=\$ac_env_${ac_var}_set 2427 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2428 eval ac_new_val=\$ac_env_${ac_var}_value 2429 case $ac_old_set,$ac_new_set in 2430 set,) 2431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2432printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2433 ac_cache_corrupted=: ;; 2434 ,set) 2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2436printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2437 ac_cache_corrupted=: ;; 2438 ,);; 2439 *) 2440 if test "x$ac_old_val" != "x$ac_new_val"; then 2441 # differences in whitespace do not lead to failure. 2442 ac_old_val_w=`echo x $ac_old_val` 2443 ac_new_val_w=`echo x $ac_new_val` 2444 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2446printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2447 ac_cache_corrupted=: 2448 else 2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2450printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2451 eval $ac_var=\$ac_old_val 2452 fi 2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2454printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2456printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2457 fi;; 2458 esac 2459 # Pass precious variables to config.status. 2460 if test "$ac_new_set" = set; then 2461 case $ac_new_val in 2462 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2463 *) ac_arg=$ac_var=$ac_new_val ;; 2464 esac 2465 case " $ac_configure_args " in 2466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2467 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2468 esac 2469 fi 2470done 2471if $ac_cache_corrupted; then 2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2473printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2475printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2476 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2477 and start over" "$LINENO" 5 2478fi 2479## -------------------- ## 2480## Main body of script. ## 2481## -------------------- ## 2482 2483ac_ext=c 2484ac_cpp='$CPP $CPPFLAGS' 2485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2487ac_compiler_gnu=$ac_cv_c_compiler_gnu 2488 2489 2490 2491ac_config_headers="$ac_config_headers config.h" 2492 2493 2494# Initialize Automake 2495am__api_version='1.16' 2496 2497 2498 2499 # Find a good install program. We prefer a C program (faster), 2500# so one script is as good as another. But avoid the broken or 2501# incompatible versions: 2502# SysV /etc/install, /usr/sbin/install 2503# SunOS /usr/etc/install 2504# IRIX /sbin/install 2505# AIX /bin/install 2506# AmigaOS /C/install, which installs bootblocks on floppy discs 2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2510# OS/2's system install, which has a completely different semantic 2511# ./install, which can be erroneously created by make from ./install.sh. 2512# Reject install programs that cannot install multiple files. 2513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2514printf %s "checking for a BSD-compatible install... " >&6; } 2515if test -z "$INSTALL"; then 2516if test ${ac_cv_path_install+y} 2517then : 2518 printf %s "(cached) " >&6 2519else $as_nop 2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 case $as_dir in #((( 2525 '') as_dir=./ ;; 2526 */) ;; 2527 *) as_dir=$as_dir/ ;; 2528 esac 2529 # Account for fact that we put trailing slashes in our PATH walk. 2530case $as_dir in #(( 2531 ./ | /[cC]/* | \ 2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2534 /usr/ucb/* ) ;; 2535 *) 2536 # OSF1 and SCO ODT 3.0 have their own names for install. 2537 # Don't use installbsd from OSF since it installs stuff as root 2538 # by default. 2539 for ac_prog in ginstall scoinst install; do 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2542 if test $ac_prog = install && 2543 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2544 # AIX install. It has an incompatible calling convention. 2545 : 2546 elif test $ac_prog = install && 2547 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2548 # program-specific install script used by HP pwplus--don't use. 2549 : 2550 else 2551 rm -rf conftest.one conftest.two conftest.dir 2552 echo one > conftest.one 2553 echo two > conftest.two 2554 mkdir conftest.dir 2555 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2556 test -s conftest.one && test -s conftest.two && 2557 test -s conftest.dir/conftest.one && 2558 test -s conftest.dir/conftest.two 2559 then 2560 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2561 break 3 2562 fi 2563 fi 2564 fi 2565 done 2566 done 2567 ;; 2568esac 2569 2570 done 2571IFS=$as_save_IFS 2572 2573rm -rf conftest.one conftest.two conftest.dir 2574 2575fi 2576 if test ${ac_cv_path_install+y}; then 2577 INSTALL=$ac_cv_path_install 2578 else 2579 # As a last resort, use the slow shell script. Don't cache a 2580 # value for INSTALL within a source directory, because that will 2581 # break other packages using the cache if that directory is 2582 # removed, or if the value is a relative name. 2583 INSTALL=$ac_install_sh 2584 fi 2585fi 2586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2587printf "%s\n" "$INSTALL" >&6; } 2588 2589# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2590# It thinks the first close brace ends the variable substitution. 2591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2592 2593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2594 2595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2596 2597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2598printf %s "checking whether build environment is sane... " >&6; } 2599# Reject unsafe characters in $srcdir or the absolute working directory 2600# name. Accept space and tab only in the latter. 2601am_lf=' 2602' 2603case `pwd` in 2604 *[\\\"\#\$\&\'\`$am_lf]*) 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2606esac 2607case $srcdir in 2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2609 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2610esac 2611 2612# Do 'set' in a subshell so we don't clobber the current shell's 2613# arguments. Must try -L first in case configure is actually a 2614# symlink; some systems play weird games with the mod time of symlinks 2615# (eg FreeBSD returns the mod time of the symlink's containing 2616# directory). 2617if ( 2618 am_has_slept=no 2619 for am_try in 1 2; do 2620 echo "timestamp, slept: $am_has_slept" > conftest.file 2621 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2622 if test "$*" = "X"; then 2623 # -L didn't work. 2624 set X `ls -t "$srcdir/configure" conftest.file` 2625 fi 2626 if test "$*" != "X $srcdir/configure conftest.file" \ 2627 && test "$*" != "X conftest.file $srcdir/configure"; then 2628 2629 # If neither matched, then we have a broken ls. This can happen 2630 # if, for instance, CONFIG_SHELL is bash and it inherits a 2631 # broken ls alias from the environment. This has actually 2632 # happened. Such a system could not be considered "sane". 2633 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2634 alias in your environment" "$LINENO" 5 2635 fi 2636 if test "$2" = conftest.file || test $am_try -eq 2; then 2637 break 2638 fi 2639 # Just in case. 2640 sleep 1 2641 am_has_slept=yes 2642 done 2643 test "$2" = conftest.file 2644 ) 2645then 2646 # Ok. 2647 : 2648else 2649 as_fn_error $? "newly created file is older than distributed files! 2650Check your system clock" "$LINENO" 5 2651fi 2652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2653printf "%s\n" "yes" >&6; } 2654# If we didn't sleep, we still need to ensure time stamps of config.status and 2655# generated files are strictly newer. 2656am_sleep_pid= 2657if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2658 ( sleep 1 ) & 2659 am_sleep_pid=$! 2660fi 2661 2662rm -f conftest.file 2663 2664test "$program_prefix" != NONE && 2665 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2666# Use a double $ so make ignores it. 2667test "$program_suffix" != NONE && 2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2669# Double any \ or $. 2670# By default was `s,x,x', remove it if useless. 2671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2672program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2673 2674 2675# Expand $ac_aux_dir to an absolute path. 2676am_aux_dir=`cd "$ac_aux_dir" && pwd` 2677 2678 2679 if test x"${MISSING+set}" != xset; then 2680 MISSING="\${SHELL} '$am_aux_dir/missing'" 2681fi 2682# Use eval to expand $SHELL 2683if eval "$MISSING --is-lightweight"; then 2684 am_missing_run="$MISSING " 2685else 2686 am_missing_run= 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2688printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2689fi 2690 2691if test x"${install_sh+set}" != xset; then 2692 case $am_aux_dir in 2693 *\ * | *\ *) 2694 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2695 *) 2696 install_sh="\${SHELL} $am_aux_dir/install-sh" 2697 esac 2698fi 2699 2700# Installed binaries are usually stripped using 'strip' when the user 2701# run "make install-strip". However 'strip' might not be the right 2702# tool to use in cross-compilation environments, therefore Automake 2703# will honor the 'STRIP' environment variable to overrule this program. 2704if test "$cross_compiling" != no; then 2705 if test -n "$ac_tool_prefix"; then 2706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2707set dummy ${ac_tool_prefix}strip; ac_word=$2 2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709printf %s "checking for $ac_word... " >&6; } 2710if test ${ac_cv_prog_STRIP+y} 2711then : 2712 printf %s "(cached) " >&6 2713else $as_nop 2714 if test -n "$STRIP"; then 2715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 case $as_dir in #((( 2722 '') as_dir=./ ;; 2723 */) ;; 2724 *) as_dir=$as_dir/ ;; 2725 esac 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738STRIP=$ac_cv_prog_STRIP 2739if test -n "$STRIP"; then 2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2741printf "%s\n" "$STRIP" >&6; } 2742else 2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744printf "%s\n" "no" >&6; } 2745fi 2746 2747 2748fi 2749if test -z "$ac_cv_prog_STRIP"; then 2750 ac_ct_STRIP=$STRIP 2751 # Extract the first word of "strip", so it can be a program name with args. 2752set dummy strip; ac_word=$2 2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754printf %s "checking for $ac_word... " >&6; } 2755if test ${ac_cv_prog_ac_ct_STRIP+y} 2756then : 2757 printf %s "(cached) " >&6 2758else $as_nop 2759 if test -n "$ac_ct_STRIP"; then 2760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2761else 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 case $as_dir in #((( 2767 '') as_dir=./ ;; 2768 */) ;; 2769 *) as_dir=$as_dir/ ;; 2770 esac 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2773 ac_cv_prog_ac_ct_STRIP="strip" 2774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778 done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2784if test -n "$ac_ct_STRIP"; then 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2786printf "%s\n" "$ac_ct_STRIP" >&6; } 2787else 2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789printf "%s\n" "no" >&6; } 2790fi 2791 2792 if test "x$ac_ct_STRIP" = x; then 2793 STRIP=":" 2794 else 2795 case $cross_compiling:$ac_tool_warned in 2796yes:) 2797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2799ac_tool_warned=yes ;; 2800esac 2801 STRIP=$ac_ct_STRIP 2802 fi 2803else 2804 STRIP="$ac_cv_prog_STRIP" 2805fi 2806 2807fi 2808INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2809 2810 2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2812printf %s "checking for a race-free mkdir -p... " >&6; } 2813if test -z "$MKDIR_P"; then 2814 if test ${ac_cv_path_mkdir+y} 2815then : 2816 printf %s "(cached) " >&6 2817else $as_nop 2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2820do 2821 IFS=$as_save_IFS 2822 case $as_dir in #((( 2823 '') as_dir=./ ;; 2824 */) ;; 2825 *) as_dir=$as_dir/ ;; 2826 esac 2827 for ac_prog in mkdir gmkdir; do 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2830 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2831 'mkdir ('*'coreutils) '* | \ 2832 'BusyBox '* | \ 2833 'mkdir (fileutils) '4.1*) 2834 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2835 break 3;; 2836 esac 2837 done 2838 done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843 2844 test -d ./--version && rmdir ./--version 2845 if test ${ac_cv_path_mkdir+y}; then 2846 MKDIR_P="$ac_cv_path_mkdir -p" 2847 else 2848 # As a last resort, use the slow shell script. Don't cache a 2849 # value for MKDIR_P within a source directory, because that will 2850 # break other packages using the cache if that directory is 2851 # removed, or if the value is a relative name. 2852 MKDIR_P="$ac_install_sh -d" 2853 fi 2854fi 2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2856printf "%s\n" "$MKDIR_P" >&6; } 2857 2858for ac_prog in gawk mawk nawk awk 2859do 2860 # Extract the first word of "$ac_prog", so it can be a program name with args. 2861set dummy $ac_prog; ac_word=$2 2862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2863printf %s "checking for $ac_word... " >&6; } 2864if test ${ac_cv_prog_AWK+y} 2865then : 2866 printf %s "(cached) " >&6 2867else $as_nop 2868 if test -n "$AWK"; then 2869 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 case $as_dir in #((( 2876 '') as_dir=./ ;; 2877 */) ;; 2878 *) as_dir=$as_dir/ ;; 2879 esac 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2882 ac_cv_prog_AWK="$ac_prog" 2883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886done 2887 done 2888IFS=$as_save_IFS 2889 2890fi 2891fi 2892AWK=$ac_cv_prog_AWK 2893if test -n "$AWK"; then 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2895printf "%s\n" "$AWK" >&6; } 2896else 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898printf "%s\n" "no" >&6; } 2899fi 2900 2901 2902 test -n "$AWK" && break 2903done 2904 2905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2906printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2907set x ${MAKE-make} 2908ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2909if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2910then : 2911 printf %s "(cached) " >&6 2912else $as_nop 2913 cat >conftest.make <<\_ACEOF 2914SHELL = /bin/sh 2915all: 2916 @echo '@@@%%%=$(MAKE)=@@@%%%' 2917_ACEOF 2918# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2919case `${MAKE-make} -f conftest.make 2>/dev/null` in 2920 *@@@%%%=?*=@@@%%%*) 2921 eval ac_cv_prog_make_${ac_make}_set=yes;; 2922 *) 2923 eval ac_cv_prog_make_${ac_make}_set=no;; 2924esac 2925rm -f conftest.make 2926fi 2927if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2929printf "%s\n" "yes" >&6; } 2930 SET_MAKE= 2931else 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933printf "%s\n" "no" >&6; } 2934 SET_MAKE="MAKE=${MAKE-make}" 2935fi 2936 2937rm -rf .tst 2>/dev/null 2938mkdir .tst 2>/dev/null 2939if test -d .tst; then 2940 am__leading_dot=. 2941else 2942 am__leading_dot=_ 2943fi 2944rmdir .tst 2>/dev/null 2945 2946# Check whether --enable-silent-rules was given. 2947if test ${enable_silent_rules+y} 2948then : 2949 enableval=$enable_silent_rules; 2950fi 2951 2952case $enable_silent_rules in # ((( 2953 yes) AM_DEFAULT_VERBOSITY=0;; 2954 no) AM_DEFAULT_VERBOSITY=1;; 2955 *) AM_DEFAULT_VERBOSITY=1;; 2956esac 2957am_make=${MAKE-make} 2958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2959printf %s "checking whether $am_make supports nested variables... " >&6; } 2960if test ${am_cv_make_support_nested_variables+y} 2961then : 2962 printf %s "(cached) " >&6 2963else $as_nop 2964 if printf "%s\n" 'TRUE=$(BAR$(V)) 2965BAR0=false 2966BAR1=true 2967V=1 2968am__doit: 2969 @$(TRUE) 2970.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2971 am_cv_make_support_nested_variables=yes 2972else 2973 am_cv_make_support_nested_variables=no 2974fi 2975fi 2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2977printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2978if test $am_cv_make_support_nested_variables = yes; then 2979 AM_V='$(V)' 2980 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2981else 2982 AM_V=$AM_DEFAULT_VERBOSITY 2983 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2984fi 2985AM_BACKSLASH='\' 2986 2987if test "`cd $srcdir && pwd`" != "`pwd`"; then 2988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2989 # is not polluted with repeated "-I." 2990 am__isrc=' -I$(srcdir)' 2991 # test to see if srcdir already configured 2992 if test -f $srcdir/config.status; then 2993 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2994 fi 2995fi 2996 2997# test whether we have cygpath 2998if test -z "$CYGPATH_W"; then 2999 if (cygpath --version) >/dev/null 2>/dev/null; then 3000 CYGPATH_W='cygpath -w' 3001 else 3002 CYGPATH_W=echo 3003 fi 3004fi 3005 3006 3007# Define the identity of the package. 3008 PACKAGE='xwd' 3009 VERSION='1.0.8' 3010 3011 3012printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3013 3014 3015printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3016 3017# Some tools Automake needs. 3018 3019ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3020 3021 3022AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3023 3024 3025AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3026 3027 3028AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3029 3030 3031MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3032 3033# For better backward compatibility. To be removed once Automake 1.9.x 3034# dies out for good. For more background, see: 3035# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3036# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3037mkdir_p='$(MKDIR_P)' 3038 3039# We need awk for the "check" target (and possibly the TAP driver). The 3040# system "awk" is bad on some platforms. 3041# Always define AMTAR for backward compatibility. Yes, it's still used 3042# in the wild :-( We should find a proper way to deprecate it ... 3043AMTAR='$${TAR-tar}' 3044 3045 3046# We'll loop over all known methods to create a tar archive until one works. 3047_am_tools='gnutar pax cpio none' 3048 3049am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3050 3051 3052 3053 3054 3055# Variables for tags utilities; see am/tags.am 3056if test -z "$CTAGS"; then 3057 CTAGS=ctags 3058fi 3059 3060if test -z "$ETAGS"; then 3061 ETAGS=etags 3062fi 3063 3064if test -z "$CSCOPE"; then 3065 CSCOPE=cscope 3066fi 3067 3068 3069 3070# POSIX will say in a future version that running "rm -f" with no argument 3071# is OK; and we want to be able to make that assumption in our Makefile 3072# recipes. So use an aggressive probe to check that the usage we want is 3073# actually supported "in the wild" to an acceptable degree. 3074# See automake bug#10828. 3075# To make any issue more visible, cause the running configure to be aborted 3076# by default if the 'rm' program in use doesn't match our expectations; the 3077# user can still override this though. 3078if rm -f && rm -fr && rm -rf; then : OK; else 3079 cat >&2 <<'END' 3080Oops! 3081 3082Your 'rm' program seems unable to run without file operands specified 3083on the command line, even when the '-f' option is present. This is contrary 3084to the behaviour of most rm programs out there, and not conforming with 3085the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3086 3087Please tell bug-automake@gnu.org about your system, including the value 3088of your $PATH and any error possibly output before this message. This 3089can help us improve future automake versions. 3090 3091END 3092 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3093 echo 'Configuration will proceed anyway, since you have set the' >&2 3094 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3095 echo >&2 3096 else 3097 cat >&2 <<'END' 3098Aborting the configuration process, to ensure you take notice of the issue. 3099 3100You can download and install GNU coreutils to get an 'rm' implementation 3101that behaves properly: <https://www.gnu.org/software/coreutils/>. 3102 3103If you want to complete the configuration process using your problematic 3104'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3105to "yes", and re-run configure. 3106 3107END 3108 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3109 fi 3110fi 3111 3112 3113# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134DEPDIR="${am__leading_dot}deps" 3135 3136ac_config_commands="$ac_config_commands depfiles" 3137 3138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3139printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3140cat > confinc.mk << 'END' 3141am__doit: 3142 @echo this is the am__doit target >confinc.out 3143.PHONY: am__doit 3144END 3145am__include="#" 3146am__quote= 3147# BSD make does it like this. 3148echo '.include "confinc.mk" # ignored' > confmf.BSD 3149# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3150echo 'include confinc.mk # ignored' > confmf.GNU 3151_am_result=no 3152for s in GNU BSD; do 3153 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3154 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } 3158 case $?:`cat confinc.out 2>/dev/null` in #( 3159 '0:this is the am__doit target') : 3160 case $s in #( 3161 BSD) : 3162 am__include='.include' am__quote='"' ;; #( 3163 *) : 3164 am__include='include' am__quote='' ;; 3165esac ;; #( 3166 *) : 3167 ;; 3168esac 3169 if test "$am__include" != "#"; then 3170 _am_result="yes ($s style)" 3171 break 3172 fi 3173done 3174rm -f confinc.* confmf.* 3175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3176printf "%s\n" "${_am_result}" >&6; } 3177 3178# Check whether --enable-dependency-tracking was given. 3179if test ${enable_dependency_tracking+y} 3180then : 3181 enableval=$enable_dependency_tracking; 3182fi 3183 3184if test "x$enable_dependency_tracking" != xno; then 3185 am_depcomp="$ac_aux_dir/depcomp" 3186 AMDEPBACKSLASH='\' 3187 am__nodep='_no' 3188fi 3189 if test "x$enable_dependency_tracking" != xno; then 3190 AMDEP_TRUE= 3191 AMDEP_FALSE='#' 3192else 3193 AMDEP_TRUE='#' 3194 AMDEP_FALSE= 3195fi 3196 3197 3198ac_ext=c 3199ac_cpp='$CPP $CPPFLAGS' 3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3202ac_compiler_gnu=$ac_cv_c_compiler_gnu 3203if test -n "$ac_tool_prefix"; then 3204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3205set dummy ${ac_tool_prefix}gcc; ac_word=$2 3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3207printf %s "checking for $ac_word... " >&6; } 3208if test ${ac_cv_prog_CC+y} 3209then : 3210 printf %s "(cached) " >&6 3211else $as_nop 3212 if test -n "$CC"; then 3213 ac_cv_prog_CC="$CC" # Let the user override the test. 3214else 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 case $as_dir in #((( 3220 '') as_dir=./ ;; 3221 */) ;; 3222 *) as_dir=$as_dir/ ;; 3223 esac 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239printf "%s\n" "$CC" >&6; } 3240else 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242printf "%s\n" "no" >&6; } 3243fi 3244 3245 3246fi 3247if test -z "$ac_cv_prog_CC"; then 3248 ac_ct_CC=$CC 3249 # Extract the first word of "gcc", so it can be a program name with args. 3250set dummy gcc; ac_word=$2 3251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252printf %s "checking for $ac_word... " >&6; } 3253if test ${ac_cv_prog_ac_ct_CC+y} 3254then : 3255 printf %s "(cached) " >&6 3256else $as_nop 3257 if test -n "$ac_ct_CC"; then 3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3259else 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 case $as_dir in #((( 3265 '') as_dir=./ ;; 3266 */) ;; 3267 *) as_dir=$as_dir/ ;; 3268 esac 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_ac_ct_CC="gcc" 3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_CC=$ac_cv_prog_ac_ct_CC 3282if test -n "$ac_ct_CC"; then 3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3284printf "%s\n" "$ac_ct_CC" >&6; } 3285else 3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287printf "%s\n" "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_CC" = x; then 3291 CC="" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3296printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297ac_tool_warned=yes ;; 3298esac 3299 CC=$ac_ct_CC 3300 fi 3301else 3302 CC="$ac_cv_prog_CC" 3303fi 3304 3305if test -z "$CC"; then 3306 if test -n "$ac_tool_prefix"; then 3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3308set dummy ${ac_tool_prefix}cc; ac_word=$2 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310printf %s "checking for $ac_word... " >&6; } 3311if test ${ac_cv_prog_CC+y} 3312then : 3313 printf %s "(cached) " >&6 3314else $as_nop 3315 if test -n "$CC"; then 3316 ac_cv_prog_CC="$CC" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 case $as_dir in #((( 3323 '') as_dir=./ ;; 3324 */) ;; 3325 *) as_dir=$as_dir/ ;; 3326 esac 3327 for ac_exec_ext in '' $ac_executable_extensions; do 3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3329 ac_cv_prog_CC="${ac_tool_prefix}cc" 3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3331 break 2 3332 fi 3333done 3334 done 3335IFS=$as_save_IFS 3336 3337fi 3338fi 3339CC=$ac_cv_prog_CC 3340if test -n "$CC"; then 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3342printf "%s\n" "$CC" >&6; } 3343else 3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345printf "%s\n" "no" >&6; } 3346fi 3347 3348 3349 fi 3350fi 3351if test -z "$CC"; then 3352 # Extract the first word of "cc", so it can be a program name with args. 3353set dummy cc; ac_word=$2 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355printf %s "checking for $ac_word... " >&6; } 3356if test ${ac_cv_prog_CC+y} 3357then : 3358 printf %s "(cached) " >&6 3359else $as_nop 3360 if test -n "$CC"; then 3361 ac_cv_prog_CC="$CC" # Let the user override the test. 3362else 3363 ac_prog_rejected=no 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 case $as_dir in #((( 3369 '') as_dir=./ ;; 3370 */) ;; 3371 *) as_dir=$as_dir/ ;; 3372 esac 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3375 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3376 ac_prog_rejected=yes 3377 continue 3378 fi 3379 ac_cv_prog_CC="cc" 3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387if test $ac_prog_rejected = yes; then 3388 # We found a bogon in the path, so make sure we never use it. 3389 set dummy $ac_cv_prog_CC 3390 shift 3391 if test $# != 0; then 3392 # We chose a different compiler from the bogus one. 3393 # However, it has the same basename, so the bogon will be chosen 3394 # first if we set CC to just the basename; use the full file name. 3395 shift 3396 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3397 fi 3398fi 3399fi 3400fi 3401CC=$ac_cv_prog_CC 3402if test -n "$CC"; then 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3404printf "%s\n" "$CC" >&6; } 3405else 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407printf "%s\n" "no" >&6; } 3408fi 3409 3410 3411fi 3412if test -z "$CC"; then 3413 if test -n "$ac_tool_prefix"; then 3414 for ac_prog in cl.exe 3415 do 3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3419printf %s "checking for $ac_word... " >&6; } 3420if test ${ac_cv_prog_CC+y} 3421then : 3422 printf %s "(cached) " >&6 3423else $as_nop 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 case $as_dir in #((( 3432 '') as_dir=./ ;; 3433 */) ;; 3434 *) as_dir=$as_dir/ ;; 3435 esac 3436 for ac_exec_ext in '' $ac_executable_extensions; do 3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3440 break 2 3441 fi 3442done 3443 done 3444IFS=$as_save_IFS 3445 3446fi 3447fi 3448CC=$ac_cv_prog_CC 3449if test -n "$CC"; then 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3451printf "%s\n" "$CC" >&6; } 3452else 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3454printf "%s\n" "no" >&6; } 3455fi 3456 3457 3458 test -n "$CC" && break 3459 done 3460fi 3461if test -z "$CC"; then 3462 ac_ct_CC=$CC 3463 for ac_prog in cl.exe 3464do 3465 # Extract the first word of "$ac_prog", so it can be a program name with args. 3466set dummy $ac_prog; ac_word=$2 3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3468printf %s "checking for $ac_word... " >&6; } 3469if test ${ac_cv_prog_ac_ct_CC+y} 3470then : 3471 printf %s "(cached) " >&6 3472else $as_nop 3473 if test -n "$ac_ct_CC"; then 3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3475else 3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3477for as_dir in $PATH 3478do 3479 IFS=$as_save_IFS 3480 case $as_dir in #((( 3481 '') as_dir=./ ;; 3482 */) ;; 3483 *) as_dir=$as_dir/ ;; 3484 esac 3485 for ac_exec_ext in '' $ac_executable_extensions; do 3486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3487 ac_cv_prog_ac_ct_CC="$ac_prog" 3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495fi 3496fi 3497ac_ct_CC=$ac_cv_prog_ac_ct_CC 3498if test -n "$ac_ct_CC"; then 3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3500printf "%s\n" "$ac_ct_CC" >&6; } 3501else 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3503printf "%s\n" "no" >&6; } 3504fi 3505 3506 3507 test -n "$ac_ct_CC" && break 3508done 3509 3510 if test "x$ac_ct_CC" = x; then 3511 CC="" 3512 else 3513 case $cross_compiling:$ac_tool_warned in 3514yes:) 3515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3517ac_tool_warned=yes ;; 3518esac 3519 CC=$ac_ct_CC 3520 fi 3521fi 3522 3523fi 3524if test -z "$CC"; then 3525 if test -n "$ac_tool_prefix"; then 3526 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3527set dummy ${ac_tool_prefix}clang; ac_word=$2 3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529printf %s "checking for $ac_word... " >&6; } 3530if test ${ac_cv_prog_CC+y} 3531then : 3532 printf %s "(cached) " >&6 3533else $as_nop 3534 if test -n "$CC"; then 3535 ac_cv_prog_CC="$CC" # Let the user override the test. 3536else 3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3538for as_dir in $PATH 3539do 3540 IFS=$as_save_IFS 3541 case $as_dir in #((( 3542 '') as_dir=./ ;; 3543 */) ;; 3544 *) as_dir=$as_dir/ ;; 3545 esac 3546 for ac_exec_ext in '' $ac_executable_extensions; do 3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3548 ac_cv_prog_CC="${ac_tool_prefix}clang" 3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3550 break 2 3551 fi 3552done 3553 done 3554IFS=$as_save_IFS 3555 3556fi 3557fi 3558CC=$ac_cv_prog_CC 3559if test -n "$CC"; then 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3561printf "%s\n" "$CC" >&6; } 3562else 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3564printf "%s\n" "no" >&6; } 3565fi 3566 3567 3568fi 3569if test -z "$ac_cv_prog_CC"; then 3570 ac_ct_CC=$CC 3571 # Extract the first word of "clang", so it can be a program name with args. 3572set dummy clang; ac_word=$2 3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574printf %s "checking for $ac_word... " >&6; } 3575if test ${ac_cv_prog_ac_ct_CC+y} 3576then : 3577 printf %s "(cached) " >&6 3578else $as_nop 3579 if test -n "$ac_ct_CC"; then 3580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3581else 3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583for as_dir in $PATH 3584do 3585 IFS=$as_save_IFS 3586 case $as_dir in #((( 3587 '') as_dir=./ ;; 3588 */) ;; 3589 *) as_dir=$as_dir/ ;; 3590 esac 3591 for ac_exec_ext in '' $ac_executable_extensions; do 3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3593 ac_cv_prog_ac_ct_CC="clang" 3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3595 break 2 3596 fi 3597done 3598 done 3599IFS=$as_save_IFS 3600 3601fi 3602fi 3603ac_ct_CC=$ac_cv_prog_ac_ct_CC 3604if test -n "$ac_ct_CC"; then 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3606printf "%s\n" "$ac_ct_CC" >&6; } 3607else 3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609printf "%s\n" "no" >&6; } 3610fi 3611 3612 if test "x$ac_ct_CC" = x; then 3613 CC="" 3614 else 3615 case $cross_compiling:$ac_tool_warned in 3616yes:) 3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3619ac_tool_warned=yes ;; 3620esac 3621 CC=$ac_ct_CC 3622 fi 3623else 3624 CC="$ac_cv_prog_CC" 3625fi 3626 3627fi 3628 3629 3630test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3632as_fn_error $? "no acceptable C compiler found in \$PATH 3633See \`config.log' for more details" "$LINENO" 5; } 3634 3635# Provide some information about the compiler. 3636printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3637set X $ac_compile 3638ac_compiler=$2 3639for ac_option in --version -v -V -qversion -version; do 3640 { { ac_try="$ac_compiler $ac_option >&5" 3641case "(($ac_try" in 3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643 *) ac_try_echo=$ac_try;; 3644esac 3645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3646printf "%s\n" "$ac_try_echo"; } >&5 3647 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3648 ac_status=$? 3649 if test -s conftest.err; then 3650 sed '10a\ 3651... rest of stderr output deleted ... 3652 10q' conftest.err >conftest.er1 3653 cat conftest.er1 >&5 3654 fi 3655 rm -f conftest.er1 conftest.err 3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3657 test $ac_status = 0; } 3658done 3659 3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662 3663int 3664main (void) 3665{ 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671ac_clean_files_save=$ac_clean_files 3672ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3673# Try to create an executable without -o first, disregard a.out. 3674# It will help us diagnose broken compilers, and finding out an intuition 3675# of exeext. 3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3677printf %s "checking whether the C compiler works... " >&6; } 3678ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3679 3680# The possible output files: 3681ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3682 3683ac_rmfiles= 3684for ac_file in $ac_files 3685do 3686 case $ac_file in 3687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3688 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3689 esac 3690done 3691rm -f $ac_rmfiles 3692 3693if { { ac_try="$ac_link_default" 3694case "(($ac_try" in 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696 *) ac_try_echo=$ac_try;; 3697esac 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3699printf "%s\n" "$ac_try_echo"; } >&5 3700 (eval "$ac_link_default") 2>&5 3701 ac_status=$? 3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 test $ac_status = 0; } 3704then : 3705 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3706# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3707# in a Makefile. We should not override ac_cv_exeext if it was cached, 3708# so that the user can short-circuit this test for compilers unknown to 3709# Autoconf. 3710for ac_file in $ac_files '' 3711do 3712 test -f "$ac_file" || continue 3713 case $ac_file in 3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3715 ;; 3716 [ab].out ) 3717 # We found the default executable, but exeext='' is most 3718 # certainly right. 3719 break;; 3720 *.* ) 3721 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3722 then :; else 3723 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3724 fi 3725 # We set ac_cv_exeext here because the later test for it is not 3726 # safe: cross compilers may not add the suffix if given an `-o' 3727 # argument, so we may need to know it at that point already. 3728 # Even if this section looks crufty: it has the advantage of 3729 # actually working. 3730 break;; 3731 * ) 3732 break;; 3733 esac 3734done 3735test "$ac_cv_exeext" = no && ac_cv_exeext= 3736 3737else $as_nop 3738 ac_file='' 3739fi 3740if test -z "$ac_file" 3741then : 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743printf "%s\n" "no" >&6; } 3744printf "%s\n" "$as_me: failed program was:" >&5 3745sed 's/^/| /' conftest.$ac_ext >&5 3746 3747{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3748printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3749as_fn_error 77 "C compiler cannot create executables 3750See \`config.log' for more details" "$LINENO" 5; } 3751else $as_nop 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3753printf "%s\n" "yes" >&6; } 3754fi 3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3756printf %s "checking for C compiler default output file name... " >&6; } 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3758printf "%s\n" "$ac_file" >&6; } 3759ac_exeext=$ac_cv_exeext 3760 3761rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3762ac_clean_files=$ac_clean_files_save 3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3764printf %s "checking for suffix of executables... " >&6; } 3765if { { ac_try="$ac_link" 3766case "(($ac_try" in 3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768 *) ac_try_echo=$ac_try;; 3769esac 3770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3771printf "%s\n" "$ac_try_echo"; } >&5 3772 (eval "$ac_link") 2>&5 3773 ac_status=$? 3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3775 test $ac_status = 0; } 3776then : 3777 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3778# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3779# work properly (i.e., refer to `conftest.exe'), while it won't with 3780# `rm'. 3781for ac_file in conftest.exe conftest conftest.*; do 3782 test -f "$ac_file" || continue 3783 case $ac_file in 3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3785 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3786 break;; 3787 * ) break;; 3788 esac 3789done 3790else $as_nop 3791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3792printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3793as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3794See \`config.log' for more details" "$LINENO" 5; } 3795fi 3796rm -f conftest conftest$ac_cv_exeext 3797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3798printf "%s\n" "$ac_cv_exeext" >&6; } 3799 3800rm -f conftest.$ac_ext 3801EXEEXT=$ac_cv_exeext 3802ac_exeext=$EXEEXT 3803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3804/* end confdefs.h. */ 3805#include <stdio.h> 3806int 3807main (void) 3808{ 3809FILE *f = fopen ("conftest.out", "w"); 3810 return ferror (f) || fclose (f) != 0; 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816ac_clean_files="$ac_clean_files conftest.out" 3817# Check that the compiler produces executables we can run. If not, either 3818# the compiler is broken, or we cross compile. 3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3820printf %s "checking whether we are cross compiling... " >&6; } 3821if test "$cross_compiling" != yes; then 3822 { { ac_try="$ac_link" 3823case "(($ac_try" in 3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3825 *) ac_try_echo=$ac_try;; 3826esac 3827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3828printf "%s\n" "$ac_try_echo"; } >&5 3829 (eval "$ac_link") 2>&5 3830 ac_status=$? 3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3832 test $ac_status = 0; } 3833 if { ac_try='./conftest$ac_cv_exeext' 3834 { { case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3839printf "%s\n" "$ac_try_echo"; } >&5 3840 (eval "$ac_try") 2>&5 3841 ac_status=$? 3842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3843 test $ac_status = 0; }; }; then 3844 cross_compiling=no 3845 else 3846 if test "$cross_compiling" = maybe; then 3847 cross_compiling=yes 3848 else 3849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3850printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3851as_fn_error 77 "cannot run C compiled programs. 3852If you meant to cross compile, use \`--host'. 3853See \`config.log' for more details" "$LINENO" 5; } 3854 fi 3855 fi 3856fi 3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3858printf "%s\n" "$cross_compiling" >&6; } 3859 3860rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3861ac_clean_files=$ac_clean_files_save 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3863printf %s "checking for suffix of object files... " >&6; } 3864if test ${ac_cv_objext+y} 3865then : 3866 printf %s "(cached) " >&6 3867else $as_nop 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main (void) 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879rm -f conftest.o conftest.obj 3880if { { ac_try="$ac_compile" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886printf "%s\n" "$ac_try_echo"; } >&5 3887 (eval "$ac_compile") 2>&5 3888 ac_status=$? 3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3890 test $ac_status = 0; } 3891then : 3892 for ac_file in conftest.o conftest.obj conftest.*; do 3893 test -f "$ac_file" || continue; 3894 case $ac_file in 3895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3897 break;; 3898 esac 3899done 3900else $as_nop 3901 printf "%s\n" "$as_me: failed program was:" >&5 3902sed 's/^/| /' conftest.$ac_ext >&5 3903 3904{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3905printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3906as_fn_error $? "cannot compute suffix of object files: cannot compile 3907See \`config.log' for more details" "$LINENO" 5; } 3908fi 3909rm -f conftest.$ac_cv_objext conftest.$ac_ext 3910fi 3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3912printf "%s\n" "$ac_cv_objext" >&6; } 3913OBJEXT=$ac_cv_objext 3914ac_objext=$OBJEXT 3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3916printf %s "checking whether the compiler supports GNU C... " >&6; } 3917if test ${ac_cv_c_compiler_gnu+y} 3918then : 3919 printf %s "(cached) " >&6 3920else $as_nop 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main (void) 3926{ 3927#ifndef __GNUC__ 3928 choke me 3929#endif 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO" 3936then : 3937 ac_compiler_gnu=yes 3938else $as_nop 3939 ac_compiler_gnu=no 3940fi 3941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3942ac_cv_c_compiler_gnu=$ac_compiler_gnu 3943 3944fi 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3946printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3947ac_compiler_gnu=$ac_cv_c_compiler_gnu 3948 3949if test $ac_compiler_gnu = yes; then 3950 GCC=yes 3951else 3952 GCC= 3953fi 3954ac_test_CFLAGS=${CFLAGS+y} 3955ac_save_CFLAGS=$CFLAGS 3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3957printf %s "checking whether $CC accepts -g... " >&6; } 3958if test ${ac_cv_prog_cc_g+y} 3959then : 3960 printf %s "(cached) " >&6 3961else $as_nop 3962 ac_save_c_werror_flag=$ac_c_werror_flag 3963 ac_c_werror_flag=yes 3964 ac_cv_prog_cc_g=no 3965 CFLAGS="-g" 3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968 3969int 3970main (void) 3971{ 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977if ac_fn_c_try_compile "$LINENO" 3978then : 3979 ac_cv_prog_cc_g=yes 3980else $as_nop 3981 CFLAGS="" 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985int 3986main (void) 3987{ 3988 3989 ; 3990 return 0; 3991} 3992_ACEOF 3993if ac_fn_c_try_compile "$LINENO" 3994then : 3995 3996else $as_nop 3997 ac_c_werror_flag=$ac_save_c_werror_flag 3998 CFLAGS="-g" 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main (void) 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010if ac_fn_c_try_compile "$LINENO" 4011then : 4012 ac_cv_prog_cc_g=yes 4013fi 4014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4015fi 4016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4017fi 4018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4019 ac_c_werror_flag=$ac_save_c_werror_flag 4020fi 4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4022printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4023if test $ac_test_CFLAGS; then 4024 CFLAGS=$ac_save_CFLAGS 4025elif test $ac_cv_prog_cc_g = yes; then 4026 if test "$GCC" = yes; then 4027 CFLAGS="-g -O2" 4028 else 4029 CFLAGS="-g" 4030 fi 4031else 4032 if test "$GCC" = yes; then 4033 CFLAGS="-O2" 4034 else 4035 CFLAGS= 4036 fi 4037fi 4038ac_prog_cc_stdc=no 4039if test x$ac_prog_cc_stdc = xno 4040then : 4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4042printf %s "checking for $CC option to enable C11 features... " >&6; } 4043if test ${ac_cv_prog_cc_c11+y} 4044then : 4045 printf %s "(cached) " >&6 4046else $as_nop 4047 ac_cv_prog_cc_c11=no 4048ac_save_CC=$CC 4049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051$ac_c_conftest_c11_program 4052_ACEOF 4053for ac_arg in '' -std=gnu11 4054do 4055 CC="$ac_save_CC $ac_arg" 4056 if ac_fn_c_try_compile "$LINENO" 4057then : 4058 ac_cv_prog_cc_c11=$ac_arg 4059fi 4060rm -f core conftest.err conftest.$ac_objext conftest.beam 4061 test "x$ac_cv_prog_cc_c11" != "xno" && break 4062done 4063rm -f conftest.$ac_ext 4064CC=$ac_save_CC 4065fi 4066 4067if test "x$ac_cv_prog_cc_c11" = xno 4068then : 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4070printf "%s\n" "unsupported" >&6; } 4071else $as_nop 4072 if test "x$ac_cv_prog_cc_c11" = x 4073then : 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4075printf "%s\n" "none needed" >&6; } 4076else $as_nop 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4078printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4079 CC="$CC $ac_cv_prog_cc_c11" 4080fi 4081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4082 ac_prog_cc_stdc=c11 4083fi 4084fi 4085if test x$ac_prog_cc_stdc = xno 4086then : 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4088printf %s "checking for $CC option to enable C99 features... " >&6; } 4089if test ${ac_cv_prog_cc_c99+y} 4090then : 4091 printf %s "(cached) " >&6 4092else $as_nop 4093 ac_cv_prog_cc_c99=no 4094ac_save_CC=$CC 4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097$ac_c_conftest_c99_program 4098_ACEOF 4099for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4100do 4101 CC="$ac_save_CC $ac_arg" 4102 if ac_fn_c_try_compile "$LINENO" 4103then : 4104 ac_cv_prog_cc_c99=$ac_arg 4105fi 4106rm -f core conftest.err conftest.$ac_objext conftest.beam 4107 test "x$ac_cv_prog_cc_c99" != "xno" && break 4108done 4109rm -f conftest.$ac_ext 4110CC=$ac_save_CC 4111fi 4112 4113if test "x$ac_cv_prog_cc_c99" = xno 4114then : 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4116printf "%s\n" "unsupported" >&6; } 4117else $as_nop 4118 if test "x$ac_cv_prog_cc_c99" = x 4119then : 4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4121printf "%s\n" "none needed" >&6; } 4122else $as_nop 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4124printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4125 CC="$CC $ac_cv_prog_cc_c99" 4126fi 4127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4128 ac_prog_cc_stdc=c99 4129fi 4130fi 4131if test x$ac_prog_cc_stdc = xno 4132then : 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4134printf %s "checking for $CC option to enable C89 features... " >&6; } 4135if test ${ac_cv_prog_cc_c89+y} 4136then : 4137 printf %s "(cached) " >&6 4138else $as_nop 4139 ac_cv_prog_cc_c89=no 4140ac_save_CC=$CC 4141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4142/* end confdefs.h. */ 4143$ac_c_conftest_c89_program 4144_ACEOF 4145for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4146do 4147 CC="$ac_save_CC $ac_arg" 4148 if ac_fn_c_try_compile "$LINENO" 4149then : 4150 ac_cv_prog_cc_c89=$ac_arg 4151fi 4152rm -f core conftest.err conftest.$ac_objext conftest.beam 4153 test "x$ac_cv_prog_cc_c89" != "xno" && break 4154done 4155rm -f conftest.$ac_ext 4156CC=$ac_save_CC 4157fi 4158 4159if test "x$ac_cv_prog_cc_c89" = xno 4160then : 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4162printf "%s\n" "unsupported" >&6; } 4163else $as_nop 4164 if test "x$ac_cv_prog_cc_c89" = x 4165then : 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4167printf "%s\n" "none needed" >&6; } 4168else $as_nop 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4170printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4171 CC="$CC $ac_cv_prog_cc_c89" 4172fi 4173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4174 ac_prog_cc_stdc=c89 4175fi 4176fi 4177 4178ac_ext=c 4179ac_cpp='$CPP $CPPFLAGS' 4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182ac_compiler_gnu=$ac_cv_c_compiler_gnu 4183 4184 4185 ac_ext=c 4186ac_cpp='$CPP $CPPFLAGS' 4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4189ac_compiler_gnu=$ac_cv_c_compiler_gnu 4190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4191printf %s "checking whether $CC understands -c and -o together... " >&6; } 4192if test ${am_cv_prog_cc_c_o+y} 4193then : 4194 printf %s "(cached) " >&6 4195else $as_nop 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198 4199int 4200main (void) 4201{ 4202 4203 ; 4204 return 0; 4205} 4206_ACEOF 4207 # Make sure it works both with $CC and with simple cc. 4208 # Following AC_PROG_CC_C_O, we do the test twice because some 4209 # compilers refuse to overwrite an existing .o file with -o, 4210 # though they will create one. 4211 am_cv_prog_cc_c_o=yes 4212 for am_i in 1 2; do 4213 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4214 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4215 ac_status=$? 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); } \ 4218 && test -f conftest2.$ac_objext; then 4219 : OK 4220 else 4221 am_cv_prog_cc_c_o=no 4222 break 4223 fi 4224 done 4225 rm -f core conftest* 4226 unset am_i 4227fi 4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4229printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4230if test "$am_cv_prog_cc_c_o" != yes; then 4231 # Losing compiler, so override with the script. 4232 # FIXME: It is wrong to rewrite CC. 4233 # But if we don't then we get into trouble of one sort or another. 4234 # A longer-term fix would be to have automake use am__CC in this case, 4235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4236 CC="$am_aux_dir/compile $CC" 4237fi 4238ac_ext=c 4239ac_cpp='$CPP $CPPFLAGS' 4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4242ac_compiler_gnu=$ac_cv_c_compiler_gnu 4243 4244 4245depcc="$CC" am_compiler_list= 4246 4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4248printf %s "checking dependency style of $depcc... " >&6; } 4249if test ${am_cv_CC_dependencies_compiler_type+y} 4250then : 4251 printf %s "(cached) " >&6 4252else $as_nop 4253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4254 # We make a subdir and do the tests there. Otherwise we can end up 4255 # making bogus files that we don't know about and never remove. For 4256 # instance it was reported that on HP-UX the gcc test will end up 4257 # making a dummy file named 'D' -- because '-MD' means "put the output 4258 # in D". 4259 rm -rf conftest.dir 4260 mkdir conftest.dir 4261 # Copy depcomp to subdir because otherwise we won't find it if we're 4262 # using a relative directory. 4263 cp "$am_depcomp" conftest.dir 4264 cd conftest.dir 4265 # We will build objects and dependencies in a subdirectory because 4266 # it helps to detect inapplicable dependency modes. For instance 4267 # both Tru64's cc and ICC support -MD to output dependencies as a 4268 # side effect of compilation, but ICC will put the dependencies in 4269 # the current directory while Tru64 will put them in the object 4270 # directory. 4271 mkdir sub 4272 4273 am_cv_CC_dependencies_compiler_type=none 4274 if test "$am_compiler_list" = ""; then 4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4276 fi 4277 am__universal=false 4278 case " $depcc " in #( 4279 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4280 esac 4281 4282 for depmode in $am_compiler_list; do 4283 # Setup a source with many dependencies, because some compilers 4284 # like to wrap large dependency lists on column 80 (with \), and 4285 # we should not choose a depcomp mode which is confused by this. 4286 # 4287 # We need to recreate these files for each test, as the compiler may 4288 # overwrite some of them when testing with obscure command lines. 4289 # This happens at least with the AIX C compiler. 4290 : > sub/conftest.c 4291 for i in 1 2 3 4 5 6; do 4292 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4293 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4294 # Solaris 10 /bin/sh. 4295 echo '/* dummy */' > sub/conftst$i.h 4296 done 4297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4298 4299 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4300 # mode. It turns out that the SunPro C++ compiler does not properly 4301 # handle '-M -o', and we need to detect this. Also, some Intel 4302 # versions had trouble with output in subdirs. 4303 am__obj=sub/conftest.${OBJEXT-o} 4304 am__minus_obj="-o $am__obj" 4305 case $depmode in 4306 gcc) 4307 # This depmode causes a compiler race in universal mode. 4308 test "$am__universal" = false || continue 4309 ;; 4310 nosideeffect) 4311 # After this tag, mechanisms are not by side-effect, so they'll 4312 # only be used when explicitly requested. 4313 if test "x$enable_dependency_tracking" = xyes; then 4314 continue 4315 else 4316 break 4317 fi 4318 ;; 4319 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4320 # This compiler won't grok '-c -o', but also, the minuso test has 4321 # not run yet. These depmodes are late enough in the game, and 4322 # so weak that their functioning should not be impacted. 4323 am__obj=conftest.${OBJEXT-o} 4324 am__minus_obj= 4325 ;; 4326 none) break ;; 4327 esac 4328 if depmode=$depmode \ 4329 source=sub/conftest.c object=$am__obj \ 4330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4332 >/dev/null 2>conftest.err && 4333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4337 # icc doesn't choke on unknown options, it will just issue warnings 4338 # or remarks (even with -Werror). So we grep stderr for any message 4339 # that says an option was ignored or not supported. 4340 # When given -MP, icc 7.0 and 7.1 complain thusly: 4341 # icc: Command line warning: ignoring option '-M'; no argument required 4342 # The diagnosis changed in icc 8.0: 4343 # icc: Command line remark: option '-MP' not supported 4344 if (grep 'ignoring option' conftest.err || 4345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4346 am_cv_CC_dependencies_compiler_type=$depmode 4347 break 4348 fi 4349 fi 4350 done 4351 4352 cd .. 4353 rm -rf conftest.dir 4354else 4355 am_cv_CC_dependencies_compiler_type=none 4356fi 4357 4358fi 4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4360printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4361CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4362 4363 if 4364 test "x$enable_dependency_tracking" != xno \ 4365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4366 am__fastdepCC_TRUE= 4367 am__fastdepCC_FALSE='#' 4368else 4369 am__fastdepCC_TRUE='#' 4370 am__fastdepCC_FALSE= 4371fi 4372 4373 4374 4375 4376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4377printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4378if test ${ac_cv_c_undeclared_builtin_options+y} 4379then : 4380 printf %s "(cached) " >&6 4381else $as_nop 4382 ac_save_CFLAGS=$CFLAGS 4383 ac_cv_c_undeclared_builtin_options='cannot detect' 4384 for ac_arg in '' -fno-builtin; do 4385 CFLAGS="$ac_save_CFLAGS $ac_arg" 4386 # This test program should *not* compile successfully. 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389 4390int 4391main (void) 4392{ 4393(void) strchr; 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398if ac_fn_c_try_compile "$LINENO" 4399then : 4400 4401else $as_nop 4402 # This test program should compile successfully. 4403 # No library function is consistently available on 4404 # freestanding implementations, so test against a dummy 4405 # declaration. Include always-available headers on the 4406 # off chance that they somehow elicit warnings. 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409#include <float.h> 4410#include <limits.h> 4411#include <stdarg.h> 4412#include <stddef.h> 4413extern void ac_decl (int, char *); 4414 4415int 4416main (void) 4417{ 4418(void) ac_decl (0, (char *) 0); 4419 (void) ac_decl; 4420 4421 ; 4422 return 0; 4423} 4424_ACEOF 4425if ac_fn_c_try_compile "$LINENO" 4426then : 4427 if test x"$ac_arg" = x 4428then : 4429 ac_cv_c_undeclared_builtin_options='none needed' 4430else $as_nop 4431 ac_cv_c_undeclared_builtin_options=$ac_arg 4432fi 4433 break 4434fi 4435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4436fi 4437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4438 done 4439 CFLAGS=$ac_save_CFLAGS 4440 4441fi 4442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4443printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4444 case $ac_cv_c_undeclared_builtin_options in #( 4445 'cannot detect') : 4446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4447printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4448as_fn_error $? "cannot make $CC report undeclared builtins 4449See \`config.log' for more details" "$LINENO" 5; } ;; #( 4450 'none needed') : 4451 ac_c_undeclared_builtin_options='' ;; #( 4452 *) : 4453 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4454esac 4455 4456ac_header= ac_cache= 4457for ac_item in $ac_header_c_list 4458do 4459 if test $ac_cache; then 4460 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4461 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4462 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4463 fi 4464 ac_header= ac_cache= 4465 elif test $ac_header; then 4466 ac_cache=$ac_item 4467 else 4468 ac_header=$ac_item 4469 fi 4470done 4471 4472 4473 4474 4475 4476 4477 4478 4479if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4480then : 4481 4482printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4483 4484fi 4485 4486 4487 4488 4489ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4490if test "x$ac_cv_have_decl___clang__" = xyes 4491then : 4492 CLANGCC="yes" 4493else $as_nop 4494 CLANGCC="no" 4495fi 4496ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4497if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4498then : 4499 INTELCC="yes" 4500else $as_nop 4501 INTELCC="no" 4502fi 4503ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4504if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4505then : 4506 SUNCC="yes" 4507else $as_nop 4508 SUNCC="no" 4509fi 4510 4511 4512 4513 4514 4515 4516 4517 4518if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4519 if test -n "$ac_tool_prefix"; then 4520 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4521set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4523printf %s "checking for $ac_word... " >&6; } 4524if test ${ac_cv_path_PKG_CONFIG+y} 4525then : 4526 printf %s "(cached) " >&6 4527else $as_nop 4528 case $PKG_CONFIG in 4529 [\\/]* | ?:[\\/]*) 4530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4531 ;; 4532 *) 4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH 4535do 4536 IFS=$as_save_IFS 4537 case $as_dir in #((( 4538 '') as_dir=./ ;; 4539 */) ;; 4540 *) as_dir=$as_dir/ ;; 4541 esac 4542 for ac_exec_ext in '' $ac_executable_extensions; do 4543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4544 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4546 break 2 4547 fi 4548done 4549 done 4550IFS=$as_save_IFS 4551 4552 ;; 4553esac 4554fi 4555PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4556if test -n "$PKG_CONFIG"; then 4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4558printf "%s\n" "$PKG_CONFIG" >&6; } 4559else 4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4561printf "%s\n" "no" >&6; } 4562fi 4563 4564 4565fi 4566if test -z "$ac_cv_path_PKG_CONFIG"; then 4567 ac_pt_PKG_CONFIG=$PKG_CONFIG 4568 # Extract the first word of "pkg-config", so it can be a program name with args. 4569set dummy pkg-config; ac_word=$2 4570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4571printf %s "checking for $ac_word... " >&6; } 4572if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4573then : 4574 printf %s "(cached) " >&6 4575else $as_nop 4576 case $ac_pt_PKG_CONFIG in 4577 [\\/]* | ?:[\\/]*) 4578 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4579 ;; 4580 *) 4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582for as_dir in $PATH 4583do 4584 IFS=$as_save_IFS 4585 case $as_dir in #((( 4586 '') as_dir=./ ;; 4587 */) ;; 4588 *) as_dir=$as_dir/ ;; 4589 esac 4590 for ac_exec_ext in '' $ac_executable_extensions; do 4591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4592 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4594 break 2 4595 fi 4596done 4597 done 4598IFS=$as_save_IFS 4599 4600 ;; 4601esac 4602fi 4603ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4604if test -n "$ac_pt_PKG_CONFIG"; then 4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4606printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4607else 4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609printf "%s\n" "no" >&6; } 4610fi 4611 4612 if test "x$ac_pt_PKG_CONFIG" = x; then 4613 PKG_CONFIG="" 4614 else 4615 case $cross_compiling:$ac_tool_warned in 4616yes:) 4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4619ac_tool_warned=yes ;; 4620esac 4621 PKG_CONFIG=$ac_pt_PKG_CONFIG 4622 fi 4623else 4624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4625fi 4626 4627fi 4628if test -n "$PKG_CONFIG"; then 4629 _pkg_min_version=0.9.0 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4631printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4634printf "%s\n" "yes" >&6; } 4635 else 4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4637printf "%s\n" "no" >&6; } 4638 PKG_CONFIG="" 4639 fi 4640fi 4641 4642 4643 # Make sure we can run config.sub. 4644$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4645 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4646 4647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4648printf %s "checking build system type... " >&6; } 4649if test ${ac_cv_build+y} 4650then : 4651 printf %s "(cached) " >&6 4652else $as_nop 4653 ac_build_alias=$build_alias 4654test "x$ac_build_alias" = x && 4655 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4656test "x$ac_build_alias" = x && 4657 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4658ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4659 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4660 4661fi 4662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4663printf "%s\n" "$ac_cv_build" >&6; } 4664case $ac_cv_build in 4665*-*-*) ;; 4666*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4667esac 4668build=$ac_cv_build 4669ac_save_IFS=$IFS; IFS='-' 4670set x $ac_cv_build 4671shift 4672build_cpu=$1 4673build_vendor=$2 4674shift; shift 4675# Remember, the first character of IFS is used to create $*, 4676# except with old shells: 4677build_os=$* 4678IFS=$ac_save_IFS 4679case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4680 4681 4682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4683printf %s "checking host system type... " >&6; } 4684if test ${ac_cv_host+y} 4685then : 4686 printf %s "(cached) " >&6 4687else $as_nop 4688 if test "x$host_alias" = x; then 4689 ac_cv_host=$ac_cv_build 4690else 4691 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4692 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4693fi 4694 4695fi 4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4697printf "%s\n" "$ac_cv_host" >&6; } 4698case $ac_cv_host in 4699*-*-*) ;; 4700*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4701esac 4702host=$ac_cv_host 4703ac_save_IFS=$IFS; IFS='-' 4704set x $ac_cv_host 4705shift 4706host_cpu=$1 4707host_vendor=$2 4708shift; shift 4709# Remember, the first character of IFS is used to create $*, 4710# except with old shells: 4711host_os=$* 4712IFS=$ac_save_IFS 4713case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4714 4715 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4717printf %s "checking for a sed that does not truncate output... " >&6; } 4718if test ${ac_cv_path_SED+y} 4719then : 4720 printf %s "(cached) " >&6 4721else $as_nop 4722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4723 for ac_i in 1 2 3 4 5 6 7; do 4724 ac_script="$ac_script$as_nl$ac_script" 4725 done 4726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4727 { ac_script=; unset ac_script;} 4728 if test -z "$SED"; then 4729 ac_path_SED_found=false 4730 # Loop through the user's path and test for each of PROGNAME-LIST 4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH 4733do 4734 IFS=$as_save_IFS 4735 case $as_dir in #((( 4736 '') as_dir=./ ;; 4737 */) ;; 4738 *) as_dir=$as_dir/ ;; 4739 esac 4740 for ac_prog in sed gsed 4741 do 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4744 as_fn_executable_p "$ac_path_SED" || continue 4745# Check for GNU ac_path_SED and select it if it is found. 4746 # Check for GNU $ac_path_SED 4747case `"$ac_path_SED" --version 2>&1` in 4748*GNU*) 4749 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4750*) 4751 ac_count=0 4752 printf %s 0123456789 >"conftest.in" 4753 while : 4754 do 4755 cat "conftest.in" "conftest.in" >"conftest.tmp" 4756 mv "conftest.tmp" "conftest.in" 4757 cp "conftest.in" "conftest.nl" 4758 printf "%s\n" '' >> "conftest.nl" 4759 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4761 as_fn_arith $ac_count + 1 && ac_count=$as_val 4762 if test $ac_count -gt ${ac_path_SED_max-0}; then 4763 # Best one so far, save it but keep looking for a better one 4764 ac_cv_path_SED="$ac_path_SED" 4765 ac_path_SED_max=$ac_count 4766 fi 4767 # 10*(2^10) chars as input seems more than enough 4768 test $ac_count -gt 10 && break 4769 done 4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4771esac 4772 4773 $ac_path_SED_found && break 3 4774 done 4775 done 4776 done 4777IFS=$as_save_IFS 4778 if test -z "$ac_cv_path_SED"; then 4779 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4780 fi 4781else 4782 ac_cv_path_SED=$SED 4783fi 4784 4785fi 4786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4787printf "%s\n" "$ac_cv_path_SED" >&6; } 4788 SED="$ac_cv_path_SED" 4789 rm -f conftest.sed 4790 4791 4792 4793 4794 4795 4796# Check whether --enable-selective-werror was given. 4797if test ${enable_selective_werror+y} 4798then : 4799 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4800else $as_nop 4801 SELECTIVE_WERROR=yes 4802fi 4803 4804 4805 4806 4807 4808# -v is too short to test reliably with XORG_TESTSET_CFLAG 4809if test "x$SUNCC" = "xyes"; then 4810 BASE_CFLAGS="-v" 4811else 4812 BASE_CFLAGS="" 4813fi 4814 4815# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829xorg_testset_save_CFLAGS="$CFLAGS" 4830 4831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4835if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4836then : 4837 printf %s "(cached) " >&6 4838else $as_nop 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841int i; 4842_ACEOF 4843if ac_fn_c_try_compile "$LINENO" 4844then : 4845 xorg_cv_cc_flag_unknown_warning_option=yes 4846else $as_nop 4847 xorg_cv_cc_flag_unknown_warning_option=no 4848fi 4849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4850fi 4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4854 CFLAGS="$xorg_testset_save_CFLAGS" 4855fi 4856 4857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4860 fi 4861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4864if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4865then : 4866 printf %s "(cached) " >&6 4867else $as_nop 4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869/* end confdefs.h. */ 4870int i; 4871_ACEOF 4872if ac_fn_c_try_compile "$LINENO" 4873then : 4874 xorg_cv_cc_flag_unused_command_line_argument=yes 4875else $as_nop 4876 xorg_cv_cc_flag_unused_command_line_argument=no 4877fi 4878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4879fi 4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4883 CFLAGS="$xorg_testset_save_CFLAGS" 4884fi 4885 4886found="no" 4887 4888 if test $found = "no" ; then 4889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4891 fi 4892 4893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4895 fi 4896 4897 CFLAGS="$CFLAGS -Wall" 4898 4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4900printf %s "checking if $CC supports -Wall... " >&6; } 4901 cacheid=xorg_cv_cc_flag__Wall 4902 if eval test \${$cacheid+y} 4903then : 4904 printf %s "(cached) " >&6 4905else $as_nop 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908int i; 4909int 4910main (void) 4911{ 4912 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917if ac_fn_c_try_link "$LINENO" 4918then : 4919 eval $cacheid=yes 4920else $as_nop 4921 eval $cacheid=no 4922fi 4923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4924 conftest$ac_exeext conftest.$ac_ext 4925fi 4926 4927 4928 CFLAGS="$xorg_testset_save_CFLAGS" 4929 4930 eval supported=\$$cacheid 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4932printf "%s\n" "$supported" >&6; } 4933 if test "$supported" = "yes" ; then 4934 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4935 found="yes" 4936 fi 4937 fi 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953xorg_testset_save_CFLAGS="$CFLAGS" 4954 4955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4959if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4960then : 4961 printf %s "(cached) " >&6 4962else $as_nop 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965int i; 4966_ACEOF 4967if ac_fn_c_try_compile "$LINENO" 4968then : 4969 xorg_cv_cc_flag_unknown_warning_option=yes 4970else $as_nop 4971 xorg_cv_cc_flag_unknown_warning_option=no 4972fi 4973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4974fi 4975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4978 CFLAGS="$xorg_testset_save_CFLAGS" 4979fi 4980 4981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4984 fi 4985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4988if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4989then : 4990 printf %s "(cached) " >&6 4991else $as_nop 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994int i; 4995_ACEOF 4996if ac_fn_c_try_compile "$LINENO" 4997then : 4998 xorg_cv_cc_flag_unused_command_line_argument=yes 4999else $as_nop 5000 xorg_cv_cc_flag_unused_command_line_argument=no 5001fi 5002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5003fi 5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5007 CFLAGS="$xorg_testset_save_CFLAGS" 5008fi 5009 5010found="no" 5011 5012 if test $found = "no" ; then 5013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5015 fi 5016 5017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5019 fi 5020 5021 CFLAGS="$CFLAGS -Wpointer-arith" 5022 5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5024printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5025 cacheid=xorg_cv_cc_flag__Wpointer_arith 5026 if eval test \${$cacheid+y} 5027then : 5028 printf %s "(cached) " >&6 5029else $as_nop 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032int i; 5033int 5034main (void) 5035{ 5036 5037 ; 5038 return 0; 5039} 5040_ACEOF 5041if ac_fn_c_try_link "$LINENO" 5042then : 5043 eval $cacheid=yes 5044else $as_nop 5045 eval $cacheid=no 5046fi 5047rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5048 conftest$ac_exeext conftest.$ac_ext 5049fi 5050 5051 5052 CFLAGS="$xorg_testset_save_CFLAGS" 5053 5054 eval supported=\$$cacheid 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5056printf "%s\n" "$supported" >&6; } 5057 if test "$supported" = "yes" ; then 5058 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5059 found="yes" 5060 fi 5061 fi 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077xorg_testset_save_CFLAGS="$CFLAGS" 5078 5079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5082printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5083if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5084then : 5085 printf %s "(cached) " >&6 5086else $as_nop 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089int i; 5090_ACEOF 5091if ac_fn_c_try_compile "$LINENO" 5092then : 5093 xorg_cv_cc_flag_unknown_warning_option=yes 5094else $as_nop 5095 xorg_cv_cc_flag_unknown_warning_option=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5098fi 5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103fi 5104 5105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 fi 5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5112if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5113then : 5114 printf %s "(cached) " >&6 5115else $as_nop 5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117/* end confdefs.h. */ 5118int i; 5119_ACEOF 5120if ac_fn_c_try_compile "$LINENO" 5121then : 5122 xorg_cv_cc_flag_unused_command_line_argument=yes 5123else $as_nop 5124 xorg_cv_cc_flag_unused_command_line_argument=no 5125fi 5126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5127fi 5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5131 CFLAGS="$xorg_testset_save_CFLAGS" 5132fi 5133 5134found="no" 5135 5136 if test $found = "no" ; then 5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5139 fi 5140 5141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5143 fi 5144 5145 CFLAGS="$CFLAGS -Wmissing-declarations" 5146 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5148printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5149 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5150 if eval test \${$cacheid+y} 5151then : 5152 printf %s "(cached) " >&6 5153else $as_nop 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156int i; 5157int 5158main (void) 5159{ 5160 5161 ; 5162 return 0; 5163} 5164_ACEOF 5165if ac_fn_c_try_link "$LINENO" 5166then : 5167 eval $cacheid=yes 5168else $as_nop 5169 eval $cacheid=no 5170fi 5171rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5172 conftest$ac_exeext conftest.$ac_ext 5173fi 5174 5175 5176 CFLAGS="$xorg_testset_save_CFLAGS" 5177 5178 eval supported=\$$cacheid 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5180printf "%s\n" "$supported" >&6; } 5181 if test "$supported" = "yes" ; then 5182 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5183 found="yes" 5184 fi 5185 fi 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201xorg_testset_save_CFLAGS="$CFLAGS" 5202 5203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5206printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5207if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5208then : 5209 printf %s "(cached) " >&6 5210else $as_nop 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213int i; 5214_ACEOF 5215if ac_fn_c_try_compile "$LINENO" 5216then : 5217 xorg_cv_cc_flag_unknown_warning_option=yes 5218else $as_nop 5219 xorg_cv_cc_flag_unknown_warning_option=no 5220fi 5221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5222fi 5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227fi 5228 5229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 fi 5233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5236if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5237then : 5238 printf %s "(cached) " >&6 5239else $as_nop 5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5241/* end confdefs.h. */ 5242int i; 5243_ACEOF 5244if ac_fn_c_try_compile "$LINENO" 5245then : 5246 xorg_cv_cc_flag_unused_command_line_argument=yes 5247else $as_nop 5248 xorg_cv_cc_flag_unused_command_line_argument=no 5249fi 5250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5251fi 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5253printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5255 CFLAGS="$xorg_testset_save_CFLAGS" 5256fi 5257 5258found="no" 5259 5260 if test $found = "no" ; then 5261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5263 fi 5264 5265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5267 fi 5268 5269 CFLAGS="$CFLAGS -Wformat=2" 5270 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5272printf %s "checking if $CC supports -Wformat=2... " >&6; } 5273 cacheid=xorg_cv_cc_flag__Wformat_2 5274 if eval test \${$cacheid+y} 5275then : 5276 printf %s "(cached) " >&6 5277else $as_nop 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280int i; 5281int 5282main (void) 5283{ 5284 5285 ; 5286 return 0; 5287} 5288_ACEOF 5289if ac_fn_c_try_link "$LINENO" 5290then : 5291 eval $cacheid=yes 5292else $as_nop 5293 eval $cacheid=no 5294fi 5295rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5296 conftest$ac_exeext conftest.$ac_ext 5297fi 5298 5299 5300 CFLAGS="$xorg_testset_save_CFLAGS" 5301 5302 eval supported=\$$cacheid 5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5304printf "%s\n" "$supported" >&6; } 5305 if test "$supported" = "yes" ; then 5306 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5307 found="yes" 5308 fi 5309 fi 5310 5311 if test $found = "no" ; then 5312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5314 fi 5315 5316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5318 fi 5319 5320 CFLAGS="$CFLAGS -Wformat" 5321 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5323printf %s "checking if $CC supports -Wformat... " >&6; } 5324 cacheid=xorg_cv_cc_flag__Wformat 5325 if eval test \${$cacheid+y} 5326then : 5327 printf %s "(cached) " >&6 5328else $as_nop 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331int i; 5332int 5333main (void) 5334{ 5335 5336 ; 5337 return 0; 5338} 5339_ACEOF 5340if ac_fn_c_try_link "$LINENO" 5341then : 5342 eval $cacheid=yes 5343else $as_nop 5344 eval $cacheid=no 5345fi 5346rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5347 conftest$ac_exeext conftest.$ac_ext 5348fi 5349 5350 5351 CFLAGS="$xorg_testset_save_CFLAGS" 5352 5353 eval supported=\$$cacheid 5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5355printf "%s\n" "$supported" >&6; } 5356 if test "$supported" = "yes" ; then 5357 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5358 found="yes" 5359 fi 5360 fi 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378xorg_testset_save_CFLAGS="$CFLAGS" 5379 5380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5383printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5384if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5385then : 5386 printf %s "(cached) " >&6 5387else $as_nop 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390int i; 5391_ACEOF 5392if ac_fn_c_try_compile "$LINENO" 5393then : 5394 xorg_cv_cc_flag_unknown_warning_option=yes 5395else $as_nop 5396 xorg_cv_cc_flag_unknown_warning_option=no 5397fi 5398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5399fi 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5403 CFLAGS="$xorg_testset_save_CFLAGS" 5404fi 5405 5406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 fi 5410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5413if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5414then : 5415 printf %s "(cached) " >&6 5416else $as_nop 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419int i; 5420_ACEOF 5421if ac_fn_c_try_compile "$LINENO" 5422then : 5423 xorg_cv_cc_flag_unused_command_line_argument=yes 5424else $as_nop 5425 xorg_cv_cc_flag_unused_command_line_argument=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5428fi 5429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5430printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433fi 5434 5435found="no" 5436 5437 if test $found = "no" ; then 5438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 5442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5444 fi 5445 5446 CFLAGS="$CFLAGS -Wstrict-prototypes" 5447 5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5449printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5450 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5451 if eval test \${$cacheid+y} 5452then : 5453 printf %s "(cached) " >&6 5454else $as_nop 5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457int i; 5458int 5459main (void) 5460{ 5461 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466if ac_fn_c_try_link "$LINENO" 5467then : 5468 eval $cacheid=yes 5469else $as_nop 5470 eval $cacheid=no 5471fi 5472rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5473 conftest$ac_exeext conftest.$ac_ext 5474fi 5475 5476 5477 CFLAGS="$xorg_testset_save_CFLAGS" 5478 5479 eval supported=\$$cacheid 5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5481printf "%s\n" "$supported" >&6; } 5482 if test "$supported" = "yes" ; then 5483 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5484 found="yes" 5485 fi 5486 fi 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502xorg_testset_save_CFLAGS="$CFLAGS" 5503 5504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5507printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5508if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5509then : 5510 printf %s "(cached) " >&6 5511else $as_nop 5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5513/* end confdefs.h. */ 5514int i; 5515_ACEOF 5516if ac_fn_c_try_compile "$LINENO" 5517then : 5518 xorg_cv_cc_flag_unknown_warning_option=yes 5519else $as_nop 5520 xorg_cv_cc_flag_unknown_warning_option=no 5521fi 5522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5523fi 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5527 CFLAGS="$xorg_testset_save_CFLAGS" 5528fi 5529 5530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533 fi 5534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5537if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5538then : 5539 printf %s "(cached) " >&6 5540else $as_nop 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543int i; 5544_ACEOF 5545if ac_fn_c_try_compile "$LINENO" 5546then : 5547 xorg_cv_cc_flag_unused_command_line_argument=yes 5548else $as_nop 5549 xorg_cv_cc_flag_unused_command_line_argument=no 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5552fi 5553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5554printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5556 CFLAGS="$xorg_testset_save_CFLAGS" 5557fi 5558 5559found="no" 5560 5561 if test $found = "no" ; then 5562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 fi 5565 5566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5568 fi 5569 5570 CFLAGS="$CFLAGS -Wmissing-prototypes" 5571 5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5573printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5574 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5575 if eval test \${$cacheid+y} 5576then : 5577 printf %s "(cached) " >&6 5578else $as_nop 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580/* end confdefs.h. */ 5581int i; 5582int 5583main (void) 5584{ 5585 5586 ; 5587 return 0; 5588} 5589_ACEOF 5590if ac_fn_c_try_link "$LINENO" 5591then : 5592 eval $cacheid=yes 5593else $as_nop 5594 eval $cacheid=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5597 conftest$ac_exeext conftest.$ac_ext 5598fi 5599 5600 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602 5603 eval supported=\$$cacheid 5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5605printf "%s\n" "$supported" >&6; } 5606 if test "$supported" = "yes" ; then 5607 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5608 found="yes" 5609 fi 5610 fi 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626xorg_testset_save_CFLAGS="$CFLAGS" 5627 5628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5632if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5633then : 5634 printf %s "(cached) " >&6 5635else $as_nop 5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5637/* end confdefs.h. */ 5638int i; 5639_ACEOF 5640if ac_fn_c_try_compile "$LINENO" 5641then : 5642 xorg_cv_cc_flag_unknown_warning_option=yes 5643else $as_nop 5644 xorg_cv_cc_flag_unknown_warning_option=no 5645fi 5646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5647fi 5648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652fi 5653 5654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5657 fi 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5661if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5662then : 5663 printf %s "(cached) " >&6 5664else $as_nop 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667int i; 5668_ACEOF 5669if ac_fn_c_try_compile "$LINENO" 5670then : 5671 xorg_cv_cc_flag_unused_command_line_argument=yes 5672else $as_nop 5673 xorg_cv_cc_flag_unused_command_line_argument=no 5674fi 5675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5676fi 5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5680 CFLAGS="$xorg_testset_save_CFLAGS" 5681fi 5682 5683found="no" 5684 5685 if test $found = "no" ; then 5686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5688 fi 5689 5690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5692 fi 5693 5694 CFLAGS="$CFLAGS -Wnested-externs" 5695 5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5697printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5698 cacheid=xorg_cv_cc_flag__Wnested_externs 5699 if eval test \${$cacheid+y} 5700then : 5701 printf %s "(cached) " >&6 5702else $as_nop 5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5704/* end confdefs.h. */ 5705int i; 5706int 5707main (void) 5708{ 5709 5710 ; 5711 return 0; 5712} 5713_ACEOF 5714if ac_fn_c_try_link "$LINENO" 5715then : 5716 eval $cacheid=yes 5717else $as_nop 5718 eval $cacheid=no 5719fi 5720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5721 conftest$ac_exeext conftest.$ac_ext 5722fi 5723 5724 5725 CFLAGS="$xorg_testset_save_CFLAGS" 5726 5727 eval supported=\$$cacheid 5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5729printf "%s\n" "$supported" >&6; } 5730 if test "$supported" = "yes" ; then 5731 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5732 found="yes" 5733 fi 5734 fi 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750xorg_testset_save_CFLAGS="$CFLAGS" 5751 5752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5756if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5757then : 5758 printf %s "(cached) " >&6 5759else $as_nop 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763_ACEOF 5764if ac_fn_c_try_compile "$LINENO" 5765then : 5766 xorg_cv_cc_flag_unknown_warning_option=yes 5767else $as_nop 5768 xorg_cv_cc_flag_unknown_warning_option=no 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5771fi 5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5775 CFLAGS="$xorg_testset_save_CFLAGS" 5776fi 5777 5778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5781 fi 5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5786then : 5787 printf %s "(cached) " >&6 5788else $as_nop 5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790/* end confdefs.h. */ 5791int i; 5792_ACEOF 5793if ac_fn_c_try_compile "$LINENO" 5794then : 5795 xorg_cv_cc_flag_unused_command_line_argument=yes 5796else $as_nop 5797 xorg_cv_cc_flag_unused_command_line_argument=no 5798fi 5799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5800fi 5801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5802printf "%s\n" "$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_cc_unknown_warning_option" = "xyes" ; then 5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5812 fi 5813 5814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5816 fi 5817 5818 CFLAGS="$CFLAGS -Wbad-function-cast" 5819 5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5821printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5822 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5823 if eval test \${$cacheid+y} 5824then : 5825 printf %s "(cached) " >&6 5826else $as_nop 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829int i; 5830int 5831main (void) 5832{ 5833 5834 ; 5835 return 0; 5836} 5837_ACEOF 5838if ac_fn_c_try_link "$LINENO" 5839then : 5840 eval $cacheid=yes 5841else $as_nop 5842 eval $cacheid=no 5843fi 5844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5845 conftest$ac_exeext conftest.$ac_ext 5846fi 5847 5848 5849 CFLAGS="$xorg_testset_save_CFLAGS" 5850 5851 eval supported=\$$cacheid 5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5853printf "%s\n" "$supported" >&6; } 5854 if test "$supported" = "yes" ; then 5855 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5856 found="yes" 5857 fi 5858 fi 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874xorg_testset_save_CFLAGS="$CFLAGS" 5875 5876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5881then : 5882 printf %s "(cached) " >&6 5883else $as_nop 5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885/* end confdefs.h. */ 5886int i; 5887_ACEOF 5888if ac_fn_c_try_compile "$LINENO" 5889then : 5890 xorg_cv_cc_flag_unknown_warning_option=yes 5891else $as_nop 5892 xorg_cv_cc_flag_unknown_warning_option=no 5893fi 5894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5895fi 5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5899 CFLAGS="$xorg_testset_save_CFLAGS" 5900fi 5901 5902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5905 fi 5906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5910then : 5911 printf %s "(cached) " >&6 5912else $as_nop 5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5914/* end confdefs.h. */ 5915int i; 5916_ACEOF 5917if ac_fn_c_try_compile "$LINENO" 5918then : 5919 xorg_cv_cc_flag_unused_command_line_argument=yes 5920else $as_nop 5921 xorg_cv_cc_flag_unused_command_line_argument=no 5922fi 5923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5924fi 5925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5928 CFLAGS="$xorg_testset_save_CFLAGS" 5929fi 5930 5931found="no" 5932 5933 if test $found = "no" ; then 5934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5936 fi 5937 5938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5940 fi 5941 5942 CFLAGS="$CFLAGS -Wold-style-definition" 5943 5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5945printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5946 cacheid=xorg_cv_cc_flag__Wold_style_definition 5947 if eval test \${$cacheid+y} 5948then : 5949 printf %s "(cached) " >&6 5950else $as_nop 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953int i; 5954int 5955main (void) 5956{ 5957 5958 ; 5959 return 0; 5960} 5961_ACEOF 5962if ac_fn_c_try_link "$LINENO" 5963then : 5964 eval $cacheid=yes 5965else $as_nop 5966 eval $cacheid=no 5967fi 5968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5969 conftest$ac_exeext conftest.$ac_ext 5970fi 5971 5972 5973 CFLAGS="$xorg_testset_save_CFLAGS" 5974 5975 eval supported=\$$cacheid 5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5977printf "%s\n" "$supported" >&6; } 5978 if test "$supported" = "yes" ; then 5979 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5980 found="yes" 5981 fi 5982 fi 5983 5984 if test $found = "no" ; then 5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 fi 5988 5989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 fi 5992 5993 CFLAGS="$CFLAGS -fd" 5994 5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5996printf %s "checking if $CC supports -fd... " >&6; } 5997 cacheid=xorg_cv_cc_flag__fd 5998 if eval test \${$cacheid+y} 5999then : 6000 printf %s "(cached) " >&6 6001else $as_nop 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004int i; 6005int 6006main (void) 6007{ 6008 6009 ; 6010 return 0; 6011} 6012_ACEOF 6013if ac_fn_c_try_link "$LINENO" 6014then : 6015 eval $cacheid=yes 6016else $as_nop 6017 eval $cacheid=no 6018fi 6019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6020 conftest$ac_exeext conftest.$ac_ext 6021fi 6022 6023 6024 CFLAGS="$xorg_testset_save_CFLAGS" 6025 6026 eval supported=\$$cacheid 6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6028printf "%s\n" "$supported" >&6; } 6029 if test "$supported" = "yes" ; then 6030 BASE_CFLAGS="$BASE_CFLAGS -fd" 6031 found="yes" 6032 fi 6033 fi 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049xorg_testset_save_CFLAGS="$CFLAGS" 6050 6051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6055if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6056then : 6057 printf %s "(cached) " >&6 6058else $as_nop 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO" 6064then : 6065 xorg_cv_cc_flag_unknown_warning_option=yes 6066else $as_nop 6067 xorg_cv_cc_flag_unknown_warning_option=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6070fi 6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075fi 6076 6077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6084if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6085then : 6086 printf %s "(cached) " >&6 6087else $as_nop 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090int i; 6091_ACEOF 6092if ac_fn_c_try_compile "$LINENO" 6093then : 6094 xorg_cv_cc_flag_unused_command_line_argument=yes 6095else $as_nop 6096 xorg_cv_cc_flag_unused_command_line_argument=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6099fi 6100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104fi 6105 6106found="no" 6107 6108 if test $found = "no" ; then 6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 fi 6112 6113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6115 fi 6116 6117 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6118 6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6120printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6121 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6122 if eval test \${$cacheid+y} 6123then : 6124 printf %s "(cached) " >&6 6125else $as_nop 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129int 6130main (void) 6131{ 6132 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137if ac_fn_c_try_link "$LINENO" 6138then : 6139 eval $cacheid=yes 6140else $as_nop 6141 eval $cacheid=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6144 conftest$ac_exeext conftest.$ac_ext 6145fi 6146 6147 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149 6150 eval supported=\$$cacheid 6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6152printf "%s\n" "$supported" >&6; } 6153 if test "$supported" = "yes" ; then 6154 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6155 found="yes" 6156 fi 6157 fi 6158 6159 6160 6161 6162 6163# This chunk adds additional warnings that could catch undesired effects. 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177xorg_testset_save_CFLAGS="$CFLAGS" 6178 6179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6183if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6184then : 6185 printf %s "(cached) " >&6 6186else $as_nop 6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188/* end confdefs.h. */ 6189int i; 6190_ACEOF 6191if ac_fn_c_try_compile "$LINENO" 6192then : 6193 xorg_cv_cc_flag_unknown_warning_option=yes 6194else $as_nop 6195 xorg_cv_cc_flag_unknown_warning_option=no 6196fi 6197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6198fi 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203fi 6204 6205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6208 fi 6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6213then : 6214 printf %s "(cached) " >&6 6215else $as_nop 6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6217/* end confdefs.h. */ 6218int i; 6219_ACEOF 6220if ac_fn_c_try_compile "$LINENO" 6221then : 6222 xorg_cv_cc_flag_unused_command_line_argument=yes 6223else $as_nop 6224 xorg_cv_cc_flag_unused_command_line_argument=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6227fi 6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232fi 6233 6234found="no" 6235 6236 if test $found = "no" ; then 6237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6239 fi 6240 6241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6243 fi 6244 6245 CFLAGS="$CFLAGS -Wunused" 6246 6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6248printf %s "checking if $CC supports -Wunused... " >&6; } 6249 cacheid=xorg_cv_cc_flag__Wunused 6250 if eval test \${$cacheid+y} 6251then : 6252 printf %s "(cached) " >&6 6253else $as_nop 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256int i; 6257int 6258main (void) 6259{ 6260 6261 ; 6262 return 0; 6263} 6264_ACEOF 6265if ac_fn_c_try_link "$LINENO" 6266then : 6267 eval $cacheid=yes 6268else $as_nop 6269 eval $cacheid=no 6270fi 6271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6272 conftest$ac_exeext conftest.$ac_ext 6273fi 6274 6275 6276 CFLAGS="$xorg_testset_save_CFLAGS" 6277 6278 eval supported=\$$cacheid 6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6280printf "%s\n" "$supported" >&6; } 6281 if test "$supported" = "yes" ; then 6282 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6283 found="yes" 6284 fi 6285 fi 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301xorg_testset_save_CFLAGS="$CFLAGS" 6302 6303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6307if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6308then : 6309 printf %s "(cached) " >&6 6310else $as_nop 6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312/* end confdefs.h. */ 6313int i; 6314_ACEOF 6315if ac_fn_c_try_compile "$LINENO" 6316then : 6317 xorg_cv_cc_flag_unknown_warning_option=yes 6318else $as_nop 6319 xorg_cv_cc_flag_unknown_warning_option=no 6320fi 6321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6322fi 6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6326 CFLAGS="$xorg_testset_save_CFLAGS" 6327fi 6328 6329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6332 fi 6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6336if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6337then : 6338 printf %s "(cached) " >&6 6339else $as_nop 6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6341/* end confdefs.h. */ 6342int i; 6343_ACEOF 6344if ac_fn_c_try_compile "$LINENO" 6345then : 6346 xorg_cv_cc_flag_unused_command_line_argument=yes 6347else $as_nop 6348 xorg_cv_cc_flag_unused_command_line_argument=no 6349fi 6350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6351fi 6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6355 CFLAGS="$xorg_testset_save_CFLAGS" 6356fi 6357 6358found="no" 6359 6360 if test $found = "no" ; then 6361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6363 fi 6364 6365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6367 fi 6368 6369 CFLAGS="$CFLAGS -Wuninitialized" 6370 6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6372printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6373 cacheid=xorg_cv_cc_flag__Wuninitialized 6374 if eval test \${$cacheid+y} 6375then : 6376 printf %s "(cached) " >&6 6377else $as_nop 6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380int i; 6381int 6382main (void) 6383{ 6384 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389if ac_fn_c_try_link "$LINENO" 6390then : 6391 eval $cacheid=yes 6392else $as_nop 6393 eval $cacheid=no 6394fi 6395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6396 conftest$ac_exeext conftest.$ac_ext 6397fi 6398 6399 6400 CFLAGS="$xorg_testset_save_CFLAGS" 6401 6402 eval supported=\$$cacheid 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6404printf "%s\n" "$supported" >&6; } 6405 if test "$supported" = "yes" ; then 6406 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6407 found="yes" 6408 fi 6409 fi 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425xorg_testset_save_CFLAGS="$CFLAGS" 6426 6427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6431if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6432then : 6433 printf %s "(cached) " >&6 6434else $as_nop 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438_ACEOF 6439if ac_fn_c_try_compile "$LINENO" 6440then : 6441 xorg_cv_cc_flag_unknown_warning_option=yes 6442else $as_nop 6443 xorg_cv_cc_flag_unknown_warning_option=no 6444fi 6445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6446fi 6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6448printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6450 CFLAGS="$xorg_testset_save_CFLAGS" 6451fi 6452 6453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6459printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6460if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6461then : 6462 printf %s "(cached) " >&6 6463else $as_nop 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466int i; 6467_ACEOF 6468if ac_fn_c_try_compile "$LINENO" 6469then : 6470 xorg_cv_cc_flag_unused_command_line_argument=yes 6471else $as_nop 6472 xorg_cv_cc_flag_unused_command_line_argument=no 6473fi 6474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6475fi 6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6477printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6479 CFLAGS="$xorg_testset_save_CFLAGS" 6480fi 6481 6482found="no" 6483 6484 if test $found = "no" ; then 6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6487 fi 6488 6489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6491 fi 6492 6493 CFLAGS="$CFLAGS -Wshadow" 6494 6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6496printf %s "checking if $CC supports -Wshadow... " >&6; } 6497 cacheid=xorg_cv_cc_flag__Wshadow 6498 if eval test \${$cacheid+y} 6499then : 6500 printf %s "(cached) " >&6 6501else $as_nop 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505int 6506main (void) 6507{ 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513if ac_fn_c_try_link "$LINENO" 6514then : 6515 eval $cacheid=yes 6516else $as_nop 6517 eval $cacheid=no 6518fi 6519rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6520 conftest$ac_exeext conftest.$ac_ext 6521fi 6522 6523 6524 CFLAGS="$xorg_testset_save_CFLAGS" 6525 6526 eval supported=\$$cacheid 6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6528printf "%s\n" "$supported" >&6; } 6529 if test "$supported" = "yes" ; then 6530 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6531 found="yes" 6532 fi 6533 fi 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549xorg_testset_save_CFLAGS="$CFLAGS" 6550 6551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6554printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6555if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6556then : 6557 printf %s "(cached) " >&6 6558else $as_nop 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561int i; 6562_ACEOF 6563if ac_fn_c_try_compile "$LINENO" 6564then : 6565 xorg_cv_cc_flag_unknown_warning_option=yes 6566else $as_nop 6567 xorg_cv_cc_flag_unknown_warning_option=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6570fi 6571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6572printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575fi 6576 6577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6580 fi 6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6583printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6584if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6585then : 6586 printf %s "(cached) " >&6 6587else $as_nop 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6589/* end confdefs.h. */ 6590int i; 6591_ACEOF 6592if ac_fn_c_try_compile "$LINENO" 6593then : 6594 xorg_cv_cc_flag_unused_command_line_argument=yes 6595else $as_nop 6596 xorg_cv_cc_flag_unused_command_line_argument=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6599fi 6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6603 CFLAGS="$xorg_testset_save_CFLAGS" 6604fi 6605 6606found="no" 6607 6608 if test $found = "no" ; then 6609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6611 fi 6612 6613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6615 fi 6616 6617 CFLAGS="$CFLAGS -Wmissing-noreturn" 6618 6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6620printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6621 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6622 if eval test \${$cacheid+y} 6623then : 6624 printf %s "(cached) " >&6 6625else $as_nop 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628int i; 6629int 6630main (void) 6631{ 6632 6633 ; 6634 return 0; 6635} 6636_ACEOF 6637if ac_fn_c_try_link "$LINENO" 6638then : 6639 eval $cacheid=yes 6640else $as_nop 6641 eval $cacheid=no 6642fi 6643rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6644 conftest$ac_exeext conftest.$ac_ext 6645fi 6646 6647 6648 CFLAGS="$xorg_testset_save_CFLAGS" 6649 6650 eval supported=\$$cacheid 6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6652printf "%s\n" "$supported" >&6; } 6653 if test "$supported" = "yes" ; then 6654 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6655 found="yes" 6656 fi 6657 fi 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673xorg_testset_save_CFLAGS="$CFLAGS" 6674 6675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6678printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6679if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6680then : 6681 printf %s "(cached) " >&6 6682else $as_nop 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685int i; 6686_ACEOF 6687if ac_fn_c_try_compile "$LINENO" 6688then : 6689 xorg_cv_cc_flag_unknown_warning_option=yes 6690else $as_nop 6691 xorg_cv_cc_flag_unknown_warning_option=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6694fi 6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6696printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699fi 6700 6701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6704 fi 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6707printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6708if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6709then : 6710 printf %s "(cached) " >&6 6711else $as_nop 6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6713/* end confdefs.h. */ 6714int i; 6715_ACEOF 6716if ac_fn_c_try_compile "$LINENO" 6717then : 6718 xorg_cv_cc_flag_unused_command_line_argument=yes 6719else $as_nop 6720 xorg_cv_cc_flag_unused_command_line_argument=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6723fi 6724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728fi 6729 6730found="no" 6731 6732 if test $found = "no" ; then 6733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6735 fi 6736 6737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6739 fi 6740 6741 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6742 6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6744printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6745 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6746 if eval test \${$cacheid+y} 6747then : 6748 printf %s "(cached) " >&6 6749else $as_nop 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752int i; 6753int 6754main (void) 6755{ 6756 6757 ; 6758 return 0; 6759} 6760_ACEOF 6761if ac_fn_c_try_link "$LINENO" 6762then : 6763 eval $cacheid=yes 6764else $as_nop 6765 eval $cacheid=no 6766fi 6767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6768 conftest$ac_exeext conftest.$ac_ext 6769fi 6770 6771 6772 CFLAGS="$xorg_testset_save_CFLAGS" 6773 6774 eval supported=\$$cacheid 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6776printf "%s\n" "$supported" >&6; } 6777 if test "$supported" = "yes" ; then 6778 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6779 found="yes" 6780 fi 6781 fi 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797xorg_testset_save_CFLAGS="$CFLAGS" 6798 6799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6802printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6803if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6804then : 6805 printf %s "(cached) " >&6 6806else $as_nop 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809int i; 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO" 6812then : 6813 xorg_cv_cc_flag_unknown_warning_option=yes 6814else $as_nop 6815 xorg_cv_cc_flag_unknown_warning_option=no 6816fi 6817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6818fi 6819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6822 CFLAGS="$xorg_testset_save_CFLAGS" 6823fi 6824 6825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 fi 6829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6832if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6833then : 6834 printf %s "(cached) " >&6 6835else $as_nop 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837/* end confdefs.h. */ 6838int i; 6839_ACEOF 6840if ac_fn_c_try_compile "$LINENO" 6841then : 6842 xorg_cv_cc_flag_unused_command_line_argument=yes 6843else $as_nop 6844 xorg_cv_cc_flag_unused_command_line_argument=no 6845fi 6846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6847fi 6848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852fi 6853 6854found="no" 6855 6856 if test $found = "no" ; then 6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 fi 6860 6861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 fi 6864 6865 CFLAGS="$CFLAGS -Wredundant-decls" 6866 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6868printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6869 cacheid=xorg_cv_cc_flag__Wredundant_decls 6870 if eval test \${$cacheid+y} 6871then : 6872 printf %s "(cached) " >&6 6873else $as_nop 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876int i; 6877int 6878main (void) 6879{ 6880 6881 ; 6882 return 0; 6883} 6884_ACEOF 6885if ac_fn_c_try_link "$LINENO" 6886then : 6887 eval $cacheid=yes 6888else $as_nop 6889 eval $cacheid=no 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6892 conftest$ac_exeext conftest.$ac_ext 6893fi 6894 6895 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 6898 eval supported=\$$cacheid 6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6900printf "%s\n" "$supported" >&6; } 6901 if test "$supported" = "yes" ; then 6902 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6903 found="yes" 6904 fi 6905 fi 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921xorg_testset_save_CFLAGS="$CFLAGS" 6922 6923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6927if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6928then : 6929 printf %s "(cached) " >&6 6930else $as_nop 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933int i; 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO" 6936then : 6937 xorg_cv_cc_flag_unknown_warning_option=yes 6938else $as_nop 6939 xorg_cv_cc_flag_unknown_warning_option=no 6940fi 6941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6942fi 6943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6946 CFLAGS="$xorg_testset_save_CFLAGS" 6947fi 6948 6949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6952 fi 6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6956if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6957then : 6958 printf %s "(cached) " >&6 6959else $as_nop 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962int i; 6963_ACEOF 6964if ac_fn_c_try_compile "$LINENO" 6965then : 6966 xorg_cv_cc_flag_unused_command_line_argument=yes 6967else $as_nop 6968 xorg_cv_cc_flag_unused_command_line_argument=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6971fi 6972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976fi 6977 6978found="no" 6979 6980 if test $found = "no" ; then 6981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6983 fi 6984 6985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6987 fi 6988 6989 CFLAGS="$CFLAGS -Wlogical-op" 6990 6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6992printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6993 cacheid=xorg_cv_cc_flag__Wlogical_op 6994 if eval test \${$cacheid+y} 6995then : 6996 printf %s "(cached) " >&6 6997else $as_nop 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000int i; 7001int 7002main (void) 7003{ 7004 7005 ; 7006 return 0; 7007} 7008_ACEOF 7009if ac_fn_c_try_link "$LINENO" 7010then : 7011 eval $cacheid=yes 7012else $as_nop 7013 eval $cacheid=no 7014fi 7015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7016 conftest$ac_exeext conftest.$ac_ext 7017fi 7018 7019 7020 CFLAGS="$xorg_testset_save_CFLAGS" 7021 7022 eval supported=\$$cacheid 7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7024printf "%s\n" "$supported" >&6; } 7025 if test "$supported" = "yes" ; then 7026 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7027 found="yes" 7028 fi 7029 fi 7030 7031 7032 7033# These are currently disabled because they are noisy. They will be enabled 7034# in the future once the codebase is sufficiently modernized to silence 7035# them. For now, I don't want them to drown out the other warnings. 7036# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7037# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7038# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7039 7040# Turn some warnings into errors, so we don't accidently get successful builds 7041# when there are problems that should be fixed. 7042 7043if test "x$SELECTIVE_WERROR" = "xyes" ; then 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057xorg_testset_save_CFLAGS="$CFLAGS" 7058 7059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7063if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7064then : 7065 printf %s "(cached) " >&6 7066else $as_nop 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069int i; 7070_ACEOF 7071if ac_fn_c_try_compile "$LINENO" 7072then : 7073 xorg_cv_cc_flag_unknown_warning_option=yes 7074else $as_nop 7075 xorg_cv_cc_flag_unknown_warning_option=no 7076fi 7077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7078fi 7079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7082 CFLAGS="$xorg_testset_save_CFLAGS" 7083fi 7084 7085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 fi 7089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7092if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7093then : 7094 printf %s "(cached) " >&6 7095else $as_nop 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097/* end confdefs.h. */ 7098int i; 7099_ACEOF 7100if ac_fn_c_try_compile "$LINENO" 7101then : 7102 xorg_cv_cc_flag_unused_command_line_argument=yes 7103else $as_nop 7104 xorg_cv_cc_flag_unused_command_line_argument=no 7105fi 7106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7107fi 7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112fi 7113 7114found="no" 7115 7116 if test $found = "no" ; then 7117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7119 fi 7120 7121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7123 fi 7124 7125 CFLAGS="$CFLAGS -Werror=implicit" 7126 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7128printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7129 cacheid=xorg_cv_cc_flag__Werror_implicit 7130 if eval test \${$cacheid+y} 7131then : 7132 printf %s "(cached) " >&6 7133else $as_nop 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136int i; 7137int 7138main (void) 7139{ 7140 7141 ; 7142 return 0; 7143} 7144_ACEOF 7145if ac_fn_c_try_link "$LINENO" 7146then : 7147 eval $cacheid=yes 7148else $as_nop 7149 eval $cacheid=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7152 conftest$ac_exeext conftest.$ac_ext 7153fi 7154 7155 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157 7158 eval supported=\$$cacheid 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7160printf "%s\n" "$supported" >&6; } 7161 if test "$supported" = "yes" ; then 7162 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7163 found="yes" 7164 fi 7165 fi 7166 7167 if test $found = "no" ; then 7168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170 fi 7171 7172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7174 fi 7175 7176 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7177 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7179printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7180 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7181 if eval test \${$cacheid+y} 7182then : 7183 printf %s "(cached) " >&6 7184else $as_nop 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188int 7189main (void) 7190{ 7191 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196if ac_fn_c_try_link "$LINENO" 7197then : 7198 eval $cacheid=yes 7199else $as_nop 7200 eval $cacheid=no 7201fi 7202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7203 conftest$ac_exeext conftest.$ac_ext 7204fi 7205 7206 7207 CFLAGS="$xorg_testset_save_CFLAGS" 7208 7209 eval supported=\$$cacheid 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7211printf "%s\n" "$supported" >&6; } 7212 if test "$supported" = "yes" ; then 7213 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7214 found="yes" 7215 fi 7216 fi 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232xorg_testset_save_CFLAGS="$CFLAGS" 7233 7234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7239then : 7240 printf %s "(cached) " >&6 7241else $as_nop 7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7243/* end confdefs.h. */ 7244int i; 7245_ACEOF 7246if ac_fn_c_try_compile "$LINENO" 7247then : 7248 xorg_cv_cc_flag_unknown_warning_option=yes 7249else $as_nop 7250 xorg_cv_cc_flag_unknown_warning_option=no 7251fi 7252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7253fi 7254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7257 CFLAGS="$xorg_testset_save_CFLAGS" 7258fi 7259 7260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7263 fi 7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7267if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7268then : 7269 printf %s "(cached) " >&6 7270else $as_nop 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274_ACEOF 7275if ac_fn_c_try_compile "$LINENO" 7276then : 7277 xorg_cv_cc_flag_unused_command_line_argument=yes 7278else $as_nop 7279 xorg_cv_cc_flag_unused_command_line_argument=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7282fi 7283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287fi 7288 7289found="no" 7290 7291 if test $found = "no" ; then 7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 7296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7298 fi 7299 7300 CFLAGS="$CFLAGS -Werror=nonnull" 7301 7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7303printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7304 cacheid=xorg_cv_cc_flag__Werror_nonnull 7305 if eval test \${$cacheid+y} 7306then : 7307 printf %s "(cached) " >&6 7308else $as_nop 7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310/* end confdefs.h. */ 7311int i; 7312int 7313main (void) 7314{ 7315 7316 ; 7317 return 0; 7318} 7319_ACEOF 7320if ac_fn_c_try_link "$LINENO" 7321then : 7322 eval $cacheid=yes 7323else $as_nop 7324 eval $cacheid=no 7325fi 7326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7327 conftest$ac_exeext conftest.$ac_ext 7328fi 7329 7330 7331 CFLAGS="$xorg_testset_save_CFLAGS" 7332 7333 eval supported=\$$cacheid 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7335printf "%s\n" "$supported" >&6; } 7336 if test "$supported" = "yes" ; then 7337 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7338 found="yes" 7339 fi 7340 fi 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356xorg_testset_save_CFLAGS="$CFLAGS" 7357 7358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7362if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7363then : 7364 printf %s "(cached) " >&6 7365else $as_nop 7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368int i; 7369_ACEOF 7370if ac_fn_c_try_compile "$LINENO" 7371then : 7372 xorg_cv_cc_flag_unknown_warning_option=yes 7373else $as_nop 7374 xorg_cv_cc_flag_unknown_warning_option=no 7375fi 7376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7377fi 7378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7381 CFLAGS="$xorg_testset_save_CFLAGS" 7382fi 7383 7384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7387 fi 7388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7391if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7392then : 7393 printf %s "(cached) " >&6 7394else $as_nop 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396/* end confdefs.h. */ 7397int i; 7398_ACEOF 7399if ac_fn_c_try_compile "$LINENO" 7400then : 7401 xorg_cv_cc_flag_unused_command_line_argument=yes 7402else $as_nop 7403 xorg_cv_cc_flag_unused_command_line_argument=no 7404fi 7405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7406fi 7407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411fi 7412 7413found="no" 7414 7415 if test $found = "no" ; then 7416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 fi 7419 7420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7422 fi 7423 7424 CFLAGS="$CFLAGS -Werror=init-self" 7425 7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7427printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7428 cacheid=xorg_cv_cc_flag__Werror_init_self 7429 if eval test \${$cacheid+y} 7430then : 7431 printf %s "(cached) " >&6 7432else $as_nop 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435int i; 7436int 7437main (void) 7438{ 7439 7440 ; 7441 return 0; 7442} 7443_ACEOF 7444if ac_fn_c_try_link "$LINENO" 7445then : 7446 eval $cacheid=yes 7447else $as_nop 7448 eval $cacheid=no 7449fi 7450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7451 conftest$ac_exeext conftest.$ac_ext 7452fi 7453 7454 7455 CFLAGS="$xorg_testset_save_CFLAGS" 7456 7457 eval supported=\$$cacheid 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7459printf "%s\n" "$supported" >&6; } 7460 if test "$supported" = "yes" ; then 7461 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7462 found="yes" 7463 fi 7464 fi 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480xorg_testset_save_CFLAGS="$CFLAGS" 7481 7482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7486if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7487then : 7488 printf %s "(cached) " >&6 7489else $as_nop 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492int i; 7493_ACEOF 7494if ac_fn_c_try_compile "$LINENO" 7495then : 7496 xorg_cv_cc_flag_unknown_warning_option=yes 7497else $as_nop 7498 xorg_cv_cc_flag_unknown_warning_option=no 7499fi 7500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7501fi 7502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7505 CFLAGS="$xorg_testset_save_CFLAGS" 7506fi 7507 7508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7511 fi 7512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7515if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7516then : 7517 printf %s "(cached) " >&6 7518else $as_nop 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521int i; 7522_ACEOF 7523if ac_fn_c_try_compile "$LINENO" 7524then : 7525 xorg_cv_cc_flag_unused_command_line_argument=yes 7526else $as_nop 7527 xorg_cv_cc_flag_unused_command_line_argument=no 7528fi 7529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7530fi 7531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535fi 7536 7537found="no" 7538 7539 if test $found = "no" ; then 7540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7542 fi 7543 7544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7546 fi 7547 7548 CFLAGS="$CFLAGS -Werror=main" 7549 7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7551printf %s "checking if $CC supports -Werror=main... " >&6; } 7552 cacheid=xorg_cv_cc_flag__Werror_main 7553 if eval test \${$cacheid+y} 7554then : 7555 printf %s "(cached) " >&6 7556else $as_nop 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559int i; 7560int 7561main (void) 7562{ 7563 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568if ac_fn_c_try_link "$LINENO" 7569then : 7570 eval $cacheid=yes 7571else $as_nop 7572 eval $cacheid=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7575 conftest$ac_exeext conftest.$ac_ext 7576fi 7577 7578 7579 CFLAGS="$xorg_testset_save_CFLAGS" 7580 7581 eval supported=\$$cacheid 7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7583printf "%s\n" "$supported" >&6; } 7584 if test "$supported" = "yes" ; then 7585 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7586 found="yes" 7587 fi 7588 fi 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604xorg_testset_save_CFLAGS="$CFLAGS" 7605 7606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7610if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7611then : 7612 printf %s "(cached) " >&6 7613else $as_nop 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616int i; 7617_ACEOF 7618if ac_fn_c_try_compile "$LINENO" 7619then : 7620 xorg_cv_cc_flag_unknown_warning_option=yes 7621else $as_nop 7622 xorg_cv_cc_flag_unknown_warning_option=no 7623fi 7624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7625fi 7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7629 CFLAGS="$xorg_testset_save_CFLAGS" 7630fi 7631 7632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7635 fi 7636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7639if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7640then : 7641 printf %s "(cached) " >&6 7642else $as_nop 7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644/* end confdefs.h. */ 7645int i; 7646_ACEOF 7647if ac_fn_c_try_compile "$LINENO" 7648then : 7649 xorg_cv_cc_flag_unused_command_line_argument=yes 7650else $as_nop 7651 xorg_cv_cc_flag_unused_command_line_argument=no 7652fi 7653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7654fi 7655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7658 CFLAGS="$xorg_testset_save_CFLAGS" 7659fi 7660 7661found="no" 7662 7663 if test $found = "no" ; then 7664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7666 fi 7667 7668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7670 fi 7671 7672 CFLAGS="$CFLAGS -Werror=missing-braces" 7673 7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7675printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7676 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7677 if eval test \${$cacheid+y} 7678then : 7679 printf %s "(cached) " >&6 7680else $as_nop 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683int i; 7684int 7685main (void) 7686{ 7687 7688 ; 7689 return 0; 7690} 7691_ACEOF 7692if ac_fn_c_try_link "$LINENO" 7693then : 7694 eval $cacheid=yes 7695else $as_nop 7696 eval $cacheid=no 7697fi 7698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7699 conftest$ac_exeext conftest.$ac_ext 7700fi 7701 7702 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704 7705 eval supported=\$$cacheid 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7707printf "%s\n" "$supported" >&6; } 7708 if test "$supported" = "yes" ; then 7709 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7710 found="yes" 7711 fi 7712 fi 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728xorg_testset_save_CFLAGS="$CFLAGS" 7729 7730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7733printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7734if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7735then : 7736 printf %s "(cached) " >&6 7737else $as_nop 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO" 7743then : 7744 xorg_cv_cc_flag_unknown_warning_option=yes 7745else $as_nop 7746 xorg_cv_cc_flag_unknown_warning_option=no 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7749fi 7750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7751printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7753 CFLAGS="$xorg_testset_save_CFLAGS" 7754fi 7755 7756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7759 fi 7760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7762printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7763if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7764then : 7765 printf %s "(cached) " >&6 7766else $as_nop 7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7768/* end confdefs.h. */ 7769int i; 7770_ACEOF 7771if ac_fn_c_try_compile "$LINENO" 7772then : 7773 xorg_cv_cc_flag_unused_command_line_argument=yes 7774else $as_nop 7775 xorg_cv_cc_flag_unused_command_line_argument=no 7776fi 7777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7778fi 7779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7780printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7782 CFLAGS="$xorg_testset_save_CFLAGS" 7783fi 7784 7785found="no" 7786 7787 if test $found = "no" ; then 7788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7790 fi 7791 7792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7794 fi 7795 7796 CFLAGS="$CFLAGS -Werror=sequence-point" 7797 7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7799printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7800 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7801 if eval test \${$cacheid+y} 7802then : 7803 printf %s "(cached) " >&6 7804else $as_nop 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806/* end confdefs.h. */ 7807int i; 7808int 7809main (void) 7810{ 7811 7812 ; 7813 return 0; 7814} 7815_ACEOF 7816if ac_fn_c_try_link "$LINENO" 7817then : 7818 eval $cacheid=yes 7819else $as_nop 7820 eval $cacheid=no 7821fi 7822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7823 conftest$ac_exeext conftest.$ac_ext 7824fi 7825 7826 7827 CFLAGS="$xorg_testset_save_CFLAGS" 7828 7829 eval supported=\$$cacheid 7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7831printf "%s\n" "$supported" >&6; } 7832 if test "$supported" = "yes" ; then 7833 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7834 found="yes" 7835 fi 7836 fi 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852xorg_testset_save_CFLAGS="$CFLAGS" 7853 7854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7857printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7858if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7859then : 7860 printf %s "(cached) " >&6 7861else $as_nop 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865_ACEOF 7866if ac_fn_c_try_compile "$LINENO" 7867then : 7868 xorg_cv_cc_flag_unknown_warning_option=yes 7869else $as_nop 7870 xorg_cv_cc_flag_unknown_warning_option=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7873fi 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7875printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878fi 7879 7880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7883 fi 7884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7886printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7887if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7888then : 7889 printf %s "(cached) " >&6 7890else $as_nop 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893int i; 7894_ACEOF 7895if ac_fn_c_try_compile "$LINENO" 7896then : 7897 xorg_cv_cc_flag_unused_command_line_argument=yes 7898else $as_nop 7899 xorg_cv_cc_flag_unused_command_line_argument=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7902fi 7903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7906 CFLAGS="$xorg_testset_save_CFLAGS" 7907fi 7908 7909found="no" 7910 7911 if test $found = "no" ; then 7912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 fi 7915 7916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918 fi 7919 7920 CFLAGS="$CFLAGS -Werror=return-type" 7921 7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7923printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7924 cacheid=xorg_cv_cc_flag__Werror_return_type 7925 if eval test \${$cacheid+y} 7926then : 7927 printf %s "(cached) " >&6 7928else $as_nop 7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7930/* end confdefs.h. */ 7931int i; 7932int 7933main (void) 7934{ 7935 7936 ; 7937 return 0; 7938} 7939_ACEOF 7940if ac_fn_c_try_link "$LINENO" 7941then : 7942 eval $cacheid=yes 7943else $as_nop 7944 eval $cacheid=no 7945fi 7946rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7947 conftest$ac_exeext conftest.$ac_ext 7948fi 7949 7950 7951 CFLAGS="$xorg_testset_save_CFLAGS" 7952 7953 eval supported=\$$cacheid 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7955printf "%s\n" "$supported" >&6; } 7956 if test "$supported" = "yes" ; then 7957 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7958 found="yes" 7959 fi 7960 fi 7961 7962 if test $found = "no" ; then 7963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7965 fi 7966 7967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7969 fi 7970 7971 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7972 7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7974printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7975 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7976 if eval test \${$cacheid+y} 7977then : 7978 printf %s "(cached) " >&6 7979else $as_nop 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981/* end confdefs.h. */ 7982int i; 7983int 7984main (void) 7985{ 7986 7987 ; 7988 return 0; 7989} 7990_ACEOF 7991if ac_fn_c_try_link "$LINENO" 7992then : 7993 eval $cacheid=yes 7994else $as_nop 7995 eval $cacheid=no 7996fi 7997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7998 conftest$ac_exeext conftest.$ac_ext 7999fi 8000 8001 8002 CFLAGS="$xorg_testset_save_CFLAGS" 8003 8004 eval supported=\$$cacheid 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8006printf "%s\n" "$supported" >&6; } 8007 if test "$supported" = "yes" ; then 8008 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8009 found="yes" 8010 fi 8011 fi 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027xorg_testset_save_CFLAGS="$CFLAGS" 8028 8029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8033if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8034then : 8035 printf %s "(cached) " >&6 8036else $as_nop 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040_ACEOF 8041if ac_fn_c_try_compile "$LINENO" 8042then : 8043 xorg_cv_cc_flag_unknown_warning_option=yes 8044else $as_nop 8045 xorg_cv_cc_flag_unknown_warning_option=no 8046fi 8047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8048fi 8049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8052 CFLAGS="$xorg_testset_save_CFLAGS" 8053fi 8054 8055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8058 fi 8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8062if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8063then : 8064 printf %s "(cached) " >&6 8065else $as_nop 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068int i; 8069_ACEOF 8070if ac_fn_c_try_compile "$LINENO" 8071then : 8072 xorg_cv_cc_flag_unused_command_line_argument=yes 8073else $as_nop 8074 xorg_cv_cc_flag_unused_command_line_argument=no 8075fi 8076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8077fi 8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082fi 8083 8084found="no" 8085 8086 if test $found = "no" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 8091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8093 fi 8094 8095 CFLAGS="$CFLAGS -Werror=trigraphs" 8096 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8098printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8099 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8100 if eval test \${$cacheid+y} 8101then : 8102 printf %s "(cached) " >&6 8103else $as_nop 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107int 8108main (void) 8109{ 8110 8111 ; 8112 return 0; 8113} 8114_ACEOF 8115if ac_fn_c_try_link "$LINENO" 8116then : 8117 eval $cacheid=yes 8118else $as_nop 8119 eval $cacheid=no 8120fi 8121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8122 conftest$ac_exeext conftest.$ac_ext 8123fi 8124 8125 8126 CFLAGS="$xorg_testset_save_CFLAGS" 8127 8128 eval supported=\$$cacheid 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8130printf "%s\n" "$supported" >&6; } 8131 if test "$supported" = "yes" ; then 8132 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8133 found="yes" 8134 fi 8135 fi 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151xorg_testset_save_CFLAGS="$CFLAGS" 8152 8153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8156printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8157if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8158then : 8159 printf %s "(cached) " >&6 8160else $as_nop 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163int i; 8164_ACEOF 8165if ac_fn_c_try_compile "$LINENO" 8166then : 8167 xorg_cv_cc_flag_unknown_warning_option=yes 8168else $as_nop 8169 xorg_cv_cc_flag_unknown_warning_option=no 8170fi 8171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8172fi 8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177fi 8178 8179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 fi 8183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8186if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8187then : 8188 printf %s "(cached) " >&6 8189else $as_nop 8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191/* end confdefs.h. */ 8192int i; 8193_ACEOF 8194if ac_fn_c_try_compile "$LINENO" 8195then : 8196 xorg_cv_cc_flag_unused_command_line_argument=yes 8197else $as_nop 8198 xorg_cv_cc_flag_unused_command_line_argument=no 8199fi 8200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8201fi 8202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8203printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8205 CFLAGS="$xorg_testset_save_CFLAGS" 8206fi 8207 8208found="no" 8209 8210 if test $found = "no" ; then 8211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8213 fi 8214 8215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8217 fi 8218 8219 CFLAGS="$CFLAGS -Werror=array-bounds" 8220 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8222printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8223 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8224 if eval test \${$cacheid+y} 8225then : 8226 printf %s "(cached) " >&6 8227else $as_nop 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231int 8232main (void) 8233{ 8234 8235 ; 8236 return 0; 8237} 8238_ACEOF 8239if ac_fn_c_try_link "$LINENO" 8240then : 8241 eval $cacheid=yes 8242else $as_nop 8243 eval $cacheid=no 8244fi 8245rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8246 conftest$ac_exeext conftest.$ac_ext 8247fi 8248 8249 8250 CFLAGS="$xorg_testset_save_CFLAGS" 8251 8252 eval supported=\$$cacheid 8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8254printf "%s\n" "$supported" >&6; } 8255 if test "$supported" = "yes" ; then 8256 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8257 found="yes" 8258 fi 8259 fi 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275xorg_testset_save_CFLAGS="$CFLAGS" 8276 8277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8280printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8281if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8282then : 8283 printf %s "(cached) " >&6 8284else $as_nop 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287int i; 8288_ACEOF 8289if ac_fn_c_try_compile "$LINENO" 8290then : 8291 xorg_cv_cc_flag_unknown_warning_option=yes 8292else $as_nop 8293 xorg_cv_cc_flag_unknown_warning_option=no 8294fi 8295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8296fi 8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8298printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8300 CFLAGS="$xorg_testset_save_CFLAGS" 8301fi 8302 8303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8306 fi 8307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8309printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8310if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8311then : 8312 printf %s "(cached) " >&6 8313else $as_nop 8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8315/* end confdefs.h. */ 8316int i; 8317_ACEOF 8318if ac_fn_c_try_compile "$LINENO" 8319then : 8320 xorg_cv_cc_flag_unused_command_line_argument=yes 8321else $as_nop 8322 xorg_cv_cc_flag_unused_command_line_argument=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8325fi 8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8329 CFLAGS="$xorg_testset_save_CFLAGS" 8330fi 8331 8332found="no" 8333 8334 if test $found = "no" ; then 8335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8337 fi 8338 8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 fi 8342 8343 CFLAGS="$CFLAGS -Werror=write-strings" 8344 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8346printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8347 cacheid=xorg_cv_cc_flag__Werror_write_strings 8348 if eval test \${$cacheid+y} 8349then : 8350 printf %s "(cached) " >&6 8351else $as_nop 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353/* end confdefs.h. */ 8354int i; 8355int 8356main (void) 8357{ 8358 8359 ; 8360 return 0; 8361} 8362_ACEOF 8363if ac_fn_c_try_link "$LINENO" 8364then : 8365 eval $cacheid=yes 8366else $as_nop 8367 eval $cacheid=no 8368fi 8369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8370 conftest$ac_exeext conftest.$ac_ext 8371fi 8372 8373 8374 CFLAGS="$xorg_testset_save_CFLAGS" 8375 8376 eval supported=\$$cacheid 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8378printf "%s\n" "$supported" >&6; } 8379 if test "$supported" = "yes" ; then 8380 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8381 found="yes" 8382 fi 8383 fi 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399xorg_testset_save_CFLAGS="$CFLAGS" 8400 8401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8405if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8406then : 8407 printf %s "(cached) " >&6 8408else $as_nop 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411int i; 8412_ACEOF 8413if ac_fn_c_try_compile "$LINENO" 8414then : 8415 xorg_cv_cc_flag_unknown_warning_option=yes 8416else $as_nop 8417 xorg_cv_cc_flag_unknown_warning_option=no 8418fi 8419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8420fi 8421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8422printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8424 CFLAGS="$xorg_testset_save_CFLAGS" 8425fi 8426 8427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8430 fi 8431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8433printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8434if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8435then : 8436 printf %s "(cached) " >&6 8437else $as_nop 8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8439/* end confdefs.h. */ 8440int i; 8441_ACEOF 8442if ac_fn_c_try_compile "$LINENO" 8443then : 8444 xorg_cv_cc_flag_unused_command_line_argument=yes 8445else $as_nop 8446 xorg_cv_cc_flag_unused_command_line_argument=no 8447fi 8448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8449fi 8450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8451printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8453 CFLAGS="$xorg_testset_save_CFLAGS" 8454fi 8455 8456found="no" 8457 8458 if test $found = "no" ; then 8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8461 fi 8462 8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8465 fi 8466 8467 CFLAGS="$CFLAGS -Werror=address" 8468 8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8470printf %s "checking if $CC supports -Werror=address... " >&6; } 8471 cacheid=xorg_cv_cc_flag__Werror_address 8472 if eval test \${$cacheid+y} 8473then : 8474 printf %s "(cached) " >&6 8475else $as_nop 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479int 8480main (void) 8481{ 8482 8483 ; 8484 return 0; 8485} 8486_ACEOF 8487if ac_fn_c_try_link "$LINENO" 8488then : 8489 eval $cacheid=yes 8490else $as_nop 8491 eval $cacheid=no 8492fi 8493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8494 conftest$ac_exeext conftest.$ac_ext 8495fi 8496 8497 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499 8500 eval supported=\$$cacheid 8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8502printf "%s\n" "$supported" >&6; } 8503 if test "$supported" = "yes" ; then 8504 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8505 found="yes" 8506 fi 8507 fi 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523xorg_testset_save_CFLAGS="$CFLAGS" 8524 8525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8529if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8530then : 8531 printf %s "(cached) " >&6 8532else $as_nop 8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8534/* end confdefs.h. */ 8535int i; 8536_ACEOF 8537if ac_fn_c_try_compile "$LINENO" 8538then : 8539 xorg_cv_cc_flag_unknown_warning_option=yes 8540else $as_nop 8541 xorg_cv_cc_flag_unknown_warning_option=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8544fi 8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 fi 8555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8558if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8559then : 8560 printf %s "(cached) " >&6 8561else $as_nop 8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8563/* end confdefs.h. */ 8564int i; 8565_ACEOF 8566if ac_fn_c_try_compile "$LINENO" 8567then : 8568 xorg_cv_cc_flag_unused_command_line_argument=yes 8569else $as_nop 8570 xorg_cv_cc_flag_unused_command_line_argument=no 8571fi 8572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8573fi 8574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8577 CFLAGS="$xorg_testset_save_CFLAGS" 8578fi 8579 8580found="no" 8581 8582 if test $found = "no" ; then 8583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 fi 8586 8587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8589 fi 8590 8591 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8592 8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8594printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8595 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8596 if eval test \${$cacheid+y} 8597then : 8598 printf %s "(cached) " >&6 8599else $as_nop 8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8601/* end confdefs.h. */ 8602int i; 8603int 8604main (void) 8605{ 8606 8607 ; 8608 return 0; 8609} 8610_ACEOF 8611if ac_fn_c_try_link "$LINENO" 8612then : 8613 eval $cacheid=yes 8614else $as_nop 8615 eval $cacheid=no 8616fi 8617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8618 conftest$ac_exeext conftest.$ac_ext 8619fi 8620 8621 8622 CFLAGS="$xorg_testset_save_CFLAGS" 8623 8624 eval supported=\$$cacheid 8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8626printf "%s\n" "$supported" >&6; } 8627 if test "$supported" = "yes" ; then 8628 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8629 found="yes" 8630 fi 8631 fi 8632 8633 if test $found = "no" ; then 8634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8636 fi 8637 8638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8640 fi 8641 8642 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8643 8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8645printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8646 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8647 if eval test \${$cacheid+y} 8648then : 8649 printf %s "(cached) " >&6 8650else $as_nop 8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8652/* end confdefs.h. */ 8653int i; 8654int 8655main (void) 8656{ 8657 8658 ; 8659 return 0; 8660} 8661_ACEOF 8662if ac_fn_c_try_link "$LINENO" 8663then : 8664 eval $cacheid=yes 8665else $as_nop 8666 eval $cacheid=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8669 conftest$ac_exeext conftest.$ac_ext 8670fi 8671 8672 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674 8675 eval supported=\$$cacheid 8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8677printf "%s\n" "$supported" >&6; } 8678 if test "$supported" = "yes" ; then 8679 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8680 found="yes" 8681 fi 8682 fi 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698xorg_testset_save_CFLAGS="$CFLAGS" 8699 8700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8703printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8704if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8705then : 8706 printf %s "(cached) " >&6 8707else $as_nop 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710int i; 8711_ACEOF 8712if ac_fn_c_try_compile "$LINENO" 8713then : 8714 xorg_cv_cc_flag_unknown_warning_option=yes 8715else $as_nop 8716 xorg_cv_cc_flag_unknown_warning_option=no 8717fi 8718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8719fi 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8723 CFLAGS="$xorg_testset_save_CFLAGS" 8724fi 8725 8726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 fi 8730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8734then : 8735 printf %s "(cached) " >&6 8736else $as_nop 8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8738/* end confdefs.h. */ 8739int i; 8740_ACEOF 8741if ac_fn_c_try_compile "$LINENO" 8742then : 8743 xorg_cv_cc_flag_unused_command_line_argument=yes 8744else $as_nop 8745 xorg_cv_cc_flag_unused_command_line_argument=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8748fi 8749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753fi 8754 8755found="no" 8756 8757 if test $found = "no" ; then 8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 fi 8761 8762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 fi 8765 8766 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8767 8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8769printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8770 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8771 if eval test \${$cacheid+y} 8772then : 8773 printf %s "(cached) " >&6 8774else $as_nop 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778int 8779main (void) 8780{ 8781 8782 ; 8783 return 0; 8784} 8785_ACEOF 8786if ac_fn_c_try_link "$LINENO" 8787then : 8788 eval $cacheid=yes 8789else $as_nop 8790 eval $cacheid=no 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8793 conftest$ac_exeext conftest.$ac_ext 8794fi 8795 8796 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798 8799 eval supported=\$$cacheid 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8801printf "%s\n" "$supported" >&6; } 8802 if test "$supported" = "yes" ; then 8803 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8804 found="yes" 8805 fi 8806 fi 8807 8808 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8809else 8810{ printf "%s\n" "$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 8811printf "%s\n" "$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;} 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825xorg_testset_save_CFLAGS="$CFLAGS" 8826 8827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8831if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8832then : 8833 printf %s "(cached) " >&6 8834else $as_nop 8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8836/* end confdefs.h. */ 8837int i; 8838_ACEOF 8839if ac_fn_c_try_compile "$LINENO" 8840then : 8841 xorg_cv_cc_flag_unknown_warning_option=yes 8842else $as_nop 8843 xorg_cv_cc_flag_unknown_warning_option=no 8844fi 8845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8846fi 8847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8848printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8850 CFLAGS="$xorg_testset_save_CFLAGS" 8851fi 8852 8853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 fi 8857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8859printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8860if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8861then : 8862 printf %s "(cached) " >&6 8863else $as_nop 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866int i; 8867_ACEOF 8868if ac_fn_c_try_compile "$LINENO" 8869then : 8870 xorg_cv_cc_flag_unused_command_line_argument=yes 8871else $as_nop 8872 xorg_cv_cc_flag_unused_command_line_argument=no 8873fi 8874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8875fi 8876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8879 CFLAGS="$xorg_testset_save_CFLAGS" 8880fi 8881 8882found="no" 8883 8884 if test $found = "no" ; then 8885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8887 fi 8888 8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8891 fi 8892 8893 CFLAGS="$CFLAGS -Wimplicit" 8894 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8896printf %s "checking if $CC supports -Wimplicit... " >&6; } 8897 cacheid=xorg_cv_cc_flag__Wimplicit 8898 if eval test \${$cacheid+y} 8899then : 8900 printf %s "(cached) " >&6 8901else $as_nop 8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903/* end confdefs.h. */ 8904int i; 8905int 8906main (void) 8907{ 8908 8909 ; 8910 return 0; 8911} 8912_ACEOF 8913if ac_fn_c_try_link "$LINENO" 8914then : 8915 eval $cacheid=yes 8916else $as_nop 8917 eval $cacheid=no 8918fi 8919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8920 conftest$ac_exeext conftest.$ac_ext 8921fi 8922 8923 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925 8926 eval supported=\$$cacheid 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8928printf "%s\n" "$supported" >&6; } 8929 if test "$supported" = "yes" ; then 8930 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8931 found="yes" 8932 fi 8933 fi 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949xorg_testset_save_CFLAGS="$CFLAGS" 8950 8951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8956then : 8957 printf %s "(cached) " >&6 8958else $as_nop 8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8960/* end confdefs.h. */ 8961int i; 8962_ACEOF 8963if ac_fn_c_try_compile "$LINENO" 8964then : 8965 xorg_cv_cc_flag_unknown_warning_option=yes 8966else $as_nop 8967 xorg_cv_cc_flag_unknown_warning_option=no 8968fi 8969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8970fi 8971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8974 CFLAGS="$xorg_testset_save_CFLAGS" 8975fi 8976 8977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8980 fi 8981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8984if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8985then : 8986 printf %s "(cached) " >&6 8987else $as_nop 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990int i; 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO" 8993then : 8994 xorg_cv_cc_flag_unused_command_line_argument=yes 8995else $as_nop 8996 xorg_cv_cc_flag_unused_command_line_argument=no 8997fi 8998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8999fi 9000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004fi 9005 9006found="no" 9007 9008 if test $found = "no" ; then 9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9011 fi 9012 9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9015 fi 9016 9017 CFLAGS="$CFLAGS -Wnonnull" 9018 9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9020printf %s "checking if $CC supports -Wnonnull... " >&6; } 9021 cacheid=xorg_cv_cc_flag__Wnonnull 9022 if eval test \${$cacheid+y} 9023then : 9024 printf %s "(cached) " >&6 9025else $as_nop 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028int i; 9029int 9030main (void) 9031{ 9032 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037if ac_fn_c_try_link "$LINENO" 9038then : 9039 eval $cacheid=yes 9040else $as_nop 9041 eval $cacheid=no 9042fi 9043rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9044 conftest$ac_exeext conftest.$ac_ext 9045fi 9046 9047 9048 CFLAGS="$xorg_testset_save_CFLAGS" 9049 9050 eval supported=\$$cacheid 9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9052printf "%s\n" "$supported" >&6; } 9053 if test "$supported" = "yes" ; then 9054 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9055 found="yes" 9056 fi 9057 fi 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073xorg_testset_save_CFLAGS="$CFLAGS" 9074 9075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9079if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9080then : 9081 printf %s "(cached) " >&6 9082else $as_nop 9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9084/* end confdefs.h. */ 9085int i; 9086_ACEOF 9087if ac_fn_c_try_compile "$LINENO" 9088then : 9089 xorg_cv_cc_flag_unknown_warning_option=yes 9090else $as_nop 9091 xorg_cv_cc_flag_unknown_warning_option=no 9092fi 9093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9094fi 9095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9096printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9098 CFLAGS="$xorg_testset_save_CFLAGS" 9099fi 9100 9101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9104 fi 9105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9107printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9108if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9109then : 9110 printf %s "(cached) " >&6 9111else $as_nop 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9113/* end confdefs.h. */ 9114int i; 9115_ACEOF 9116if ac_fn_c_try_compile "$LINENO" 9117then : 9118 xorg_cv_cc_flag_unused_command_line_argument=yes 9119else $as_nop 9120 xorg_cv_cc_flag_unused_command_line_argument=no 9121fi 9122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9123fi 9124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9127 CFLAGS="$xorg_testset_save_CFLAGS" 9128fi 9129 9130found="no" 9131 9132 if test $found = "no" ; then 9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 fi 9136 9137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9139 fi 9140 9141 CFLAGS="$CFLAGS -Winit-self" 9142 9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9144printf %s "checking if $CC supports -Winit-self... " >&6; } 9145 cacheid=xorg_cv_cc_flag__Winit_self 9146 if eval test \${$cacheid+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151/* end confdefs.h. */ 9152int i; 9153int 9154main (void) 9155{ 9156 9157 ; 9158 return 0; 9159} 9160_ACEOF 9161if ac_fn_c_try_link "$LINENO" 9162then : 9163 eval $cacheid=yes 9164else $as_nop 9165 eval $cacheid=no 9166fi 9167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9168 conftest$ac_exeext conftest.$ac_ext 9169fi 9170 9171 9172 CFLAGS="$xorg_testset_save_CFLAGS" 9173 9174 eval supported=\$$cacheid 9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9176printf "%s\n" "$supported" >&6; } 9177 if test "$supported" = "yes" ; then 9178 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9179 found="yes" 9180 fi 9181 fi 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197xorg_testset_save_CFLAGS="$CFLAGS" 9198 9199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9202printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9203if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9204then : 9205 printf %s "(cached) " >&6 9206else $as_nop 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9208/* end confdefs.h. */ 9209int i; 9210_ACEOF 9211if ac_fn_c_try_compile "$LINENO" 9212then : 9213 xorg_cv_cc_flag_unknown_warning_option=yes 9214else $as_nop 9215 xorg_cv_cc_flag_unknown_warning_option=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9218fi 9219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9220printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9222 CFLAGS="$xorg_testset_save_CFLAGS" 9223fi 9224 9225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 fi 9229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9231printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9232if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9233then : 9234 printf %s "(cached) " >&6 9235else $as_nop 9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9237/* end confdefs.h. */ 9238int i; 9239_ACEOF 9240if ac_fn_c_try_compile "$LINENO" 9241then : 9242 xorg_cv_cc_flag_unused_command_line_argument=yes 9243else $as_nop 9244 xorg_cv_cc_flag_unused_command_line_argument=no 9245fi 9246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9247fi 9248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9249printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9251 CFLAGS="$xorg_testset_save_CFLAGS" 9252fi 9253 9254found="no" 9255 9256 if test $found = "no" ; then 9257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9259 fi 9260 9261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9263 fi 9264 9265 CFLAGS="$CFLAGS -Wmain" 9266 9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9268printf %s "checking if $CC supports -Wmain... " >&6; } 9269 cacheid=xorg_cv_cc_flag__Wmain 9270 if eval test \${$cacheid+y} 9271then : 9272 printf %s "(cached) " >&6 9273else $as_nop 9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9275/* end confdefs.h. */ 9276int i; 9277int 9278main (void) 9279{ 9280 9281 ; 9282 return 0; 9283} 9284_ACEOF 9285if ac_fn_c_try_link "$LINENO" 9286then : 9287 eval $cacheid=yes 9288else $as_nop 9289 eval $cacheid=no 9290fi 9291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9292 conftest$ac_exeext conftest.$ac_ext 9293fi 9294 9295 9296 CFLAGS="$xorg_testset_save_CFLAGS" 9297 9298 eval supported=\$$cacheid 9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9300printf "%s\n" "$supported" >&6; } 9301 if test "$supported" = "yes" ; then 9302 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9303 found="yes" 9304 fi 9305 fi 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321xorg_testset_save_CFLAGS="$CFLAGS" 9322 9323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9327if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9328then : 9329 printf %s "(cached) " >&6 9330else $as_nop 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333int i; 9334_ACEOF 9335if ac_fn_c_try_compile "$LINENO" 9336then : 9337 xorg_cv_cc_flag_unknown_warning_option=yes 9338else $as_nop 9339 xorg_cv_cc_flag_unknown_warning_option=no 9340fi 9341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9342fi 9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9346 CFLAGS="$xorg_testset_save_CFLAGS" 9347fi 9348 9349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 fi 9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9357then : 9358 printf %s "(cached) " >&6 9359else $as_nop 9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362int i; 9363_ACEOF 9364if ac_fn_c_try_compile "$LINENO" 9365then : 9366 xorg_cv_cc_flag_unused_command_line_argument=yes 9367else $as_nop 9368 xorg_cv_cc_flag_unused_command_line_argument=no 9369fi 9370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9371fi 9372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9375 CFLAGS="$xorg_testset_save_CFLAGS" 9376fi 9377 9378found="no" 9379 9380 if test $found = "no" ; then 9381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9383 fi 9384 9385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9387 fi 9388 9389 CFLAGS="$CFLAGS -Wmissing-braces" 9390 9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9392printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9393 cacheid=xorg_cv_cc_flag__Wmissing_braces 9394 if eval test \${$cacheid+y} 9395then : 9396 printf %s "(cached) " >&6 9397else $as_nop 9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9399/* end confdefs.h. */ 9400int i; 9401int 9402main (void) 9403{ 9404 9405 ; 9406 return 0; 9407} 9408_ACEOF 9409if ac_fn_c_try_link "$LINENO" 9410then : 9411 eval $cacheid=yes 9412else $as_nop 9413 eval $cacheid=no 9414fi 9415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9416 conftest$ac_exeext conftest.$ac_ext 9417fi 9418 9419 9420 CFLAGS="$xorg_testset_save_CFLAGS" 9421 9422 eval supported=\$$cacheid 9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9424printf "%s\n" "$supported" >&6; } 9425 if test "$supported" = "yes" ; then 9426 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9427 found="yes" 9428 fi 9429 fi 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445xorg_testset_save_CFLAGS="$CFLAGS" 9446 9447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9450printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9451if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9452then : 9453 printf %s "(cached) " >&6 9454else $as_nop 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457int i; 9458_ACEOF 9459if ac_fn_c_try_compile "$LINENO" 9460then : 9461 xorg_cv_cc_flag_unknown_warning_option=yes 9462else $as_nop 9463 xorg_cv_cc_flag_unknown_warning_option=no 9464fi 9465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9466fi 9467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9470 CFLAGS="$xorg_testset_save_CFLAGS" 9471fi 9472 9473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9476 fi 9477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9480if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9481then : 9482 printf %s "(cached) " >&6 9483else $as_nop 9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486int i; 9487_ACEOF 9488if ac_fn_c_try_compile "$LINENO" 9489then : 9490 xorg_cv_cc_flag_unused_command_line_argument=yes 9491else $as_nop 9492 xorg_cv_cc_flag_unused_command_line_argument=no 9493fi 9494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9495fi 9496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9497printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500fi 9501 9502found="no" 9503 9504 if test $found = "no" ; then 9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9507 fi 9508 9509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9511 fi 9512 9513 CFLAGS="$CFLAGS -Wsequence-point" 9514 9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9516printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9517 cacheid=xorg_cv_cc_flag__Wsequence_point 9518 if eval test \${$cacheid+y} 9519then : 9520 printf %s "(cached) " >&6 9521else $as_nop 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524int i; 9525int 9526main (void) 9527{ 9528 9529 ; 9530 return 0; 9531} 9532_ACEOF 9533if ac_fn_c_try_link "$LINENO" 9534then : 9535 eval $cacheid=yes 9536else $as_nop 9537 eval $cacheid=no 9538fi 9539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9540 conftest$ac_exeext conftest.$ac_ext 9541fi 9542 9543 9544 CFLAGS="$xorg_testset_save_CFLAGS" 9545 9546 eval supported=\$$cacheid 9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9548printf "%s\n" "$supported" >&6; } 9549 if test "$supported" = "yes" ; then 9550 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9551 found="yes" 9552 fi 9553 fi 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569xorg_testset_save_CFLAGS="$CFLAGS" 9570 9571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9576then : 9577 printf %s "(cached) " >&6 9578else $as_nop 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582_ACEOF 9583if ac_fn_c_try_compile "$LINENO" 9584then : 9585 xorg_cv_cc_flag_unknown_warning_option=yes 9586else $as_nop 9587 xorg_cv_cc_flag_unknown_warning_option=no 9588fi 9589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9590fi 9591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9594 CFLAGS="$xorg_testset_save_CFLAGS" 9595fi 9596 9597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9605then : 9606 printf %s "(cached) " >&6 9607else $as_nop 9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609/* end confdefs.h. */ 9610int i; 9611_ACEOF 9612if ac_fn_c_try_compile "$LINENO" 9613then : 9614 xorg_cv_cc_flag_unused_command_line_argument=yes 9615else $as_nop 9616 xorg_cv_cc_flag_unused_command_line_argument=no 9617fi 9618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9619fi 9620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624fi 9625 9626found="no" 9627 9628 if test $found = "no" ; then 9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631 fi 9632 9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9635 fi 9636 9637 CFLAGS="$CFLAGS -Wreturn-type" 9638 9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9640printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9641 cacheid=xorg_cv_cc_flag__Wreturn_type 9642 if eval test \${$cacheid+y} 9643then : 9644 printf %s "(cached) " >&6 9645else $as_nop 9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9647/* end confdefs.h. */ 9648int i; 9649int 9650main (void) 9651{ 9652 9653 ; 9654 return 0; 9655} 9656_ACEOF 9657if ac_fn_c_try_link "$LINENO" 9658then : 9659 eval $cacheid=yes 9660else $as_nop 9661 eval $cacheid=no 9662fi 9663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9664 conftest$ac_exeext conftest.$ac_ext 9665fi 9666 9667 9668 CFLAGS="$xorg_testset_save_CFLAGS" 9669 9670 eval supported=\$$cacheid 9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9672printf "%s\n" "$supported" >&6; } 9673 if test "$supported" = "yes" ; then 9674 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9675 found="yes" 9676 fi 9677 fi 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693xorg_testset_save_CFLAGS="$CFLAGS" 9694 9695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9700then : 9701 printf %s "(cached) " >&6 9702else $as_nop 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704/* end confdefs.h. */ 9705int i; 9706_ACEOF 9707if ac_fn_c_try_compile "$LINENO" 9708then : 9709 xorg_cv_cc_flag_unknown_warning_option=yes 9710else $as_nop 9711 xorg_cv_cc_flag_unknown_warning_option=no 9712fi 9713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9714fi 9715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719fi 9720 9721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 fi 9725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9729then : 9730 printf %s "(cached) " >&6 9731else $as_nop 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734int i; 9735_ACEOF 9736if ac_fn_c_try_compile "$LINENO" 9737then : 9738 xorg_cv_cc_flag_unused_command_line_argument=yes 9739else $as_nop 9740 xorg_cv_cc_flag_unused_command_line_argument=no 9741fi 9742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9743fi 9744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9747 CFLAGS="$xorg_testset_save_CFLAGS" 9748fi 9749 9750found="no" 9751 9752 if test $found = "no" ; then 9753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9755 fi 9756 9757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9759 fi 9760 9761 CFLAGS="$CFLAGS -Wtrigraphs" 9762 9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9764printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9765 cacheid=xorg_cv_cc_flag__Wtrigraphs 9766 if eval test \${$cacheid+y} 9767then : 9768 printf %s "(cached) " >&6 9769else $as_nop 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772int i; 9773int 9774main (void) 9775{ 9776 9777 ; 9778 return 0; 9779} 9780_ACEOF 9781if ac_fn_c_try_link "$LINENO" 9782then : 9783 eval $cacheid=yes 9784else $as_nop 9785 eval $cacheid=no 9786fi 9787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9788 conftest$ac_exeext conftest.$ac_ext 9789fi 9790 9791 9792 CFLAGS="$xorg_testset_save_CFLAGS" 9793 9794 eval supported=\$$cacheid 9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9796printf "%s\n" "$supported" >&6; } 9797 if test "$supported" = "yes" ; then 9798 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9799 found="yes" 9800 fi 9801 fi 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817xorg_testset_save_CFLAGS="$CFLAGS" 9818 9819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9823if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9824then : 9825 printf %s "(cached) " >&6 9826else $as_nop 9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9828/* end confdefs.h. */ 9829int i; 9830_ACEOF 9831if ac_fn_c_try_compile "$LINENO" 9832then : 9833 xorg_cv_cc_flag_unknown_warning_option=yes 9834else $as_nop 9835 xorg_cv_cc_flag_unknown_warning_option=no 9836fi 9837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9838fi 9839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9842 CFLAGS="$xorg_testset_save_CFLAGS" 9843fi 9844 9845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9848 fi 9849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9853then : 9854 printf %s "(cached) " >&6 9855else $as_nop 9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9857/* end confdefs.h. */ 9858int i; 9859_ACEOF 9860if ac_fn_c_try_compile "$LINENO" 9861then : 9862 xorg_cv_cc_flag_unused_command_line_argument=yes 9863else $as_nop 9864 xorg_cv_cc_flag_unused_command_line_argument=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9867fi 9868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872fi 9873 9874found="no" 9875 9876 if test $found = "no" ; then 9877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9879 fi 9880 9881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9883 fi 9884 9885 CFLAGS="$CFLAGS -Warray-bounds" 9886 9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9888printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9889 cacheid=xorg_cv_cc_flag__Warray_bounds 9890 if eval test \${$cacheid+y} 9891then : 9892 printf %s "(cached) " >&6 9893else $as_nop 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895/* end confdefs.h. */ 9896int i; 9897int 9898main (void) 9899{ 9900 9901 ; 9902 return 0; 9903} 9904_ACEOF 9905if ac_fn_c_try_link "$LINENO" 9906then : 9907 eval $cacheid=yes 9908else $as_nop 9909 eval $cacheid=no 9910fi 9911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9912 conftest$ac_exeext conftest.$ac_ext 9913fi 9914 9915 9916 CFLAGS="$xorg_testset_save_CFLAGS" 9917 9918 eval supported=\$$cacheid 9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9920printf "%s\n" "$supported" >&6; } 9921 if test "$supported" = "yes" ; then 9922 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9923 found="yes" 9924 fi 9925 fi 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941xorg_testset_save_CFLAGS="$CFLAGS" 9942 9943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9947if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9948then : 9949 printf %s "(cached) " >&6 9950else $as_nop 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953int i; 9954_ACEOF 9955if ac_fn_c_try_compile "$LINENO" 9956then : 9957 xorg_cv_cc_flag_unknown_warning_option=yes 9958else $as_nop 9959 xorg_cv_cc_flag_unknown_warning_option=no 9960fi 9961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9962fi 9963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9966 CFLAGS="$xorg_testset_save_CFLAGS" 9967fi 9968 9969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9972 fi 9973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9976if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9977then : 9978 printf %s "(cached) " >&6 9979else $as_nop 9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9981/* end confdefs.h. */ 9982int i; 9983_ACEOF 9984if ac_fn_c_try_compile "$LINENO" 9985then : 9986 xorg_cv_cc_flag_unused_command_line_argument=yes 9987else $as_nop 9988 xorg_cv_cc_flag_unused_command_line_argument=no 9989fi 9990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9991fi 9992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996fi 9997 9998found="no" 9999 10000 if test $found = "no" ; then 10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10003 fi 10004 10005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10007 fi 10008 10009 CFLAGS="$CFLAGS -Wwrite-strings" 10010 10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10012printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10013 cacheid=xorg_cv_cc_flag__Wwrite_strings 10014 if eval test \${$cacheid+y} 10015then : 10016 printf %s "(cached) " >&6 10017else $as_nop 10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020int i; 10021int 10022main (void) 10023{ 10024 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029if ac_fn_c_try_link "$LINENO" 10030then : 10031 eval $cacheid=yes 10032else $as_nop 10033 eval $cacheid=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10036 conftest$ac_exeext conftest.$ac_ext 10037fi 10038 10039 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041 10042 eval supported=\$$cacheid 10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10044printf "%s\n" "$supported" >&6; } 10045 if test "$supported" = "yes" ; then 10046 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10047 found="yes" 10048 fi 10049 fi 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065xorg_testset_save_CFLAGS="$CFLAGS" 10066 10067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10071if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10072then : 10073 printf %s "(cached) " >&6 10074else $as_nop 10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076/* end confdefs.h. */ 10077int i; 10078_ACEOF 10079if ac_fn_c_try_compile "$LINENO" 10080then : 10081 xorg_cv_cc_flag_unknown_warning_option=yes 10082else $as_nop 10083 xorg_cv_cc_flag_unknown_warning_option=no 10084fi 10085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10086fi 10087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10090 CFLAGS="$xorg_testset_save_CFLAGS" 10091fi 10092 10093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10096 fi 10097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10100if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10101then : 10102 printf %s "(cached) " >&6 10103else $as_nop 10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10105/* end confdefs.h. */ 10106int i; 10107_ACEOF 10108if ac_fn_c_try_compile "$LINENO" 10109then : 10110 xorg_cv_cc_flag_unused_command_line_argument=yes 10111else $as_nop 10112 xorg_cv_cc_flag_unused_command_line_argument=no 10113fi 10114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10115fi 10116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10119 CFLAGS="$xorg_testset_save_CFLAGS" 10120fi 10121 10122found="no" 10123 10124 if test $found = "no" ; then 10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10127 fi 10128 10129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10131 fi 10132 10133 CFLAGS="$CFLAGS -Waddress" 10134 10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10136printf %s "checking if $CC supports -Waddress... " >&6; } 10137 cacheid=xorg_cv_cc_flag__Waddress 10138 if eval test \${$cacheid+y} 10139then : 10140 printf %s "(cached) " >&6 10141else $as_nop 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144int i; 10145int 10146main (void) 10147{ 10148 10149 ; 10150 return 0; 10151} 10152_ACEOF 10153if ac_fn_c_try_link "$LINENO" 10154then : 10155 eval $cacheid=yes 10156else $as_nop 10157 eval $cacheid=no 10158fi 10159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10160 conftest$ac_exeext conftest.$ac_ext 10161fi 10162 10163 10164 CFLAGS="$xorg_testset_save_CFLAGS" 10165 10166 eval supported=\$$cacheid 10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10168printf "%s\n" "$supported" >&6; } 10169 if test "$supported" = "yes" ; then 10170 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10171 found="yes" 10172 fi 10173 fi 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189xorg_testset_save_CFLAGS="$CFLAGS" 10190 10191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10195if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10196then : 10197 printf %s "(cached) " >&6 10198else $as_nop 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201int i; 10202_ACEOF 10203if ac_fn_c_try_compile "$LINENO" 10204then : 10205 xorg_cv_cc_flag_unknown_warning_option=yes 10206else $as_nop 10207 xorg_cv_cc_flag_unknown_warning_option=no 10208fi 10209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10210fi 10211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10214 CFLAGS="$xorg_testset_save_CFLAGS" 10215fi 10216 10217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 fi 10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10224if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10225then : 10226 printf %s "(cached) " >&6 10227else $as_nop 10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10229/* end confdefs.h. */ 10230int i; 10231_ACEOF 10232if ac_fn_c_try_compile "$LINENO" 10233then : 10234 xorg_cv_cc_flag_unused_command_line_argument=yes 10235else $as_nop 10236 xorg_cv_cc_flag_unused_command_line_argument=no 10237fi 10238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10239fi 10240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10243 CFLAGS="$xorg_testset_save_CFLAGS" 10244fi 10245 10246found="no" 10247 10248 if test $found = "no" ; then 10249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10251 fi 10252 10253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10255 fi 10256 10257 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10258 10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10260printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10261 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10262 if eval test \${$cacheid+y} 10263then : 10264 printf %s "(cached) " >&6 10265else $as_nop 10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10267/* end confdefs.h. */ 10268int i; 10269int 10270main (void) 10271{ 10272 10273 ; 10274 return 0; 10275} 10276_ACEOF 10277if ac_fn_c_try_link "$LINENO" 10278then : 10279 eval $cacheid=yes 10280else $as_nop 10281 eval $cacheid=no 10282fi 10283rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10284 conftest$ac_exeext conftest.$ac_ext 10285fi 10286 10287 10288 CFLAGS="$xorg_testset_save_CFLAGS" 10289 10290 eval supported=\$$cacheid 10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10292printf "%s\n" "$supported" >&6; } 10293 if test "$supported" = "yes" ; then 10294 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10295 found="yes" 10296 fi 10297 fi 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313xorg_testset_save_CFLAGS="$CFLAGS" 10314 10315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10319if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10320then : 10321 printf %s "(cached) " >&6 10322else $as_nop 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324/* end confdefs.h. */ 10325int i; 10326_ACEOF 10327if ac_fn_c_try_compile "$LINENO" 10328then : 10329 xorg_cv_cc_flag_unknown_warning_option=yes 10330else $as_nop 10331 xorg_cv_cc_flag_unknown_warning_option=no 10332fi 10333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10334fi 10335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10338 CFLAGS="$xorg_testset_save_CFLAGS" 10339fi 10340 10341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10344 fi 10345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10348if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10349then : 10350 printf %s "(cached) " >&6 10351else $as_nop 10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354int i; 10355_ACEOF 10356if ac_fn_c_try_compile "$LINENO" 10357then : 10358 xorg_cv_cc_flag_unused_command_line_argument=yes 10359else $as_nop 10360 xorg_cv_cc_flag_unused_command_line_argument=no 10361fi 10362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10363fi 10364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10367 CFLAGS="$xorg_testset_save_CFLAGS" 10368fi 10369 10370found="no" 10371 10372 if test $found = "no" ; then 10373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10375 fi 10376 10377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10379 fi 10380 10381 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10382 10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10384printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10385 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10386 if eval test \${$cacheid+y} 10387then : 10388 printf %s "(cached) " >&6 10389else $as_nop 10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10391/* end confdefs.h. */ 10392int i; 10393int 10394main (void) 10395{ 10396 10397 ; 10398 return 0; 10399} 10400_ACEOF 10401if ac_fn_c_try_link "$LINENO" 10402then : 10403 eval $cacheid=yes 10404else $as_nop 10405 eval $cacheid=no 10406fi 10407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10408 conftest$ac_exeext conftest.$ac_ext 10409fi 10410 10411 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10413 10414 eval supported=\$$cacheid 10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10416printf "%s\n" "$supported" >&6; } 10417 if test "$supported" = "yes" ; then 10418 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10419 found="yes" 10420 fi 10421 fi 10422 10423 10424fi 10425 10426 10427 10428 10429 10430 10431 10432 CWARNFLAGS="$BASE_CFLAGS" 10433 if test "x$GCC" = xyes ; then 10434 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10435 fi 10436 10437 10438 10439 10440 10441 10442 10443 10444# Check whether --enable-strict-compilation was given. 10445if test ${enable_strict_compilation+y} 10446then : 10447 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10448else $as_nop 10449 STRICT_COMPILE=no 10450fi 10451 10452 10453 10454 10455 10456 10457STRICT_CFLAGS="" 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471xorg_testset_save_CFLAGS="$CFLAGS" 10472 10473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10477if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10478then : 10479 printf %s "(cached) " >&6 10480else $as_nop 10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10482/* end confdefs.h. */ 10483int i; 10484_ACEOF 10485if ac_fn_c_try_compile "$LINENO" 10486then : 10487 xorg_cv_cc_flag_unknown_warning_option=yes 10488else $as_nop 10489 xorg_cv_cc_flag_unknown_warning_option=no 10490fi 10491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10492fi 10493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10494printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10496 CFLAGS="$xorg_testset_save_CFLAGS" 10497fi 10498 10499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10502 fi 10503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10505printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10506if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10507then : 10508 printf %s "(cached) " >&6 10509else $as_nop 10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10511/* end confdefs.h. */ 10512int i; 10513_ACEOF 10514if ac_fn_c_try_compile "$LINENO" 10515then : 10516 xorg_cv_cc_flag_unused_command_line_argument=yes 10517else $as_nop 10518 xorg_cv_cc_flag_unused_command_line_argument=no 10519fi 10520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10521fi 10522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10523printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10525 CFLAGS="$xorg_testset_save_CFLAGS" 10526fi 10527 10528found="no" 10529 10530 if test $found = "no" ; then 10531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10533 fi 10534 10535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10537 fi 10538 10539 CFLAGS="$CFLAGS -pedantic" 10540 10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10542printf %s "checking if $CC supports -pedantic... " >&6; } 10543 cacheid=xorg_cv_cc_flag__pedantic 10544 if eval test \${$cacheid+y} 10545then : 10546 printf %s "(cached) " >&6 10547else $as_nop 10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550int i; 10551int 10552main (void) 10553{ 10554 10555 ; 10556 return 0; 10557} 10558_ACEOF 10559if ac_fn_c_try_link "$LINENO" 10560then : 10561 eval $cacheid=yes 10562else $as_nop 10563 eval $cacheid=no 10564fi 10565rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10566 conftest$ac_exeext conftest.$ac_ext 10567fi 10568 10569 10570 CFLAGS="$xorg_testset_save_CFLAGS" 10571 10572 eval supported=\$$cacheid 10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10574printf "%s\n" "$supported" >&6; } 10575 if test "$supported" = "yes" ; then 10576 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10577 found="yes" 10578 fi 10579 fi 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595xorg_testset_save_CFLAGS="$CFLAGS" 10596 10597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10601if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10602then : 10603 printf %s "(cached) " >&6 10604else $as_nop 10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10606/* end confdefs.h. */ 10607int i; 10608_ACEOF 10609if ac_fn_c_try_compile "$LINENO" 10610then : 10611 xorg_cv_cc_flag_unknown_warning_option=yes 10612else $as_nop 10613 xorg_cv_cc_flag_unknown_warning_option=no 10614fi 10615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10616fi 10617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10618printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10620 CFLAGS="$xorg_testset_save_CFLAGS" 10621fi 10622 10623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10626 fi 10627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10629printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10630if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10631then : 10632 printf %s "(cached) " >&6 10633else $as_nop 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636int i; 10637_ACEOF 10638if ac_fn_c_try_compile "$LINENO" 10639then : 10640 xorg_cv_cc_flag_unused_command_line_argument=yes 10641else $as_nop 10642 xorg_cv_cc_flag_unused_command_line_argument=no 10643fi 10644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10645fi 10646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10649 CFLAGS="$xorg_testset_save_CFLAGS" 10650fi 10651 10652found="no" 10653 10654 if test $found = "no" ; then 10655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10657 fi 10658 10659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10661 fi 10662 10663 CFLAGS="$CFLAGS -Werror" 10664 10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10666printf %s "checking if $CC supports -Werror... " >&6; } 10667 cacheid=xorg_cv_cc_flag__Werror 10668 if eval test \${$cacheid+y} 10669then : 10670 printf %s "(cached) " >&6 10671else $as_nop 10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10673/* end confdefs.h. */ 10674int i; 10675int 10676main (void) 10677{ 10678 10679 ; 10680 return 0; 10681} 10682_ACEOF 10683if ac_fn_c_try_link "$LINENO" 10684then : 10685 eval $cacheid=yes 10686else $as_nop 10687 eval $cacheid=no 10688fi 10689rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10690 conftest$ac_exeext conftest.$ac_ext 10691fi 10692 10693 10694 CFLAGS="$xorg_testset_save_CFLAGS" 10695 10696 eval supported=\$$cacheid 10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10698printf "%s\n" "$supported" >&6; } 10699 if test "$supported" = "yes" ; then 10700 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10701 found="yes" 10702 fi 10703 fi 10704 10705 if test $found = "no" ; then 10706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10708 fi 10709 10710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10712 fi 10713 10714 CFLAGS="$CFLAGS -errwarn" 10715 10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10717printf %s "checking if $CC supports -errwarn... " >&6; } 10718 cacheid=xorg_cv_cc_flag__errwarn 10719 if eval test \${$cacheid+y} 10720then : 10721 printf %s "(cached) " >&6 10722else $as_nop 10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10724/* end confdefs.h. */ 10725int i; 10726int 10727main (void) 10728{ 10729 10730 ; 10731 return 0; 10732} 10733_ACEOF 10734if ac_fn_c_try_link "$LINENO" 10735then : 10736 eval $cacheid=yes 10737else $as_nop 10738 eval $cacheid=no 10739fi 10740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10741 conftest$ac_exeext conftest.$ac_ext 10742fi 10743 10744 10745 CFLAGS="$xorg_testset_save_CFLAGS" 10746 10747 eval supported=\$$cacheid 10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10749printf "%s\n" "$supported" >&6; } 10750 if test "$supported" = "yes" ; then 10751 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10752 found="yes" 10753 fi 10754 fi 10755 10756 10757 10758# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10759# activate it with -Werror, so we add it here explicitly. 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773xorg_testset_save_CFLAGS="$CFLAGS" 10774 10775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10780then : 10781 printf %s "(cached) " >&6 10782else $as_nop 10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784/* end confdefs.h. */ 10785int i; 10786_ACEOF 10787if ac_fn_c_try_compile "$LINENO" 10788then : 10789 xorg_cv_cc_flag_unknown_warning_option=yes 10790else $as_nop 10791 xorg_cv_cc_flag_unknown_warning_option=no 10792fi 10793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10794fi 10795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10798 CFLAGS="$xorg_testset_save_CFLAGS" 10799fi 10800 10801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10804 fi 10805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10809then : 10810 printf %s "(cached) " >&6 10811else $as_nop 10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813/* end confdefs.h. */ 10814int i; 10815_ACEOF 10816if ac_fn_c_try_compile "$LINENO" 10817then : 10818 xorg_cv_cc_flag_unused_command_line_argument=yes 10819else $as_nop 10820 xorg_cv_cc_flag_unused_command_line_argument=no 10821fi 10822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10823fi 10824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828fi 10829 10830found="no" 10831 10832 if test $found = "no" ; then 10833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10835 fi 10836 10837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10839 fi 10840 10841 CFLAGS="$CFLAGS -Werror=attributes" 10842 10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10844printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10845 cacheid=xorg_cv_cc_flag__Werror_attributes 10846 if eval test \${$cacheid+y} 10847then : 10848 printf %s "(cached) " >&6 10849else $as_nop 10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852int i; 10853int 10854main (void) 10855{ 10856 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861if ac_fn_c_try_link "$LINENO" 10862then : 10863 eval $cacheid=yes 10864else $as_nop 10865 eval $cacheid=no 10866fi 10867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10868 conftest$ac_exeext conftest.$ac_ext 10869fi 10870 10871 10872 CFLAGS="$xorg_testset_save_CFLAGS" 10873 10874 eval supported=\$$cacheid 10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10876printf "%s\n" "$supported" >&6; } 10877 if test "$supported" = "yes" ; then 10878 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10879 found="yes" 10880 fi 10881 fi 10882 10883 10884 10885if test "x$STRICT_COMPILE" = "xyes"; then 10886 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10887 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10888fi 10889 10890 10891 10892 10893 10894 10895cat >>confdefs.h <<_ACEOF 10896#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10897_ACEOF 10898 10899 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10900 if test "x$PVM" = "x"; then 10901 PVM="0" 10902 fi 10903 10904printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10905 10906 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10907 if test "x$PVP" = "x"; then 10908 PVP="0" 10909 fi 10910 10911printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10912 10913 10914 10915CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10916mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10917|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10918touch \$(top_srcdir)/ChangeLog; \ 10919echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10920 10921 10922 10923 10924macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10925INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10926mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10927|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10928touch \$(top_srcdir)/INSTALL; \ 10929echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10930 10931 10932 10933 10934 10935 10936case $host_os in 10937 solaris*) 10938 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10939 # check for a man page file found in later versions that use 10940 # traditional section numbers instead 10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10942printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10943if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10944then : 10945 printf %s "(cached) " >&6 10946else $as_nop 10947 test "$cross_compiling" = yes && 10948 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10949if test -r "/usr/share/man/man7/attributes.7"; then 10950 ac_cv_file__usr_share_man_man7_attributes_7=yes 10951else 10952 ac_cv_file__usr_share_man_man7_attributes_7=no 10953fi 10954fi 10955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10956printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10957if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10958then : 10959 SYSV_MAN_SECTIONS=false 10960else $as_nop 10961 SYSV_MAN_SECTIONS=true 10962fi 10963 10964 ;; 10965 *) SYSV_MAN_SECTIONS=false ;; 10966esac 10967 10968if test x$APP_MAN_SUFFIX = x ; then 10969 APP_MAN_SUFFIX=1 10970fi 10971if test x$APP_MAN_DIR = x ; then 10972 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10973fi 10974 10975if test x$LIB_MAN_SUFFIX = x ; then 10976 LIB_MAN_SUFFIX=3 10977fi 10978if test x$LIB_MAN_DIR = x ; then 10979 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10980fi 10981 10982if test x$FILE_MAN_SUFFIX = x ; then 10983 case $SYSV_MAN_SECTIONS in 10984 true) FILE_MAN_SUFFIX=4 ;; 10985 *) FILE_MAN_SUFFIX=5 ;; 10986 esac 10987fi 10988if test x$FILE_MAN_DIR = x ; then 10989 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10990fi 10991 10992if test x$MISC_MAN_SUFFIX = x ; then 10993 case $SYSV_MAN_SECTIONS in 10994 true) MISC_MAN_SUFFIX=5 ;; 10995 *) MISC_MAN_SUFFIX=7 ;; 10996 esac 10997fi 10998if test x$MISC_MAN_DIR = x ; then 10999 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11000fi 11001 11002if test x$DRIVER_MAN_SUFFIX = x ; then 11003 case $SYSV_MAN_SECTIONS in 11004 true) DRIVER_MAN_SUFFIX=7 ;; 11005 *) DRIVER_MAN_SUFFIX=4 ;; 11006 esac 11007fi 11008if test x$DRIVER_MAN_DIR = x ; then 11009 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11010fi 11011 11012if test x$ADMIN_MAN_SUFFIX = x ; then 11013 case $SYSV_MAN_SECTIONS in 11014 true) ADMIN_MAN_SUFFIX=1m ;; 11015 *) ADMIN_MAN_SUFFIX=8 ;; 11016 esac 11017fi 11018if test x$ADMIN_MAN_DIR = x ; then 11019 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11020fi 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036XORG_MAN_PAGE="X Version 11" 11037 11038MAN_SUBSTS="\ 11039 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11040 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11041 -e 's|__xservername__|Xorg|g' \ 11042 -e 's|__xconfigfile__|xorg.conf|g' \ 11043 -e 's|__projectroot__|\$(prefix)|g' \ 11044 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11045 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11046 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11047 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11048 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11049 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11050 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11051 11052 11053 11054# Check whether --enable-silent-rules was given. 11055if test ${enable_silent_rules+y} 11056then : 11057 enableval=$enable_silent_rules; 11058fi 11059 11060case $enable_silent_rules in # ((( 11061 yes) AM_DEFAULT_VERBOSITY=0;; 11062 no) AM_DEFAULT_VERBOSITY=1;; 11063 *) AM_DEFAULT_VERBOSITY=0;; 11064esac 11065am_make=${MAKE-make} 11066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11067printf %s "checking whether $am_make supports nested variables... " >&6; } 11068if test ${am_cv_make_support_nested_variables+y} 11069then : 11070 printf %s "(cached) " >&6 11071else $as_nop 11072 if printf "%s\n" 'TRUE=$(BAR$(V)) 11073BAR0=false 11074BAR1=true 11075V=1 11076am__doit: 11077 @$(TRUE) 11078.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11079 am_cv_make_support_nested_variables=yes 11080else 11081 am_cv_make_support_nested_variables=no 11082fi 11083fi 11084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11085printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11086if test $am_cv_make_support_nested_variables = yes; then 11087 AM_V='$(V)' 11088 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11089else 11090 AM_V=$AM_DEFAULT_VERBOSITY 11091 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11092fi 11093AM_BACKSLASH='\' 11094 11095 11096 11097# Optional dependencies 11098 11099# Check whether --with-xkb was given. 11100if test ${with_xkb+y} 11101then : 11102 withval=$with_xkb; use_xkb="$withval" 11103else $as_nop 11104 use_xkb="yes" 11105fi 11106 11107if test x$use_xkb != xno ; then 11108 XKBMODULE="xkbfile" 11109 11110printf "%s\n" "#define XKB 1" >>confdefs.h 11111 11112fi 11113 11114# Checks for pkg-config packages 11115 11116pkg_failed=no 11117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWD" >&5 11118printf %s "checking for XWD... " >&6; } 11119 11120if test -n "$XWD_CFLAGS"; then 11121 pkg_cv_XWD_CFLAGS="$XWD_CFLAGS" 11122 elif test -n "$PKG_CONFIG"; then 11123 if test -n "$PKG_CONFIG" && \ 11124 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 11125 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11126 ac_status=$? 11127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11128 test $ac_status = 0; }; then 11129 pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 11130 test "x$?" != "x0" && pkg_failed=yes 11131else 11132 pkg_failed=yes 11133fi 11134 else 11135 pkg_failed=untried 11136fi 11137if test -n "$XWD_LIBS"; then 11138 pkg_cv_XWD_LIBS="$XWD_LIBS" 11139 elif test -n "$PKG_CONFIG"; then 11140 if test -n "$PKG_CONFIG" && \ 11141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 11142 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11143 ac_status=$? 11144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11145 test $ac_status = 0; }; then 11146 pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 11147 test "x$?" != "x0" && pkg_failed=yes 11148else 11149 pkg_failed=yes 11150fi 11151 else 11152 pkg_failed=untried 11153fi 11154 11155 11156 11157if test $pkg_failed = yes; then 11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11159printf "%s\n" "no" >&6; } 11160 11161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11162 _pkg_short_errors_supported=yes 11163else 11164 _pkg_short_errors_supported=no 11165fi 11166 if test $_pkg_short_errors_supported = yes; then 11167 XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11168 else 11169 XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11170 fi 11171 # Put the nasty error message in config.log where it belongs 11172 echo "$XWD_PKG_ERRORS" >&5 11173 11174 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25 ${XKBMODULE}) were not met: 11175 11176$XWD_PKG_ERRORS 11177 11178Consider adjusting the PKG_CONFIG_PATH environment variable if you 11179installed software in a non-standard prefix. 11180 11181Alternatively, you may set the environment variables XWD_CFLAGS 11182and XWD_LIBS to avoid the need to call pkg-config. 11183See the pkg-config man page for more details." "$LINENO" 5 11184elif test $pkg_failed = untried; then 11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11186printf "%s\n" "no" >&6; } 11187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11188printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11189as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11190is in your PATH or set the PKG_CONFIG environment variable to the full 11191path to pkg-config. 11192 11193Alternatively, you may set the environment variables XWD_CFLAGS 11194and XWD_LIBS to avoid the need to call pkg-config. 11195See the pkg-config man page for more details. 11196 11197To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11198See \`config.log' for more details" "$LINENO" 5; } 11199else 11200 XWD_CFLAGS=$pkg_cv_XWD_CFLAGS 11201 XWD_LIBS=$pkg_cv_XWD_LIBS 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11203printf "%s\n" "yes" >&6; } 11204 11205fi 11206 11207ac_config_files="$ac_config_files Makefile man/Makefile" 11208 11209cat >confcache <<\_ACEOF 11210# This file is a shell script that caches the results of configure 11211# tests run on this system so they can be shared between configure 11212# scripts and configure runs, see configure's option --config-cache. 11213# It is not useful on other systems. If it contains results you don't 11214# want to keep, you may remove or edit it. 11215# 11216# config.status only pays attention to the cache file if you give it 11217# the --recheck option to rerun configure. 11218# 11219# `ac_cv_env_foo' variables (set or unset) will be overridden when 11220# loading this file, other *unset* `ac_cv_foo' will be assigned the 11221# following values. 11222 11223_ACEOF 11224 11225# The following way of writing the cache mishandles newlines in values, 11226# but we know of no workaround that is simple, portable, and efficient. 11227# So, we kill variables containing newlines. 11228# Ultrix sh set writes to stderr and can't be redirected directly, 11229# and sets the high bit in the cache file unless we assign to the vars. 11230( 11231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11232 eval ac_val=\$$ac_var 11233 case $ac_val in #( 11234 *${as_nl}*) 11235 case $ac_var in #( 11236 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11237printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11238 esac 11239 case $ac_var in #( 11240 _ | IFS | as_nl) ;; #( 11241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11242 *) { eval $ac_var=; unset $ac_var;} ;; 11243 esac ;; 11244 esac 11245 done 11246 11247 (set) 2>&1 | 11248 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11249 *${as_nl}ac_space=\ *) 11250 # `set' does not quote correctly, so add quotes: double-quote 11251 # substitution turns \\\\ into \\, and sed turns \\ into \. 11252 sed -n \ 11253 "s/'/'\\\\''/g; 11254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11255 ;; #( 11256 *) 11257 # `set' quotes correctly as required by POSIX, so do not add quotes. 11258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11259 ;; 11260 esac | 11261 sort 11262) | 11263 sed ' 11264 /^ac_cv_env_/b end 11265 t clear 11266 :clear 11267 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11268 t end 11269 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11270 :end' >>confcache 11271if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11272 if test -w "$cache_file"; then 11273 if test "x$cache_file" != "x/dev/null"; then 11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11275printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11276 if test ! -f "$cache_file" || test -h "$cache_file"; then 11277 cat confcache >"$cache_file" 11278 else 11279 case $cache_file in #( 11280 */* | ?:*) 11281 mv -f confcache "$cache_file"$$ && 11282 mv -f "$cache_file"$$ "$cache_file" ;; #( 11283 *) 11284 mv -f confcache "$cache_file" ;; 11285 esac 11286 fi 11287 fi 11288 else 11289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11290printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11291 fi 11292fi 11293rm -f confcache 11294 11295test "x$prefix" = xNONE && prefix=$ac_default_prefix 11296# Let make expand exec_prefix. 11297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11298 11299DEFS=-DHAVE_CONFIG_H 11300 11301ac_libobjs= 11302ac_ltlibobjs= 11303U= 11304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11305 # 1. Remove the extension, and $U if already installed. 11306 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11307 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11308 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11309 # will be set to the directory where LIBOBJS objects are built. 11310 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11311 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11312done 11313LIBOBJS=$ac_libobjs 11314 11315LTLIBOBJS=$ac_ltlibobjs 11316 11317 11318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11319printf %s "checking that generated files are newer than configure... " >&6; } 11320 if test -n "$am_sleep_pid"; then 11321 # Hide warnings about reused PIDs. 11322 wait $am_sleep_pid 2>/dev/null 11323 fi 11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11325printf "%s\n" "done" >&6; } 11326 if test -n "$EXEEXT"; then 11327 am__EXEEXT_TRUE= 11328 am__EXEEXT_FALSE='#' 11329else 11330 am__EXEEXT_TRUE='#' 11331 am__EXEEXT_FALSE= 11332fi 11333 11334if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11335 as_fn_error $? "conditional \"AMDEP\" was never defined. 11336Usually this means the macro was only invoked conditionally." "$LINENO" 5 11337fi 11338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11339 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11340Usually this means the macro was only invoked conditionally." "$LINENO" 5 11341fi 11342 11343: "${CONFIG_STATUS=./config.status}" 11344ac_write_fail=0 11345ac_clean_files_save=$ac_clean_files 11346ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11348printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11349as_write_fail=0 11350cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11351#! $SHELL 11352# Generated by $as_me. 11353# Run this file to recreate the current configuration. 11354# Compiler output produced by configure, useful for debugging 11355# configure, is in config.log if it exists. 11356 11357debug=false 11358ac_cs_recheck=false 11359ac_cs_silent=false 11360 11361SHELL=\${CONFIG_SHELL-$SHELL} 11362export SHELL 11363_ASEOF 11364cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11365## -------------------- ## 11366## M4sh Initialization. ## 11367## -------------------- ## 11368 11369# Be more Bourne compatible 11370DUALCASE=1; export DUALCASE # for MKS sh 11371as_nop=: 11372if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11373then : 11374 emulate sh 11375 NULLCMD=: 11376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11377 # is contrary to our usage. Disable this feature. 11378 alias -g '${1+"$@"}'='"$@"' 11379 setopt NO_GLOB_SUBST 11380else $as_nop 11381 case `(set -o) 2>/dev/null` in #( 11382 *posix*) : 11383 set -o posix ;; #( 11384 *) : 11385 ;; 11386esac 11387fi 11388 11389 11390 11391# Reset variables that may have inherited troublesome values from 11392# the environment. 11393 11394# IFS needs to be set, to space, tab, and newline, in precisely that order. 11395# (If _AS_PATH_WALK were called with IFS unset, it would have the 11396# side effect of setting IFS to empty, thus disabling word splitting.) 11397# Quoting is to prevent editors from complaining about space-tab. 11398as_nl=' 11399' 11400export as_nl 11401IFS=" "" $as_nl" 11402 11403PS1='$ ' 11404PS2='> ' 11405PS4='+ ' 11406 11407# Ensure predictable behavior from utilities with locale-dependent output. 11408LC_ALL=C 11409export LC_ALL 11410LANGUAGE=C 11411export LANGUAGE 11412 11413# We cannot yet rely on "unset" to work, but we need these variables 11414# to be unset--not just set to an empty or harmless value--now, to 11415# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11416# also avoids known problems related to "unset" and subshell syntax 11417# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11418for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11419do eval test \${$as_var+y} \ 11420 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11421done 11422 11423# Ensure that fds 0, 1, and 2 are open. 11424if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11425if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11426if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11427 11428# The user is always right. 11429if ${PATH_SEPARATOR+false} :; then 11430 PATH_SEPARATOR=: 11431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11433 PATH_SEPARATOR=';' 11434 } 11435fi 11436 11437 11438# Find who we are. Look in the path if we contain no directory separator. 11439as_myself= 11440case $0 in #(( 11441 *[\\/]* ) as_myself=$0 ;; 11442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11443for as_dir in $PATH 11444do 11445 IFS=$as_save_IFS 11446 case $as_dir in #((( 11447 '') as_dir=./ ;; 11448 */) ;; 11449 *) as_dir=$as_dir/ ;; 11450 esac 11451 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11452 done 11453IFS=$as_save_IFS 11454 11455 ;; 11456esac 11457# We did not find ourselves, most probably we were run as `sh COMMAND' 11458# in which case we are not to be found in the path. 11459if test "x$as_myself" = x; then 11460 as_myself=$0 11461fi 11462if test ! -f "$as_myself"; then 11463 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11464 exit 1 11465fi 11466 11467 11468 11469# as_fn_error STATUS ERROR [LINENO LOG_FD] 11470# ---------------------------------------- 11471# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11472# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11473# script with STATUS, using 1 if that was 0. 11474as_fn_error () 11475{ 11476 as_status=$1; test $as_status -eq 0 && as_status=1 11477 if test "$4"; then 11478 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11480 fi 11481 printf "%s\n" "$as_me: error: $2" >&2 11482 as_fn_exit $as_status 11483} # as_fn_error 11484 11485 11486 11487# as_fn_set_status STATUS 11488# ----------------------- 11489# Set $? to STATUS, without forking. 11490as_fn_set_status () 11491{ 11492 return $1 11493} # as_fn_set_status 11494 11495# as_fn_exit STATUS 11496# ----------------- 11497# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11498as_fn_exit () 11499{ 11500 set +e 11501 as_fn_set_status $1 11502 exit $1 11503} # as_fn_exit 11504 11505# as_fn_unset VAR 11506# --------------- 11507# Portably unset VAR. 11508as_fn_unset () 11509{ 11510 { eval $1=; unset $1;} 11511} 11512as_unset=as_fn_unset 11513 11514# as_fn_append VAR VALUE 11515# ---------------------- 11516# Append the text in VALUE to the end of the definition contained in VAR. Take 11517# advantage of any shell optimizations that allow amortized linear growth over 11518# repeated appends, instead of the typical quadratic growth present in naive 11519# implementations. 11520if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11521then : 11522 eval 'as_fn_append () 11523 { 11524 eval $1+=\$2 11525 }' 11526else $as_nop 11527 as_fn_append () 11528 { 11529 eval $1=\$$1\$2 11530 } 11531fi # as_fn_append 11532 11533# as_fn_arith ARG... 11534# ------------------ 11535# Perform arithmetic evaluation on the ARGs, and store the result in the 11536# global $as_val. Take advantage of shells that can avoid forks. The arguments 11537# must be portable across $(()) and expr. 11538if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11539then : 11540 eval 'as_fn_arith () 11541 { 11542 as_val=$(( $* )) 11543 }' 11544else $as_nop 11545 as_fn_arith () 11546 { 11547 as_val=`expr "$@" || test $? -eq 1` 11548 } 11549fi # as_fn_arith 11550 11551 11552if expr a : '\(a\)' >/dev/null 2>&1 && 11553 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11554 as_expr=expr 11555else 11556 as_expr=false 11557fi 11558 11559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11560 as_basename=basename 11561else 11562 as_basename=false 11563fi 11564 11565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11566 as_dirname=dirname 11567else 11568 as_dirname=false 11569fi 11570 11571as_me=`$as_basename -- "$0" || 11572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11573 X"$0" : 'X\(//\)$' \| \ 11574 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11575printf "%s\n" X/"$0" | 11576 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11577 s//\1/ 11578 q 11579 } 11580 /^X\/\(\/\/\)$/{ 11581 s//\1/ 11582 q 11583 } 11584 /^X\/\(\/\).*/{ 11585 s//\1/ 11586 q 11587 } 11588 s/.*/./; q'` 11589 11590# Avoid depending upon Character Ranges. 11591as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11593as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11594as_cr_digits='0123456789' 11595as_cr_alnum=$as_cr_Letters$as_cr_digits 11596 11597 11598# Determine whether it's possible to make 'echo' print without a newline. 11599# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11600# for compatibility with existing Makefiles. 11601ECHO_C= ECHO_N= ECHO_T= 11602case `echo -n x` in #((((( 11603-n*) 11604 case `echo 'xy\c'` in 11605 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11606 xy) ECHO_C='\c';; 11607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11608 ECHO_T=' ';; 11609 esac;; 11610*) 11611 ECHO_N='-n';; 11612esac 11613 11614# For backward compatibility with old third-party macros, we provide 11615# the shell variables $as_echo and $as_echo_n. New code should use 11616# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11617as_echo='printf %s\n' 11618as_echo_n='printf %s' 11619 11620rm -f conf$$ conf$$.exe conf$$.file 11621if test -d conf$$.dir; then 11622 rm -f conf$$.dir/conf$$.file 11623else 11624 rm -f conf$$.dir 11625 mkdir conf$$.dir 2>/dev/null 11626fi 11627if (echo >conf$$.file) 2>/dev/null; then 11628 if ln -s conf$$.file conf$$ 2>/dev/null; then 11629 as_ln_s='ln -s' 11630 # ... but there are two gotchas: 11631 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11632 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11633 # In both cases, we have to default to `cp -pR'. 11634 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11635 as_ln_s='cp -pR' 11636 elif ln conf$$.file conf$$ 2>/dev/null; then 11637 as_ln_s=ln 11638 else 11639 as_ln_s='cp -pR' 11640 fi 11641else 11642 as_ln_s='cp -pR' 11643fi 11644rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11645rmdir conf$$.dir 2>/dev/null 11646 11647 11648# as_fn_mkdir_p 11649# ------------- 11650# Create "$as_dir" as a directory, including parents if necessary. 11651as_fn_mkdir_p () 11652{ 11653 11654 case $as_dir in #( 11655 -*) as_dir=./$as_dir;; 11656 esac 11657 test -d "$as_dir" || eval $as_mkdir_p || { 11658 as_dirs= 11659 while :; do 11660 case $as_dir in #( 11661 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11662 *) as_qdir=$as_dir;; 11663 esac 11664 as_dirs="'$as_qdir' $as_dirs" 11665 as_dir=`$as_dirname -- "$as_dir" || 11666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11667 X"$as_dir" : 'X\(//\)[^/]' \| \ 11668 X"$as_dir" : 'X\(//\)$' \| \ 11669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11670printf "%s\n" X"$as_dir" | 11671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11672 s//\1/ 11673 q 11674 } 11675 /^X\(\/\/\)[^/].*/{ 11676 s//\1/ 11677 q 11678 } 11679 /^X\(\/\/\)$/{ 11680 s//\1/ 11681 q 11682 } 11683 /^X\(\/\).*/{ 11684 s//\1/ 11685 q 11686 } 11687 s/.*/./; q'` 11688 test -d "$as_dir" && break 11689 done 11690 test -z "$as_dirs" || eval "mkdir $as_dirs" 11691 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11692 11693 11694} # as_fn_mkdir_p 11695if mkdir -p . 2>/dev/null; then 11696 as_mkdir_p='mkdir -p "$as_dir"' 11697else 11698 test -d ./-p && rmdir ./-p 11699 as_mkdir_p=false 11700fi 11701 11702 11703# as_fn_executable_p FILE 11704# ----------------------- 11705# Test if FILE is an executable regular file. 11706as_fn_executable_p () 11707{ 11708 test -f "$1" && test -x "$1" 11709} # as_fn_executable_p 11710as_test_x='test -x' 11711as_executable_p=as_fn_executable_p 11712 11713# Sed expression to map a string onto a valid CPP name. 11714as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11715 11716# Sed expression to map a string onto a valid variable name. 11717as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11718 11719 11720exec 6>&1 11721## ----------------------------------- ## 11722## Main body of $CONFIG_STATUS script. ## 11723## ----------------------------------- ## 11724_ASEOF 11725test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11726 11727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11728# Save the log message, to keep $0 and so on meaningful, and to 11729# report actual input values of CONFIG_FILES etc. instead of their 11730# values after options handling. 11731ac_log=" 11732This file was extended by xwd $as_me 1.0.8, which was 11733generated by GNU Autoconf 2.71. Invocation command line was 11734 11735 CONFIG_FILES = $CONFIG_FILES 11736 CONFIG_HEADERS = $CONFIG_HEADERS 11737 CONFIG_LINKS = $CONFIG_LINKS 11738 CONFIG_COMMANDS = $CONFIG_COMMANDS 11739 $ $0 $@ 11740 11741on `(hostname || uname -n) 2>/dev/null | sed 1q` 11742" 11743 11744_ACEOF 11745 11746case $ac_config_files in *" 11747"*) set x $ac_config_files; shift; ac_config_files=$*;; 11748esac 11749 11750case $ac_config_headers in *" 11751"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11752esac 11753 11754 11755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11756# Files that config.status was made for. 11757config_files="$ac_config_files" 11758config_headers="$ac_config_headers" 11759config_commands="$ac_config_commands" 11760 11761_ACEOF 11762 11763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11764ac_cs_usage="\ 11765\`$as_me' instantiates files and other configuration actions 11766from templates according to the current configuration. Unless the files 11767and actions are specified as TAGs, all are instantiated by default. 11768 11769Usage: $0 [OPTION]... [TAG]... 11770 11771 -h, --help print this help, then exit 11772 -V, --version print version number and configuration settings, then exit 11773 --config print configuration, then exit 11774 -q, --quiet, --silent 11775 do not print progress messages 11776 -d, --debug don't remove temporary files 11777 --recheck update $as_me by reconfiguring in the same conditions 11778 --file=FILE[:TEMPLATE] 11779 instantiate the configuration file FILE 11780 --header=FILE[:TEMPLATE] 11781 instantiate the configuration header FILE 11782 11783Configuration files: 11784$config_files 11785 11786Configuration headers: 11787$config_headers 11788 11789Configuration commands: 11790$config_commands 11791 11792Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>." 11793 11794_ACEOF 11795ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11796ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11798ac_cs_config='$ac_cs_config_escaped' 11799ac_cs_version="\\ 11800xwd config.status 1.0.8 11801configured by $0, generated by GNU Autoconf 2.71, 11802 with options \\"\$ac_cs_config\\" 11803 11804Copyright (C) 2021 Free Software Foundation, Inc. 11805This config.status script is free software; the Free Software Foundation 11806gives unlimited permission to copy, distribute and modify it." 11807 11808ac_pwd='$ac_pwd' 11809srcdir='$srcdir' 11810INSTALL='$INSTALL' 11811MKDIR_P='$MKDIR_P' 11812AWK='$AWK' 11813test -n "\$AWK" || AWK=awk 11814_ACEOF 11815 11816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11817# The default lists apply if the user does not specify any file. 11818ac_need_defaults=: 11819while test $# != 0 11820do 11821 case $1 in 11822 --*=?*) 11823 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11825 ac_shift=: 11826 ;; 11827 --*=) 11828 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11829 ac_optarg= 11830 ac_shift=: 11831 ;; 11832 *) 11833 ac_option=$1 11834 ac_optarg=$2 11835 ac_shift=shift 11836 ;; 11837 esac 11838 11839 case $ac_option in 11840 # Handling of the options. 11841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11842 ac_cs_recheck=: ;; 11843 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11844 printf "%s\n" "$ac_cs_version"; exit ;; 11845 --config | --confi | --conf | --con | --co | --c ) 11846 printf "%s\n" "$ac_cs_config"; exit ;; 11847 --debug | --debu | --deb | --de | --d | -d ) 11848 debug=: ;; 11849 --file | --fil | --fi | --f ) 11850 $ac_shift 11851 case $ac_optarg in 11852 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11853 '') as_fn_error $? "missing file argument" ;; 11854 esac 11855 as_fn_append CONFIG_FILES " '$ac_optarg'" 11856 ac_need_defaults=false;; 11857 --header | --heade | --head | --hea ) 11858 $ac_shift 11859 case $ac_optarg in 11860 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11861 esac 11862 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11863 ac_need_defaults=false;; 11864 --he | --h) 11865 # Conflict between --help and --header 11866 as_fn_error $? "ambiguous option: \`$1' 11867Try \`$0 --help' for more information.";; 11868 --help | --hel | -h ) 11869 printf "%s\n" "$ac_cs_usage"; exit ;; 11870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11871 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11872 ac_cs_silent=: ;; 11873 11874 # This is an error. 11875 -*) as_fn_error $? "unrecognized option: \`$1' 11876Try \`$0 --help' for more information." ;; 11877 11878 *) as_fn_append ac_config_targets " $1" 11879 ac_need_defaults=false ;; 11880 11881 esac 11882 shift 11883done 11884 11885ac_configure_extra_args= 11886 11887if $ac_cs_silent; then 11888 exec 6>/dev/null 11889 ac_configure_extra_args="$ac_configure_extra_args --silent" 11890fi 11891 11892_ACEOF 11893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11894if \$ac_cs_recheck; then 11895 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11896 shift 11897 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11898 CONFIG_SHELL='$SHELL' 11899 export CONFIG_SHELL 11900 exec "\$@" 11901fi 11902 11903_ACEOF 11904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11905exec 5>>config.log 11906{ 11907 echo 11908 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11909## Running $as_me. ## 11910_ASBOX 11911 printf "%s\n" "$ac_log" 11912} >&5 11913 11914_ACEOF 11915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11916# 11917# INIT-COMMANDS 11918# 11919AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11920 11921_ACEOF 11922 11923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11924 11925# Handling of arguments. 11926for ac_config_target in $ac_config_targets 11927do 11928 case $ac_config_target in 11929 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11930 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11931 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11932 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11933 11934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11935 esac 11936done 11937 11938 11939# If the user did not use the arguments to specify the items to instantiate, 11940# then the envvar interface is used. Set only those that are not. 11941# We use the long form for the default assignment because of an extremely 11942# bizarre bug on SunOS 4.1.3. 11943if $ac_need_defaults; then 11944 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11945 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11946 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11947fi 11948 11949# Have a temporary directory for convenience. Make it in the build tree 11950# simply because there is no reason against having it here, and in addition, 11951# creating and moving files from /tmp can sometimes cause problems. 11952# Hook for its removal unless debugging. 11953# Note that there is a small window in which the directory will not be cleaned: 11954# after its creation but before its name has been assigned to `$tmp'. 11955$debug || 11956{ 11957 tmp= ac_tmp= 11958 trap 'exit_status=$? 11959 : "${ac_tmp:=$tmp}" 11960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11961' 0 11962 trap 'as_fn_exit 1' 1 2 13 15 11963} 11964# Create a (secure) tmp directory for tmp files. 11965 11966{ 11967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11968 test -d "$tmp" 11969} || 11970{ 11971 tmp=./conf$$-$RANDOM 11972 (umask 077 && mkdir "$tmp") 11973} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11974ac_tmp=$tmp 11975 11976# Set up the scripts for CONFIG_FILES section. 11977# No need to generate them if there are no CONFIG_FILES. 11978# This happens for instance with `./config.status config.h'. 11979if test -n "$CONFIG_FILES"; then 11980 11981 11982ac_cr=`echo X | tr X '\015'` 11983# On cygwin, bash can eat \r inside `` if the user requested igncr. 11984# But we know of no other shell where ac_cr would be empty at this 11985# point, so we can use a bashism as a fallback. 11986if test "x$ac_cr" = x; then 11987 eval ac_cr=\$\'\\r\' 11988fi 11989ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11990if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11991 ac_cs_awk_cr='\\r' 11992else 11993 ac_cs_awk_cr=$ac_cr 11994fi 11995 11996echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11997_ACEOF 11998 11999 12000{ 12001 echo "cat >conf$$subs.awk <<_ACEOF" && 12002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12003 echo "_ACEOF" 12004} >conf$$subs.sh || 12005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12006ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12007ac_delim='%!_!# ' 12008for ac_last_try in false false false false false :; do 12009 . ./conf$$subs.sh || 12010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12011 12012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12013 if test $ac_delim_n = $ac_delim_num; then 12014 break 12015 elif $ac_last_try; then 12016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12017 else 12018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12019 fi 12020done 12021rm -f conf$$subs.sh 12022 12023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12024cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12025_ACEOF 12026sed -n ' 12027h 12028s/^/S["/; s/!.*/"]=/ 12029p 12030g 12031s/^[^!]*!// 12032:repl 12033t repl 12034s/'"$ac_delim"'$// 12035t delim 12036:nl 12037h 12038s/\(.\{148\}\)..*/\1/ 12039t more1 12040s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12041p 12042n 12043b repl 12044:more1 12045s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12046p 12047g 12048s/.\{148\}// 12049t nl 12050:delim 12051h 12052s/\(.\{148\}\)..*/\1/ 12053t more2 12054s/["\\]/\\&/g; s/^/"/; s/$/"/ 12055p 12056b 12057:more2 12058s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12059p 12060g 12061s/.\{148\}// 12062t delim 12063' <conf$$subs.awk | sed ' 12064/^[^""]/{ 12065 N 12066 s/\n// 12067} 12068' >>$CONFIG_STATUS || ac_write_fail=1 12069rm -f conf$$subs.awk 12070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12071_ACAWK 12072cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12073 for (key in S) S_is_set[key] = 1 12074 FS = "" 12075 12076} 12077{ 12078 line = $ 0 12079 nfields = split(line, field, "@") 12080 substed = 0 12081 len = length(field[1]) 12082 for (i = 2; i < nfields; i++) { 12083 key = field[i] 12084 keylen = length(key) 12085 if (S_is_set[key]) { 12086 value = S[key] 12087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12088 len += length(value) + length(field[++i]) 12089 substed = 1 12090 } else 12091 len += 1 + keylen 12092 } 12093 12094 print line 12095} 12096 12097_ACAWK 12098_ACEOF 12099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12100if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12102else 12103 cat 12104fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12106_ACEOF 12107 12108# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12109# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12110# trailing colons and then remove the whole line if VPATH becomes empty 12111# (actually we leave an empty line to preserve line numbers). 12112if test "x$srcdir" = x.; then 12113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12114h 12115s/// 12116s/^/:/ 12117s/[ ]*$/:/ 12118s/:\$(srcdir):/:/g 12119s/:\${srcdir}:/:/g 12120s/:@srcdir@:/:/g 12121s/^:*// 12122s/:*$// 12123x 12124s/\(=[ ]*\).*/\1/ 12125G 12126s/\n// 12127s/^[^=]*=[ ]*$// 12128}' 12129fi 12130 12131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12132fi # test -n "$CONFIG_FILES" 12133 12134# Set up the scripts for CONFIG_HEADERS section. 12135# No need to generate them if there are no CONFIG_HEADERS. 12136# This happens for instance with `./config.status Makefile'. 12137if test -n "$CONFIG_HEADERS"; then 12138cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12139BEGIN { 12140_ACEOF 12141 12142# Transform confdefs.h into an awk script `defines.awk', embedded as 12143# here-document in config.status, that substitutes the proper values into 12144# config.h.in to produce config.h. 12145 12146# Create a delimiter string that does not exist in confdefs.h, to ease 12147# handling of long lines. 12148ac_delim='%!_!# ' 12149for ac_last_try in false false :; do 12150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12151 if test -z "$ac_tt"; then 12152 break 12153 elif $ac_last_try; then 12154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12155 else 12156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12157 fi 12158done 12159 12160# For the awk script, D is an array of macro values keyed by name, 12161# likewise P contains macro parameters if any. Preserve backslash 12162# newline sequences. 12163 12164ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12165sed -n ' 12166s/.\{148\}/&'"$ac_delim"'/g 12167t rset 12168:rset 12169s/^[ ]*#[ ]*define[ ][ ]*/ / 12170t def 12171d 12172:def 12173s/\\$// 12174t bsnl 12175s/["\\]/\\&/g 12176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12177D["\1"]=" \3"/p 12178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12179d 12180:bsnl 12181s/["\\]/\\&/g 12182s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12183D["\1"]=" \3\\\\\\n"\\/p 12184t cont 12185s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12186t cont 12187d 12188:cont 12189n 12190s/.\{148\}/&'"$ac_delim"'/g 12191t clear 12192:clear 12193s/\\$// 12194t bsnlc 12195s/["\\]/\\&/g; s/^/"/; s/$/"/p 12196d 12197:bsnlc 12198s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12199b cont 12200' <confdefs.h | sed ' 12201s/'"$ac_delim"'/"\\\ 12202"/g' >>$CONFIG_STATUS || ac_write_fail=1 12203 12204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12205 for (key in D) D_is_set[key] = 1 12206 FS = "" 12207} 12208/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12209 line = \$ 0 12210 split(line, arg, " ") 12211 if (arg[1] == "#") { 12212 defundef = arg[2] 12213 mac1 = arg[3] 12214 } else { 12215 defundef = substr(arg[1], 2) 12216 mac1 = arg[2] 12217 } 12218 split(mac1, mac2, "(") #) 12219 macro = mac2[1] 12220 prefix = substr(line, 1, index(line, defundef) - 1) 12221 if (D_is_set[macro]) { 12222 # Preserve the white space surrounding the "#". 12223 print prefix "define", macro P[macro] D[macro] 12224 next 12225 } else { 12226 # Replace #undef with comments. This is necessary, for example, 12227 # in the case of _POSIX_SOURCE, which is predefined and required 12228 # on some systems where configure will not decide to define it. 12229 if (defundef == "undef") { 12230 print "/*", prefix defundef, macro, "*/" 12231 next 12232 } 12233 } 12234} 12235{ print } 12236_ACAWK 12237_ACEOF 12238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12240fi # test -n "$CONFIG_HEADERS" 12241 12242 12243eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12244shift 12245for ac_tag 12246do 12247 case $ac_tag in 12248 :[FHLC]) ac_mode=$ac_tag; continue;; 12249 esac 12250 case $ac_mode$ac_tag in 12251 :[FHL]*:*);; 12252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12253 :[FH]-) ac_tag=-:-;; 12254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12255 esac 12256 ac_save_IFS=$IFS 12257 IFS=: 12258 set x $ac_tag 12259 IFS=$ac_save_IFS 12260 shift 12261 ac_file=$1 12262 shift 12263 12264 case $ac_mode in 12265 :L) ac_source=$1;; 12266 :[FH]) 12267 ac_file_inputs= 12268 for ac_f 12269 do 12270 case $ac_f in 12271 -) ac_f="$ac_tmp/stdin";; 12272 *) # Look for the file first in the build tree, then in the source tree 12273 # (if the path is not absolute). The absolute path cannot be DOS-style, 12274 # because $ac_f cannot contain `:'. 12275 test -f "$ac_f" || 12276 case $ac_f in 12277 [\\/$]*) false;; 12278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12279 esac || 12280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12281 esac 12282 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12283 as_fn_append ac_file_inputs " '$ac_f'" 12284 done 12285 12286 # Let's still pretend it is `configure' which instantiates (i.e., don't 12287 # use $as_me), people would be surprised to read: 12288 # /* config.h. Generated by config.status. */ 12289 configure_input='Generated from '` 12290 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12291 `' by configure.' 12292 if test x"$ac_file" != x-; then 12293 configure_input="$ac_file. $configure_input" 12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12295printf "%s\n" "$as_me: creating $ac_file" >&6;} 12296 fi 12297 # Neutralize special characters interpreted by sed in replacement strings. 12298 case $configure_input in #( 12299 *\&* | *\|* | *\\* ) 12300 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12301 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12302 *) ac_sed_conf_input=$configure_input;; 12303 esac 12304 12305 case $ac_tag in 12306 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12308 esac 12309 ;; 12310 esac 12311 12312 ac_dir=`$as_dirname -- "$ac_file" || 12313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12314 X"$ac_file" : 'X\(//\)[^/]' \| \ 12315 X"$ac_file" : 'X\(//\)$' \| \ 12316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12317printf "%s\n" X"$ac_file" | 12318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12319 s//\1/ 12320 q 12321 } 12322 /^X\(\/\/\)[^/].*/{ 12323 s//\1/ 12324 q 12325 } 12326 /^X\(\/\/\)$/{ 12327 s//\1/ 12328 q 12329 } 12330 /^X\(\/\).*/{ 12331 s//\1/ 12332 q 12333 } 12334 s/.*/./; q'` 12335 as_dir="$ac_dir"; as_fn_mkdir_p 12336 ac_builddir=. 12337 12338case "$ac_dir" in 12339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12340*) 12341 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12342 # A ".." for each directory in $ac_dir_suffix. 12343 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12344 case $ac_top_builddir_sub in 12345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12347 esac ;; 12348esac 12349ac_abs_top_builddir=$ac_pwd 12350ac_abs_builddir=$ac_pwd$ac_dir_suffix 12351# for backward compatibility: 12352ac_top_builddir=$ac_top_build_prefix 12353 12354case $srcdir in 12355 .) # We are building in place. 12356 ac_srcdir=. 12357 ac_top_srcdir=$ac_top_builddir_sub 12358 ac_abs_top_srcdir=$ac_pwd ;; 12359 [\\/]* | ?:[\\/]* ) # Absolute name. 12360 ac_srcdir=$srcdir$ac_dir_suffix; 12361 ac_top_srcdir=$srcdir 12362 ac_abs_top_srcdir=$srcdir ;; 12363 *) # Relative name. 12364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12365 ac_top_srcdir=$ac_top_build_prefix$srcdir 12366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12367esac 12368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12369 12370 12371 case $ac_mode in 12372 :F) 12373 # 12374 # CONFIG_FILE 12375 # 12376 12377 case $INSTALL in 12378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12380 esac 12381 ac_MKDIR_P=$MKDIR_P 12382 case $MKDIR_P in 12383 [\\/$]* | ?:[\\/]* ) ;; 12384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12385 esac 12386_ACEOF 12387 12388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12389# If the template does not know about datarootdir, expand it. 12390# FIXME: This hack should be removed a few years after 2.60. 12391ac_datarootdir_hack=; ac_datarootdir_seen= 12392ac_sed_dataroot=' 12393/datarootdir/ { 12394 p 12395 q 12396} 12397/@datadir@/p 12398/@docdir@/p 12399/@infodir@/p 12400/@localedir@/p 12401/@mandir@/p' 12402case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12403*datarootdir*) ac_datarootdir_seen=yes;; 12404*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12406printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12407_ACEOF 12408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12409 ac_datarootdir_hack=' 12410 s&@datadir@&$datadir&g 12411 s&@docdir@&$docdir&g 12412 s&@infodir@&$infodir&g 12413 s&@localedir@&$localedir&g 12414 s&@mandir@&$mandir&g 12415 s&\\\${datarootdir}&$datarootdir&g' ;; 12416esac 12417_ACEOF 12418 12419# Neutralize VPATH when `$srcdir' = `.'. 12420# Shell code in configure.ac might set extrasub. 12421# FIXME: do we really want to maintain this feature? 12422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12423ac_sed_extra="$ac_vpsub 12424$extrasub 12425_ACEOF 12426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12427:t 12428/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12429s|@configure_input@|$ac_sed_conf_input|;t t 12430s&@top_builddir@&$ac_top_builddir_sub&;t t 12431s&@top_build_prefix@&$ac_top_build_prefix&;t t 12432s&@srcdir@&$ac_srcdir&;t t 12433s&@abs_srcdir@&$ac_abs_srcdir&;t t 12434s&@top_srcdir@&$ac_top_srcdir&;t t 12435s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12436s&@builddir@&$ac_builddir&;t t 12437s&@abs_builddir@&$ac_abs_builddir&;t t 12438s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12439s&@INSTALL@&$ac_INSTALL&;t t 12440s&@MKDIR_P@&$ac_MKDIR_P&;t t 12441$ac_datarootdir_hack 12442" 12443eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12445 12446test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12449 "$ac_tmp/out"`; test -z "$ac_out"; } && 12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12451which seems to be undefined. Please make sure it is defined" >&5 12452printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12453which seems to be undefined. Please make sure it is defined" >&2;} 12454 12455 rm -f "$ac_tmp/stdin" 12456 case $ac_file in 12457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12459 esac \ 12460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12461 ;; 12462 :H) 12463 # 12464 # CONFIG_HEADER 12465 # 12466 if test x"$ac_file" != x-; then 12467 { 12468 printf "%s\n" "/* $configure_input */" >&1 \ 12469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12470 } >"$ac_tmp/config.h" \ 12471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12474printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12475 else 12476 rm -f "$ac_file" 12477 mv "$ac_tmp/config.h" "$ac_file" \ 12478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12479 fi 12480 else 12481 printf "%s\n" "/* $configure_input */" >&1 \ 12482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12483 || as_fn_error $? "could not create -" "$LINENO" 5 12484 fi 12485# Compute "$ac_file"'s index in $config_headers. 12486_am_arg="$ac_file" 12487_am_stamp_count=1 12488for _am_header in $config_headers :; do 12489 case $_am_header in 12490 $_am_arg | $_am_arg:* ) 12491 break ;; 12492 * ) 12493 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12494 esac 12495done 12496echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12497$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12498 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12499 X"$_am_arg" : 'X\(//\)$' \| \ 12500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12501printf "%s\n" X"$_am_arg" | 12502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12503 s//\1/ 12504 q 12505 } 12506 /^X\(\/\/\)[^/].*/{ 12507 s//\1/ 12508 q 12509 } 12510 /^X\(\/\/\)$/{ 12511 s//\1/ 12512 q 12513 } 12514 /^X\(\/\).*/{ 12515 s//\1/ 12516 q 12517 } 12518 s/.*/./; q'`/stamp-h$_am_stamp_count 12519 ;; 12520 12521 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12522printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12523 ;; 12524 esac 12525 12526 12527 case $ac_file$ac_mode in 12528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12529 # Older Autoconf quotes --file arguments for eval, but not when files 12530 # are listed without --file. Let's play safe and only enable the eval 12531 # if we detect the quoting. 12532 # TODO: see whether this extra hack can be removed once we start 12533 # requiring Autoconf 2.70 or later. 12534 case $CONFIG_FILES in #( 12535 *\'*) : 12536 eval set x "$CONFIG_FILES" ;; #( 12537 *) : 12538 set x $CONFIG_FILES ;; #( 12539 *) : 12540 ;; 12541esac 12542 shift 12543 # Used to flag and report bootstrapping failures. 12544 am_rc=0 12545 for am_mf 12546 do 12547 # Strip MF so we end up with the name of the file. 12548 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12549 # Check whether this is an Automake generated Makefile which includes 12550 # dependency-tracking related rules and includes. 12551 # Grep'ing the whole file directly is not great: AIX grep has a line 12552 # limit of 2048, but all sed's we know have understand at least 4000. 12553 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12554 || continue 12555 am_dirpart=`$as_dirname -- "$am_mf" || 12556$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12557 X"$am_mf" : 'X\(//\)[^/]' \| \ 12558 X"$am_mf" : 'X\(//\)$' \| \ 12559 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12560printf "%s\n" X"$am_mf" | 12561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12562 s//\1/ 12563 q 12564 } 12565 /^X\(\/\/\)[^/].*/{ 12566 s//\1/ 12567 q 12568 } 12569 /^X\(\/\/\)$/{ 12570 s//\1/ 12571 q 12572 } 12573 /^X\(\/\).*/{ 12574 s//\1/ 12575 q 12576 } 12577 s/.*/./; q'` 12578 am_filepart=`$as_basename -- "$am_mf" || 12579$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12580 X"$am_mf" : 'X\(//\)$' \| \ 12581 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12582printf "%s\n" X/"$am_mf" | 12583 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12584 s//\1/ 12585 q 12586 } 12587 /^X\/\(\/\/\)$/{ 12588 s//\1/ 12589 q 12590 } 12591 /^X\/\(\/\).*/{ 12592 s//\1/ 12593 q 12594 } 12595 s/.*/./; q'` 12596 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12597 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12598 | $MAKE -f - am--depfiles" >&5 12599 (cd "$am_dirpart" \ 12600 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12601 | $MAKE -f - am--depfiles) >&5 2>&5 12602 ac_status=$? 12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12604 (exit $ac_status); } || am_rc=$? 12605 done 12606 if test $am_rc -ne 0; then 12607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12608printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12609as_fn_error $? "Something went wrong bootstrapping makefile fragments 12610 for automatic dependency tracking. If GNU make was not used, consider 12611 re-running the configure script with MAKE=\"gmake\" (or whatever is 12612 necessary). You can also try re-running configure with the 12613 '--disable-dependency-tracking' option to at least be able to build 12614 the package (albeit without support for automatic dependency tracking). 12615See \`config.log' for more details" "$LINENO" 5; } 12616 fi 12617 { am_dirpart=; unset am_dirpart;} 12618 { am_filepart=; unset am_filepart;} 12619 { am_mf=; unset am_mf;} 12620 { am_rc=; unset am_rc;} 12621 rm -f conftest-deps.mk 12622} 12623 ;; 12624 12625 esac 12626done # for ac_tag 12627 12628 12629as_fn_exit 0 12630_ACEOF 12631ac_clean_files=$ac_clean_files_save 12632 12633test $ac_write_fail = 0 || 12634 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12635 12636 12637# configure is writing to config.log, and then calls config.status. 12638# config.status does its own redirection, appending to config.log. 12639# Unfortunately, on DOS this fails, as config.log is still kept open 12640# by configure, so config.status won't be able to write to it; its 12641# output is simply discarded. So we exec the FD to /dev/null, 12642# effectively closing config.log, so it can be properly (re)opened and 12643# appended to by config.status. When coming back to configure, we 12644# need to make the FD available again. 12645if test "$no_create" != yes; then 12646 ac_cs_success=: 12647 ac_config_status_args= 12648 test "$silent" = yes && 12649 ac_config_status_args="$ac_config_status_args --quiet" 12650 exec 5>/dev/null 12651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12652 exec 5>>config.log 12653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12654 # would make configure fail if this is the last instruction. 12655 $ac_cs_success || as_fn_exit 1 12656fi 12657if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12659printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12660fi 12661 12662 12663