configure revision c048b52e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for iceauth 1.0.9. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/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/iceauth/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='iceauth' 614PACKAGE_TARNAME='iceauth' 615PACKAGE_VERSION='1.0.9' 616PACKAGE_STRING='iceauth 1.0.9' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/iceauth/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 657LINT_FALSE 658LINT_TRUE 659LINT_FLAGS 660LINT 661ICEAUTH_LIBS 662ICEAUTH_CFLAGS 663MAN_SUBSTS 664XORG_MAN_PAGE 665ADMIN_MAN_DIR 666DRIVER_MAN_DIR 667MISC_MAN_DIR 668FILE_MAN_DIR 669LIB_MAN_DIR 670APP_MAN_DIR 671ADMIN_MAN_SUFFIX 672DRIVER_MAN_SUFFIX 673MISC_MAN_SUFFIX 674FILE_MAN_SUFFIX 675LIB_MAN_SUFFIX 676APP_MAN_SUFFIX 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686INSTALL_CMD 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CHANGELOG_CMD 691STRICT_CFLAGS 692CWARNFLAGS 693BASE_CFLAGS 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714CSCOPE 715ETAGS 716CTAGS 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL 779am__quote' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_dependency_tracking 785enable_selective_werror 786enable_strict_compilation 787with_lint 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797PKG_CONFIG 798PKG_CONFIG_PATH 799PKG_CONFIG_LIBDIR 800ICEAUTH_CFLAGS 801ICEAUTH_LIBS 802LINT 803LINT_FLAGS' 804 805 806# Initialize some variables set by options. 807ac_init_help= 808ac_init_version=false 809ac_unrecognized_opts= 810ac_unrecognized_sep= 811# The variables have the same names as the options, with 812# dashes changed to underlines. 813cache_file=/dev/null 814exec_prefix=NONE 815no_create= 816no_recursion= 817prefix=NONE 818program_prefix=NONE 819program_suffix=NONE 820program_transform_name=s,x,x, 821silent= 822site= 823srcdir= 824verbose= 825x_includes=NONE 826x_libraries=NONE 827 828# Installation directory options. 829# These are left unexpanded so users can "make install exec_prefix=/foo" 830# and all the variables that are supposed to be based on exec_prefix 831# by default will actually change. 832# Use braces instead of parens because sh, perl, etc. also accept them. 833# (The list follows the same order as the GNU Coding Standards.) 834bindir='${exec_prefix}/bin' 835sbindir='${exec_prefix}/sbin' 836libexecdir='${exec_prefix}/libexec' 837datarootdir='${prefix}/share' 838datadir='${datarootdir}' 839sysconfdir='${prefix}/etc' 840sharedstatedir='${prefix}/com' 841localstatedir='${prefix}/var' 842runstatedir='${localstatedir}/run' 843includedir='${prefix}/include' 844oldincludedir='/usr/include' 845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 846infodir='${datarootdir}/info' 847htmldir='${docdir}' 848dvidir='${docdir}' 849pdfdir='${docdir}' 850psdir='${docdir}' 851libdir='${exec_prefix}/lib' 852localedir='${datarootdir}/locale' 853mandir='${datarootdir}/man' 854 855ac_prev= 856ac_dashdash= 857for ac_option 858do 859 # If the previous option needs an argument, assign it. 860 if test -n "$ac_prev"; then 861 eval $ac_prev=\$ac_option 862 ac_prev= 863 continue 864 fi 865 866 case $ac_option in 867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 868 *=) ac_optarg= ;; 869 *) ac_optarg=yes ;; 870 esac 871 872 case $ac_dashdash$ac_option in 873 --) 874 ac_dashdash=yes ;; 875 876 -bindir | --bindir | --bindi | --bind | --bin | --bi) 877 ac_prev=bindir ;; 878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 879 bindir=$ac_optarg ;; 880 881 -build | --build | --buil | --bui | --bu) 882 ac_prev=build_alias ;; 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 884 build_alias=$ac_optarg ;; 885 886 -cache-file | --cache-file | --cache-fil | --cache-fi \ 887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 888 ac_prev=cache_file ;; 889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 891 cache_file=$ac_optarg ;; 892 893 --config-cache | -C) 894 cache_file=config.cache ;; 895 896 -datadir | --datadir | --datadi | --datad) 897 ac_prev=datadir ;; 898 -datadir=* | --datadir=* | --datadi=* | --datad=*) 899 datadir=$ac_optarg ;; 900 901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 902 | --dataroo | --dataro | --datar) 903 ac_prev=datarootdir ;; 904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 906 datarootdir=$ac_optarg ;; 907 908 -disable-* | --disable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: \`$ac_useropt'" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=no ;; 923 924 -docdir | --docdir | --docdi | --doc | --do) 925 ac_prev=docdir ;; 926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 927 docdir=$ac_optarg ;; 928 929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 930 ac_prev=dvidir ;; 931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 932 dvidir=$ac_optarg ;; 933 934 -enable-* | --enable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: \`$ac_useropt'" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1094 | --runstate | --runstat | --runsta | --runst | --runs \ 1095 | --run | --ru | --r) 1096 ac_prev=runstatedir ;; 1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1099 | --run=* | --ru=* | --r=*) 1100 runstatedir=$ac_optarg ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: \`$ac_useropt'" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=\$ac_optarg ;; 1162 1163 -without-* | --without-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: \`$ac_useropt'" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=no ;; 1178 1179 --x) 1180 # Obsolete; use --with-x. 1181 with_x=yes ;; 1182 1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184 | --x-incl | --x-inc | --x-in | --x-i) 1185 ac_prev=x_includes ;; 1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188 x_includes=$ac_optarg ;; 1189 1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192 ac_prev=x_libraries ;; 1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195 x_libraries=$ac_optarg ;; 1196 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198Try \`$0 --help' for more information" 1199 ;; 1200 1201 *=*) 1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203 # Reject names that are not valid shell variable names. 1204 case $ac_envvar in #( 1205 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207 esac 1208 eval $ac_envvar=\$ac_optarg 1209 export $ac_envvar ;; 1210 1211 *) 1212 # FIXME: should be removed in autoconf 3.0. 1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217 ;; 1218 1219 esac 1220done 1221 1222if test -n "$ac_prev"; then 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224 as_fn_error $? "missing argument to $ac_option" 1225fi 1226 1227if test -n "$ac_unrecognized_opts"; then 1228 case $enable_option_checking in 1229 no) ;; 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 esac 1233fi 1234 1235# Check all directory arguments for consistency. 1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237 datadir sysconfdir sharedstatedir localstatedir includedir \ 1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239 libdir localedir mandir runstatedir 1240do 1241 eval ac_val=\$$ac_var 1242 # Remove trailing slashes. 1243 case $ac_val in 1244 */ ) 1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246 eval $ac_var=\$ac_val;; 1247 esac 1248 # Be sure to have absolute directory names. 1249 case $ac_val in 1250 [\\/$]* | ?:[\\/]* ) continue;; 1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252 esac 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254done 1255 1256# There might be people who depend on the old broken behavior: `$host' 1257# used to hold the argument of --host etc. 1258# FIXME: To remove some day. 1259build=$build_alias 1260host=$host_alias 1261target=$target_alias 1262 1263# FIXME: To remove some day. 1264if test "x$host_alias" != x; then 1265 if test "x$build_alias" = x; then 1266 cross_compiling=maybe 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270fi 1271 1272ac_tool_prefix= 1273test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275test "$silent" = yes && exec 6>/dev/null 1276 1277 1278ac_pwd=`pwd` && test -n "$ac_pwd" && 1279ac_ls_di=`ls -di .` && 1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286# Find the source files, if location was not specified. 1287if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295printf "%s\n" X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317else 1318 ac_srcdir_defaulted=no 1319fi 1320if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323fi 1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328# When building in place, set srcdir=. 1329if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331fi 1332# Remove unnecessary trailing slashes from srcdir. 1333# Double slashes in file names in object file debugging info 1334# mess up M-x gdb in Emacs. 1335case $srcdir in 1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337esac 1338for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343done 1344 1345# 1346# Report the --help message. 1347# 1348if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352\`configure' configures iceauth 1.0.9 to adapt to many kinds of systems. 1353 1354Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359Defaults for the options are specified in brackets. 1360 1361Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378By default, \`make install' will install all the files in 1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381for instance \`--prefix=\$HOME'. 1382 1383For better control, use the options below. 1384 1385Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1393 --libdir=DIR object code libraries [EPREFIX/lib] 1394 --includedir=DIR C header files [PREFIX/include] 1395 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398 --infodir=DIR info documentation [DATAROOTDIR/info] 1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400 --mandir=DIR man documentation [DATAROOTDIR/man] 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/iceauth] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406_ACEOF 1407 1408 cat <<\_ACEOF 1409 1410Program names: 1411 --program-prefix=PREFIX prepend PREFIX to installed program names 1412 --program-suffix=SUFFIX append SUFFIX to installed program names 1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1414 1415System types: 1416 --build=BUILD configure for building on BUILD [guessed] 1417 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1418_ACEOF 1419fi 1420 1421if test -n "$ac_init_help"; then 1422 case $ac_init_help in 1423 short | recursive ) echo "Configuration of iceauth 1.0.9:";; 1424 esac 1425 cat <<\_ACEOF 1426 1427Optional Features: 1428 --disable-option-checking ignore unrecognized --enable/--with options 1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --disable-selective-werror 1438 Turn off selective compiler errors. (default: 1439 enabled) 1440 --enable-strict-compilation 1441 Enable all warnings from compiler and make them 1442 errors (default: disabled) 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-lint Use a lint-style source code checker (default: 1448 disabled) 1449 1450Some influential environment variables: 1451 CC C compiler command 1452 CFLAGS C compiler flags 1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454 nonstandard directory <lib dir> 1455 LIBS libraries to pass to the linker, e.g. -l<library> 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 you have headers in a nonstandard directory <include dir> 1458 PKG_CONFIG path to pkg-config utility 1459 PKG_CONFIG_PATH 1460 directories to add to pkg-config's search path 1461 PKG_CONFIG_LIBDIR 1462 path overriding pkg-config's built-in search path 1463 ICEAUTH_CFLAGS 1464 C compiler flags for ICEAUTH, overriding pkg-config 1465 ICEAUTH_LIBS 1466 linker flags for ICEAUTH, overriding pkg-config 1467 LINT Path to a lint-style command 1468 LINT_FLAGS Flags for the lint-style command 1469 1470Use these variables to override the choices made by `configure' or to help 1471it to find libraries and programs with nonstandard names/locations. 1472 1473Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/issues>. 1474_ACEOF 1475ac_status=$? 1476fi 1477 1478if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486case "$ac_dir" in 1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488*) 1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496esac 1497ac_abs_top_builddir=$ac_pwd 1498ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499# for backward compatibility: 1500ac_top_builddir=$ac_top_build_prefix 1501 1502case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515esac 1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for configure.gnu first; this name is used for a wrapper for 1520 # Metaconfig's "Configure" on case-insensitive file systems. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532fi 1533 1534test -n "$ac_init_help" && exit $ac_status 1535if $ac_init_version; then 1536 cat <<\_ACEOF 1537iceauth configure 1.0.9 1538generated by GNU Autoconf 2.71 1539 1540Copyright (C) 2021 Free Software Foundation, Inc. 1541This configure script is free software; the Free Software Foundation 1542gives unlimited permission to copy, distribute and modify it. 1543_ACEOF 1544 exit 1545fi 1546 1547## ------------------------ ## 1548## Autoconf initialization. ## 1549## ------------------------ ## 1550 1551# ac_fn_c_try_compile LINENO 1552# -------------------------- 1553# Try to compile conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_compile () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest.beam 1558 if { { ac_try="$ac_compile" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564printf "%s\n" "$ac_try_echo"; } >&5 1565 (eval "$ac_compile") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest.$ac_objext 1577then : 1578 ac_retval=0 1579else $as_nop 1580 printf "%s\n" "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 1584fi 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586 as_fn_set_status $ac_retval 1587 1588} # ac_fn_c_try_compile 1589 1590# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1591# ------------------------------------------------------------------ 1592# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1593# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1594ac_fn_check_decl () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 as_decl_name=`echo $2|sed 's/ *(.*//'` 1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1599printf %s "checking whether $as_decl_name is declared... " >&6; } 1600if eval test \${$3+y} 1601then : 1602 printf %s "(cached) " >&6 1603else $as_nop 1604 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1605 eval ac_save_FLAGS=\$$6 1606 as_fn_append $6 " $5" 1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608/* end confdefs.h. */ 1609$4 1610int 1611main (void) 1612{ 1613#ifndef $as_decl_name 1614#ifdef __cplusplus 1615 (void) $as_decl_use; 1616#else 1617 (void) $as_decl_name; 1618#endif 1619#endif 1620 1621 ; 1622 return 0; 1623} 1624_ACEOF 1625if ac_fn_c_try_compile "$LINENO" 1626then : 1627 eval "$3=yes" 1628else $as_nop 1629 eval "$3=no" 1630fi 1631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1632 eval $6=\$ac_save_FLAGS 1633 1634fi 1635eval ac_res=\$$3 1636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637printf "%s\n" "$ac_res" >&6; } 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639 1640} # ac_fn_check_decl 1641 1642# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1643# ------------------------------------------------------- 1644# Tests whether HEADER exists and can be compiled using the include files in 1645# INCLUDES, setting the cache variable VAR accordingly. 1646ac_fn_c_check_header_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1650printf %s "checking for $2... " >&6; } 1651if eval test \${$3+y} 1652then : 1653 printf %s "(cached) " >&6 1654else $as_nop 1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1656/* end confdefs.h. */ 1657$4 1658#include <$2> 1659_ACEOF 1660if ac_fn_c_try_compile "$LINENO" 1661then : 1662 eval "$3=yes" 1663else $as_nop 1664 eval "$3=no" 1665fi 1666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1667fi 1668eval ac_res=\$$3 1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670printf "%s\n" "$ac_res" >&6; } 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673} # ac_fn_c_check_header_compile 1674 1675# ac_fn_c_try_link LINENO 1676# ----------------------- 1677# Try to link conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_link () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1682 if { { ac_try="$ac_link" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688printf "%s\n" "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest$ac_exeext && { 1701 test "$cross_compiling" = yes || 1702 test -x conftest$ac_exeext 1703 } 1704then : 1705 ac_retval=0 1706else $as_nop 1707 printf "%s\n" "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_link 1721ac_configure_args_raw= 1722for ac_arg 1723do 1724 case $ac_arg in 1725 *\'*) 1726 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1727 esac 1728 as_fn_append ac_configure_args_raw " '$ac_arg'" 1729done 1730 1731case $ac_configure_args_raw in 1732 *$as_nl*) 1733 ac_safe_unquote= ;; 1734 *) 1735 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1736 ac_unsafe_a="$ac_unsafe_z#~" 1737 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1738 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1739esac 1740 1741cat >config.log <<_ACEOF 1742This file contains any messages produced by compilers while 1743running configure, to aid debugging if configure makes a mistake. 1744 1745It was created by iceauth $as_me 1.0.9, which was 1746generated by GNU Autoconf 2.71. Invocation command line was 1747 1748 $ $0$ac_configure_args_raw 1749 1750_ACEOF 1751exec 5>>config.log 1752{ 1753cat <<_ASUNAME 1754## --------- ## 1755## Platform. ## 1756## --------- ## 1757 1758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1759uname -m = `(uname -m) 2>/dev/null || echo unknown` 1760uname -r = `(uname -r) 2>/dev/null || echo unknown` 1761uname -s = `(uname -s) 2>/dev/null || echo unknown` 1762uname -v = `(uname -v) 2>/dev/null || echo unknown` 1763 1764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1765/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1766 1767/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1768/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1770/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1771/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1772/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1773/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1774 1775_ASUNAME 1776 1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778for as_dir in $PATH 1779do 1780 IFS=$as_save_IFS 1781 case $as_dir in #((( 1782 '') as_dir=./ ;; 1783 */) ;; 1784 *) as_dir=$as_dir/ ;; 1785 esac 1786 printf "%s\n" "PATH: $as_dir" 1787 done 1788IFS=$as_save_IFS 1789 1790} >&5 1791 1792cat >&5 <<_ACEOF 1793 1794 1795## ----------- ## 1796## Core tests. ## 1797## ----------- ## 1798 1799_ACEOF 1800 1801 1802# Keep a trace of the command line. 1803# Strip out --no-create and --no-recursion so they do not pile up. 1804# Strip out --silent because we don't want to record it for future runs. 1805# Also quote any args containing shell meta-characters. 1806# Make two passes to allow for proper duplicate-argument suppression. 1807ac_configure_args= 1808ac_configure_args0= 1809ac_configure_args1= 1810ac_must_keep_next=false 1811for ac_pass in 1 2 1812do 1813 for ac_arg 1814 do 1815 case $ac_arg in 1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1818 | -silent | --silent | --silen | --sile | --sil) 1819 continue ;; 1820 *\'*) 1821 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1822 esac 1823 case $ac_pass in 1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1825 2) 1826 as_fn_append ac_configure_args1 " '$ac_arg'" 1827 if test $ac_must_keep_next = true; then 1828 ac_must_keep_next=false # Got value, back to normal. 1829 else 1830 case $ac_arg in 1831 *=* | --config-cache | -C | -disable-* | --disable-* \ 1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1834 | -with-* | --with-* | -without-* | --without-* | --x) 1835 case "$ac_configure_args0 " in 1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1837 esac 1838 ;; 1839 -* ) ac_must_keep_next=true ;; 1840 esac 1841 fi 1842 as_fn_append ac_configure_args " '$ac_arg'" 1843 ;; 1844 esac 1845 done 1846done 1847{ ac_configure_args0=; unset ac_configure_args0;} 1848{ ac_configure_args1=; unset ac_configure_args1;} 1849 1850# When interrupted or exit'd, cleanup temporary files, and complete 1851# config.log. We remove comments because anyway the quotes in there 1852# would cause problems or look ugly. 1853# WARNING: Use '\'' to represent an apostrophe within the trap. 1854# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1855trap 'exit_status=$? 1856 # Sanitize IFS. 1857 IFS=" "" $as_nl" 1858 # Save into config.log some information that might help in debugging. 1859 { 1860 echo 1861 1862 printf "%s\n" "## ---------------- ## 1863## Cache variables. ## 1864## ---------------- ##" 1865 echo 1866 # The following way of writing the cache mishandles newlines in values, 1867( 1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in #( 1871 *${as_nl}*) 1872 case $ac_var in #( 1873 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1874printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1875 esac 1876 case $ac_var in #( 1877 _ | IFS | as_nl) ;; #( 1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1879 *) { eval $ac_var=; unset $ac_var;} ;; 1880 esac ;; 1881 esac 1882 done 1883 (set) 2>&1 | 1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1885 *${as_nl}ac_space=\ *) 1886 sed -n \ 1887 "s/'\''/'\''\\\\'\'''\''/g; 1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1889 ;; #( 1890 *) 1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1892 ;; 1893 esac | 1894 sort 1895) 1896 echo 1897 1898 printf "%s\n" "## ----------------- ## 1899## Output variables. ## 1900## ----------------- ##" 1901 echo 1902 for ac_var in $ac_subst_vars 1903 do 1904 eval ac_val=\$$ac_var 1905 case $ac_val in 1906 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907 esac 1908 printf "%s\n" "$ac_var='\''$ac_val'\''" 1909 done | sort 1910 echo 1911 1912 if test -n "$ac_subst_files"; then 1913 printf "%s\n" "## ------------------- ## 1914## File substitutions. ## 1915## ------------------- ##" 1916 echo 1917 for ac_var in $ac_subst_files 1918 do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in 1921 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1922 esac 1923 printf "%s\n" "$ac_var='\''$ac_val'\''" 1924 done | sort 1925 echo 1926 fi 1927 1928 if test -s confdefs.h; then 1929 printf "%s\n" "## ----------- ## 1930## confdefs.h. ## 1931## ----------- ##" 1932 echo 1933 cat confdefs.h 1934 echo 1935 fi 1936 test "$ac_signal" != 0 && 1937 printf "%s\n" "$as_me: caught signal $ac_signal" 1938 printf "%s\n" "$as_me: exit $exit_status" 1939 } >&5 1940 rm -f core *.core core.conftest.* && 1941 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1942 exit $exit_status 1943' 0 1944for ac_signal in 1 2 13 15; do 1945 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1946done 1947ac_signal=0 1948 1949# confdefs.h avoids OS command line length limits that DEFS can exceed. 1950rm -f -r conftest* confdefs.h 1951 1952printf "%s\n" "/* confdefs.h */" > confdefs.h 1953 1954# Predefined preprocessor variables. 1955 1956printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1957 1958printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1959 1960printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1961 1962printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1963 1964printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1965 1966printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1967 1968 1969# Let the site file select an alternate cache file if it wants to. 1970# Prefer an explicitly selected file to automatically selected ones. 1971if test -n "$CONFIG_SITE"; then 1972 ac_site_files="$CONFIG_SITE" 1973elif test "x$prefix" != xNONE; then 1974 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1975else 1976 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1977fi 1978 1979for ac_site_file in $ac_site_files 1980do 1981 case $ac_site_file in #( 1982 */*) : 1983 ;; #( 1984 *) : 1985 ac_site_file=./$ac_site_file ;; 1986esac 1987 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1989printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1990 sed 's/^/| /' "$ac_site_file" >&5 1991 . "$ac_site_file" \ 1992 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1993printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1994as_fn_error $? "failed to load site script $ac_site_file 1995See \`config.log' for more details" "$LINENO" 5; } 1996 fi 1997done 1998 1999if test -r "$cache_file"; then 2000 # Some versions of bash will fail to source /dev/null (special files 2001 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2004printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2005 case $cache_file in 2006 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2007 *) . "./$cache_file";; 2008 esac 2009 fi 2010else 2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2012printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2013 >$cache_file 2014fi 2015 2016# Test code for whether the C compiler supports C89 (global declarations) 2017ac_c_conftest_c89_globals=' 2018/* Does the compiler advertise C89 conformance? 2019 Do not test the value of __STDC__, because some compilers set it to 0 2020 while being otherwise adequately conformant. */ 2021#if !defined __STDC__ 2022# error "Compiler does not advertise C89 conformance" 2023#endif 2024 2025#include <stddef.h> 2026#include <stdarg.h> 2027struct stat; 2028/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2029struct buf { int x; }; 2030struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2031static char *e (p, i) 2032 char **p; 2033 int i; 2034{ 2035 return p[i]; 2036} 2037static char *f (char * (*g) (char **, int), char **p, ...) 2038{ 2039 char *s; 2040 va_list v; 2041 va_start (v,p); 2042 s = g (p, va_arg (v,int)); 2043 va_end (v); 2044 return s; 2045} 2046 2047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2048 function prototypes and stuff, but not \xHH hex character constants. 2049 These do not provoke an error unfortunately, instead are silently treated 2050 as an "x". The following induces an error, until -std is added to get 2051 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2052 array size at least. It is necessary to write \x00 == 0 to get something 2053 that is true only with -std. */ 2054int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2055 2056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2057 inside strings and character constants. */ 2058#define FOO(x) '\''x'\'' 2059int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2060 2061int test (int i, double x); 2062struct s1 {int (*f) (int a);}; 2063struct s2 {int (*f) (double a);}; 2064int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2065 int, int);' 2066 2067# Test code for whether the C compiler supports C89 (body of main). 2068ac_c_conftest_c89_main=' 2069ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2070' 2071 2072# Test code for whether the C compiler supports C99 (global declarations) 2073ac_c_conftest_c99_globals=' 2074// Does the compiler advertise C99 conformance? 2075#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2076# error "Compiler does not advertise C99 conformance" 2077#endif 2078 2079#include <stdbool.h> 2080extern int puts (const char *); 2081extern int printf (const char *, ...); 2082extern int dprintf (int, const char *, ...); 2083extern void *malloc (size_t); 2084 2085// Check varargs macros. These examples are taken from C99 6.10.3.5. 2086// dprintf is used instead of fprintf to avoid needing to declare 2087// FILE and stderr. 2088#define debug(...) dprintf (2, __VA_ARGS__) 2089#define showlist(...) puts (#__VA_ARGS__) 2090#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2091static void 2092test_varargs_macros (void) 2093{ 2094 int x = 1234; 2095 int y = 5678; 2096 debug ("Flag"); 2097 debug ("X = %d\n", x); 2098 showlist (The first, second, and third items.); 2099 report (x>y, "x is %d but y is %d", x, y); 2100} 2101 2102// Check long long types. 2103#define BIG64 18446744073709551615ull 2104#define BIG32 4294967295ul 2105#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2106#if !BIG_OK 2107 #error "your preprocessor is broken" 2108#endif 2109#if BIG_OK 2110#else 2111 #error "your preprocessor is broken" 2112#endif 2113static long long int bignum = -9223372036854775807LL; 2114static unsigned long long int ubignum = BIG64; 2115 2116struct incomplete_array 2117{ 2118 int datasize; 2119 double data[]; 2120}; 2121 2122struct named_init { 2123 int number; 2124 const wchar_t *name; 2125 double average; 2126}; 2127 2128typedef const char *ccp; 2129 2130static inline int 2131test_restrict (ccp restrict text) 2132{ 2133 // See if C++-style comments work. 2134 // Iterate through items via the restricted pointer. 2135 // Also check for declarations in for loops. 2136 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2137 continue; 2138 return 0; 2139} 2140 2141// Check varargs and va_copy. 2142static bool 2143test_varargs (const char *format, ...) 2144{ 2145 va_list args; 2146 va_start (args, format); 2147 va_list args_copy; 2148 va_copy (args_copy, args); 2149 2150 const char *str = ""; 2151 int number = 0; 2152 float fnumber = 0; 2153 2154 while (*format) 2155 { 2156 switch (*format++) 2157 { 2158 case '\''s'\'': // string 2159 str = va_arg (args_copy, const char *); 2160 break; 2161 case '\''d'\'': // int 2162 number = va_arg (args_copy, int); 2163 break; 2164 case '\''f'\'': // float 2165 fnumber = va_arg (args_copy, double); 2166 break; 2167 default: 2168 break; 2169 } 2170 } 2171 va_end (args_copy); 2172 va_end (args); 2173 2174 return *str && number && fnumber; 2175} 2176' 2177 2178# Test code for whether the C compiler supports C99 (body of main). 2179ac_c_conftest_c99_main=' 2180 // Check bool. 2181 _Bool success = false; 2182 success |= (argc != 0); 2183 2184 // Check restrict. 2185 if (test_restrict ("String literal") == 0) 2186 success = true; 2187 char *restrict newvar = "Another string"; 2188 2189 // Check varargs. 2190 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2191 test_varargs_macros (); 2192 2193 // Check flexible array members. 2194 struct incomplete_array *ia = 2195 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2196 ia->datasize = 10; 2197 for (int i = 0; i < ia->datasize; ++i) 2198 ia->data[i] = i * 1.234; 2199 2200 // Check named initializers. 2201 struct named_init ni = { 2202 .number = 34, 2203 .name = L"Test wide string", 2204 .average = 543.34343, 2205 }; 2206 2207 ni.number = 58; 2208 2209 int dynamic_array[ni.number]; 2210 dynamic_array[0] = argv[0][0]; 2211 dynamic_array[ni.number - 1] = 543; 2212 2213 // work around unused variable warnings 2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2215 || dynamic_array[ni.number - 1] != 543); 2216' 2217 2218# Test code for whether the C compiler supports C11 (global declarations) 2219ac_c_conftest_c11_globals=' 2220// Does the compiler advertise C11 conformance? 2221#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2222# error "Compiler does not advertise C11 conformance" 2223#endif 2224 2225// Check _Alignas. 2226char _Alignas (double) aligned_as_double; 2227char _Alignas (0) no_special_alignment; 2228extern char aligned_as_int; 2229char _Alignas (0) _Alignas (int) aligned_as_int; 2230 2231// Check _Alignof. 2232enum 2233{ 2234 int_alignment = _Alignof (int), 2235 int_array_alignment = _Alignof (int[100]), 2236 char_alignment = _Alignof (char) 2237}; 2238_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2239 2240// Check _Noreturn. 2241int _Noreturn does_not_return (void) { for (;;) continue; } 2242 2243// Check _Static_assert. 2244struct test_static_assert 2245{ 2246 int x; 2247 _Static_assert (sizeof (int) <= sizeof (long int), 2248 "_Static_assert does not work in struct"); 2249 long int y; 2250}; 2251 2252// Check UTF-8 literals. 2253#define u8 syntax error! 2254char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2255 2256// Check duplicate typedefs. 2257typedef long *long_ptr; 2258typedef long int *long_ptr; 2259typedef long_ptr long_ptr; 2260 2261// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2262struct anonymous 2263{ 2264 union { 2265 struct { int i; int j; }; 2266 struct { int k; long int l; } w; 2267 }; 2268 int m; 2269} v1; 2270' 2271 2272# Test code for whether the C compiler supports C11 (body of main). 2273ac_c_conftest_c11_main=' 2274 _Static_assert ((offsetof (struct anonymous, i) 2275 == offsetof (struct anonymous, w.k)), 2276 "Anonymous union alignment botch"); 2277 v1.i = 2; 2278 v1.w.k = 5; 2279 ok |= v1.i != 5; 2280' 2281 2282# Test code for whether the C compiler supports C11 (complete). 2283ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2284${ac_c_conftest_c99_globals} 2285${ac_c_conftest_c11_globals} 2286 2287int 2288main (int argc, char **argv) 2289{ 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 ${ac_c_conftest_c11_main} 2294 return ok; 2295} 2296" 2297 2298# Test code for whether the C compiler supports C99 (complete). 2299ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2300${ac_c_conftest_c99_globals} 2301 2302int 2303main (int argc, char **argv) 2304{ 2305 int ok = 0; 2306 ${ac_c_conftest_c89_main} 2307 ${ac_c_conftest_c99_main} 2308 return ok; 2309} 2310" 2311 2312# Test code for whether the C compiler supports C89 (complete). 2313ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2314 2315int 2316main (int argc, char **argv) 2317{ 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 return ok; 2321} 2322" 2323 2324as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2325as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2326as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2327as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2328as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2329as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2330as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2331as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2332as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2333 2334# Auxiliary files required by this configure script. 2335ac_aux_files="config.guess config.sub compile missing install-sh" 2336 2337# Locations in which to look for auxiliary files. 2338ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2339 2340# Search for a directory containing all of the required auxiliary files, 2341# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2342# If we don't find one directory that contains all the files we need, 2343# we report the set of missing files from the *first* directory in 2344# $ac_aux_dir_candidates and give up. 2345ac_missing_aux_files="" 2346ac_first_candidate=: 2347printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349as_found=false 2350for as_dir in $ac_aux_dir_candidates 2351do 2352 IFS=$as_save_IFS 2353 case $as_dir in #((( 2354 '') as_dir=./ ;; 2355 */) ;; 2356 *) as_dir=$as_dir/ ;; 2357 esac 2358 as_found=: 2359 2360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2361 ac_aux_dir_found=yes 2362 ac_install_sh= 2363 for ac_aux in $ac_aux_files 2364 do 2365 # As a special case, if "install-sh" is required, that requirement 2366 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2367 # and $ac_install_sh is set appropriately for whichever one is found. 2368 if test x"$ac_aux" = x"install-sh" 2369 then 2370 if test -f "${as_dir}install-sh"; then 2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2372 ac_install_sh="${as_dir}install-sh -c" 2373 elif test -f "${as_dir}install.sh"; then 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2375 ac_install_sh="${as_dir}install.sh -c" 2376 elif test -f "${as_dir}shtool"; then 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2378 ac_install_sh="${as_dir}shtool install -c" 2379 else 2380 ac_aux_dir_found=no 2381 if $ac_first_candidate; then 2382 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2383 else 2384 break 2385 fi 2386 fi 2387 else 2388 if test -f "${as_dir}${ac_aux}"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2390 else 2391 ac_aux_dir_found=no 2392 if $ac_first_candidate; then 2393 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2394 else 2395 break 2396 fi 2397 fi 2398 fi 2399 done 2400 if test "$ac_aux_dir_found" = yes; then 2401 ac_aux_dir="$as_dir" 2402 break 2403 fi 2404 ac_first_candidate=false 2405 2406 as_found=false 2407done 2408IFS=$as_save_IFS 2409if $as_found 2410then : 2411 2412else $as_nop 2413 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2414fi 2415 2416 2417# These three variables are undocumented and unsupported, 2418# and are intended to be withdrawn in a future Autoconf release. 2419# They can cause serious problems if a builder's source tree is in a directory 2420# whose full name contains unusual characters. 2421if test -f "${ac_aux_dir}config.guess"; then 2422 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2423fi 2424if test -f "${ac_aux_dir}config.sub"; then 2425 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2426fi 2427if test -f "$ac_aux_dir/configure"; then 2428 ac_configure="$SHELL ${ac_aux_dir}configure" 2429fi 2430 2431# Check that the precious variables saved in the cache have kept the same 2432# value. 2433ac_cache_corrupted=false 2434for ac_var in $ac_precious_vars; do 2435 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2436 eval ac_new_set=\$ac_env_${ac_var}_set 2437 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2438 eval ac_new_val=\$ac_env_${ac_var}_value 2439 case $ac_old_set,$ac_new_set in 2440 set,) 2441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2442printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2443 ac_cache_corrupted=: ;; 2444 ,set) 2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2446printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2447 ac_cache_corrupted=: ;; 2448 ,);; 2449 *) 2450 if test "x$ac_old_val" != "x$ac_new_val"; then 2451 # differences in whitespace do not lead to failure. 2452 ac_old_val_w=`echo x $ac_old_val` 2453 ac_new_val_w=`echo x $ac_new_val` 2454 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2456printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2457 ac_cache_corrupted=: 2458 else 2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2460printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2461 eval $ac_var=\$ac_old_val 2462 fi 2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2464printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2466printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2467 fi;; 2468 esac 2469 # Pass precious variables to config.status. 2470 if test "$ac_new_set" = set; then 2471 case $ac_new_val in 2472 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2473 *) ac_arg=$ac_var=$ac_new_val ;; 2474 esac 2475 case " $ac_configure_args " in 2476 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2477 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2478 esac 2479 fi 2480done 2481if $ac_cache_corrupted; then 2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2483printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2485printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2486 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2487 and start over" "$LINENO" 5 2488fi 2489## -------------------- ## 2490## Main body of script. ## 2491## -------------------- ## 2492 2493ac_ext=c 2494ac_cpp='$CPP $CPPFLAGS' 2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2497ac_compiler_gnu=$ac_cv_c_compiler_gnu 2498 2499 2500 2501ac_config_headers="$ac_config_headers config.h" 2502 2503 2504# Initialize Automake 2505am__api_version='1.16' 2506 2507 2508 2509 # Find a good install program. We prefer a C program (faster), 2510# so one script is as good as another. But avoid the broken or 2511# incompatible versions: 2512# SysV /etc/install, /usr/sbin/install 2513# SunOS /usr/etc/install 2514# IRIX /sbin/install 2515# AIX /bin/install 2516# AmigaOS /C/install, which installs bootblocks on floppy discs 2517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2518# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2520# OS/2's system install, which has a completely different semantic 2521# ./install, which can be erroneously created by make from ./install.sh. 2522# Reject install programs that cannot install multiple files. 2523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2524printf %s "checking for a BSD-compatible install... " >&6; } 2525if test -z "$INSTALL"; then 2526if test ${ac_cv_path_install+y} 2527then : 2528 printf %s "(cached) " >&6 2529else $as_nop 2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 case $as_dir in #((( 2535 '') as_dir=./ ;; 2536 */) ;; 2537 *) as_dir=$as_dir/ ;; 2538 esac 2539 # Account for fact that we put trailing slashes in our PATH walk. 2540case $as_dir in #(( 2541 ./ | /[cC]/* | \ 2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2543 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2544 /usr/ucb/* ) ;; 2545 *) 2546 # OSF1 and SCO ODT 3.0 have their own names for install. 2547 # Don't use installbsd from OSF since it installs stuff as root 2548 # by default. 2549 for ac_prog in ginstall scoinst install; do 2550 for ac_exec_ext in '' $ac_executable_extensions; do 2551 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2552 if test $ac_prog = install && 2553 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2554 # AIX install. It has an incompatible calling convention. 2555 : 2556 elif test $ac_prog = install && 2557 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2558 # program-specific install script used by HP pwplus--don't use. 2559 : 2560 else 2561 rm -rf conftest.one conftest.two conftest.dir 2562 echo one > conftest.one 2563 echo two > conftest.two 2564 mkdir conftest.dir 2565 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2566 test -s conftest.one && test -s conftest.two && 2567 test -s conftest.dir/conftest.one && 2568 test -s conftest.dir/conftest.two 2569 then 2570 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2571 break 3 2572 fi 2573 fi 2574 fi 2575 done 2576 done 2577 ;; 2578esac 2579 2580 done 2581IFS=$as_save_IFS 2582 2583rm -rf conftest.one conftest.two conftest.dir 2584 2585fi 2586 if test ${ac_cv_path_install+y}; then 2587 INSTALL=$ac_cv_path_install 2588 else 2589 # As a last resort, use the slow shell script. Don't cache a 2590 # value for INSTALL within a source directory, because that will 2591 # break other packages using the cache if that directory is 2592 # removed, or if the value is a relative name. 2593 INSTALL=$ac_install_sh 2594 fi 2595fi 2596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2597printf "%s\n" "$INSTALL" >&6; } 2598 2599# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2600# It thinks the first close brace ends the variable substitution. 2601test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2602 2603test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2604 2605test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2606 2607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2608printf %s "checking whether build environment is sane... " >&6; } 2609# Reject unsafe characters in $srcdir or the absolute working directory 2610# name. Accept space and tab only in the latter. 2611am_lf=' 2612' 2613case `pwd` in 2614 *[\\\"\#\$\&\'\`$am_lf]*) 2615 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2616esac 2617case $srcdir in 2618 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2619 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2620esac 2621 2622# Do 'set' in a subshell so we don't clobber the current shell's 2623# arguments. Must try -L first in case configure is actually a 2624# symlink; some systems play weird games with the mod time of symlinks 2625# (eg FreeBSD returns the mod time of the symlink's containing 2626# directory). 2627if ( 2628 am_has_slept=no 2629 for am_try in 1 2; do 2630 echo "timestamp, slept: $am_has_slept" > conftest.file 2631 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2632 if test "$*" = "X"; then 2633 # -L didn't work. 2634 set X `ls -t "$srcdir/configure" conftest.file` 2635 fi 2636 if test "$*" != "X $srcdir/configure conftest.file" \ 2637 && test "$*" != "X conftest.file $srcdir/configure"; then 2638 2639 # If neither matched, then we have a broken ls. This can happen 2640 # if, for instance, CONFIG_SHELL is bash and it inherits a 2641 # broken ls alias from the environment. This has actually 2642 # happened. Such a system could not be considered "sane". 2643 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2644 alias in your environment" "$LINENO" 5 2645 fi 2646 if test "$2" = conftest.file || test $am_try -eq 2; then 2647 break 2648 fi 2649 # Just in case. 2650 sleep 1 2651 am_has_slept=yes 2652 done 2653 test "$2" = conftest.file 2654 ) 2655then 2656 # Ok. 2657 : 2658else 2659 as_fn_error $? "newly created file is older than distributed files! 2660Check your system clock" "$LINENO" 5 2661fi 2662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2663printf "%s\n" "yes" >&6; } 2664# If we didn't sleep, we still need to ensure time stamps of config.status and 2665# generated files are strictly newer. 2666am_sleep_pid= 2667if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2668 ( sleep 1 ) & 2669 am_sleep_pid=$! 2670fi 2671 2672rm -f conftest.file 2673 2674test "$program_prefix" != NONE && 2675 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2676# Use a double $ so make ignores it. 2677test "$program_suffix" != NONE && 2678 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2679# Double any \ or $. 2680# By default was `s,x,x', remove it if useless. 2681ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2682program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2683 2684 2685# Expand $ac_aux_dir to an absolute path. 2686am_aux_dir=`cd "$ac_aux_dir" && pwd` 2687 2688 2689 if test x"${MISSING+set}" != xset; then 2690 MISSING="\${SHELL} '$am_aux_dir/missing'" 2691fi 2692# Use eval to expand $SHELL 2693if eval "$MISSING --is-lightweight"; then 2694 am_missing_run="$MISSING " 2695else 2696 am_missing_run= 2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2698printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2699fi 2700 2701if test x"${install_sh+set}" != xset; then 2702 case $am_aux_dir in 2703 *\ * | *\ *) 2704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2705 *) 2706 install_sh="\${SHELL} $am_aux_dir/install-sh" 2707 esac 2708fi 2709 2710# Installed binaries are usually stripped using 'strip' when the user 2711# run "make install-strip". However 'strip' might not be the right 2712# tool to use in cross-compilation environments, therefore Automake 2713# will honor the 'STRIP' environment variable to overrule this program. 2714if test "$cross_compiling" != no; then 2715 if test -n "$ac_tool_prefix"; then 2716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2717set dummy ${ac_tool_prefix}strip; ac_word=$2 2718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719printf %s "checking for $ac_word... " >&6; } 2720if test ${ac_cv_prog_STRIP+y} 2721then : 2722 printf %s "(cached) " >&6 2723else $as_nop 2724 if test -n "$STRIP"; then 2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 case $as_dir in #((( 2732 '') as_dir=./ ;; 2733 */) ;; 2734 *) as_dir=$as_dir/ ;; 2735 esac 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748STRIP=$ac_cv_prog_STRIP 2749if test -n "$STRIP"; then 2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2751printf "%s\n" "$STRIP" >&6; } 2752else 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754printf "%s\n" "no" >&6; } 2755fi 2756 2757 2758fi 2759if test -z "$ac_cv_prog_STRIP"; then 2760 ac_ct_STRIP=$STRIP 2761 # Extract the first word of "strip", so it can be a program name with args. 2762set dummy strip; ac_word=$2 2763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764printf %s "checking for $ac_word... " >&6; } 2765if test ${ac_cv_prog_ac_ct_STRIP+y} 2766then : 2767 printf %s "(cached) " >&6 2768else $as_nop 2769 if test -n "$ac_ct_STRIP"; then 2770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2771else 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 case $as_dir in #((( 2777 '') as_dir=./ ;; 2778 */) ;; 2779 *) as_dir=$as_dir/ ;; 2780 esac 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_ac_ct_STRIP="strip" 2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2794if test -n "$ac_ct_STRIP"; then 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2796printf "%s\n" "$ac_ct_STRIP" >&6; } 2797else 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799printf "%s\n" "no" >&6; } 2800fi 2801 2802 if test "x$ac_ct_STRIP" = x; then 2803 STRIP=":" 2804 else 2805 case $cross_compiling:$ac_tool_warned in 2806yes:) 2807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2809ac_tool_warned=yes ;; 2810esac 2811 STRIP=$ac_ct_STRIP 2812 fi 2813else 2814 STRIP="$ac_cv_prog_STRIP" 2815fi 2816 2817fi 2818INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2819 2820 2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2822printf %s "checking for a race-free mkdir -p... " >&6; } 2823if test -z "$MKDIR_P"; then 2824 if test ${ac_cv_path_mkdir+y} 2825then : 2826 printf %s "(cached) " >&6 2827else $as_nop 2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2830do 2831 IFS=$as_save_IFS 2832 case $as_dir in #((( 2833 '') as_dir=./ ;; 2834 */) ;; 2835 *) as_dir=$as_dir/ ;; 2836 esac 2837 for ac_prog in mkdir gmkdir; do 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2840 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2841 'mkdir ('*'coreutils) '* | \ 2842 'BusyBox '* | \ 2843 'mkdir (fileutils) '4.1*) 2844 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2845 break 3;; 2846 esac 2847 done 2848 done 2849 done 2850IFS=$as_save_IFS 2851 2852fi 2853 2854 test -d ./--version && rmdir ./--version 2855 if test ${ac_cv_path_mkdir+y}; then 2856 MKDIR_P="$ac_cv_path_mkdir -p" 2857 else 2858 # As a last resort, use the slow shell script. Don't cache a 2859 # value for MKDIR_P within a source directory, because that will 2860 # break other packages using the cache if that directory is 2861 # removed, or if the value is a relative name. 2862 MKDIR_P="$ac_install_sh -d" 2863 fi 2864fi 2865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2866printf "%s\n" "$MKDIR_P" >&6; } 2867 2868for ac_prog in gawk mawk nawk awk 2869do 2870 # Extract the first word of "$ac_prog", so it can be a program name with args. 2871set dummy $ac_prog; ac_word=$2 2872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873printf %s "checking for $ac_word... " >&6; } 2874if test ${ac_cv_prog_AWK+y} 2875then : 2876 printf %s "(cached) " >&6 2877else $as_nop 2878 if test -n "$AWK"; then 2879 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 case $as_dir in #((( 2886 '') as_dir=./ ;; 2887 */) ;; 2888 *) as_dir=$as_dir/ ;; 2889 esac 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_AWK="$ac_prog" 2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902AWK=$ac_cv_prog_AWK 2903if test -n "$AWK"; then 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2905printf "%s\n" "$AWK" >&6; } 2906else 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908printf "%s\n" "no" >&6; } 2909fi 2910 2911 2912 test -n "$AWK" && break 2913done 2914 2915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2916printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2917set x ${MAKE-make} 2918ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2919if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2920then : 2921 printf %s "(cached) " >&6 2922else $as_nop 2923 cat >conftest.make <<\_ACEOF 2924SHELL = /bin/sh 2925all: 2926 @echo '@@@%%%=$(MAKE)=@@@%%%' 2927_ACEOF 2928# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2929case `${MAKE-make} -f conftest.make 2>/dev/null` in 2930 *@@@%%%=?*=@@@%%%*) 2931 eval ac_cv_prog_make_${ac_make}_set=yes;; 2932 *) 2933 eval ac_cv_prog_make_${ac_make}_set=no;; 2934esac 2935rm -f conftest.make 2936fi 2937if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2939printf "%s\n" "yes" >&6; } 2940 SET_MAKE= 2941else 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943printf "%s\n" "no" >&6; } 2944 SET_MAKE="MAKE=${MAKE-make}" 2945fi 2946 2947rm -rf .tst 2>/dev/null 2948mkdir .tst 2>/dev/null 2949if test -d .tst; then 2950 am__leading_dot=. 2951else 2952 am__leading_dot=_ 2953fi 2954rmdir .tst 2>/dev/null 2955 2956# Check whether --enable-silent-rules was given. 2957if test ${enable_silent_rules+y} 2958then : 2959 enableval=$enable_silent_rules; 2960fi 2961 2962case $enable_silent_rules in # ((( 2963 yes) AM_DEFAULT_VERBOSITY=0;; 2964 no) AM_DEFAULT_VERBOSITY=1;; 2965 *) AM_DEFAULT_VERBOSITY=1;; 2966esac 2967am_make=${MAKE-make} 2968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2969printf %s "checking whether $am_make supports nested variables... " >&6; } 2970if test ${am_cv_make_support_nested_variables+y} 2971then : 2972 printf %s "(cached) " >&6 2973else $as_nop 2974 if printf "%s\n" 'TRUE=$(BAR$(V)) 2975BAR0=false 2976BAR1=true 2977V=1 2978am__doit: 2979 @$(TRUE) 2980.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2981 am_cv_make_support_nested_variables=yes 2982else 2983 am_cv_make_support_nested_variables=no 2984fi 2985fi 2986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2987printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2988if test $am_cv_make_support_nested_variables = yes; then 2989 AM_V='$(V)' 2990 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2991else 2992 AM_V=$AM_DEFAULT_VERBOSITY 2993 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2994fi 2995AM_BACKSLASH='\' 2996 2997if test "`cd $srcdir && pwd`" != "`pwd`"; then 2998 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2999 # is not polluted with repeated "-I." 3000 am__isrc=' -I$(srcdir)' 3001 # test to see if srcdir already configured 3002 if test -f $srcdir/config.status; then 3003 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3004 fi 3005fi 3006 3007# test whether we have cygpath 3008if test -z "$CYGPATH_W"; then 3009 if (cygpath --version) >/dev/null 2>/dev/null; then 3010 CYGPATH_W='cygpath -w' 3011 else 3012 CYGPATH_W=echo 3013 fi 3014fi 3015 3016 3017# Define the identity of the package. 3018 PACKAGE='iceauth' 3019 VERSION='1.0.9' 3020 3021 3022printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3023 3024 3025printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3026 3027# Some tools Automake needs. 3028 3029ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3030 3031 3032AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3033 3034 3035AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3036 3037 3038AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3039 3040 3041MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3042 3043# For better backward compatibility. To be removed once Automake 1.9.x 3044# dies out for good. For more background, see: 3045# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3046# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3047mkdir_p='$(MKDIR_P)' 3048 3049# We need awk for the "check" target (and possibly the TAP driver). The 3050# system "awk" is bad on some platforms. 3051# Always define AMTAR for backward compatibility. Yes, it's still used 3052# in the wild :-( We should find a proper way to deprecate it ... 3053AMTAR='$${TAR-tar}' 3054 3055 3056# We'll loop over all known methods to create a tar archive until one works. 3057_am_tools='gnutar pax cpio none' 3058 3059am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3060 3061 3062 3063 3064 3065# Variables for tags utilities; see am/tags.am 3066if test -z "$CTAGS"; then 3067 CTAGS=ctags 3068fi 3069 3070if test -z "$ETAGS"; then 3071 ETAGS=etags 3072fi 3073 3074if test -z "$CSCOPE"; then 3075 CSCOPE=cscope 3076fi 3077 3078 3079 3080# POSIX will say in a future version that running "rm -f" with no argument 3081# is OK; and we want to be able to make that assumption in our Makefile 3082# recipes. So use an aggressive probe to check that the usage we want is 3083# actually supported "in the wild" to an acceptable degree. 3084# See automake bug#10828. 3085# To make any issue more visible, cause the running configure to be aborted 3086# by default if the 'rm' program in use doesn't match our expectations; the 3087# user can still override this though. 3088if rm -f && rm -fr && rm -rf; then : OK; else 3089 cat >&2 <<'END' 3090Oops! 3091 3092Your 'rm' program seems unable to run without file operands specified 3093on the command line, even when the '-f' option is present. This is contrary 3094to the behaviour of most rm programs out there, and not conforming with 3095the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3096 3097Please tell bug-automake@gnu.org about your system, including the value 3098of your $PATH and any error possibly output before this message. This 3099can help us improve future automake versions. 3100 3101END 3102 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3103 echo 'Configuration will proceed anyway, since you have set the' >&2 3104 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3105 echo >&2 3106 else 3107 cat >&2 <<'END' 3108Aborting the configuration process, to ensure you take notice of the issue. 3109 3110You can download and install GNU coreutils to get an 'rm' implementation 3111that behaves properly: <https://www.gnu.org/software/coreutils/>. 3112 3113If you want to complete the configuration process using your problematic 3114'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3115to "yes", and re-run configure. 3116 3117END 3118 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3119 fi 3120fi 3121 3122 3123# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144DEPDIR="${am__leading_dot}deps" 3145 3146ac_config_commands="$ac_config_commands depfiles" 3147 3148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3149printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3150cat > confinc.mk << 'END' 3151am__doit: 3152 @echo this is the am__doit target >confinc.out 3153.PHONY: am__doit 3154END 3155am__include="#" 3156am__quote= 3157# BSD make does it like this. 3158echo '.include "confinc.mk" # ignored' > confmf.BSD 3159# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3160echo 'include confinc.mk # ignored' > confmf.GNU 3161_am_result=no 3162for s in GNU BSD; do 3163 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3164 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3165 ac_status=$? 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); } 3168 case $?:`cat confinc.out 2>/dev/null` in #( 3169 '0:this is the am__doit target') : 3170 case $s in #( 3171 BSD) : 3172 am__include='.include' am__quote='"' ;; #( 3173 *) : 3174 am__include='include' am__quote='' ;; 3175esac ;; #( 3176 *) : 3177 ;; 3178esac 3179 if test "$am__include" != "#"; then 3180 _am_result="yes ($s style)" 3181 break 3182 fi 3183done 3184rm -f confinc.* confmf.* 3185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3186printf "%s\n" "${_am_result}" >&6; } 3187 3188# Check whether --enable-dependency-tracking was given. 3189if test ${enable_dependency_tracking+y} 3190then : 3191 enableval=$enable_dependency_tracking; 3192fi 3193 3194if test "x$enable_dependency_tracking" != xno; then 3195 am_depcomp="$ac_aux_dir/depcomp" 3196 AMDEPBACKSLASH='\' 3197 am__nodep='_no' 3198fi 3199 if test "x$enable_dependency_tracking" != xno; then 3200 AMDEP_TRUE= 3201 AMDEP_FALSE='#' 3202else 3203 AMDEP_TRUE='#' 3204 AMDEP_FALSE= 3205fi 3206 3207 3208ac_ext=c 3209ac_cpp='$CPP $CPPFLAGS' 3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3212ac_compiler_gnu=$ac_cv_c_compiler_gnu 3213if test -n "$ac_tool_prefix"; then 3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3215set dummy ${ac_tool_prefix}gcc; ac_word=$2 3216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217printf %s "checking for $ac_word... " >&6; } 3218if test ${ac_cv_prog_CC+y} 3219then : 3220 printf %s "(cached) " >&6 3221else $as_nop 3222 if test -n "$CC"; then 3223 ac_cv_prog_CC="$CC" # Let the user override the test. 3224else 3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH 3227do 3228 IFS=$as_save_IFS 3229 case $as_dir in #((( 3230 '') as_dir=./ ;; 3231 */) ;; 3232 *) as_dir=$as_dir/ ;; 3233 esac 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3236 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3238 break 2 3239 fi 3240done 3241 done 3242IFS=$as_save_IFS 3243 3244fi 3245fi 3246CC=$ac_cv_prog_CC 3247if test -n "$CC"; then 3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3249printf "%s\n" "$CC" >&6; } 3250else 3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252printf "%s\n" "no" >&6; } 3253fi 3254 3255 3256fi 3257if test -z "$ac_cv_prog_CC"; then 3258 ac_ct_CC=$CC 3259 # Extract the first word of "gcc", so it can be a program name with args. 3260set dummy gcc; ac_word=$2 3261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3262printf %s "checking for $ac_word... " >&6; } 3263if test ${ac_cv_prog_ac_ct_CC+y} 3264then : 3265 printf %s "(cached) " >&6 3266else $as_nop 3267 if test -n "$ac_ct_CC"; then 3268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3269else 3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271for as_dir in $PATH 3272do 3273 IFS=$as_save_IFS 3274 case $as_dir in #((( 3275 '') as_dir=./ ;; 3276 */) ;; 3277 *) as_dir=$as_dir/ ;; 3278 esac 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3281 ac_cv_prog_ac_ct_CC="gcc" 3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285done 3286 done 3287IFS=$as_save_IFS 3288 3289fi 3290fi 3291ac_ct_CC=$ac_cv_prog_ac_ct_CC 3292if test -n "$ac_ct_CC"; then 3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3294printf "%s\n" "$ac_ct_CC" >&6; } 3295else 3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297printf "%s\n" "no" >&6; } 3298fi 3299 3300 if test "x$ac_ct_CC" = x; then 3301 CC="" 3302 else 3303 case $cross_compiling:$ac_tool_warned in 3304yes:) 3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3306printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3307ac_tool_warned=yes ;; 3308esac 3309 CC=$ac_ct_CC 3310 fi 3311else 3312 CC="$ac_cv_prog_CC" 3313fi 3314 3315if test -z "$CC"; then 3316 if test -n "$ac_tool_prefix"; then 3317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3318set dummy ${ac_tool_prefix}cc; ac_word=$2 3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3320printf %s "checking for $ac_word... " >&6; } 3321if test ${ac_cv_prog_CC+y} 3322then : 3323 printf %s "(cached) " >&6 3324else $as_nop 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 case $as_dir in #((( 3333 '') as_dir=./ ;; 3334 */) ;; 3335 *) as_dir=$as_dir/ ;; 3336 esac 3337 for ac_exec_ext in '' $ac_executable_extensions; do 3338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3339 ac_cv_prog_CC="${ac_tool_prefix}cc" 3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3341 break 2 3342 fi 3343done 3344 done 3345IFS=$as_save_IFS 3346 3347fi 3348fi 3349CC=$ac_cv_prog_CC 3350if test -n "$CC"; then 3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3352printf "%s\n" "$CC" >&6; } 3353else 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355printf "%s\n" "no" >&6; } 3356fi 3357 3358 3359 fi 3360fi 3361if test -z "$CC"; then 3362 # Extract the first word of "cc", so it can be a program name with args. 3363set dummy cc; ac_word=$2 3364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365printf %s "checking for $ac_word... " >&6; } 3366if test ${ac_cv_prog_CC+y} 3367then : 3368 printf %s "(cached) " >&6 3369else $as_nop 3370 if test -n "$CC"; then 3371 ac_cv_prog_CC="$CC" # Let the user override the test. 3372else 3373 ac_prog_rejected=no 3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375for as_dir in $PATH 3376do 3377 IFS=$as_save_IFS 3378 case $as_dir in #((( 3379 '') as_dir=./ ;; 3380 */) ;; 3381 *) as_dir=$as_dir/ ;; 3382 esac 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3385 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3386 ac_prog_rejected=yes 3387 continue 3388 fi 3389 ac_cv_prog_CC="cc" 3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393done 3394 done 3395IFS=$as_save_IFS 3396 3397if test $ac_prog_rejected = yes; then 3398 # We found a bogon in the path, so make sure we never use it. 3399 set dummy $ac_cv_prog_CC 3400 shift 3401 if test $# != 0; then 3402 # We chose a different compiler from the bogus one. 3403 # However, it has the same basename, so the bogon will be chosen 3404 # first if we set CC to just the basename; use the full file name. 3405 shift 3406 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3407 fi 3408fi 3409fi 3410fi 3411CC=$ac_cv_prog_CC 3412if test -n "$CC"; then 3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3414printf "%s\n" "$CC" >&6; } 3415else 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417printf "%s\n" "no" >&6; } 3418fi 3419 3420 3421fi 3422if test -z "$CC"; then 3423 if test -n "$ac_tool_prefix"; then 3424 for ac_prog in cl.exe 3425 do 3426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3427set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429printf %s "checking for $ac_word... " >&6; } 3430if test ${ac_cv_prog_CC+y} 3431then : 3432 printf %s "(cached) " >&6 3433else $as_nop 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 case $as_dir in #((( 3442 '') as_dir=./ ;; 3443 */) ;; 3444 *) as_dir=$as_dir/ ;; 3445 esac 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi 3457fi 3458CC=$ac_cv_prog_CC 3459if test -n "$CC"; then 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3461printf "%s\n" "$CC" >&6; } 3462else 3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464printf "%s\n" "no" >&6; } 3465fi 3466 3467 3468 test -n "$CC" && break 3469 done 3470fi 3471if test -z "$CC"; then 3472 ac_ct_CC=$CC 3473 for ac_prog in cl.exe 3474do 3475 # Extract the first word of "$ac_prog", so it can be a program name with args. 3476set dummy $ac_prog; ac_word=$2 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478printf %s "checking for $ac_word... " >&6; } 3479if test ${ac_cv_prog_ac_ct_CC+y} 3480then : 3481 printf %s "(cached) " >&6 3482else $as_nop 3483 if test -n "$ac_ct_CC"; then 3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_ac_ct_CC="$ac_prog" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505fi 3506fi 3507ac_ct_CC=$ac_cv_prog_ac_ct_CC 3508if test -n "$ac_ct_CC"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3510printf "%s\n" "$ac_ct_CC" >&6; } 3511else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513printf "%s\n" "no" >&6; } 3514fi 3515 3516 3517 test -n "$ac_ct_CC" && break 3518done 3519 3520 if test "x$ac_ct_CC" = x; then 3521 CC="" 3522 else 3523 case $cross_compiling:$ac_tool_warned in 3524yes:) 3525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3526printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3527ac_tool_warned=yes ;; 3528esac 3529 CC=$ac_ct_CC 3530 fi 3531fi 3532 3533fi 3534if test -z "$CC"; then 3535 if test -n "$ac_tool_prefix"; then 3536 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3537set dummy ${ac_tool_prefix}clang; ac_word=$2 3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539printf %s "checking for $ac_word... " >&6; } 3540if test ${ac_cv_prog_CC+y} 3541then : 3542 printf %s "(cached) " >&6 3543else $as_nop 3544 if test -n "$CC"; then 3545 ac_cv_prog_CC="$CC" # Let the user override the test. 3546else 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 case $as_dir in #((( 3552 '') as_dir=./ ;; 3553 */) ;; 3554 *) as_dir=$as_dir/ ;; 3555 esac 3556 for ac_exec_ext in '' $ac_executable_extensions; do 3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3558 ac_cv_prog_CC="${ac_tool_prefix}clang" 3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562done 3563 done 3564IFS=$as_save_IFS 3565 3566fi 3567fi 3568CC=$ac_cv_prog_CC 3569if test -n "$CC"; then 3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3571printf "%s\n" "$CC" >&6; } 3572else 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3574printf "%s\n" "no" >&6; } 3575fi 3576 3577 3578fi 3579if test -z "$ac_cv_prog_CC"; then 3580 ac_ct_CC=$CC 3581 # Extract the first word of "clang", so it can be a program name with args. 3582set dummy clang; ac_word=$2 3583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584printf %s "checking for $ac_word... " >&6; } 3585if test ${ac_cv_prog_ac_ct_CC+y} 3586then : 3587 printf %s "(cached) " >&6 3588else $as_nop 3589 if test -n "$ac_ct_CC"; then 3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3591else 3592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3593for as_dir in $PATH 3594do 3595 IFS=$as_save_IFS 3596 case $as_dir in #((( 3597 '') as_dir=./ ;; 3598 */) ;; 3599 *) as_dir=$as_dir/ ;; 3600 esac 3601 for ac_exec_ext in '' $ac_executable_extensions; do 3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3603 ac_cv_prog_ac_ct_CC="clang" 3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3605 break 2 3606 fi 3607done 3608 done 3609IFS=$as_save_IFS 3610 3611fi 3612fi 3613ac_ct_CC=$ac_cv_prog_ac_ct_CC 3614if test -n "$ac_ct_CC"; then 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3616printf "%s\n" "$ac_ct_CC" >&6; } 3617else 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619printf "%s\n" "no" >&6; } 3620fi 3621 3622 if test "x$ac_ct_CC" = x; then 3623 CC="" 3624 else 3625 case $cross_compiling:$ac_tool_warned in 3626yes:) 3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3628printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3629ac_tool_warned=yes ;; 3630esac 3631 CC=$ac_ct_CC 3632 fi 3633else 3634 CC="$ac_cv_prog_CC" 3635fi 3636 3637fi 3638 3639 3640test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3642as_fn_error $? "no acceptable C compiler found in \$PATH 3643See \`config.log' for more details" "$LINENO" 5; } 3644 3645# Provide some information about the compiler. 3646printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3647set X $ac_compile 3648ac_compiler=$2 3649for ac_option in --version -v -V -qversion -version; do 3650 { { ac_try="$ac_compiler $ac_option >&5" 3651case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656printf "%s\n" "$ac_try_echo"; } >&5 3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3658 ac_status=$? 3659 if test -s conftest.err; then 3660 sed '10a\ 3661... rest of stderr output deleted ... 3662 10q' conftest.err >conftest.er1 3663 cat conftest.er1 >&5 3664 fi 3665 rm -f conftest.er1 conftest.err 3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3667 test $ac_status = 0; } 3668done 3669 3670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672 3673int 3674main (void) 3675{ 3676 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681ac_clean_files_save=$ac_clean_files 3682ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3683# Try to create an executable without -o first, disregard a.out. 3684# It will help us diagnose broken compilers, and finding out an intuition 3685# of exeext. 3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3687printf %s "checking whether the C compiler works... " >&6; } 3688ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3689 3690# The possible output files: 3691ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3692 3693ac_rmfiles= 3694for ac_file in $ac_files 3695do 3696 case $ac_file in 3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3699 esac 3700done 3701rm -f $ac_rmfiles 3702 3703if { { ac_try="$ac_link_default" 3704case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707esac 3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3709printf "%s\n" "$ac_try_echo"; } >&5 3710 (eval "$ac_link_default") 2>&5 3711 ac_status=$? 3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3713 test $ac_status = 0; } 3714then : 3715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3716# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3717# in a Makefile. We should not override ac_cv_exeext if it was cached, 3718# so that the user can short-circuit this test for compilers unknown to 3719# Autoconf. 3720for ac_file in $ac_files '' 3721do 3722 test -f "$ac_file" || continue 3723 case $ac_file in 3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3725 ;; 3726 [ab].out ) 3727 # We found the default executable, but exeext='' is most 3728 # certainly right. 3729 break;; 3730 *.* ) 3731 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3732 then :; else 3733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3734 fi 3735 # We set ac_cv_exeext here because the later test for it is not 3736 # safe: cross compilers may not add the suffix if given an `-o' 3737 # argument, so we may need to know it at that point already. 3738 # Even if this section looks crufty: it has the advantage of 3739 # actually working. 3740 break;; 3741 * ) 3742 break;; 3743 esac 3744done 3745test "$ac_cv_exeext" = no && ac_cv_exeext= 3746 3747else $as_nop 3748 ac_file='' 3749fi 3750if test -z "$ac_file" 3751then : 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753printf "%s\n" "no" >&6; } 3754printf "%s\n" "$as_me: failed program was:" >&5 3755sed 's/^/| /' conftest.$ac_ext >&5 3756 3757{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3758printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3759as_fn_error 77 "C compiler cannot create executables 3760See \`config.log' for more details" "$LINENO" 5; } 3761else $as_nop 3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3763printf "%s\n" "yes" >&6; } 3764fi 3765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3766printf %s "checking for C compiler default output file name... " >&6; } 3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3768printf "%s\n" "$ac_file" >&6; } 3769ac_exeext=$ac_cv_exeext 3770 3771rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3772ac_clean_files=$ac_clean_files_save 3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3774printf %s "checking for suffix of executables... " >&6; } 3775if { { ac_try="$ac_link" 3776case "(($ac_try" in 3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3778 *) ac_try_echo=$ac_try;; 3779esac 3780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3781printf "%s\n" "$ac_try_echo"; } >&5 3782 (eval "$ac_link") 2>&5 3783 ac_status=$? 3784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3785 test $ac_status = 0; } 3786then : 3787 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3788# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3789# work properly (i.e., refer to `conftest.exe'), while it won't with 3790# `rm'. 3791for ac_file in conftest.exe conftest conftest.*; do 3792 test -f "$ac_file" || continue 3793 case $ac_file in 3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3796 break;; 3797 * ) break;; 3798 esac 3799done 3800else $as_nop 3801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3802printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3803as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3804See \`config.log' for more details" "$LINENO" 5; } 3805fi 3806rm -f conftest conftest$ac_cv_exeext 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3808printf "%s\n" "$ac_cv_exeext" >&6; } 3809 3810rm -f conftest.$ac_ext 3811EXEEXT=$ac_cv_exeext 3812ac_exeext=$EXEEXT 3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3814/* end confdefs.h. */ 3815#include <stdio.h> 3816int 3817main (void) 3818{ 3819FILE *f = fopen ("conftest.out", "w"); 3820 return ferror (f) || fclose (f) != 0; 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826ac_clean_files="$ac_clean_files conftest.out" 3827# Check that the compiler produces executables we can run. If not, either 3828# the compiler is broken, or we cross compile. 3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3830printf %s "checking whether we are cross compiling... " >&6; } 3831if test "$cross_compiling" != yes; then 3832 { { ac_try="$ac_link" 3833case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838printf "%s\n" "$ac_try_echo"; } >&5 3839 (eval "$ac_link") 2>&5 3840 ac_status=$? 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843 if { ac_try='./conftest$ac_cv_exeext' 3844 { { case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847esac 3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3849printf "%s\n" "$ac_try_echo"; } >&5 3850 (eval "$ac_try") 2>&5 3851 ac_status=$? 3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3853 test $ac_status = 0; }; }; then 3854 cross_compiling=no 3855 else 3856 if test "$cross_compiling" = maybe; then 3857 cross_compiling=yes 3858 else 3859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3860printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3861as_fn_error 77 "cannot run C compiled programs. 3862If you meant to cross compile, use \`--host'. 3863See \`config.log' for more details" "$LINENO" 5; } 3864 fi 3865 fi 3866fi 3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3868printf "%s\n" "$cross_compiling" >&6; } 3869 3870rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3871ac_clean_files=$ac_clean_files_save 3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3873printf %s "checking for suffix of object files... " >&6; } 3874if test ${ac_cv_objext+y} 3875then : 3876 printf %s "(cached) " >&6 3877else $as_nop 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879/* end confdefs.h. */ 3880 3881int 3882main (void) 3883{ 3884 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889rm -f conftest.o conftest.obj 3890if { { ac_try="$ac_compile" 3891case "(($ac_try" in 3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3893 *) ac_try_echo=$ac_try;; 3894esac 3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3896printf "%s\n" "$ac_try_echo"; } >&5 3897 (eval "$ac_compile") 2>&5 3898 ac_status=$? 3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3900 test $ac_status = 0; } 3901then : 3902 for ac_file in conftest.o conftest.obj conftest.*; do 3903 test -f "$ac_file" || continue; 3904 case $ac_file in 3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3907 break;; 3908 esac 3909done 3910else $as_nop 3911 printf "%s\n" "$as_me: failed program was:" >&5 3912sed 's/^/| /' conftest.$ac_ext >&5 3913 3914{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3915printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3916as_fn_error $? "cannot compute suffix of object files: cannot compile 3917See \`config.log' for more details" "$LINENO" 5; } 3918fi 3919rm -f conftest.$ac_cv_objext conftest.$ac_ext 3920fi 3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3922printf "%s\n" "$ac_cv_objext" >&6; } 3923OBJEXT=$ac_cv_objext 3924ac_objext=$OBJEXT 3925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3926printf %s "checking whether the compiler supports GNU C... " >&6; } 3927if test ${ac_cv_c_compiler_gnu+y} 3928then : 3929 printf %s "(cached) " >&6 3930else $as_nop 3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932/* end confdefs.h. */ 3933 3934int 3935main (void) 3936{ 3937#ifndef __GNUC__ 3938 choke me 3939#endif 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945if ac_fn_c_try_compile "$LINENO" 3946then : 3947 ac_compiler_gnu=yes 3948else $as_nop 3949 ac_compiler_gnu=no 3950fi 3951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3952ac_cv_c_compiler_gnu=$ac_compiler_gnu 3953 3954fi 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3956printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3957ac_compiler_gnu=$ac_cv_c_compiler_gnu 3958 3959if test $ac_compiler_gnu = yes; then 3960 GCC=yes 3961else 3962 GCC= 3963fi 3964ac_test_CFLAGS=${CFLAGS+y} 3965ac_save_CFLAGS=$CFLAGS 3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3967printf %s "checking whether $CC accepts -g... " >&6; } 3968if test ${ac_cv_prog_cc_g+y} 3969then : 3970 printf %s "(cached) " >&6 3971else $as_nop 3972 ac_save_c_werror_flag=$ac_c_werror_flag 3973 ac_c_werror_flag=yes 3974 ac_cv_prog_cc_g=no 3975 CFLAGS="-g" 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978 3979int 3980main (void) 3981{ 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987if ac_fn_c_try_compile "$LINENO" 3988then : 3989 ac_cv_prog_cc_g=yes 3990else $as_nop 3991 CFLAGS="" 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993/* end confdefs.h. */ 3994 3995int 3996main (void) 3997{ 3998 3999 ; 4000 return 0; 4001} 4002_ACEOF 4003if ac_fn_c_try_compile "$LINENO" 4004then : 4005 4006else $as_nop 4007 ac_c_werror_flag=$ac_save_c_werror_flag 4008 CFLAGS="-g" 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010/* end confdefs.h. */ 4011 4012int 4013main (void) 4014{ 4015 4016 ; 4017 return 0; 4018} 4019_ACEOF 4020if ac_fn_c_try_compile "$LINENO" 4021then : 4022 ac_cv_prog_cc_g=yes 4023fi 4024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4025fi 4026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4027fi 4028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4029 ac_c_werror_flag=$ac_save_c_werror_flag 4030fi 4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4032printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4033if test $ac_test_CFLAGS; then 4034 CFLAGS=$ac_save_CFLAGS 4035elif test $ac_cv_prog_cc_g = yes; then 4036 if test "$GCC" = yes; then 4037 CFLAGS="-g -O2" 4038 else 4039 CFLAGS="-g" 4040 fi 4041else 4042 if test "$GCC" = yes; then 4043 CFLAGS="-O2" 4044 else 4045 CFLAGS= 4046 fi 4047fi 4048ac_prog_cc_stdc=no 4049if test x$ac_prog_cc_stdc = xno 4050then : 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4052printf %s "checking for $CC option to enable C11 features... " >&6; } 4053if test ${ac_cv_prog_cc_c11+y} 4054then : 4055 printf %s "(cached) " >&6 4056else $as_nop 4057 ac_cv_prog_cc_c11=no 4058ac_save_CC=$CC 4059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061$ac_c_conftest_c11_program 4062_ACEOF 4063for ac_arg in '' -std=gnu11 4064do 4065 CC="$ac_save_CC $ac_arg" 4066 if ac_fn_c_try_compile "$LINENO" 4067then : 4068 ac_cv_prog_cc_c11=$ac_arg 4069fi 4070rm -f core conftest.err conftest.$ac_objext conftest.beam 4071 test "x$ac_cv_prog_cc_c11" != "xno" && break 4072done 4073rm -f conftest.$ac_ext 4074CC=$ac_save_CC 4075fi 4076 4077if test "x$ac_cv_prog_cc_c11" = xno 4078then : 4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4080printf "%s\n" "unsupported" >&6; } 4081else $as_nop 4082 if test "x$ac_cv_prog_cc_c11" = x 4083then : 4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4085printf "%s\n" "none needed" >&6; } 4086else $as_nop 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4088printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4089 CC="$CC $ac_cv_prog_cc_c11" 4090fi 4091 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4092 ac_prog_cc_stdc=c11 4093fi 4094fi 4095if test x$ac_prog_cc_stdc = xno 4096then : 4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4098printf %s "checking for $CC option to enable C99 features... " >&6; } 4099if test ${ac_cv_prog_cc_c99+y} 4100then : 4101 printf %s "(cached) " >&6 4102else $as_nop 4103 ac_cv_prog_cc_c99=no 4104ac_save_CC=$CC 4105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107$ac_c_conftest_c99_program 4108_ACEOF 4109for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4110do 4111 CC="$ac_save_CC $ac_arg" 4112 if ac_fn_c_try_compile "$LINENO" 4113then : 4114 ac_cv_prog_cc_c99=$ac_arg 4115fi 4116rm -f core conftest.err conftest.$ac_objext conftest.beam 4117 test "x$ac_cv_prog_cc_c99" != "xno" && break 4118done 4119rm -f conftest.$ac_ext 4120CC=$ac_save_CC 4121fi 4122 4123if test "x$ac_cv_prog_cc_c99" = xno 4124then : 4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4126printf "%s\n" "unsupported" >&6; } 4127else $as_nop 4128 if test "x$ac_cv_prog_cc_c99" = x 4129then : 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4131printf "%s\n" "none needed" >&6; } 4132else $as_nop 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4134printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4135 CC="$CC $ac_cv_prog_cc_c99" 4136fi 4137 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4138 ac_prog_cc_stdc=c99 4139fi 4140fi 4141if test x$ac_prog_cc_stdc = xno 4142then : 4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4144printf %s "checking for $CC option to enable C89 features... " >&6; } 4145if test ${ac_cv_prog_cc_c89+y} 4146then : 4147 printf %s "(cached) " >&6 4148else $as_nop 4149 ac_cv_prog_cc_c89=no 4150ac_save_CC=$CC 4151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153$ac_c_conftest_c89_program 4154_ACEOF 4155for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4156do 4157 CC="$ac_save_CC $ac_arg" 4158 if ac_fn_c_try_compile "$LINENO" 4159then : 4160 ac_cv_prog_cc_c89=$ac_arg 4161fi 4162rm -f core conftest.err conftest.$ac_objext conftest.beam 4163 test "x$ac_cv_prog_cc_c89" != "xno" && break 4164done 4165rm -f conftest.$ac_ext 4166CC=$ac_save_CC 4167fi 4168 4169if test "x$ac_cv_prog_cc_c89" = xno 4170then : 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4172printf "%s\n" "unsupported" >&6; } 4173else $as_nop 4174 if test "x$ac_cv_prog_cc_c89" = x 4175then : 4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4177printf "%s\n" "none needed" >&6; } 4178else $as_nop 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4180printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4181 CC="$CC $ac_cv_prog_cc_c89" 4182fi 4183 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4184 ac_prog_cc_stdc=c89 4185fi 4186fi 4187 4188ac_ext=c 4189ac_cpp='$CPP $CPPFLAGS' 4190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4192ac_compiler_gnu=$ac_cv_c_compiler_gnu 4193 4194 4195 ac_ext=c 4196ac_cpp='$CPP $CPPFLAGS' 4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4199ac_compiler_gnu=$ac_cv_c_compiler_gnu 4200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4201printf %s "checking whether $CC understands -c and -o together... " >&6; } 4202if test ${am_cv_prog_cc_c_o+y} 4203then : 4204 printf %s "(cached) " >&6 4205else $as_nop 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208 4209int 4210main (void) 4211{ 4212 4213 ; 4214 return 0; 4215} 4216_ACEOF 4217 # Make sure it works both with $CC and with simple cc. 4218 # Following AC_PROG_CC_C_O, we do the test twice because some 4219 # compilers refuse to overwrite an existing .o file with -o, 4220 # though they will create one. 4221 am_cv_prog_cc_c_o=yes 4222 for am_i in 1 2; do 4223 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4224 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4225 ac_status=$? 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4227 (exit $ac_status); } \ 4228 && test -f conftest2.$ac_objext; then 4229 : OK 4230 else 4231 am_cv_prog_cc_c_o=no 4232 break 4233 fi 4234 done 4235 rm -f core conftest* 4236 unset am_i 4237fi 4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4239printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4240if test "$am_cv_prog_cc_c_o" != yes; then 4241 # Losing compiler, so override with the script. 4242 # FIXME: It is wrong to rewrite CC. 4243 # But if we don't then we get into trouble of one sort or another. 4244 # A longer-term fix would be to have automake use am__CC in this case, 4245 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4246 CC="$am_aux_dir/compile $CC" 4247fi 4248ac_ext=c 4249ac_cpp='$CPP $CPPFLAGS' 4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4252ac_compiler_gnu=$ac_cv_c_compiler_gnu 4253 4254 4255depcc="$CC" am_compiler_list= 4256 4257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4258printf %s "checking dependency style of $depcc... " >&6; } 4259if test ${am_cv_CC_dependencies_compiler_type+y} 4260then : 4261 printf %s "(cached) " >&6 4262else $as_nop 4263 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4264 # We make a subdir and do the tests there. Otherwise we can end up 4265 # making bogus files that we don't know about and never remove. For 4266 # instance it was reported that on HP-UX the gcc test will end up 4267 # making a dummy file named 'D' -- because '-MD' means "put the output 4268 # in D". 4269 rm -rf conftest.dir 4270 mkdir conftest.dir 4271 # Copy depcomp to subdir because otherwise we won't find it if we're 4272 # using a relative directory. 4273 cp "$am_depcomp" conftest.dir 4274 cd conftest.dir 4275 # We will build objects and dependencies in a subdirectory because 4276 # it helps to detect inapplicable dependency modes. For instance 4277 # both Tru64's cc and ICC support -MD to output dependencies as a 4278 # side effect of compilation, but ICC will put the dependencies in 4279 # the current directory while Tru64 will put them in the object 4280 # directory. 4281 mkdir sub 4282 4283 am_cv_CC_dependencies_compiler_type=none 4284 if test "$am_compiler_list" = ""; then 4285 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4286 fi 4287 am__universal=false 4288 case " $depcc " in #( 4289 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4290 esac 4291 4292 for depmode in $am_compiler_list; do 4293 # Setup a source with many dependencies, because some compilers 4294 # like to wrap large dependency lists on column 80 (with \), and 4295 # we should not choose a depcomp mode which is confused by this. 4296 # 4297 # We need to recreate these files for each test, as the compiler may 4298 # overwrite some of them when testing with obscure command lines. 4299 # This happens at least with the AIX C compiler. 4300 : > sub/conftest.c 4301 for i in 1 2 3 4 5 6; do 4302 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4303 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4304 # Solaris 10 /bin/sh. 4305 echo '/* dummy */' > sub/conftst$i.h 4306 done 4307 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4308 4309 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4310 # mode. It turns out that the SunPro C++ compiler does not properly 4311 # handle '-M -o', and we need to detect this. Also, some Intel 4312 # versions had trouble with output in subdirs. 4313 am__obj=sub/conftest.${OBJEXT-o} 4314 am__minus_obj="-o $am__obj" 4315 case $depmode in 4316 gcc) 4317 # This depmode causes a compiler race in universal mode. 4318 test "$am__universal" = false || continue 4319 ;; 4320 nosideeffect) 4321 # After this tag, mechanisms are not by side-effect, so they'll 4322 # only be used when explicitly requested. 4323 if test "x$enable_dependency_tracking" = xyes; then 4324 continue 4325 else 4326 break 4327 fi 4328 ;; 4329 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4330 # This compiler won't grok '-c -o', but also, the minuso test has 4331 # not run yet. These depmodes are late enough in the game, and 4332 # so weak that their functioning should not be impacted. 4333 am__obj=conftest.${OBJEXT-o} 4334 am__minus_obj= 4335 ;; 4336 none) break ;; 4337 esac 4338 if depmode=$depmode \ 4339 source=sub/conftest.c object=$am__obj \ 4340 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4341 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4342 >/dev/null 2>conftest.err && 4343 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4344 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4345 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4346 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4347 # icc doesn't choke on unknown options, it will just issue warnings 4348 # or remarks (even with -Werror). So we grep stderr for any message 4349 # that says an option was ignored or not supported. 4350 # When given -MP, icc 7.0 and 7.1 complain thusly: 4351 # icc: Command line warning: ignoring option '-M'; no argument required 4352 # The diagnosis changed in icc 8.0: 4353 # icc: Command line remark: option '-MP' not supported 4354 if (grep 'ignoring option' conftest.err || 4355 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4356 am_cv_CC_dependencies_compiler_type=$depmode 4357 break 4358 fi 4359 fi 4360 done 4361 4362 cd .. 4363 rm -rf conftest.dir 4364else 4365 am_cv_CC_dependencies_compiler_type=none 4366fi 4367 4368fi 4369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4370printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4371CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4372 4373 if 4374 test "x$enable_dependency_tracking" != xno \ 4375 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4376 am__fastdepCC_TRUE= 4377 am__fastdepCC_FALSE='#' 4378else 4379 am__fastdepCC_TRUE='#' 4380 am__fastdepCC_FALSE= 4381fi 4382 4383 4384 4385 4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4387printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4388if test ${ac_cv_c_undeclared_builtin_options+y} 4389then : 4390 printf %s "(cached) " >&6 4391else $as_nop 4392 ac_save_CFLAGS=$CFLAGS 4393 ac_cv_c_undeclared_builtin_options='cannot detect' 4394 for ac_arg in '' -fno-builtin; do 4395 CFLAGS="$ac_save_CFLAGS $ac_arg" 4396 # This test program should *not* compile successfully. 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399 4400int 4401main (void) 4402{ 4403(void) strchr; 4404 ; 4405 return 0; 4406} 4407_ACEOF 4408if ac_fn_c_try_compile "$LINENO" 4409then : 4410 4411else $as_nop 4412 # This test program should compile successfully. 4413 # No library function is consistently available on 4414 # freestanding implementations, so test against a dummy 4415 # declaration. Include always-available headers on the 4416 # off chance that they somehow elicit warnings. 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419#include <float.h> 4420#include <limits.h> 4421#include <stdarg.h> 4422#include <stddef.h> 4423extern void ac_decl (int, char *); 4424 4425int 4426main (void) 4427{ 4428(void) ac_decl (0, (char *) 0); 4429 (void) ac_decl; 4430 4431 ; 4432 return 0; 4433} 4434_ACEOF 4435if ac_fn_c_try_compile "$LINENO" 4436then : 4437 if test x"$ac_arg" = x 4438then : 4439 ac_cv_c_undeclared_builtin_options='none needed' 4440else $as_nop 4441 ac_cv_c_undeclared_builtin_options=$ac_arg 4442fi 4443 break 4444fi 4445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4446fi 4447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4448 done 4449 CFLAGS=$ac_save_CFLAGS 4450 4451fi 4452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4453printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4454 case $ac_cv_c_undeclared_builtin_options in #( 4455 'cannot detect') : 4456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4457printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4458as_fn_error $? "cannot make $CC report undeclared builtins 4459See \`config.log' for more details" "$LINENO" 5; } ;; #( 4460 'none needed') : 4461 ac_c_undeclared_builtin_options='' ;; #( 4462 *) : 4463 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4464esac 4465 4466ac_header= ac_cache= 4467for ac_item in $ac_header_c_list 4468do 4469 if test $ac_cache; then 4470 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4471 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4472 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4473 fi 4474 ac_header= ac_cache= 4475 elif test $ac_header; then 4476 ac_cache=$ac_item 4477 else 4478 ac_header=$ac_item 4479 fi 4480done 4481 4482 4483 4484 4485 4486 4487 4488 4489if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4490then : 4491 4492printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4493 4494fi 4495 4496 4497 4498 4499ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4500if test "x$ac_cv_have_decl___clang__" = xyes 4501then : 4502 CLANGCC="yes" 4503else $as_nop 4504 CLANGCC="no" 4505fi 4506ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4507if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4508then : 4509 INTELCC="yes" 4510else $as_nop 4511 INTELCC="no" 4512fi 4513ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4514if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4515then : 4516 SUNCC="yes" 4517else $as_nop 4518 SUNCC="no" 4519fi 4520 4521 4522 4523 4524 4525 4526 4527 4528if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4529 if test -n "$ac_tool_prefix"; then 4530 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4531set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533printf %s "checking for $ac_word... " >&6; } 4534if test ${ac_cv_path_PKG_CONFIG+y} 4535then : 4536 printf %s "(cached) " >&6 4537else $as_nop 4538 case $PKG_CONFIG in 4539 [\\/]* | ?:[\\/]*) 4540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4541 ;; 4542 *) 4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4544for as_dir in $PATH 4545do 4546 IFS=$as_save_IFS 4547 case $as_dir in #((( 4548 '') as_dir=./ ;; 4549 */) ;; 4550 *) as_dir=$as_dir/ ;; 4551 esac 4552 for ac_exec_ext in '' $ac_executable_extensions; do 4553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4554 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4556 break 2 4557 fi 4558done 4559 done 4560IFS=$as_save_IFS 4561 4562 ;; 4563esac 4564fi 4565PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4566if test -n "$PKG_CONFIG"; then 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4568printf "%s\n" "$PKG_CONFIG" >&6; } 4569else 4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571printf "%s\n" "no" >&6; } 4572fi 4573 4574 4575fi 4576if test -z "$ac_cv_path_PKG_CONFIG"; then 4577 ac_pt_PKG_CONFIG=$PKG_CONFIG 4578 # Extract the first word of "pkg-config", so it can be a program name with args. 4579set dummy pkg-config; ac_word=$2 4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4581printf %s "checking for $ac_word... " >&6; } 4582if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4583then : 4584 printf %s "(cached) " >&6 4585else $as_nop 4586 case $ac_pt_PKG_CONFIG in 4587 [\\/]* | ?:[\\/]*) 4588 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4589 ;; 4590 *) 4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH 4593do 4594 IFS=$as_save_IFS 4595 case $as_dir in #((( 4596 '') as_dir=./ ;; 4597 */) ;; 4598 *) as_dir=$as_dir/ ;; 4599 esac 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610 ;; 4611esac 4612fi 4613ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4614if test -n "$ac_pt_PKG_CONFIG"; then 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4616printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4617else 4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619printf "%s\n" "no" >&6; } 4620fi 4621 4622 if test "x$ac_pt_PKG_CONFIG" = x; then 4623 PKG_CONFIG="" 4624 else 4625 case $cross_compiling:$ac_tool_warned in 4626yes:) 4627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4628printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4629ac_tool_warned=yes ;; 4630esac 4631 PKG_CONFIG=$ac_pt_PKG_CONFIG 4632 fi 4633else 4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4635fi 4636 4637fi 4638if test -n "$PKG_CONFIG"; then 4639 _pkg_min_version=0.9.0 4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4641printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4644printf "%s\n" "yes" >&6; } 4645 else 4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647printf "%s\n" "no" >&6; } 4648 PKG_CONFIG="" 4649 fi 4650fi 4651 4652 4653 # Make sure we can run config.sub. 4654$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4655 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4656 4657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4658printf %s "checking build system type... " >&6; } 4659if test ${ac_cv_build+y} 4660then : 4661 printf %s "(cached) " >&6 4662else $as_nop 4663 ac_build_alias=$build_alias 4664test "x$ac_build_alias" = x && 4665 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4666test "x$ac_build_alias" = x && 4667 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4668ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4669 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4670 4671fi 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4673printf "%s\n" "$ac_cv_build" >&6; } 4674case $ac_cv_build in 4675*-*-*) ;; 4676*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4677esac 4678build=$ac_cv_build 4679ac_save_IFS=$IFS; IFS='-' 4680set x $ac_cv_build 4681shift 4682build_cpu=$1 4683build_vendor=$2 4684shift; shift 4685# Remember, the first character of IFS is used to create $*, 4686# except with old shells: 4687build_os=$* 4688IFS=$ac_save_IFS 4689case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4690 4691 4692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4693printf %s "checking host system type... " >&6; } 4694if test ${ac_cv_host+y} 4695then : 4696 printf %s "(cached) " >&6 4697else $as_nop 4698 if test "x$host_alias" = x; then 4699 ac_cv_host=$ac_cv_build 4700else 4701 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4702 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4703fi 4704 4705fi 4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4707printf "%s\n" "$ac_cv_host" >&6; } 4708case $ac_cv_host in 4709*-*-*) ;; 4710*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4711esac 4712host=$ac_cv_host 4713ac_save_IFS=$IFS; IFS='-' 4714set x $ac_cv_host 4715shift 4716host_cpu=$1 4717host_vendor=$2 4718shift; shift 4719# Remember, the first character of IFS is used to create $*, 4720# except with old shells: 4721host_os=$* 4722IFS=$ac_save_IFS 4723case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4724 4725 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4727printf %s "checking for a sed that does not truncate output... " >&6; } 4728if test ${ac_cv_path_SED+y} 4729then : 4730 printf %s "(cached) " >&6 4731else $as_nop 4732 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4733 for ac_i in 1 2 3 4 5 6 7; do 4734 ac_script="$ac_script$as_nl$ac_script" 4735 done 4736 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4737 { ac_script=; unset ac_script;} 4738 if test -z "$SED"; then 4739 ac_path_SED_found=false 4740 # Loop through the user's path and test for each of PROGNAME-LIST 4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742for as_dir in $PATH 4743do 4744 IFS=$as_save_IFS 4745 case $as_dir in #((( 4746 '') as_dir=./ ;; 4747 */) ;; 4748 *) as_dir=$as_dir/ ;; 4749 esac 4750 for ac_prog in sed gsed 4751 do 4752 for ac_exec_ext in '' $ac_executable_extensions; do 4753 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4754 as_fn_executable_p "$ac_path_SED" || continue 4755# Check for GNU ac_path_SED and select it if it is found. 4756 # Check for GNU $ac_path_SED 4757case `"$ac_path_SED" --version 2>&1` in 4758*GNU*) 4759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4760*) 4761 ac_count=0 4762 printf %s 0123456789 >"conftest.in" 4763 while : 4764 do 4765 cat "conftest.in" "conftest.in" >"conftest.tmp" 4766 mv "conftest.tmp" "conftest.in" 4767 cp "conftest.in" "conftest.nl" 4768 printf "%s\n" '' >> "conftest.nl" 4769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4771 as_fn_arith $ac_count + 1 && ac_count=$as_val 4772 if test $ac_count -gt ${ac_path_SED_max-0}; then 4773 # Best one so far, save it but keep looking for a better one 4774 ac_cv_path_SED="$ac_path_SED" 4775 ac_path_SED_max=$ac_count 4776 fi 4777 # 10*(2^10) chars as input seems more than enough 4778 test $ac_count -gt 10 && break 4779 done 4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4781esac 4782 4783 $ac_path_SED_found && break 3 4784 done 4785 done 4786 done 4787IFS=$as_save_IFS 4788 if test -z "$ac_cv_path_SED"; then 4789 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4790 fi 4791else 4792 ac_cv_path_SED=$SED 4793fi 4794 4795fi 4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4797printf "%s\n" "$ac_cv_path_SED" >&6; } 4798 SED="$ac_cv_path_SED" 4799 rm -f conftest.sed 4800 4801 4802 4803 4804 4805 4806# Check whether --enable-selective-werror was given. 4807if test ${enable_selective_werror+y} 4808then : 4809 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4810else $as_nop 4811 SELECTIVE_WERROR=yes 4812fi 4813 4814 4815 4816 4817 4818# -v is too short to test reliably with XORG_TESTSET_CFLAG 4819if test "x$SUNCC" = "xyes"; then 4820 BASE_CFLAGS="-v" 4821else 4822 BASE_CFLAGS="" 4823fi 4824 4825# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839xorg_testset_save_CFLAGS="$CFLAGS" 4840 4841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4845if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4846then : 4847 printf %s "(cached) " >&6 4848else $as_nop 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850/* end confdefs.h. */ 4851int i; 4852_ACEOF 4853if ac_fn_c_try_compile "$LINENO" 4854then : 4855 xorg_cv_cc_flag_unknown_warning_option=yes 4856else $as_nop 4857 xorg_cv_cc_flag_unknown_warning_option=no 4858fi 4859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4860fi 4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4864 CFLAGS="$xorg_testset_save_CFLAGS" 4865fi 4866 4867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4870 fi 4871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4874if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4875then : 4876 printf %s "(cached) " >&6 4877else $as_nop 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880int i; 4881_ACEOF 4882if ac_fn_c_try_compile "$LINENO" 4883then : 4884 xorg_cv_cc_flag_unused_command_line_argument=yes 4885else $as_nop 4886 xorg_cv_cc_flag_unused_command_line_argument=no 4887fi 4888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4889fi 4890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4891printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4893 CFLAGS="$xorg_testset_save_CFLAGS" 4894fi 4895 4896found="no" 4897 4898 if test $found = "no" ; then 4899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4901 fi 4902 4903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4905 fi 4906 4907 CFLAGS="$CFLAGS -Wall" 4908 4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4910printf %s "checking if $CC supports -Wall... " >&6; } 4911 cacheid=xorg_cv_cc_flag__Wall 4912 if eval test \${$cacheid+y} 4913then : 4914 printf %s "(cached) " >&6 4915else $as_nop 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917/* end confdefs.h. */ 4918int i; 4919int 4920main (void) 4921{ 4922 4923 ; 4924 return 0; 4925} 4926_ACEOF 4927if ac_fn_c_try_link "$LINENO" 4928then : 4929 eval $cacheid=yes 4930else $as_nop 4931 eval $cacheid=no 4932fi 4933rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4934 conftest$ac_exeext conftest.$ac_ext 4935fi 4936 4937 4938 CFLAGS="$xorg_testset_save_CFLAGS" 4939 4940 eval supported=\$$cacheid 4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4942printf "%s\n" "$supported" >&6; } 4943 if test "$supported" = "yes" ; then 4944 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4945 found="yes" 4946 fi 4947 fi 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963xorg_testset_save_CFLAGS="$CFLAGS" 4964 4965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4969if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4970then : 4971 printf %s "(cached) " >&6 4972else $as_nop 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974/* end confdefs.h. */ 4975int i; 4976_ACEOF 4977if ac_fn_c_try_compile "$LINENO" 4978then : 4979 xorg_cv_cc_flag_unknown_warning_option=yes 4980else $as_nop 4981 xorg_cv_cc_flag_unknown_warning_option=no 4982fi 4983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4984fi 4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4989fi 4990 4991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 fi 4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4998if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4999then : 5000 printf %s "(cached) " >&6 5001else $as_nop 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004int i; 5005_ACEOF 5006if ac_fn_c_try_compile "$LINENO" 5007then : 5008 xorg_cv_cc_flag_unused_command_line_argument=yes 5009else $as_nop 5010 xorg_cv_cc_flag_unused_command_line_argument=no 5011fi 5012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5013fi 5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018fi 5019 5020found="no" 5021 5022 if test $found = "no" ; then 5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 fi 5026 5027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5029 fi 5030 5031 CFLAGS="$CFLAGS -Wpointer-arith" 5032 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5034printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5035 cacheid=xorg_cv_cc_flag__Wpointer_arith 5036 if eval test \${$cacheid+y} 5037then : 5038 printf %s "(cached) " >&6 5039else $as_nop 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042int i; 5043int 5044main (void) 5045{ 5046 5047 ; 5048 return 0; 5049} 5050_ACEOF 5051if ac_fn_c_try_link "$LINENO" 5052then : 5053 eval $cacheid=yes 5054else $as_nop 5055 eval $cacheid=no 5056fi 5057rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5058 conftest$ac_exeext conftest.$ac_ext 5059fi 5060 5061 5062 CFLAGS="$xorg_testset_save_CFLAGS" 5063 5064 eval supported=\$$cacheid 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5066printf "%s\n" "$supported" >&6; } 5067 if test "$supported" = "yes" ; then 5068 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5069 found="yes" 5070 fi 5071 fi 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087xorg_testset_save_CFLAGS="$CFLAGS" 5088 5089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5093if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5094then : 5095 printf %s "(cached) " >&6 5096else $as_nop 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099int i; 5100_ACEOF 5101if ac_fn_c_try_compile "$LINENO" 5102then : 5103 xorg_cv_cc_flag_unknown_warning_option=yes 5104else $as_nop 5105 xorg_cv_cc_flag_unknown_warning_option=no 5106fi 5107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5108fi 5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5112 CFLAGS="$xorg_testset_save_CFLAGS" 5113fi 5114 5115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5118 fi 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5122if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5123then : 5124 printf %s "(cached) " >&6 5125else $as_nop 5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5127/* end confdefs.h. */ 5128int i; 5129_ACEOF 5130if ac_fn_c_try_compile "$LINENO" 5131then : 5132 xorg_cv_cc_flag_unused_command_line_argument=yes 5133else $as_nop 5134 xorg_cv_cc_flag_unused_command_line_argument=no 5135fi 5136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5137fi 5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5141 CFLAGS="$xorg_testset_save_CFLAGS" 5142fi 5143 5144found="no" 5145 5146 if test $found = "no" ; then 5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5149 fi 5150 5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5153 fi 5154 5155 CFLAGS="$CFLAGS -Wmissing-declarations" 5156 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5158printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5159 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5160 if eval test \${$cacheid+y} 5161then : 5162 printf %s "(cached) " >&6 5163else $as_nop 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165/* end confdefs.h. */ 5166int i; 5167int 5168main (void) 5169{ 5170 5171 ; 5172 return 0; 5173} 5174_ACEOF 5175if ac_fn_c_try_link "$LINENO" 5176then : 5177 eval $cacheid=yes 5178else $as_nop 5179 eval $cacheid=no 5180fi 5181rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5182 conftest$ac_exeext conftest.$ac_ext 5183fi 5184 5185 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187 5188 eval supported=\$$cacheid 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5190printf "%s\n" "$supported" >&6; } 5191 if test "$supported" = "yes" ; then 5192 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5193 found="yes" 5194 fi 5195 fi 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211xorg_testset_save_CFLAGS="$CFLAGS" 5212 5213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5217if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5218then : 5219 printf %s "(cached) " >&6 5220else $as_nop 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223int i; 5224_ACEOF 5225if ac_fn_c_try_compile "$LINENO" 5226then : 5227 xorg_cv_cc_flag_unknown_warning_option=yes 5228else $as_nop 5229 xorg_cv_cc_flag_unknown_warning_option=no 5230fi 5231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5232fi 5233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5236 CFLAGS="$xorg_testset_save_CFLAGS" 5237fi 5238 5239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 fi 5243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5246if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5247then : 5248 printf %s "(cached) " >&6 5249else $as_nop 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251/* end confdefs.h. */ 5252int i; 5253_ACEOF 5254if ac_fn_c_try_compile "$LINENO" 5255then : 5256 xorg_cv_cc_flag_unused_command_line_argument=yes 5257else $as_nop 5258 xorg_cv_cc_flag_unused_command_line_argument=no 5259fi 5260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5261fi 5262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5265 CFLAGS="$xorg_testset_save_CFLAGS" 5266fi 5267 5268found="no" 5269 5270 if test $found = "no" ; then 5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5273 fi 5274 5275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5277 fi 5278 5279 CFLAGS="$CFLAGS -Wformat=2" 5280 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5282printf %s "checking if $CC supports -Wformat=2... " >&6; } 5283 cacheid=xorg_cv_cc_flag__Wformat_2 5284 if eval test \${$cacheid+y} 5285then : 5286 printf %s "(cached) " >&6 5287else $as_nop 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290int i; 5291int 5292main (void) 5293{ 5294 5295 ; 5296 return 0; 5297} 5298_ACEOF 5299if ac_fn_c_try_link "$LINENO" 5300then : 5301 eval $cacheid=yes 5302else $as_nop 5303 eval $cacheid=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5306 conftest$ac_exeext conftest.$ac_ext 5307fi 5308 5309 5310 CFLAGS="$xorg_testset_save_CFLAGS" 5311 5312 eval supported=\$$cacheid 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5314printf "%s\n" "$supported" >&6; } 5315 if test "$supported" = "yes" ; then 5316 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5317 found="yes" 5318 fi 5319 fi 5320 5321 if test $found = "no" ; then 5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324 fi 5325 5326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5328 fi 5329 5330 CFLAGS="$CFLAGS -Wformat" 5331 5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5333printf %s "checking if $CC supports -Wformat... " >&6; } 5334 cacheid=xorg_cv_cc_flag__Wformat 5335 if eval test \${$cacheid+y} 5336then : 5337 printf %s "(cached) " >&6 5338else $as_nop 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340/* end confdefs.h. */ 5341int i; 5342int 5343main (void) 5344{ 5345 5346 ; 5347 return 0; 5348} 5349_ACEOF 5350if ac_fn_c_try_link "$LINENO" 5351then : 5352 eval $cacheid=yes 5353else $as_nop 5354 eval $cacheid=no 5355fi 5356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5357 conftest$ac_exeext conftest.$ac_ext 5358fi 5359 5360 5361 CFLAGS="$xorg_testset_save_CFLAGS" 5362 5363 eval supported=\$$cacheid 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5365printf "%s\n" "$supported" >&6; } 5366 if test "$supported" = "yes" ; then 5367 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5368 found="yes" 5369 fi 5370 fi 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388xorg_testset_save_CFLAGS="$CFLAGS" 5389 5390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5394if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5395then : 5396 printf %s "(cached) " >&6 5397else $as_nop 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400int i; 5401_ACEOF 5402if ac_fn_c_try_compile "$LINENO" 5403then : 5404 xorg_cv_cc_flag_unknown_warning_option=yes 5405else $as_nop 5406 xorg_cv_cc_flag_unknown_warning_option=no 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5409fi 5410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5413 CFLAGS="$xorg_testset_save_CFLAGS" 5414fi 5415 5416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 fi 5420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5423if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5424then : 5425 printf %s "(cached) " >&6 5426else $as_nop 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429int i; 5430_ACEOF 5431if ac_fn_c_try_compile "$LINENO" 5432then : 5433 xorg_cv_cc_flag_unused_command_line_argument=yes 5434else $as_nop 5435 xorg_cv_cc_flag_unused_command_line_argument=no 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5438fi 5439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5442 CFLAGS="$xorg_testset_save_CFLAGS" 5443fi 5444 5445found="no" 5446 5447 if test $found = "no" ; then 5448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5450 fi 5451 5452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5454 fi 5455 5456 CFLAGS="$CFLAGS -Wstrict-prototypes" 5457 5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5459printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5460 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5461 if eval test \${$cacheid+y} 5462then : 5463 printf %s "(cached) " >&6 5464else $as_nop 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467int i; 5468int 5469main (void) 5470{ 5471 5472 ; 5473 return 0; 5474} 5475_ACEOF 5476if ac_fn_c_try_link "$LINENO" 5477then : 5478 eval $cacheid=yes 5479else $as_nop 5480 eval $cacheid=no 5481fi 5482rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5483 conftest$ac_exeext conftest.$ac_ext 5484fi 5485 5486 5487 CFLAGS="$xorg_testset_save_CFLAGS" 5488 5489 eval supported=\$$cacheid 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5491printf "%s\n" "$supported" >&6; } 5492 if test "$supported" = "yes" ; then 5493 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5494 found="yes" 5495 fi 5496 fi 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512xorg_testset_save_CFLAGS="$CFLAGS" 5513 5514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5518if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5519then : 5520 printf %s "(cached) " >&6 5521else $as_nop 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524int i; 5525_ACEOF 5526if ac_fn_c_try_compile "$LINENO" 5527then : 5528 xorg_cv_cc_flag_unknown_warning_option=yes 5529else $as_nop 5530 xorg_cv_cc_flag_unknown_warning_option=no 5531fi 5532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5533fi 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538fi 5539 5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5543 fi 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5547if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5548then : 5549 printf %s "(cached) " >&6 5550else $as_nop 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553int i; 5554_ACEOF 5555if ac_fn_c_try_compile "$LINENO" 5556then : 5557 xorg_cv_cc_flag_unused_command_line_argument=yes 5558else $as_nop 5559 xorg_cv_cc_flag_unused_command_line_argument=no 5560fi 5561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5562fi 5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5566 CFLAGS="$xorg_testset_save_CFLAGS" 5567fi 5568 5569found="no" 5570 5571 if test $found = "no" ; then 5572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5574 fi 5575 5576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5578 fi 5579 5580 CFLAGS="$CFLAGS -Wmissing-prototypes" 5581 5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5583printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5584 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5585 if eval test \${$cacheid+y} 5586then : 5587 printf %s "(cached) " >&6 5588else $as_nop 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590/* end confdefs.h. */ 5591int i; 5592int 5593main (void) 5594{ 5595 5596 ; 5597 return 0; 5598} 5599_ACEOF 5600if ac_fn_c_try_link "$LINENO" 5601then : 5602 eval $cacheid=yes 5603else $as_nop 5604 eval $cacheid=no 5605fi 5606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5607 conftest$ac_exeext conftest.$ac_ext 5608fi 5609 5610 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612 5613 eval supported=\$$cacheid 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615printf "%s\n" "$supported" >&6; } 5616 if test "$supported" = "yes" ; then 5617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5618 found="yes" 5619 fi 5620 fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636xorg_testset_save_CFLAGS="$CFLAGS" 5637 5638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5643then : 5644 printf %s "(cached) " >&6 5645else $as_nop 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648int i; 5649_ACEOF 5650if ac_fn_c_try_compile "$LINENO" 5651then : 5652 xorg_cv_cc_flag_unknown_warning_option=yes 5653else $as_nop 5654 xorg_cv_cc_flag_unknown_warning_option=no 5655fi 5656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5657fi 5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5662fi 5663 5664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667 fi 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5672then : 5673 printf %s "(cached) " >&6 5674else $as_nop 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676/* end confdefs.h. */ 5677int i; 5678_ACEOF 5679if ac_fn_c_try_compile "$LINENO" 5680then : 5681 xorg_cv_cc_flag_unused_command_line_argument=yes 5682else $as_nop 5683 xorg_cv_cc_flag_unused_command_line_argument=no 5684fi 5685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5686fi 5687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5691fi 5692 5693found="no" 5694 5695 if test $found = "no" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 5700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5702 fi 5703 5704 CFLAGS="$CFLAGS -Wnested-externs" 5705 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5707printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5708 cacheid=xorg_cv_cc_flag__Wnested_externs 5709 if eval test \${$cacheid+y} 5710then : 5711 printf %s "(cached) " >&6 5712else $as_nop 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714/* end confdefs.h. */ 5715int i; 5716int 5717main (void) 5718{ 5719 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724if ac_fn_c_try_link "$LINENO" 5725then : 5726 eval $cacheid=yes 5727else $as_nop 5728 eval $cacheid=no 5729fi 5730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5731 conftest$ac_exeext conftest.$ac_ext 5732fi 5733 5734 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5736 5737 eval supported=\$$cacheid 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5739printf "%s\n" "$supported" >&6; } 5740 if test "$supported" = "yes" ; then 5741 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5742 found="yes" 5743 fi 5744 fi 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760xorg_testset_save_CFLAGS="$CFLAGS" 5761 5762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5766if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5767then : 5768 printf %s "(cached) " >&6 5769else $as_nop 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771/* end confdefs.h. */ 5772int i; 5773_ACEOF 5774if ac_fn_c_try_compile "$LINENO" 5775then : 5776 xorg_cv_cc_flag_unknown_warning_option=yes 5777else $as_nop 5778 xorg_cv_cc_flag_unknown_warning_option=no 5779fi 5780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5781fi 5782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786fi 5787 5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5795if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5796then : 5797 printf %s "(cached) " >&6 5798else $as_nop 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801int i; 5802_ACEOF 5803if ac_fn_c_try_compile "$LINENO" 5804then : 5805 xorg_cv_cc_flag_unused_command_line_argument=yes 5806else $as_nop 5807 xorg_cv_cc_flag_unused_command_line_argument=no 5808fi 5809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5810fi 5811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5814 CFLAGS="$xorg_testset_save_CFLAGS" 5815fi 5816 5817found="no" 5818 5819 if test $found = "no" ; then 5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5822 fi 5823 5824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5826 fi 5827 5828 CFLAGS="$CFLAGS -Wbad-function-cast" 5829 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5831printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5832 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5833 if eval test \${$cacheid+y} 5834then : 5835 printf %s "(cached) " >&6 5836else $as_nop 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838/* end confdefs.h. */ 5839int i; 5840int 5841main (void) 5842{ 5843 5844 ; 5845 return 0; 5846} 5847_ACEOF 5848if ac_fn_c_try_link "$LINENO" 5849then : 5850 eval $cacheid=yes 5851else $as_nop 5852 eval $cacheid=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5855 conftest$ac_exeext conftest.$ac_ext 5856fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863printf "%s\n" "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5891then : 5892 printf %s "(cached) " >&6 5893else $as_nop 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895/* end confdefs.h. */ 5896int i; 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO" 5899then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901else $as_nop 5902 xorg_cv_cc_flag_unknown_warning_option=no 5903fi 5904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5905fi 5906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910fi 5911 5912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5920then : 5921 printf %s "(cached) " >&6 5922else $as_nop 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924/* end confdefs.h. */ 5925int i; 5926_ACEOF 5927if ac_fn_c_try_compile "$LINENO" 5928then : 5929 xorg_cv_cc_flag_unused_command_line_argument=yes 5930else $as_nop 5931 xorg_cv_cc_flag_unused_command_line_argument=no 5932fi 5933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5934fi 5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5938 CFLAGS="$xorg_testset_save_CFLAGS" 5939fi 5940 5941found="no" 5942 5943 if test $found = "no" ; then 5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 fi 5947 5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 fi 5951 5952 CFLAGS="$CFLAGS -Wold-style-definition" 5953 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5955printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5956 cacheid=xorg_cv_cc_flag__Wold_style_definition 5957 if eval test \${$cacheid+y} 5958then : 5959 printf %s "(cached) " >&6 5960else $as_nop 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963int i; 5964int 5965main (void) 5966{ 5967 5968 ; 5969 return 0; 5970} 5971_ACEOF 5972if ac_fn_c_try_link "$LINENO" 5973then : 5974 eval $cacheid=yes 5975else $as_nop 5976 eval $cacheid=no 5977fi 5978rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5979 conftest$ac_exeext conftest.$ac_ext 5980fi 5981 5982 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984 5985 eval supported=\$$cacheid 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5987printf "%s\n" "$supported" >&6; } 5988 if test "$supported" = "yes" ; then 5989 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5990 found="yes" 5991 fi 5992 fi 5993 5994 if test $found = "no" ; then 5995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5997 fi 5998 5999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6001 fi 6002 6003 CFLAGS="$CFLAGS -fd" 6004 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6006printf %s "checking if $CC supports -fd... " >&6; } 6007 cacheid=xorg_cv_cc_flag__fd 6008 if eval test \${$cacheid+y} 6009then : 6010 printf %s "(cached) " >&6 6011else $as_nop 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014int i; 6015int 6016main (void) 6017{ 6018 6019 ; 6020 return 0; 6021} 6022_ACEOF 6023if ac_fn_c_try_link "$LINENO" 6024then : 6025 eval $cacheid=yes 6026else $as_nop 6027 eval $cacheid=no 6028fi 6029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6030 conftest$ac_exeext conftest.$ac_ext 6031fi 6032 6033 6034 CFLAGS="$xorg_testset_save_CFLAGS" 6035 6036 eval supported=\$$cacheid 6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6038printf "%s\n" "$supported" >&6; } 6039 if test "$supported" = "yes" ; then 6040 BASE_CFLAGS="$BASE_CFLAGS -fd" 6041 found="yes" 6042 fi 6043 fi 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059xorg_testset_save_CFLAGS="$CFLAGS" 6060 6061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6066then : 6067 printf %s "(cached) " >&6 6068else $as_nop 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071int i; 6072_ACEOF 6073if ac_fn_c_try_compile "$LINENO" 6074then : 6075 xorg_cv_cc_flag_unknown_warning_option=yes 6076else $as_nop 6077 xorg_cv_cc_flag_unknown_warning_option=no 6078fi 6079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6080fi 6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6084 CFLAGS="$xorg_testset_save_CFLAGS" 6085fi 6086 6087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 fi 6091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6095then : 6096 printf %s "(cached) " >&6 6097else $as_nop 6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099/* end confdefs.h. */ 6100int i; 6101_ACEOF 6102if ac_fn_c_try_compile "$LINENO" 6103then : 6104 xorg_cv_cc_flag_unused_command_line_argument=yes 6105else $as_nop 6106 xorg_cv_cc_flag_unused_command_line_argument=no 6107fi 6108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6109fi 6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114fi 6115 6116found="no" 6117 6118 if test $found = "no" ; then 6119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 fi 6122 6123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 fi 6126 6127 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6128 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6130printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6131 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6132 if eval test \${$cacheid+y} 6133then : 6134 printf %s "(cached) " >&6 6135else $as_nop 6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137/* end confdefs.h. */ 6138int i; 6139int 6140main (void) 6141{ 6142 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147if ac_fn_c_try_link "$LINENO" 6148then : 6149 eval $cacheid=yes 6150else $as_nop 6151 eval $cacheid=no 6152fi 6153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6154 conftest$ac_exeext conftest.$ac_ext 6155fi 6156 6157 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 6160 eval supported=\$$cacheid 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6162printf "%s\n" "$supported" >&6; } 6163 if test "$supported" = "yes" ; then 6164 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6165 found="yes" 6166 fi 6167 fi 6168 6169 6170 6171 6172 6173# This chunk adds additional warnings that could catch undesired effects. 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187xorg_testset_save_CFLAGS="$CFLAGS" 6188 6189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6193if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6194then : 6195 printf %s "(cached) " >&6 6196else $as_nop 6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198/* end confdefs.h. */ 6199int i; 6200_ACEOF 6201if ac_fn_c_try_compile "$LINENO" 6202then : 6203 xorg_cv_cc_flag_unknown_warning_option=yes 6204else $as_nop 6205 xorg_cv_cc_flag_unknown_warning_option=no 6206fi 6207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6208fi 6209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6213fi 6214 6215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 fi 6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6222if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6223then : 6224 printf %s "(cached) " >&6 6225else $as_nop 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229_ACEOF 6230if ac_fn_c_try_compile "$LINENO" 6231then : 6232 xorg_cv_cc_flag_unused_command_line_argument=yes 6233else $as_nop 6234 xorg_cv_cc_flag_unused_command_line_argument=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6237fi 6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242fi 6243 6244found="no" 6245 6246 if test $found = "no" ; then 6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6253 fi 6254 6255 CFLAGS="$CFLAGS -Wunused" 6256 6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6258printf %s "checking if $CC supports -Wunused... " >&6; } 6259 cacheid=xorg_cv_cc_flag__Wunused 6260 if eval test \${$cacheid+y} 6261then : 6262 printf %s "(cached) " >&6 6263else $as_nop 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266int i; 6267int 6268main (void) 6269{ 6270 6271 ; 6272 return 0; 6273} 6274_ACEOF 6275if ac_fn_c_try_link "$LINENO" 6276then : 6277 eval $cacheid=yes 6278else $as_nop 6279 eval $cacheid=no 6280fi 6281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6282 conftest$ac_exeext conftest.$ac_ext 6283fi 6284 6285 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287 6288 eval supported=\$$cacheid 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6290printf "%s\n" "$supported" >&6; } 6291 if test "$supported" = "yes" ; then 6292 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6293 found="yes" 6294 fi 6295 fi 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311xorg_testset_save_CFLAGS="$CFLAGS" 6312 6313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6317if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6318then : 6319 printf %s "(cached) " >&6 6320else $as_nop 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323int i; 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO" 6326then : 6327 xorg_cv_cc_flag_unknown_warning_option=yes 6328else $as_nop 6329 xorg_cv_cc_flag_unknown_warning_option=no 6330fi 6331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6332fi 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337fi 6338 6339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6346if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6347then : 6348 printf %s "(cached) " >&6 6349else $as_nop 6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351/* end confdefs.h. */ 6352int i; 6353_ACEOF 6354if ac_fn_c_try_compile "$LINENO" 6355then : 6356 xorg_cv_cc_flag_unused_command_line_argument=yes 6357else $as_nop 6358 xorg_cv_cc_flag_unused_command_line_argument=no 6359fi 6360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6361fi 6362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366fi 6367 6368found="no" 6369 6370 if test $found = "no" ; then 6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 fi 6374 6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 fi 6378 6379 CFLAGS="$CFLAGS -Wuninitialized" 6380 6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6382printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6383 cacheid=xorg_cv_cc_flag__Wuninitialized 6384 if eval test \${$cacheid+y} 6385then : 6386 printf %s "(cached) " >&6 6387else $as_nop 6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6389/* end confdefs.h. */ 6390int i; 6391int 6392main (void) 6393{ 6394 6395 ; 6396 return 0; 6397} 6398_ACEOF 6399if ac_fn_c_try_link "$LINENO" 6400then : 6401 eval $cacheid=yes 6402else $as_nop 6403 eval $cacheid=no 6404fi 6405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6406 conftest$ac_exeext conftest.$ac_ext 6407fi 6408 6409 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 6412 eval supported=\$$cacheid 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414printf "%s\n" "$supported" >&6; } 6415 if test "$supported" = "yes" ; then 6416 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6417 found="yes" 6418 fi 6419 fi 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435xorg_testset_save_CFLAGS="$CFLAGS" 6436 6437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6441if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6442then : 6443 printf %s "(cached) " >&6 6444else $as_nop 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446/* end confdefs.h. */ 6447int i; 6448_ACEOF 6449if ac_fn_c_try_compile "$LINENO" 6450then : 6451 xorg_cv_cc_flag_unknown_warning_option=yes 6452else $as_nop 6453 xorg_cv_cc_flag_unknown_warning_option=no 6454fi 6455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6456fi 6457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461fi 6462 6463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6470if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6471then : 6472 printf %s "(cached) " >&6 6473else $as_nop 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476int i; 6477_ACEOF 6478if ac_fn_c_try_compile "$LINENO" 6479then : 6480 xorg_cv_cc_flag_unused_command_line_argument=yes 6481else $as_nop 6482 xorg_cv_cc_flag_unused_command_line_argument=no 6483fi 6484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6485fi 6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490fi 6491 6492found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wshadow" 6504 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6506printf %s "checking if $CC supports -Wshadow... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wshadow 6508 if eval test \${$cacheid+y} 6509then : 6510 printf %s "(cached) " >&6 6511else $as_nop 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514int i; 6515int 6516main (void) 6517{ 6518 6519 ; 6520 return 0; 6521} 6522_ACEOF 6523if ac_fn_c_try_link "$LINENO" 6524then : 6525 eval $cacheid=yes 6526else $as_nop 6527 eval $cacheid=no 6528fi 6529rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6530 conftest$ac_exeext conftest.$ac_ext 6531fi 6532 6533 6534 CFLAGS="$xorg_testset_save_CFLAGS" 6535 6536 eval supported=\$$cacheid 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6538printf "%s\n" "$supported" >&6; } 6539 if test "$supported" = "yes" ; then 6540 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6541 found="yes" 6542 fi 6543 fi 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559xorg_testset_save_CFLAGS="$CFLAGS" 6560 6561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6565if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6566then : 6567 printf %s "(cached) " >&6 6568else $as_nop 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570/* end confdefs.h. */ 6571int i; 6572_ACEOF 6573if ac_fn_c_try_compile "$LINENO" 6574then : 6575 xorg_cv_cc_flag_unknown_warning_option=yes 6576else $as_nop 6577 xorg_cv_cc_flag_unknown_warning_option=no 6578fi 6579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6580fi 6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585fi 6586 6587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6590 fi 6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6594if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6595then : 6596 printf %s "(cached) " >&6 6597else $as_nop 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599/* end confdefs.h. */ 6600int i; 6601_ACEOF 6602if ac_fn_c_try_compile "$LINENO" 6603then : 6604 xorg_cv_cc_flag_unused_command_line_argument=yes 6605else $as_nop 6606 xorg_cv_cc_flag_unused_command_line_argument=no 6607fi 6608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6609fi 6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614fi 6615 6616found="no" 6617 6618 if test $found = "no" ; then 6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6621 fi 6622 6623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6625 fi 6626 6627 CFLAGS="$CFLAGS -Wmissing-noreturn" 6628 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6630printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6631 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6632 if eval test \${$cacheid+y} 6633then : 6634 printf %s "(cached) " >&6 6635else $as_nop 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637/* end confdefs.h. */ 6638int i; 6639int 6640main (void) 6641{ 6642 6643 ; 6644 return 0; 6645} 6646_ACEOF 6647if ac_fn_c_try_link "$LINENO" 6648then : 6649 eval $cacheid=yes 6650else $as_nop 6651 eval $cacheid=no 6652fi 6653rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6654 conftest$ac_exeext conftest.$ac_ext 6655fi 6656 6657 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659 6660 eval supported=\$$cacheid 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6662printf "%s\n" "$supported" >&6; } 6663 if test "$supported" = "yes" ; then 6664 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6665 found="yes" 6666 fi 6667 fi 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683xorg_testset_save_CFLAGS="$CFLAGS" 6684 6685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6689if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6690then : 6691 printf %s "(cached) " >&6 6692else $as_nop 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695int i; 6696_ACEOF 6697if ac_fn_c_try_compile "$LINENO" 6698then : 6699 xorg_cv_cc_flag_unknown_warning_option=yes 6700else $as_nop 6701 xorg_cv_cc_flag_unknown_warning_option=no 6702fi 6703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6704fi 6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6708 CFLAGS="$xorg_testset_save_CFLAGS" 6709fi 6710 6711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6718if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6719then : 6720 printf %s "(cached) " >&6 6721else $as_nop 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723/* end confdefs.h. */ 6724int i; 6725_ACEOF 6726if ac_fn_c_try_compile "$LINENO" 6727then : 6728 xorg_cv_cc_flag_unused_command_line_argument=yes 6729else $as_nop 6730 xorg_cv_cc_flag_unused_command_line_argument=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6733fi 6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738fi 6739 6740found="no" 6741 6742 if test $found = "no" ; then 6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 fi 6746 6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 fi 6750 6751 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6752 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6754printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6755 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6756 if eval test \${$cacheid+y} 6757then : 6758 printf %s "(cached) " >&6 6759else $as_nop 6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761/* end confdefs.h. */ 6762int i; 6763int 6764main (void) 6765{ 6766 6767 ; 6768 return 0; 6769} 6770_ACEOF 6771if ac_fn_c_try_link "$LINENO" 6772then : 6773 eval $cacheid=yes 6774else $as_nop 6775 eval $cacheid=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6778 conftest$ac_exeext conftest.$ac_ext 6779fi 6780 6781 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783 6784 eval supported=\$$cacheid 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6786printf "%s\n" "$supported" >&6; } 6787 if test "$supported" = "yes" ; then 6788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6789 found="yes" 6790 fi 6791 fi 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807xorg_testset_save_CFLAGS="$CFLAGS" 6808 6809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6813if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6814then : 6815 printf %s "(cached) " >&6 6816else $as_nop 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819int i; 6820_ACEOF 6821if ac_fn_c_try_compile "$LINENO" 6822then : 6823 xorg_cv_cc_flag_unknown_warning_option=yes 6824else $as_nop 6825 xorg_cv_cc_flag_unknown_warning_option=no 6826fi 6827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6828fi 6829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833fi 6834 6835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6843then : 6844 printf %s "(cached) " >&6 6845else $as_nop 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848int i; 6849_ACEOF 6850if ac_fn_c_try_compile "$LINENO" 6851then : 6852 xorg_cv_cc_flag_unused_command_line_argument=yes 6853else $as_nop 6854 xorg_cv_cc_flag_unused_command_line_argument=no 6855fi 6856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6857fi 6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862fi 6863 6864found="no" 6865 6866 if test $found = "no" ; then 6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6869 fi 6870 6871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 fi 6874 6875 CFLAGS="$CFLAGS -Wredundant-decls" 6876 6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6878printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6879 cacheid=xorg_cv_cc_flag__Wredundant_decls 6880 if eval test \${$cacheid+y} 6881then : 6882 printf %s "(cached) " >&6 6883else $as_nop 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885/* end confdefs.h. */ 6886int i; 6887int 6888main (void) 6889{ 6890 6891 ; 6892 return 0; 6893} 6894_ACEOF 6895if ac_fn_c_try_link "$LINENO" 6896then : 6897 eval $cacheid=yes 6898else $as_nop 6899 eval $cacheid=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6902 conftest$ac_exeext conftest.$ac_ext 6903fi 6904 6905 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907 6908 eval supported=\$$cacheid 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6910printf "%s\n" "$supported" >&6; } 6911 if test "$supported" = "yes" ; then 6912 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6913 found="yes" 6914 fi 6915 fi 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931xorg_testset_save_CFLAGS="$CFLAGS" 6932 6933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6937if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6938then : 6939 printf %s "(cached) " >&6 6940else $as_nop 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942/* end confdefs.h. */ 6943int i; 6944_ACEOF 6945if ac_fn_c_try_compile "$LINENO" 6946then : 6947 xorg_cv_cc_flag_unknown_warning_option=yes 6948else $as_nop 6949 xorg_cv_cc_flag_unknown_warning_option=no 6950fi 6951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6952fi 6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957fi 6958 6959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6962 fi 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6966if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6967then : 6968 printf %s "(cached) " >&6 6969else $as_nop 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971/* end confdefs.h. */ 6972int i; 6973_ACEOF 6974if ac_fn_c_try_compile "$LINENO" 6975then : 6976 xorg_cv_cc_flag_unused_command_line_argument=yes 6977else $as_nop 6978 xorg_cv_cc_flag_unused_command_line_argument=no 6979fi 6980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6981fi 6982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988found="no" 6989 6990 if test $found = "no" ; then 6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 fi 6998 6999 CFLAGS="$CFLAGS -Wlogical-op" 7000 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7002printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7003 cacheid=xorg_cv_cc_flag__Wlogical_op 7004 if eval test \${$cacheid+y} 7005then : 7006 printf %s "(cached) " >&6 7007else $as_nop 7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009/* end confdefs.h. */ 7010int i; 7011int 7012main (void) 7013{ 7014 7015 ; 7016 return 0; 7017} 7018_ACEOF 7019if ac_fn_c_try_link "$LINENO" 7020then : 7021 eval $cacheid=yes 7022else $as_nop 7023 eval $cacheid=no 7024fi 7025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7026 conftest$ac_exeext conftest.$ac_ext 7027fi 7028 7029 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031 7032 eval supported=\$$cacheid 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7034printf "%s\n" "$supported" >&6; } 7035 if test "$supported" = "yes" ; then 7036 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7037 found="yes" 7038 fi 7039 fi 7040 7041 7042 7043# These are currently disabled because they are noisy. They will be enabled 7044# in the future once the codebase is sufficiently modernized to silence 7045# them. For now, I don't want them to drown out the other warnings. 7046# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7047# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7048# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7049 7050# Turn some warnings into errors, so we don't accidently get successful builds 7051# when there are problems that should be fixed. 7052 7053if test "x$SELECTIVE_WERROR" = "xyes" ; then 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067xorg_testset_save_CFLAGS="$CFLAGS" 7068 7069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7074then : 7075 printf %s "(cached) " >&6 7076else $as_nop 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO" 7082then : 7083 xorg_cv_cc_flag_unknown_warning_option=yes 7084else $as_nop 7085 xorg_cv_cc_flag_unknown_warning_option=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7088fi 7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093fi 7094 7095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7103then : 7104 printf %s "(cached) " >&6 7105else $as_nop 7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108int i; 7109_ACEOF 7110if ac_fn_c_try_compile "$LINENO" 7111then : 7112 xorg_cv_cc_flag_unused_command_line_argument=yes 7113else $as_nop 7114 xorg_cv_cc_flag_unused_command_line_argument=no 7115fi 7116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7117fi 7118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7121 CFLAGS="$xorg_testset_save_CFLAGS" 7122fi 7123 7124found="no" 7125 7126 if test $found = "no" ; then 7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129 fi 7130 7131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 fi 7134 7135 CFLAGS="$CFLAGS -Werror=implicit" 7136 7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7138printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7139 cacheid=xorg_cv_cc_flag__Werror_implicit 7140 if eval test \${$cacheid+y} 7141then : 7142 printf %s "(cached) " >&6 7143else $as_nop 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146int i; 7147int 7148main (void) 7149{ 7150 7151 ; 7152 return 0; 7153} 7154_ACEOF 7155if ac_fn_c_try_link "$LINENO" 7156then : 7157 eval $cacheid=yes 7158else $as_nop 7159 eval $cacheid=no 7160fi 7161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7162 conftest$ac_exeext conftest.$ac_ext 7163fi 7164 7165 7166 CFLAGS="$xorg_testset_save_CFLAGS" 7167 7168 eval supported=\$$cacheid 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7170printf "%s\n" "$supported" >&6; } 7171 if test "$supported" = "yes" ; then 7172 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7173 found="yes" 7174 fi 7175 fi 7176 7177 if test $found = "no" ; then 7178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7180 fi 7181 7182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7184 fi 7185 7186 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7187 7188 { 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 7189printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7190 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7191 if eval test \${$cacheid+y} 7192then : 7193 printf %s "(cached) " >&6 7194else $as_nop 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197int i; 7198int 7199main (void) 7200{ 7201 7202 ; 7203 return 0; 7204} 7205_ACEOF 7206if ac_fn_c_try_link "$LINENO" 7207then : 7208 eval $cacheid=yes 7209else $as_nop 7210 eval $cacheid=no 7211fi 7212rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7213 conftest$ac_exeext conftest.$ac_ext 7214fi 7215 7216 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218 7219 eval supported=\$$cacheid 7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7221printf "%s\n" "$supported" >&6; } 7222 if test "$supported" = "yes" ; then 7223 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7224 found="yes" 7225 fi 7226 fi 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242xorg_testset_save_CFLAGS="$CFLAGS" 7243 7244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7248if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7249then : 7250 printf %s "(cached) " >&6 7251else $as_nop 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254int i; 7255_ACEOF 7256if ac_fn_c_try_compile "$LINENO" 7257then : 7258 xorg_cv_cc_flag_unknown_warning_option=yes 7259else $as_nop 7260 xorg_cv_cc_flag_unknown_warning_option=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7263fi 7264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7267 CFLAGS="$xorg_testset_save_CFLAGS" 7268fi 7269 7270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7273 fi 7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7277if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7278then : 7279 printf %s "(cached) " >&6 7280else $as_nop 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283int i; 7284_ACEOF 7285if ac_fn_c_try_compile "$LINENO" 7286then : 7287 xorg_cv_cc_flag_unused_command_line_argument=yes 7288else $as_nop 7289 xorg_cv_cc_flag_unused_command_line_argument=no 7290fi 7291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7292fi 7293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7296 CFLAGS="$xorg_testset_save_CFLAGS" 7297fi 7298 7299found="no" 7300 7301 if test $found = "no" ; then 7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304 fi 7305 7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 fi 7309 7310 CFLAGS="$CFLAGS -Werror=nonnull" 7311 7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7313printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7314 cacheid=xorg_cv_cc_flag__Werror_nonnull 7315 if eval test \${$cacheid+y} 7316then : 7317 printf %s "(cached) " >&6 7318else $as_nop 7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7320/* end confdefs.h. */ 7321int i; 7322int 7323main (void) 7324{ 7325 7326 ; 7327 return 0; 7328} 7329_ACEOF 7330if ac_fn_c_try_link "$LINENO" 7331then : 7332 eval $cacheid=yes 7333else $as_nop 7334 eval $cacheid=no 7335fi 7336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7337 conftest$ac_exeext conftest.$ac_ext 7338fi 7339 7340 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342 7343 eval supported=\$$cacheid 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7345printf "%s\n" "$supported" >&6; } 7346 if test "$supported" = "yes" ; then 7347 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7348 found="yes" 7349 fi 7350 fi 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366xorg_testset_save_CFLAGS="$CFLAGS" 7367 7368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7373then : 7374 printf %s "(cached) " >&6 7375else $as_nop 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378int i; 7379_ACEOF 7380if ac_fn_c_try_compile "$LINENO" 7381then : 7382 xorg_cv_cc_flag_unknown_warning_option=yes 7383else $as_nop 7384 xorg_cv_cc_flag_unknown_warning_option=no 7385fi 7386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7387fi 7388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392fi 7393 7394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 fi 7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7401if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7402then : 7403 printf %s "(cached) " >&6 7404else $as_nop 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407int i; 7408_ACEOF 7409if ac_fn_c_try_compile "$LINENO" 7410then : 7411 xorg_cv_cc_flag_unused_command_line_argument=yes 7412else $as_nop 7413 xorg_cv_cc_flag_unused_command_line_argument=no 7414fi 7415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7416fi 7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7420 CFLAGS="$xorg_testset_save_CFLAGS" 7421fi 7422 7423found="no" 7424 7425 if test $found = "no" ; then 7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7428 fi 7429 7430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7432 fi 7433 7434 CFLAGS="$CFLAGS -Werror=init-self" 7435 7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7437printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7438 cacheid=xorg_cv_cc_flag__Werror_init_self 7439 if eval test \${$cacheid+y} 7440then : 7441 printf %s "(cached) " >&6 7442else $as_nop 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444/* end confdefs.h. */ 7445int i; 7446int 7447main (void) 7448{ 7449 7450 ; 7451 return 0; 7452} 7453_ACEOF 7454if ac_fn_c_try_link "$LINENO" 7455then : 7456 eval $cacheid=yes 7457else $as_nop 7458 eval $cacheid=no 7459fi 7460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7461 conftest$ac_exeext conftest.$ac_ext 7462fi 7463 7464 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466 7467 eval supported=\$$cacheid 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7469printf "%s\n" "$supported" >&6; } 7470 if test "$supported" = "yes" ; then 7471 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7472 found="yes" 7473 fi 7474 fi 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490xorg_testset_save_CFLAGS="$CFLAGS" 7491 7492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7496if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7497then : 7498 printf %s "(cached) " >&6 7499else $as_nop 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502int i; 7503_ACEOF 7504if ac_fn_c_try_compile "$LINENO" 7505then : 7506 xorg_cv_cc_flag_unknown_warning_option=yes 7507else $as_nop 7508 xorg_cv_cc_flag_unknown_warning_option=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7511fi 7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516fi 7517 7518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7526then : 7527 printf %s "(cached) " >&6 7528else $as_nop 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530/* end confdefs.h. */ 7531int i; 7532_ACEOF 7533if ac_fn_c_try_compile "$LINENO" 7534then : 7535 xorg_cv_cc_flag_unused_command_line_argument=yes 7536else $as_nop 7537 xorg_cv_cc_flag_unused_command_line_argument=no 7538fi 7539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7540fi 7541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7544 CFLAGS="$xorg_testset_save_CFLAGS" 7545fi 7546 7547found="no" 7548 7549 if test $found = "no" ; then 7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7552 fi 7553 7554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7556 fi 7557 7558 CFLAGS="$CFLAGS -Werror=main" 7559 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7561printf %s "checking if $CC supports -Werror=main... " >&6; } 7562 cacheid=xorg_cv_cc_flag__Werror_main 7563 if eval test \${$cacheid+y} 7564then : 7565 printf %s "(cached) " >&6 7566else $as_nop 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569int i; 7570int 7571main (void) 7572{ 7573 7574 ; 7575 return 0; 7576} 7577_ACEOF 7578if ac_fn_c_try_link "$LINENO" 7579then : 7580 eval $cacheid=yes 7581else $as_nop 7582 eval $cacheid=no 7583fi 7584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7585 conftest$ac_exeext conftest.$ac_ext 7586fi 7587 7588 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590 7591 eval supported=\$$cacheid 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7593printf "%s\n" "$supported" >&6; } 7594 if test "$supported" = "yes" ; then 7595 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7596 found="yes" 7597 fi 7598 fi 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614xorg_testset_save_CFLAGS="$CFLAGS" 7615 7616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7621then : 7622 printf %s "(cached) " >&6 7623else $as_nop 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625/* end confdefs.h. */ 7626int i; 7627_ACEOF 7628if ac_fn_c_try_compile "$LINENO" 7629then : 7630 xorg_cv_cc_flag_unknown_warning_option=yes 7631else $as_nop 7632 xorg_cv_cc_flag_unknown_warning_option=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7635fi 7636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640fi 7641 7642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7645 fi 7646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7650then : 7651 printf %s "(cached) " >&6 7652else $as_nop 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655int i; 7656_ACEOF 7657if ac_fn_c_try_compile "$LINENO" 7658then : 7659 xorg_cv_cc_flag_unused_command_line_argument=yes 7660else $as_nop 7661 xorg_cv_cc_flag_unused_command_line_argument=no 7662fi 7663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7664fi 7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7668 CFLAGS="$xorg_testset_save_CFLAGS" 7669fi 7670 7671found="no" 7672 7673 if test $found = "no" ; then 7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7676 fi 7677 7678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7680 fi 7681 7682 CFLAGS="$CFLAGS -Werror=missing-braces" 7683 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7685printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7686 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7687 if eval test \${$cacheid+y} 7688then : 7689 printf %s "(cached) " >&6 7690else $as_nop 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693int i; 7694int 7695main (void) 7696{ 7697 7698 ; 7699 return 0; 7700} 7701_ACEOF 7702if ac_fn_c_try_link "$LINENO" 7703then : 7704 eval $cacheid=yes 7705else $as_nop 7706 eval $cacheid=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7709 conftest$ac_exeext conftest.$ac_ext 7710fi 7711 7712 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714 7715 eval supported=\$$cacheid 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7717printf "%s\n" "$supported" >&6; } 7718 if test "$supported" = "yes" ; then 7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7720 found="yes" 7721 fi 7722 fi 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738xorg_testset_save_CFLAGS="$CFLAGS" 7739 7740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7744if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7745then : 7746 printf %s "(cached) " >&6 7747else $as_nop 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750int i; 7751_ACEOF 7752if ac_fn_c_try_compile "$LINENO" 7753then : 7754 xorg_cv_cc_flag_unknown_warning_option=yes 7755else $as_nop 7756 xorg_cv_cc_flag_unknown_warning_option=no 7757fi 7758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7759fi 7760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7763 CFLAGS="$xorg_testset_save_CFLAGS" 7764fi 7765 7766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7769 fi 7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7774then : 7775 printf %s "(cached) " >&6 7776else $as_nop 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780_ACEOF 7781if ac_fn_c_try_compile "$LINENO" 7782then : 7783 xorg_cv_cc_flag_unused_command_line_argument=yes 7784else $as_nop 7785 xorg_cv_cc_flag_unused_command_line_argument=no 7786fi 7787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7788fi 7789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7792 CFLAGS="$xorg_testset_save_CFLAGS" 7793fi 7794 7795found="no" 7796 7797 if test $found = "no" ; then 7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 fi 7801 7802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7804 fi 7805 7806 CFLAGS="$CFLAGS -Werror=sequence-point" 7807 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7809printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7810 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7811 if eval test \${$cacheid+y} 7812then : 7813 printf %s "(cached) " >&6 7814else $as_nop 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817int i; 7818int 7819main (void) 7820{ 7821 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826if ac_fn_c_try_link "$LINENO" 7827then : 7828 eval $cacheid=yes 7829else $as_nop 7830 eval $cacheid=no 7831fi 7832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7833 conftest$ac_exeext conftest.$ac_ext 7834fi 7835 7836 7837 CFLAGS="$xorg_testset_save_CFLAGS" 7838 7839 eval supported=\$$cacheid 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7841printf "%s\n" "$supported" >&6; } 7842 if test "$supported" = "yes" ; then 7843 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7844 found="yes" 7845 fi 7846 fi 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862xorg_testset_save_CFLAGS="$CFLAGS" 7863 7864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7868if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7869then : 7870 printf %s "(cached) " >&6 7871else $as_nop 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874int i; 7875_ACEOF 7876if ac_fn_c_try_compile "$LINENO" 7877then : 7878 xorg_cv_cc_flag_unknown_warning_option=yes 7879else $as_nop 7880 xorg_cv_cc_flag_unknown_warning_option=no 7881fi 7882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7883fi 7884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888fi 7889 7890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7898then : 7899 printf %s "(cached) " >&6 7900else $as_nop 7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902/* end confdefs.h. */ 7903int i; 7904_ACEOF 7905if ac_fn_c_try_compile "$LINENO" 7906then : 7907 xorg_cv_cc_flag_unused_command_line_argument=yes 7908else $as_nop 7909 xorg_cv_cc_flag_unused_command_line_argument=no 7910fi 7911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7912fi 7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7916 CFLAGS="$xorg_testset_save_CFLAGS" 7917fi 7918 7919found="no" 7920 7921 if test $found = "no" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7928 fi 7929 7930 CFLAGS="$CFLAGS -Werror=return-type" 7931 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7933printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7934 cacheid=xorg_cv_cc_flag__Werror_return_type 7935 if eval test \${$cacheid+y} 7936then : 7937 printf %s "(cached) " >&6 7938else $as_nop 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941int i; 7942int 7943main (void) 7944{ 7945 7946 ; 7947 return 0; 7948} 7949_ACEOF 7950if ac_fn_c_try_link "$LINENO" 7951then : 7952 eval $cacheid=yes 7953else $as_nop 7954 eval $cacheid=no 7955fi 7956rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7957 conftest$ac_exeext conftest.$ac_ext 7958fi 7959 7960 7961 CFLAGS="$xorg_testset_save_CFLAGS" 7962 7963 eval supported=\$$cacheid 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7965printf "%s\n" "$supported" >&6; } 7966 if test "$supported" = "yes" ; then 7967 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7968 found="yes" 7969 fi 7970 fi 7971 7972 if test $found = "no" ; then 7973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7975 fi 7976 7977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7979 fi 7980 7981 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7982 7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7984printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7985 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7986 if eval test \${$cacheid+y} 7987then : 7988 printf %s "(cached) " >&6 7989else $as_nop 7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7991/* end confdefs.h. */ 7992int i; 7993int 7994main (void) 7995{ 7996 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001if ac_fn_c_try_link "$LINENO" 8002then : 8003 eval $cacheid=yes 8004else $as_nop 8005 eval $cacheid=no 8006fi 8007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8008 conftest$ac_exeext conftest.$ac_ext 8009fi 8010 8011 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013 8014 eval supported=\$$cacheid 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8016printf "%s\n" "$supported" >&6; } 8017 if test "$supported" = "yes" ; then 8018 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8019 found="yes" 8020 fi 8021 fi 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037xorg_testset_save_CFLAGS="$CFLAGS" 8038 8039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8042printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8043if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8044then : 8045 printf %s "(cached) " >&6 8046else $as_nop 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049int i; 8050_ACEOF 8051if ac_fn_c_try_compile "$LINENO" 8052then : 8053 xorg_cv_cc_flag_unknown_warning_option=yes 8054else $as_nop 8055 xorg_cv_cc_flag_unknown_warning_option=no 8056fi 8057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8058fi 8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063fi 8064 8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8072if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8073then : 8074 printf %s "(cached) " >&6 8075else $as_nop 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078int i; 8079_ACEOF 8080if ac_fn_c_try_compile "$LINENO" 8081then : 8082 xorg_cv_cc_flag_unused_command_line_argument=yes 8083else $as_nop 8084 xorg_cv_cc_flag_unused_command_line_argument=no 8085fi 8086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8087fi 8088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8089printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8091 CFLAGS="$xorg_testset_save_CFLAGS" 8092fi 8093 8094found="no" 8095 8096 if test $found = "no" ; then 8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099 fi 8100 8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8103 fi 8104 8105 CFLAGS="$CFLAGS -Werror=trigraphs" 8106 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8108printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8109 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8110 if eval test \${$cacheid+y} 8111then : 8112 printf %s "(cached) " >&6 8113else $as_nop 8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115/* end confdefs.h. */ 8116int i; 8117int 8118main (void) 8119{ 8120 8121 ; 8122 return 0; 8123} 8124_ACEOF 8125if ac_fn_c_try_link "$LINENO" 8126then : 8127 eval $cacheid=yes 8128else $as_nop 8129 eval $cacheid=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8132 conftest$ac_exeext conftest.$ac_ext 8133fi 8134 8135 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137 8138 eval supported=\$$cacheid 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8140printf "%s\n" "$supported" >&6; } 8141 if test "$supported" = "yes" ; then 8142 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8143 found="yes" 8144 fi 8145 fi 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161xorg_testset_save_CFLAGS="$CFLAGS" 8162 8163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8167if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8168then : 8169 printf %s "(cached) " >&6 8170else $as_nop 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174_ACEOF 8175if ac_fn_c_try_compile "$LINENO" 8176then : 8177 xorg_cv_cc_flag_unknown_warning_option=yes 8178else $as_nop 8179 xorg_cv_cc_flag_unknown_warning_option=no 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8182fi 8183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8184printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8186 CFLAGS="$xorg_testset_save_CFLAGS" 8187fi 8188 8189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8192 fi 8193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8195printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8196if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8197then : 8198 printf %s "(cached) " >&6 8199else $as_nop 8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201/* end confdefs.h. */ 8202int i; 8203_ACEOF 8204if ac_fn_c_try_compile "$LINENO" 8205then : 8206 xorg_cv_cc_flag_unused_command_line_argument=yes 8207else $as_nop 8208 xorg_cv_cc_flag_unused_command_line_argument=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8211fi 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218found="no" 8219 8220 if test $found = "no" ; then 8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223 fi 8224 8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227 fi 8228 8229 CFLAGS="$CFLAGS -Werror=array-bounds" 8230 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8232printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8233 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8234 if eval test \${$cacheid+y} 8235then : 8236 printf %s "(cached) " >&6 8237else $as_nop 8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239/* end confdefs.h. */ 8240int i; 8241int 8242main (void) 8243{ 8244 8245 ; 8246 return 0; 8247} 8248_ACEOF 8249if ac_fn_c_try_link "$LINENO" 8250then : 8251 eval $cacheid=yes 8252else $as_nop 8253 eval $cacheid=no 8254fi 8255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8256 conftest$ac_exeext conftest.$ac_ext 8257fi 8258 8259 8260 CFLAGS="$xorg_testset_save_CFLAGS" 8261 8262 eval supported=\$$cacheid 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8264printf "%s\n" "$supported" >&6; } 8265 if test "$supported" = "yes" ; then 8266 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8267 found="yes" 8268 fi 8269 fi 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285xorg_testset_save_CFLAGS="$CFLAGS" 8286 8287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8291if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8292then : 8293 printf %s "(cached) " >&6 8294else $as_nop 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298_ACEOF 8299if ac_fn_c_try_compile "$LINENO" 8300then : 8301 xorg_cv_cc_flag_unknown_warning_option=yes 8302else $as_nop 8303 xorg_cv_cc_flag_unknown_warning_option=no 8304fi 8305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8306fi 8307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8310 CFLAGS="$xorg_testset_save_CFLAGS" 8311fi 8312 8313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8316 fi 8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8320if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8321then : 8322 printf %s "(cached) " >&6 8323else $as_nop 8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8325/* end confdefs.h. */ 8326int i; 8327_ACEOF 8328if ac_fn_c_try_compile "$LINENO" 8329then : 8330 xorg_cv_cc_flag_unused_command_line_argument=yes 8331else $as_nop 8332 xorg_cv_cc_flag_unused_command_line_argument=no 8333fi 8334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8335fi 8336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8337printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8339 CFLAGS="$xorg_testset_save_CFLAGS" 8340fi 8341 8342found="no" 8343 8344 if test $found = "no" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 8349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8351 fi 8352 8353 CFLAGS="$CFLAGS -Werror=write-strings" 8354 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8356printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8357 cacheid=xorg_cv_cc_flag__Werror_write_strings 8358 if eval test \${$cacheid+y} 8359then : 8360 printf %s "(cached) " >&6 8361else $as_nop 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364int i; 8365int 8366main (void) 8367{ 8368 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373if ac_fn_c_try_link "$LINENO" 8374then : 8375 eval $cacheid=yes 8376else $as_nop 8377 eval $cacheid=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8380 conftest$ac_exeext conftest.$ac_ext 8381fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388printf "%s\n" "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8416then : 8417 printf %s "(cached) " >&6 8418else $as_nop 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422_ACEOF 8423if ac_fn_c_try_compile "$LINENO" 8424then : 8425 xorg_cv_cc_flag_unknown_warning_option=yes 8426else $as_nop 8427 xorg_cv_cc_flag_unknown_warning_option=no 8428fi 8429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8430fi 8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8434 CFLAGS="$xorg_testset_save_CFLAGS" 8435fi 8436 8437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 fi 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8444if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8445then : 8446 printf %s "(cached) " >&6 8447else $as_nop 8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8449/* end confdefs.h. */ 8450int i; 8451_ACEOF 8452if ac_fn_c_try_compile "$LINENO" 8453then : 8454 xorg_cv_cc_flag_unused_command_line_argument=yes 8455else $as_nop 8456 xorg_cv_cc_flag_unused_command_line_argument=no 8457fi 8458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8459fi 8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8463 CFLAGS="$xorg_testset_save_CFLAGS" 8464fi 8465 8466found="no" 8467 8468 if test $found = "no" ; then 8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 fi 8472 8473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8475 fi 8476 8477 CFLAGS="$CFLAGS -Werror=address" 8478 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8480printf %s "checking if $CC supports -Werror=address... " >&6; } 8481 cacheid=xorg_cv_cc_flag__Werror_address 8482 if eval test \${$cacheid+y} 8483then : 8484 printf %s "(cached) " >&6 8485else $as_nop 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489int 8490main (void) 8491{ 8492 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497if ac_fn_c_try_link "$LINENO" 8498then : 8499 eval $cacheid=yes 8500else $as_nop 8501 eval $cacheid=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8504 conftest$ac_exeext conftest.$ac_ext 8505fi 8506 8507 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509 8510 eval supported=\$$cacheid 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8512printf "%s\n" "$supported" >&6; } 8513 if test "$supported" = "yes" ; then 8514 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8515 found="yes" 8516 fi 8517 fi 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533xorg_testset_save_CFLAGS="$CFLAGS" 8534 8535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8539if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8540then : 8541 printf %s "(cached) " >&6 8542else $as_nop 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO" 8548then : 8549 xorg_cv_cc_flag_unknown_warning_option=yes 8550else $as_nop 8551 xorg_cv_cc_flag_unknown_warning_option=no 8552fi 8553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8554fi 8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8558 CFLAGS="$xorg_testset_save_CFLAGS" 8559fi 8560 8561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8564 fi 8565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8568if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8569then : 8570 printf %s "(cached) " >&6 8571else $as_nop 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573/* end confdefs.h. */ 8574int i; 8575_ACEOF 8576if ac_fn_c_try_compile "$LINENO" 8577then : 8578 xorg_cv_cc_flag_unused_command_line_argument=yes 8579else $as_nop 8580 xorg_cv_cc_flag_unused_command_line_argument=no 8581fi 8582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8583fi 8584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588fi 8589 8590found="no" 8591 8592 if test $found = "no" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 fi 8600 8601 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8602 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8604printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8605 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8606 if eval test \${$cacheid+y} 8607then : 8608 printf %s "(cached) " >&6 8609else $as_nop 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613int 8614main (void) 8615{ 8616 8617 ; 8618 return 0; 8619} 8620_ACEOF 8621if ac_fn_c_try_link "$LINENO" 8622then : 8623 eval $cacheid=yes 8624else $as_nop 8625 eval $cacheid=no 8626fi 8627rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8628 conftest$ac_exeext conftest.$ac_ext 8629fi 8630 8631 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633 8634 eval supported=\$$cacheid 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8636printf "%s\n" "$supported" >&6; } 8637 if test "$supported" = "yes" ; then 8638 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8639 found="yes" 8640 fi 8641 fi 8642 8643 if test $found = "no" ; then 8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8646 fi 8647 8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8650 fi 8651 8652 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8653 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8655printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8656 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8657 if eval test \${$cacheid+y} 8658then : 8659 printf %s "(cached) " >&6 8660else $as_nop 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662/* end confdefs.h. */ 8663int i; 8664int 8665main (void) 8666{ 8667 8668 ; 8669 return 0; 8670} 8671_ACEOF 8672if ac_fn_c_try_link "$LINENO" 8673then : 8674 eval $cacheid=yes 8675else $as_nop 8676 eval $cacheid=no 8677fi 8678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8679 conftest$ac_exeext conftest.$ac_ext 8680fi 8681 8682 8683 CFLAGS="$xorg_testset_save_CFLAGS" 8684 8685 eval supported=\$$cacheid 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8687printf "%s\n" "$supported" >&6; } 8688 if test "$supported" = "yes" ; then 8689 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8690 found="yes" 8691 fi 8692 fi 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708xorg_testset_save_CFLAGS="$CFLAGS" 8709 8710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8714if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8715then : 8716 printf %s "(cached) " >&6 8717else $as_nop 8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8719/* end confdefs.h. */ 8720int i; 8721_ACEOF 8722if ac_fn_c_try_compile "$LINENO" 8723then : 8724 xorg_cv_cc_flag_unknown_warning_option=yes 8725else $as_nop 8726 xorg_cv_cc_flag_unknown_warning_option=no 8727fi 8728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8729fi 8730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8731printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8733 CFLAGS="$xorg_testset_save_CFLAGS" 8734fi 8735 8736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8739 fi 8740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8742printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8743if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8744then : 8745 printf %s "(cached) " >&6 8746else $as_nop 8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8748/* end confdefs.h. */ 8749int i; 8750_ACEOF 8751if ac_fn_c_try_compile "$LINENO" 8752then : 8753 xorg_cv_cc_flag_unused_command_line_argument=yes 8754else $as_nop 8755 xorg_cv_cc_flag_unused_command_line_argument=no 8756fi 8757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8758fi 8759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8762 CFLAGS="$xorg_testset_save_CFLAGS" 8763fi 8764 8765found="no" 8766 8767 if test $found = "no" ; then 8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 fi 8771 8772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8774 fi 8775 8776 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8777 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8779printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8780 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8781 if eval test \${$cacheid+y} 8782then : 8783 printf %s "(cached) " >&6 8784else $as_nop 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786/* end confdefs.h. */ 8787int i; 8788int 8789main (void) 8790{ 8791 8792 ; 8793 return 0; 8794} 8795_ACEOF 8796if ac_fn_c_try_link "$LINENO" 8797then : 8798 eval $cacheid=yes 8799else $as_nop 8800 eval $cacheid=no 8801fi 8802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8803 conftest$ac_exeext conftest.$ac_ext 8804fi 8805 8806 8807 CFLAGS="$xorg_testset_save_CFLAGS" 8808 8809 eval supported=\$$cacheid 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8811printf "%s\n" "$supported" >&6; } 8812 if test "$supported" = "yes" ; then 8813 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8814 found="yes" 8815 fi 8816 fi 8817 8818 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8819else 8820{ 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 8821printf "%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;} 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835xorg_testset_save_CFLAGS="$CFLAGS" 8836 8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8842then : 8843 printf %s "(cached) " >&6 8844else $as_nop 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848_ACEOF 8849if ac_fn_c_try_compile "$LINENO" 8850then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852else $as_nop 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8856fi 8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8871then : 8872 printf %s "(cached) " >&6 8873else $as_nop 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876int i; 8877_ACEOF 8878if ac_fn_c_try_compile "$LINENO" 8879then : 8880 xorg_cv_cc_flag_unused_command_line_argument=yes 8881else $as_nop 8882 xorg_cv_cc_flag_unused_command_line_argument=no 8883fi 8884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8885fi 8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890fi 8891 8892found="no" 8893 8894 if test $found = "no" ; then 8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 8899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 fi 8902 8903 CFLAGS="$CFLAGS -Wimplicit" 8904 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8906printf %s "checking if $CC supports -Wimplicit... " >&6; } 8907 cacheid=xorg_cv_cc_flag__Wimplicit 8908 if eval test \${$cacheid+y} 8909then : 8910 printf %s "(cached) " >&6 8911else $as_nop 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915int 8916main (void) 8917{ 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO" 8924then : 8925 eval $cacheid=yes 8926else $as_nop 8927 eval $cacheid=no 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8930 conftest$ac_exeext conftest.$ac_ext 8931fi 8932 8933 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 8936 eval supported=\$$cacheid 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8938printf "%s\n" "$supported" >&6; } 8939 if test "$supported" = "yes" ; then 8940 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8941 found="yes" 8942 fi 8943 fi 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959xorg_testset_save_CFLAGS="$CFLAGS" 8960 8961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8966then : 8967 printf %s "(cached) " >&6 8968else $as_nop 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971int i; 8972_ACEOF 8973if ac_fn_c_try_compile "$LINENO" 8974then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976else $as_nop 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978fi 8979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8980fi 8981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985fi 8986 8987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8995then : 8996 printf %s "(cached) " >&6 8997else $as_nop 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999/* end confdefs.h. */ 9000int i; 9001_ACEOF 9002if ac_fn_c_try_compile "$LINENO" 9003then : 9004 xorg_cv_cc_flag_unused_command_line_argument=yes 9005else $as_nop 9006 xorg_cv_cc_flag_unused_command_line_argument=no 9007fi 9008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9009fi 9010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014fi 9015 9016found="no" 9017 9018 if test $found = "no" ; then 9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9021 fi 9022 9023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 fi 9026 9027 CFLAGS="$CFLAGS -Wnonnull" 9028 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9030printf %s "checking if $CC supports -Wnonnull... " >&6; } 9031 cacheid=xorg_cv_cc_flag__Wnonnull 9032 if eval test \${$cacheid+y} 9033then : 9034 printf %s "(cached) " >&6 9035else $as_nop 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038int i; 9039int 9040main (void) 9041{ 9042 9043 ; 9044 return 0; 9045} 9046_ACEOF 9047if ac_fn_c_try_link "$LINENO" 9048then : 9049 eval $cacheid=yes 9050else $as_nop 9051 eval $cacheid=no 9052fi 9053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 conftest$ac_exeext conftest.$ac_ext 9055fi 9056 9057 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9060 eval supported=\$$cacheid 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062printf "%s\n" "$supported" >&6; } 9063 if test "$supported" = "yes" ; then 9064 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9065 found="yes" 9066 fi 9067 fi 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083xorg_testset_save_CFLAGS="$CFLAGS" 9084 9085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9089if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9090then : 9091 printf %s "(cached) " >&6 9092else $as_nop 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095int i; 9096_ACEOF 9097if ac_fn_c_try_compile "$LINENO" 9098then : 9099 xorg_cv_cc_flag_unknown_warning_option=yes 9100else $as_nop 9101 xorg_cv_cc_flag_unknown_warning_option=no 9102fi 9103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9104fi 9105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109fi 9110 9111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9118if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9119then : 9120 printf %s "(cached) " >&6 9121else $as_nop 9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9123/* end confdefs.h. */ 9124int i; 9125_ACEOF 9126if ac_fn_c_try_compile "$LINENO" 9127then : 9128 xorg_cv_cc_flag_unused_command_line_argument=yes 9129else $as_nop 9130 xorg_cv_cc_flag_unused_command_line_argument=no 9131fi 9132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9133fi 9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9137 CFLAGS="$xorg_testset_save_CFLAGS" 9138fi 9139 9140found="no" 9141 9142 if test $found = "no" ; then 9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9145 fi 9146 9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9149 fi 9150 9151 CFLAGS="$CFLAGS -Winit-self" 9152 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9154printf %s "checking if $CC supports -Winit-self... " >&6; } 9155 cacheid=xorg_cv_cc_flag__Winit_self 9156 if eval test \${$cacheid+y} 9157then : 9158 printf %s "(cached) " >&6 9159else $as_nop 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162int i; 9163int 9164main (void) 9165{ 9166 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171if ac_fn_c_try_link "$LINENO" 9172then : 9173 eval $cacheid=yes 9174else $as_nop 9175 eval $cacheid=no 9176fi 9177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9178 conftest$ac_exeext conftest.$ac_ext 9179fi 9180 9181 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183 9184 eval supported=\$$cacheid 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9186printf "%s\n" "$supported" >&6; } 9187 if test "$supported" = "yes" ; then 9188 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9189 found="yes" 9190 fi 9191 fi 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207xorg_testset_save_CFLAGS="$CFLAGS" 9208 9209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9213if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9214then : 9215 printf %s "(cached) " >&6 9216else $as_nop 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220_ACEOF 9221if ac_fn_c_try_compile "$LINENO" 9222then : 9223 xorg_cv_cc_flag_unknown_warning_option=yes 9224else $as_nop 9225 xorg_cv_cc_flag_unknown_warning_option=no 9226fi 9227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9228fi 9229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233fi 9234 9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9243then : 9244 printf %s "(cached) " >&6 9245else $as_nop 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249_ACEOF 9250if ac_fn_c_try_compile "$LINENO" 9251then : 9252 xorg_cv_cc_flag_unused_command_line_argument=yes 9253else $as_nop 9254 xorg_cv_cc_flag_unused_command_line_argument=no 9255fi 9256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9257fi 9258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9261 CFLAGS="$xorg_testset_save_CFLAGS" 9262fi 9263 9264found="no" 9265 9266 if test $found = "no" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 9271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9273 fi 9274 9275 CFLAGS="$CFLAGS -Wmain" 9276 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9278printf %s "checking if $CC supports -Wmain... " >&6; } 9279 cacheid=xorg_cv_cc_flag__Wmain 9280 if eval test \${$cacheid+y} 9281then : 9282 printf %s "(cached) " >&6 9283else $as_nop 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285/* end confdefs.h. */ 9286int i; 9287int 9288main (void) 9289{ 9290 9291 ; 9292 return 0; 9293} 9294_ACEOF 9295if ac_fn_c_try_link "$LINENO" 9296then : 9297 eval $cacheid=yes 9298else $as_nop 9299 eval $cacheid=no 9300fi 9301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9302 conftest$ac_exeext conftest.$ac_ext 9303fi 9304 9305 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307 9308 eval supported=\$$cacheid 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9310printf "%s\n" "$supported" >&6; } 9311 if test "$supported" = "yes" ; then 9312 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9313 found="yes" 9314 fi 9315 fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331xorg_testset_save_CFLAGS="$CFLAGS" 9332 9333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9338then : 9339 printf %s "(cached) " >&6 9340else $as_nop 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343int i; 9344_ACEOF 9345if ac_fn_c_try_compile "$LINENO" 9346then : 9347 xorg_cv_cc_flag_unknown_warning_option=yes 9348else $as_nop 9349 xorg_cv_cc_flag_unknown_warning_option=no 9350fi 9351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9352fi 9353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357fi 9358 9359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9366if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9367then : 9368 printf %s "(cached) " >&6 9369else $as_nop 9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9371/* end confdefs.h. */ 9372int i; 9373_ACEOF 9374if ac_fn_c_try_compile "$LINENO" 9375then : 9376 xorg_cv_cc_flag_unused_command_line_argument=yes 9377else $as_nop 9378 xorg_cv_cc_flag_unused_command_line_argument=no 9379fi 9380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9381fi 9382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386fi 9387 9388found="no" 9389 9390 if test $found = "no" ; then 9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9393 fi 9394 9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9397 fi 9398 9399 CFLAGS="$CFLAGS -Wmissing-braces" 9400 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9402printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9403 cacheid=xorg_cv_cc_flag__Wmissing_braces 9404 if eval test \${$cacheid+y} 9405then : 9406 printf %s "(cached) " >&6 9407else $as_nop 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409/* end confdefs.h. */ 9410int i; 9411int 9412main (void) 9413{ 9414 9415 ; 9416 return 0; 9417} 9418_ACEOF 9419if ac_fn_c_try_link "$LINENO" 9420then : 9421 eval $cacheid=yes 9422else $as_nop 9423 eval $cacheid=no 9424fi 9425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9426 conftest$ac_exeext conftest.$ac_ext 9427fi 9428 9429 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431 9432 eval supported=\$$cacheid 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9434printf "%s\n" "$supported" >&6; } 9435 if test "$supported" = "yes" ; then 9436 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9437 found="yes" 9438 fi 9439 fi 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455xorg_testset_save_CFLAGS="$CFLAGS" 9456 9457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9461if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9462then : 9463 printf %s "(cached) " >&6 9464else $as_nop 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467int i; 9468_ACEOF 9469if ac_fn_c_try_compile "$LINENO" 9470then : 9471 xorg_cv_cc_flag_unknown_warning_option=yes 9472else $as_nop 9473 xorg_cv_cc_flag_unknown_warning_option=no 9474fi 9475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9476fi 9477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481fi 9482 9483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9490if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9491then : 9492 printf %s "(cached) " >&6 9493else $as_nop 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495/* end confdefs.h. */ 9496int i; 9497_ACEOF 9498if ac_fn_c_try_compile "$LINENO" 9499then : 9500 xorg_cv_cc_flag_unused_command_line_argument=yes 9501else $as_nop 9502 xorg_cv_cc_flag_unused_command_line_argument=no 9503fi 9504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9505fi 9506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510fi 9511 9512found="no" 9513 9514 if test $found = "no" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 fi 9522 9523 CFLAGS="$CFLAGS -Wsequence-point" 9524 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9526printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9527 cacheid=xorg_cv_cc_flag__Wsequence_point 9528 if eval test \${$cacheid+y} 9529then : 9530 printf %s "(cached) " >&6 9531else $as_nop 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535int 9536main (void) 9537{ 9538 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543if ac_fn_c_try_link "$LINENO" 9544then : 9545 eval $cacheid=yes 9546else $as_nop 9547 eval $cacheid=no 9548fi 9549rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9550 conftest$ac_exeext conftest.$ac_ext 9551fi 9552 9553 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 9556 eval supported=\$$cacheid 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9558printf "%s\n" "$supported" >&6; } 9559 if test "$supported" = "yes" ; then 9560 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9561 found="yes" 9562 fi 9563 fi 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579xorg_testset_save_CFLAGS="$CFLAGS" 9580 9581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9586then : 9587 printf %s "(cached) " >&6 9588else $as_nop 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592_ACEOF 9593if ac_fn_c_try_compile "$LINENO" 9594then : 9595 xorg_cv_cc_flag_unknown_warning_option=yes 9596else $as_nop 9597 xorg_cv_cc_flag_unknown_warning_option=no 9598fi 9599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9600fi 9601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605fi 9606 9607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 fi 9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9614if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9615then : 9616 printf %s "(cached) " >&6 9617else $as_nop 9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9619/* end confdefs.h. */ 9620int i; 9621_ACEOF 9622if ac_fn_c_try_compile "$LINENO" 9623then : 9624 xorg_cv_cc_flag_unused_command_line_argument=yes 9625else $as_nop 9626 xorg_cv_cc_flag_unused_command_line_argument=no 9627fi 9628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9629fi 9630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9633 CFLAGS="$xorg_testset_save_CFLAGS" 9634fi 9635 9636found="no" 9637 9638 if test $found = "no" ; then 9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9641 fi 9642 9643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9645 fi 9646 9647 CFLAGS="$CFLAGS -Wreturn-type" 9648 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9650printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9651 cacheid=xorg_cv_cc_flag__Wreturn_type 9652 if eval test \${$cacheid+y} 9653then : 9654 printf %s "(cached) " >&6 9655else $as_nop 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658int i; 9659int 9660main (void) 9661{ 9662 9663 ; 9664 return 0; 9665} 9666_ACEOF 9667if ac_fn_c_try_link "$LINENO" 9668then : 9669 eval $cacheid=yes 9670else $as_nop 9671 eval $cacheid=no 9672fi 9673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9674 conftest$ac_exeext conftest.$ac_ext 9675fi 9676 9677 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679 9680 eval supported=\$$cacheid 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9682printf "%s\n" "$supported" >&6; } 9683 if test "$supported" = "yes" ; then 9684 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9685 found="yes" 9686 fi 9687 fi 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703xorg_testset_save_CFLAGS="$CFLAGS" 9704 9705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9710then : 9711 printf %s "(cached) " >&6 9712else $as_nop 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715int i; 9716_ACEOF 9717if ac_fn_c_try_compile "$LINENO" 9718then : 9719 xorg_cv_cc_flag_unknown_warning_option=yes 9720else $as_nop 9721 xorg_cv_cc_flag_unknown_warning_option=no 9722fi 9723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9724fi 9725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729fi 9730 9731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9739then : 9740 printf %s "(cached) " >&6 9741else $as_nop 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744int i; 9745_ACEOF 9746if ac_fn_c_try_compile "$LINENO" 9747then : 9748 xorg_cv_cc_flag_unused_command_line_argument=yes 9749else $as_nop 9750 xorg_cv_cc_flag_unused_command_line_argument=no 9751fi 9752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9753fi 9754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9757 CFLAGS="$xorg_testset_save_CFLAGS" 9758fi 9759 9760found="no" 9761 9762 if test $found = "no" ; then 9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9765 fi 9766 9767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9769 fi 9770 9771 CFLAGS="$CFLAGS -Wtrigraphs" 9772 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9774printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9775 cacheid=xorg_cv_cc_flag__Wtrigraphs 9776 if eval test \${$cacheid+y} 9777then : 9778 printf %s "(cached) " >&6 9779else $as_nop 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781/* end confdefs.h. */ 9782int i; 9783int 9784main (void) 9785{ 9786 9787 ; 9788 return 0; 9789} 9790_ACEOF 9791if ac_fn_c_try_link "$LINENO" 9792then : 9793 eval $cacheid=yes 9794else $as_nop 9795 eval $cacheid=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9798 conftest$ac_exeext conftest.$ac_ext 9799fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806printf "%s\n" "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9834then : 9835 printf %s "(cached) " >&6 9836else $as_nop 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840_ACEOF 9841if ac_fn_c_try_compile "$LINENO" 9842then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844else $as_nop 9845 xorg_cv_cc_flag_unknown_warning_option=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9848fi 9849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853fi 9854 9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9863then : 9864 printf %s "(cached) " >&6 9865else $as_nop 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868int i; 9869_ACEOF 9870if ac_fn_c_try_compile "$LINENO" 9871then : 9872 xorg_cv_cc_flag_unused_command_line_argument=yes 9873else $as_nop 9874 xorg_cv_cc_flag_unused_command_line_argument=no 9875fi 9876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9877fi 9878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9881 CFLAGS="$xorg_testset_save_CFLAGS" 9882fi 9883 9884found="no" 9885 9886 if test $found = "no" ; then 9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9889 fi 9890 9891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9893 fi 9894 9895 CFLAGS="$CFLAGS -Warray-bounds" 9896 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9898printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9899 cacheid=xorg_cv_cc_flag__Warray_bounds 9900 if eval test \${$cacheid+y} 9901then : 9902 printf %s "(cached) " >&6 9903else $as_nop 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906int i; 9907int 9908main (void) 9909{ 9910 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915if ac_fn_c_try_link "$LINENO" 9916then : 9917 eval $cacheid=yes 9918else $as_nop 9919 eval $cacheid=no 9920fi 9921rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9922 conftest$ac_exeext conftest.$ac_ext 9923fi 9924 9925 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927 9928 eval supported=\$$cacheid 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9930printf "%s\n" "$supported" >&6; } 9931 if test "$supported" = "yes" ; then 9932 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9933 found="yes" 9934 fi 9935 fi 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951xorg_testset_save_CFLAGS="$CFLAGS" 9952 9953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9957if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9958then : 9959 printf %s "(cached) " >&6 9960else $as_nop 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int i; 9964_ACEOF 9965if ac_fn_c_try_compile "$LINENO" 9966then : 9967 xorg_cv_cc_flag_unknown_warning_option=yes 9968else $as_nop 9969 xorg_cv_cc_flag_unknown_warning_option=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9972fi 9973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977fi 9978 9979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9982 fi 9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9986if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9987then : 9988 printf %s "(cached) " >&6 9989else $as_nop 9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9991/* end confdefs.h. */ 9992int i; 9993_ACEOF 9994if ac_fn_c_try_compile "$LINENO" 9995then : 9996 xorg_cv_cc_flag_unused_command_line_argument=yes 9997else $as_nop 9998 xorg_cv_cc_flag_unused_command_line_argument=no 9999fi 10000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10001fi 10002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10005 CFLAGS="$xorg_testset_save_CFLAGS" 10006fi 10007 10008found="no" 10009 10010 if test $found = "no" ; then 10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10013 fi 10014 10015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10017 fi 10018 10019 CFLAGS="$CFLAGS -Wwrite-strings" 10020 10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10022printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10023 cacheid=xorg_cv_cc_flag__Wwrite_strings 10024 if eval test \${$cacheid+y} 10025then : 10026 printf %s "(cached) " >&6 10027else $as_nop 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030int i; 10031int 10032main (void) 10033{ 10034 10035 ; 10036 return 0; 10037} 10038_ACEOF 10039if ac_fn_c_try_link "$LINENO" 10040then : 10041 eval $cacheid=yes 10042else $as_nop 10043 eval $cacheid=no 10044fi 10045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10046 conftest$ac_exeext conftest.$ac_ext 10047fi 10048 10049 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051 10052 eval supported=\$$cacheid 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10054printf "%s\n" "$supported" >&6; } 10055 if test "$supported" = "yes" ; then 10056 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10057 found="yes" 10058 fi 10059 fi 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075xorg_testset_save_CFLAGS="$CFLAGS" 10076 10077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10082then : 10083 printf %s "(cached) " >&6 10084else $as_nop 10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10086/* end confdefs.h. */ 10087int i; 10088_ACEOF 10089if ac_fn_c_try_compile "$LINENO" 10090then : 10091 xorg_cv_cc_flag_unknown_warning_option=yes 10092else $as_nop 10093 xorg_cv_cc_flag_unknown_warning_option=no 10094fi 10095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10096fi 10097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101fi 10102 10103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10106 fi 10107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10110if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10111then : 10112 printf %s "(cached) " >&6 10113else $as_nop 10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10115/* end confdefs.h. */ 10116int i; 10117_ACEOF 10118if ac_fn_c_try_compile "$LINENO" 10119then : 10120 xorg_cv_cc_flag_unused_command_line_argument=yes 10121else $as_nop 10122 xorg_cv_cc_flag_unused_command_line_argument=no 10123fi 10124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10125fi 10126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10129 CFLAGS="$xorg_testset_save_CFLAGS" 10130fi 10131 10132found="no" 10133 10134 if test $found = "no" ; then 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 fi 10138 10139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10141 fi 10142 10143 CFLAGS="$CFLAGS -Waddress" 10144 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10146printf %s "checking if $CC supports -Waddress... " >&6; } 10147 cacheid=xorg_cv_cc_flag__Waddress 10148 if eval test \${$cacheid+y} 10149then : 10150 printf %s "(cached) " >&6 10151else $as_nop 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153/* end confdefs.h. */ 10154int i; 10155int 10156main (void) 10157{ 10158 10159 ; 10160 return 0; 10161} 10162_ACEOF 10163if ac_fn_c_try_link "$LINENO" 10164then : 10165 eval $cacheid=yes 10166else $as_nop 10167 eval $cacheid=no 10168fi 10169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10170 conftest$ac_exeext conftest.$ac_ext 10171fi 10172 10173 10174 CFLAGS="$xorg_testset_save_CFLAGS" 10175 10176 eval supported=\$$cacheid 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10178printf "%s\n" "$supported" >&6; } 10179 if test "$supported" = "yes" ; then 10180 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10181 found="yes" 10182 fi 10183 fi 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199xorg_testset_save_CFLAGS="$CFLAGS" 10200 10201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10205if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10206then : 10207 printf %s "(cached) " >&6 10208else $as_nop 10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210/* end confdefs.h. */ 10211int i; 10212_ACEOF 10213if ac_fn_c_try_compile "$LINENO" 10214then : 10215 xorg_cv_cc_flag_unknown_warning_option=yes 10216else $as_nop 10217 xorg_cv_cc_flag_unknown_warning_option=no 10218fi 10219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10220fi 10221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225fi 10226 10227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10235then : 10236 printf %s "(cached) " >&6 10237else $as_nop 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239/* end confdefs.h. */ 10240int i; 10241_ACEOF 10242if ac_fn_c_try_compile "$LINENO" 10243then : 10244 xorg_cv_cc_flag_unused_command_line_argument=yes 10245else $as_nop 10246 xorg_cv_cc_flag_unused_command_line_argument=no 10247fi 10248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10249fi 10250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254fi 10255 10256found="no" 10257 10258 if test $found = "no" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 10263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10265 fi 10266 10267 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10268 10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10270printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10271 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10272 if eval test \${$cacheid+y} 10273then : 10274 printf %s "(cached) " >&6 10275else $as_nop 10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10277/* end confdefs.h. */ 10278int i; 10279int 10280main (void) 10281{ 10282 10283 ; 10284 return 0; 10285} 10286_ACEOF 10287if ac_fn_c_try_link "$LINENO" 10288then : 10289 eval $cacheid=yes 10290else $as_nop 10291 eval $cacheid=no 10292fi 10293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10294 conftest$ac_exeext conftest.$ac_ext 10295fi 10296 10297 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299 10300 eval supported=\$$cacheid 10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10302printf "%s\n" "$supported" >&6; } 10303 if test "$supported" = "yes" ; then 10304 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10305 found="yes" 10306 fi 10307 fi 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323xorg_testset_save_CFLAGS="$CFLAGS" 10324 10325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10329if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10330then : 10331 printf %s "(cached) " >&6 10332else $as_nop 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336_ACEOF 10337if ac_fn_c_try_compile "$LINENO" 10338then : 10339 xorg_cv_cc_flag_unknown_warning_option=yes 10340else $as_nop 10341 xorg_cv_cc_flag_unknown_warning_option=no 10342fi 10343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10344fi 10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10348 CFLAGS="$xorg_testset_save_CFLAGS" 10349fi 10350 10351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10354 fi 10355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10358if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10359then : 10360 printf %s "(cached) " >&6 10361else $as_nop 10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10363/* end confdefs.h. */ 10364int i; 10365_ACEOF 10366if ac_fn_c_try_compile "$LINENO" 10367then : 10368 xorg_cv_cc_flag_unused_command_line_argument=yes 10369else $as_nop 10370 xorg_cv_cc_flag_unused_command_line_argument=no 10371fi 10372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10373fi 10374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10377 CFLAGS="$xorg_testset_save_CFLAGS" 10378fi 10379 10380found="no" 10381 10382 if test $found = "no" ; then 10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10385 fi 10386 10387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10389 fi 10390 10391 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10392 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10394printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10395 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10396 if eval test \${$cacheid+y} 10397then : 10398 printf %s "(cached) " >&6 10399else $as_nop 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401/* end confdefs.h. */ 10402int i; 10403int 10404main (void) 10405{ 10406 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411if ac_fn_c_try_link "$LINENO" 10412then : 10413 eval $cacheid=yes 10414else $as_nop 10415 eval $cacheid=no 10416fi 10417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10418 conftest$ac_exeext conftest.$ac_ext 10419fi 10420 10421 10422 CFLAGS="$xorg_testset_save_CFLAGS" 10423 10424 eval supported=\$$cacheid 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10426printf "%s\n" "$supported" >&6; } 10427 if test "$supported" = "yes" ; then 10428 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10429 found="yes" 10430 fi 10431 fi 10432 10433 10434fi 10435 10436 10437 10438 10439 10440 10441 10442 CWARNFLAGS="$BASE_CFLAGS" 10443 if test "x$GCC" = xyes ; then 10444 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10445 fi 10446 10447 10448 10449 10450 10451 10452 10453 10454# Check whether --enable-strict-compilation was given. 10455if test ${enable_strict_compilation+y} 10456then : 10457 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10458else $as_nop 10459 STRICT_COMPILE=no 10460fi 10461 10462 10463 10464 10465 10466 10467STRICT_CFLAGS="" 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481xorg_testset_save_CFLAGS="$CFLAGS" 10482 10483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10487if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10488then : 10489 printf %s "(cached) " >&6 10490else $as_nop 10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493int i; 10494_ACEOF 10495if ac_fn_c_try_compile "$LINENO" 10496then : 10497 xorg_cv_cc_flag_unknown_warning_option=yes 10498else $as_nop 10499 xorg_cv_cc_flag_unknown_warning_option=no 10500fi 10501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10502fi 10503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10506 CFLAGS="$xorg_testset_save_CFLAGS" 10507fi 10508 10509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10512 fi 10513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10517then : 10518 printf %s "(cached) " >&6 10519else $as_nop 10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10521/* end confdefs.h. */ 10522int i; 10523_ACEOF 10524if ac_fn_c_try_compile "$LINENO" 10525then : 10526 xorg_cv_cc_flag_unused_command_line_argument=yes 10527else $as_nop 10528 xorg_cv_cc_flag_unused_command_line_argument=no 10529fi 10530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10531fi 10532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10535 CFLAGS="$xorg_testset_save_CFLAGS" 10536fi 10537 10538found="no" 10539 10540 if test $found = "no" ; then 10541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10543 fi 10544 10545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10547 fi 10548 10549 CFLAGS="$CFLAGS -pedantic" 10550 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10552printf %s "checking if $CC supports -pedantic... " >&6; } 10553 cacheid=xorg_cv_cc_flag__pedantic 10554 if eval test \${$cacheid+y} 10555then : 10556 printf %s "(cached) " >&6 10557else $as_nop 10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559/* end confdefs.h. */ 10560int i; 10561int 10562main (void) 10563{ 10564 10565 ; 10566 return 0; 10567} 10568_ACEOF 10569if ac_fn_c_try_link "$LINENO" 10570then : 10571 eval $cacheid=yes 10572else $as_nop 10573 eval $cacheid=no 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10576 conftest$ac_exeext conftest.$ac_ext 10577fi 10578 10579 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581 10582 eval supported=\$$cacheid 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10584printf "%s\n" "$supported" >&6; } 10585 if test "$supported" = "yes" ; then 10586 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10587 found="yes" 10588 fi 10589 fi 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605xorg_testset_save_CFLAGS="$CFLAGS" 10606 10607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10612then : 10613 printf %s "(cached) " >&6 10614else $as_nop 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617int i; 10618_ACEOF 10619if ac_fn_c_try_compile "$LINENO" 10620then : 10621 xorg_cv_cc_flag_unknown_warning_option=yes 10622else $as_nop 10623 xorg_cv_cc_flag_unknown_warning_option=no 10624fi 10625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10626fi 10627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10630 CFLAGS="$xorg_testset_save_CFLAGS" 10631fi 10632 10633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10636 fi 10637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10641then : 10642 printf %s "(cached) " >&6 10643else $as_nop 10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10645/* end confdefs.h. */ 10646int i; 10647_ACEOF 10648if ac_fn_c_try_compile "$LINENO" 10649then : 10650 xorg_cv_cc_flag_unused_command_line_argument=yes 10651else $as_nop 10652 xorg_cv_cc_flag_unused_command_line_argument=no 10653fi 10654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10655fi 10656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10659 CFLAGS="$xorg_testset_save_CFLAGS" 10660fi 10661 10662found="no" 10663 10664 if test $found = "no" ; then 10665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10667 fi 10668 10669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10671 fi 10672 10673 CFLAGS="$CFLAGS -Werror" 10674 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10676printf %s "checking if $CC supports -Werror... " >&6; } 10677 cacheid=xorg_cv_cc_flag__Werror 10678 if eval test \${$cacheid+y} 10679then : 10680 printf %s "(cached) " >&6 10681else $as_nop 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683/* end confdefs.h. */ 10684int i; 10685int 10686main (void) 10687{ 10688 10689 ; 10690 return 0; 10691} 10692_ACEOF 10693if ac_fn_c_try_link "$LINENO" 10694then : 10695 eval $cacheid=yes 10696else $as_nop 10697 eval $cacheid=no 10698fi 10699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10700 conftest$ac_exeext conftest.$ac_ext 10701fi 10702 10703 10704 CFLAGS="$xorg_testset_save_CFLAGS" 10705 10706 eval supported=\$$cacheid 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10708printf "%s\n" "$supported" >&6; } 10709 if test "$supported" = "yes" ; then 10710 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10711 found="yes" 10712 fi 10713 fi 10714 10715 if test $found = "no" ; then 10716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10718 fi 10719 10720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10722 fi 10723 10724 CFLAGS="$CFLAGS -errwarn" 10725 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10727printf %s "checking if $CC supports -errwarn... " >&6; } 10728 cacheid=xorg_cv_cc_flag__errwarn 10729 if eval test \${$cacheid+y} 10730then : 10731 printf %s "(cached) " >&6 10732else $as_nop 10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10734/* end confdefs.h. */ 10735int i; 10736int 10737main (void) 10738{ 10739 10740 ; 10741 return 0; 10742} 10743_ACEOF 10744if ac_fn_c_try_link "$LINENO" 10745then : 10746 eval $cacheid=yes 10747else $as_nop 10748 eval $cacheid=no 10749fi 10750rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10751 conftest$ac_exeext conftest.$ac_ext 10752fi 10753 10754 10755 CFLAGS="$xorg_testset_save_CFLAGS" 10756 10757 eval supported=\$$cacheid 10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10759printf "%s\n" "$supported" >&6; } 10760 if test "$supported" = "yes" ; then 10761 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10762 found="yes" 10763 fi 10764 fi 10765 10766 10767 10768# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10769# activate it with -Werror, so we add it here explicitly. 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783xorg_testset_save_CFLAGS="$CFLAGS" 10784 10785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10788printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10789if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10790then : 10791 printf %s "(cached) " >&6 10792else $as_nop 10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794/* end confdefs.h. */ 10795int i; 10796_ACEOF 10797if ac_fn_c_try_compile "$LINENO" 10798then : 10799 xorg_cv_cc_flag_unknown_warning_option=yes 10800else $as_nop 10801 xorg_cv_cc_flag_unknown_warning_option=no 10802fi 10803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10804fi 10805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10806printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10808 CFLAGS="$xorg_testset_save_CFLAGS" 10809fi 10810 10811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10814 fi 10815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10817printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10818if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10819then : 10820 printf %s "(cached) " >&6 10821else $as_nop 10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823/* end confdefs.h. */ 10824int i; 10825_ACEOF 10826if ac_fn_c_try_compile "$LINENO" 10827then : 10828 xorg_cv_cc_flag_unused_command_line_argument=yes 10829else $as_nop 10830 xorg_cv_cc_flag_unused_command_line_argument=no 10831fi 10832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10833fi 10834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10837 CFLAGS="$xorg_testset_save_CFLAGS" 10838fi 10839 10840found="no" 10841 10842 if test $found = "no" ; then 10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845 fi 10846 10847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10849 fi 10850 10851 CFLAGS="$CFLAGS -Werror=attributes" 10852 10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10854printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10855 cacheid=xorg_cv_cc_flag__Werror_attributes 10856 if eval test \${$cacheid+y} 10857then : 10858 printf %s "(cached) " >&6 10859else $as_nop 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862int i; 10863int 10864main (void) 10865{ 10866 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871if ac_fn_c_try_link "$LINENO" 10872then : 10873 eval $cacheid=yes 10874else $as_nop 10875 eval $cacheid=no 10876fi 10877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10878 conftest$ac_exeext conftest.$ac_ext 10879fi 10880 10881 10882 CFLAGS="$xorg_testset_save_CFLAGS" 10883 10884 eval supported=\$$cacheid 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10886printf "%s\n" "$supported" >&6; } 10887 if test "$supported" = "yes" ; then 10888 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10889 found="yes" 10890 fi 10891 fi 10892 10893 10894 10895if test "x$STRICT_COMPILE" = "xyes"; then 10896 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10897 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10898fi 10899 10900 10901 10902 10903 10904 10905cat >>confdefs.h <<_ACEOF 10906#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10907_ACEOF 10908 10909 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10910 if test "x$PVM" = "x"; then 10911 PVM="0" 10912 fi 10913 10914printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10915 10916 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10917 if test "x$PVP" = "x"; then 10918 PVP="0" 10919 fi 10920 10921printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10922 10923 10924 10925CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10926mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10927|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10928touch \$(top_srcdir)/ChangeLog; \ 10929echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10930 10931 10932 10933 10934macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10935INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10936mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10937|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10938touch \$(top_srcdir)/INSTALL; \ 10939echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10940 10941 10942 10943 10944 10945 10946case $host_os in 10947 solaris*) 10948 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10949 # check for a man page file found in later versions that use 10950 # traditional section numbers instead 10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10952printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10953if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10954then : 10955 printf %s "(cached) " >&6 10956else $as_nop 10957 test "$cross_compiling" = yes && 10958 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10959if test -r "/usr/share/man/man7/attributes.7"; then 10960 ac_cv_file__usr_share_man_man7_attributes_7=yes 10961else 10962 ac_cv_file__usr_share_man_man7_attributes_7=no 10963fi 10964fi 10965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10966printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10967if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10968then : 10969 SYSV_MAN_SECTIONS=false 10970else $as_nop 10971 SYSV_MAN_SECTIONS=true 10972fi 10973 10974 ;; 10975 *) SYSV_MAN_SECTIONS=false ;; 10976esac 10977 10978if test x$APP_MAN_SUFFIX = x ; then 10979 APP_MAN_SUFFIX=1 10980fi 10981if test x$APP_MAN_DIR = x ; then 10982 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10983fi 10984 10985if test x$LIB_MAN_SUFFIX = x ; then 10986 LIB_MAN_SUFFIX=3 10987fi 10988if test x$LIB_MAN_DIR = x ; then 10989 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10990fi 10991 10992if test x$FILE_MAN_SUFFIX = x ; then 10993 case $SYSV_MAN_SECTIONS in 10994 true) FILE_MAN_SUFFIX=4 ;; 10995 *) FILE_MAN_SUFFIX=5 ;; 10996 esac 10997fi 10998if test x$FILE_MAN_DIR = x ; then 10999 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11000fi 11001 11002if test x$MISC_MAN_SUFFIX = x ; then 11003 case $SYSV_MAN_SECTIONS in 11004 true) MISC_MAN_SUFFIX=5 ;; 11005 *) MISC_MAN_SUFFIX=7 ;; 11006 esac 11007fi 11008if test x$MISC_MAN_DIR = x ; then 11009 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11010fi 11011 11012if test x$DRIVER_MAN_SUFFIX = x ; then 11013 case $SYSV_MAN_SECTIONS in 11014 true) DRIVER_MAN_SUFFIX=7 ;; 11015 *) DRIVER_MAN_SUFFIX=4 ;; 11016 esac 11017fi 11018if test x$DRIVER_MAN_DIR = x ; then 11019 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11020fi 11021 11022if test x$ADMIN_MAN_SUFFIX = x ; then 11023 case $SYSV_MAN_SECTIONS in 11024 true) ADMIN_MAN_SUFFIX=1m ;; 11025 *) ADMIN_MAN_SUFFIX=8 ;; 11026 esac 11027fi 11028if test x$ADMIN_MAN_DIR = x ; then 11029 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11030fi 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046XORG_MAN_PAGE="X Version 11" 11047 11048MAN_SUBSTS="\ 11049 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11050 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11051 -e 's|__xservername__|Xorg|g' \ 11052 -e 's|__xconfigfile__|xorg.conf|g' \ 11053 -e 's|__projectroot__|\$(prefix)|g' \ 11054 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11055 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11056 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11057 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11058 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11059 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11060 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11061 11062 11063 11064# Check whether --enable-silent-rules was given. 11065if test ${enable_silent_rules+y} 11066then : 11067 enableval=$enable_silent_rules; 11068fi 11069 11070case $enable_silent_rules in # ((( 11071 yes) AM_DEFAULT_VERBOSITY=0;; 11072 no) AM_DEFAULT_VERBOSITY=1;; 11073 *) AM_DEFAULT_VERBOSITY=0;; 11074esac 11075am_make=${MAKE-make} 11076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11077printf %s "checking whether $am_make supports nested variables... " >&6; } 11078if test ${am_cv_make_support_nested_variables+y} 11079then : 11080 printf %s "(cached) " >&6 11081else $as_nop 11082 if printf "%s\n" 'TRUE=$(BAR$(V)) 11083BAR0=false 11084BAR1=true 11085V=1 11086am__doit: 11087 @$(TRUE) 11088.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11089 am_cv_make_support_nested_variables=yes 11090else 11091 am_cv_make_support_nested_variables=no 11092fi 11093fi 11094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11095printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11096if test $am_cv_make_support_nested_variables = yes; then 11097 AM_V='$(V)' 11098 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11099else 11100 AM_V=$AM_DEFAULT_VERBOSITY 11101 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11102fi 11103AM_BACKSLASH='\' 11104 11105 11106 11107# Checks for pkg-config packages 11108 11109pkg_failed=no 11110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5 11111printf %s "checking for ICEAUTH... " >&6; } 11112 11113if test -n "$ICEAUTH_CFLAGS"; then 11114 pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS" 11115 elif test -n "$PKG_CONFIG"; then 11116 if test -n "$PKG_CONFIG" && \ 11117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5 11118 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5 11119 ac_status=$? 11120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11121 test $ac_status = 0; }; then 11122 pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null` 11123 test "x$?" != "x0" && pkg_failed=yes 11124else 11125 pkg_failed=yes 11126fi 11127 else 11128 pkg_failed=untried 11129fi 11130if test -n "$ICEAUTH_LIBS"; then 11131 pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS" 11132 elif test -n "$PKG_CONFIG"; then 11133 if test -n "$PKG_CONFIG" && \ 11134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5 11135 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5 11136 ac_status=$? 11137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11138 test $ac_status = 0; }; then 11139 pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null` 11140 test "x$?" != "x0" && pkg_failed=yes 11141else 11142 pkg_failed=yes 11143fi 11144 else 11145 pkg_failed=untried 11146fi 11147 11148 11149 11150if test $pkg_failed = yes; then 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11152printf "%s\n" "no" >&6; } 11153 11154if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11155 _pkg_short_errors_supported=yes 11156else 11157 _pkg_short_errors_supported=no 11158fi 11159 if test $_pkg_short_errors_supported = yes; then 11160 ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1` 11161 else 11162 ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1` 11163 fi 11164 # Put the nasty error message in config.log where it belongs 11165 echo "$ICEAUTH_PKG_ERRORS" >&5 11166 11167 as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met: 11168 11169$ICEAUTH_PKG_ERRORS 11170 11171Consider adjusting the PKG_CONFIG_PATH environment variable if you 11172installed software in a non-standard prefix. 11173 11174Alternatively, you may set the environment variables ICEAUTH_CFLAGS 11175and ICEAUTH_LIBS to avoid the need to call pkg-config. 11176See the pkg-config man page for more details." "$LINENO" 5 11177elif test $pkg_failed = untried; then 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11179printf "%s\n" "no" >&6; } 11180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11181printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11182as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11183is in your PATH or set the PKG_CONFIG environment variable to the full 11184path to pkg-config. 11185 11186Alternatively, you may set the environment variables ICEAUTH_CFLAGS 11187and ICEAUTH_LIBS to avoid the need to call pkg-config. 11188See the pkg-config man page for more details. 11189 11190To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11191See \`config.log' for more details" "$LINENO" 5; } 11192else 11193 ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS 11194 ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS 11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11196printf "%s\n" "yes" >&6; } 11197 11198fi 11199 11200 11201 11202 11203 11204 11205# Check whether --with-lint was given. 11206if test ${with_lint+y} 11207then : 11208 withval=$with_lint; use_lint=$withval 11209else $as_nop 11210 use_lint=no 11211fi 11212 11213 11214# Obtain platform specific info like program name and options 11215# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11216case $host_os in 11217 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11218 lint_name=splint 11219 lint_options="-badflag" 11220 ;; 11221 *freebsd* | *netbsd*) 11222 lint_name=lint 11223 lint_options="-u -b" 11224 ;; 11225 *solaris*) 11226 lint_name=lint 11227 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11228 ;; 11229esac 11230 11231# Test for the presence of the program (either guessed by the code or spelled out by the user) 11232if test "x$use_lint" = x"yes" ; then 11233 # Extract the first word of "$lint_name", so it can be a program name with args. 11234set dummy $lint_name; ac_word=$2 11235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11236printf %s "checking for $ac_word... " >&6; } 11237if test ${ac_cv_path_LINT+y} 11238then : 11239 printf %s "(cached) " >&6 11240else $as_nop 11241 case $LINT in 11242 [\\/]* | ?:[\\/]*) 11243 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11244 ;; 11245 *) 11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11247for as_dir in $PATH 11248do 11249 IFS=$as_save_IFS 11250 case $as_dir in #((( 11251 '') as_dir=./ ;; 11252 */) ;; 11253 *) as_dir=$as_dir/ ;; 11254 esac 11255 for ac_exec_ext in '' $ac_executable_extensions; do 11256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11257 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11259 break 2 11260 fi 11261done 11262 done 11263IFS=$as_save_IFS 11264 11265 ;; 11266esac 11267fi 11268LINT=$ac_cv_path_LINT 11269if test -n "$LINT"; then 11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11271printf "%s\n" "$LINT" >&6; } 11272else 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11274printf "%s\n" "no" >&6; } 11275fi 11276 11277 11278 if test "x$LINT" = "x"; then 11279 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11280 fi 11281elif test "x$use_lint" = x"no" ; then 11282 if test "x$LINT" != "x"; then 11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11284printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11285 fi 11286else 11287 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11288fi 11289 11290# User supplied flags override default flags 11291if test "x$LINT_FLAGS" != "x"; then 11292 lint_options=$LINT_FLAGS 11293fi 11294 11295LINT_FLAGS=$lint_options 11296 11297 if test "x$LINT" != x; then 11298 LINT_TRUE= 11299 LINT_FALSE='#' 11300else 11301 LINT_TRUE='#' 11302 LINT_FALSE= 11303fi 11304 11305 11306 11307 11308ac_config_files="$ac_config_files Makefile man/Makefile" 11309 11310cat >confcache <<\_ACEOF 11311# This file is a shell script that caches the results of configure 11312# tests run on this system so they can be shared between configure 11313# scripts and configure runs, see configure's option --config-cache. 11314# It is not useful on other systems. If it contains results you don't 11315# want to keep, you may remove or edit it. 11316# 11317# config.status only pays attention to the cache file if you give it 11318# the --recheck option to rerun configure. 11319# 11320# `ac_cv_env_foo' variables (set or unset) will be overridden when 11321# loading this file, other *unset* `ac_cv_foo' will be assigned the 11322# following values. 11323 11324_ACEOF 11325 11326# The following way of writing the cache mishandles newlines in values, 11327# but we know of no workaround that is simple, portable, and efficient. 11328# So, we kill variables containing newlines. 11329# Ultrix sh set writes to stderr and can't be redirected directly, 11330# and sets the high bit in the cache file unless we assign to the vars. 11331( 11332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11333 eval ac_val=\$$ac_var 11334 case $ac_val in #( 11335 *${as_nl}*) 11336 case $ac_var in #( 11337 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11338printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11339 esac 11340 case $ac_var in #( 11341 _ | IFS | as_nl) ;; #( 11342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11343 *) { eval $ac_var=; unset $ac_var;} ;; 11344 esac ;; 11345 esac 11346 done 11347 11348 (set) 2>&1 | 11349 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11350 *${as_nl}ac_space=\ *) 11351 # `set' does not quote correctly, so add quotes: double-quote 11352 # substitution turns \\\\ into \\, and sed turns \\ into \. 11353 sed -n \ 11354 "s/'/'\\\\''/g; 11355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11356 ;; #( 11357 *) 11358 # `set' quotes correctly as required by POSIX, so do not add quotes. 11359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11360 ;; 11361 esac | 11362 sort 11363) | 11364 sed ' 11365 /^ac_cv_env_/b end 11366 t clear 11367 :clear 11368 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11369 t end 11370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11371 :end' >>confcache 11372if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11373 if test -w "$cache_file"; then 11374 if test "x$cache_file" != "x/dev/null"; then 11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11376printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11377 if test ! -f "$cache_file" || test -h "$cache_file"; then 11378 cat confcache >"$cache_file" 11379 else 11380 case $cache_file in #( 11381 */* | ?:*) 11382 mv -f confcache "$cache_file"$$ && 11383 mv -f "$cache_file"$$ "$cache_file" ;; #( 11384 *) 11385 mv -f confcache "$cache_file" ;; 11386 esac 11387 fi 11388 fi 11389 else 11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11391printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11392 fi 11393fi 11394rm -f confcache 11395 11396test "x$prefix" = xNONE && prefix=$ac_default_prefix 11397# Let make expand exec_prefix. 11398test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11399 11400DEFS=-DHAVE_CONFIG_H 11401 11402ac_libobjs= 11403ac_ltlibobjs= 11404U= 11405for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11406 # 1. Remove the extension, and $U if already installed. 11407 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11408 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11409 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11410 # will be set to the directory where LIBOBJS objects are built. 11411 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11412 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11413done 11414LIBOBJS=$ac_libobjs 11415 11416LTLIBOBJS=$ac_ltlibobjs 11417 11418 11419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11420printf %s "checking that generated files are newer than configure... " >&6; } 11421 if test -n "$am_sleep_pid"; then 11422 # Hide warnings about reused PIDs. 11423 wait $am_sleep_pid 2>/dev/null 11424 fi 11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11426printf "%s\n" "done" >&6; } 11427 if test -n "$EXEEXT"; then 11428 am__EXEEXT_TRUE= 11429 am__EXEEXT_FALSE='#' 11430else 11431 am__EXEEXT_TRUE='#' 11432 am__EXEEXT_FALSE= 11433fi 11434 11435if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11436 as_fn_error $? "conditional \"AMDEP\" was never defined. 11437Usually this means the macro was only invoked conditionally." "$LINENO" 5 11438fi 11439if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11440 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11441Usually this means the macro was only invoked conditionally." "$LINENO" 5 11442fi 11443if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11444 as_fn_error $? "conditional \"LINT\" was never defined. 11445Usually this means the macro was only invoked conditionally." "$LINENO" 5 11446fi 11447 11448: "${CONFIG_STATUS=./config.status}" 11449ac_write_fail=0 11450ac_clean_files_save=$ac_clean_files 11451ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11453printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11454as_write_fail=0 11455cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11456#! $SHELL 11457# Generated by $as_me. 11458# Run this file to recreate the current configuration. 11459# Compiler output produced by configure, useful for debugging 11460# configure, is in config.log if it exists. 11461 11462debug=false 11463ac_cs_recheck=false 11464ac_cs_silent=false 11465 11466SHELL=\${CONFIG_SHELL-$SHELL} 11467export SHELL 11468_ASEOF 11469cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11470## -------------------- ## 11471## M4sh Initialization. ## 11472## -------------------- ## 11473 11474# Be more Bourne compatible 11475DUALCASE=1; export DUALCASE # for MKS sh 11476as_nop=: 11477if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11478then : 11479 emulate sh 11480 NULLCMD=: 11481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11482 # is contrary to our usage. Disable this feature. 11483 alias -g '${1+"$@"}'='"$@"' 11484 setopt NO_GLOB_SUBST 11485else $as_nop 11486 case `(set -o) 2>/dev/null` in #( 11487 *posix*) : 11488 set -o posix ;; #( 11489 *) : 11490 ;; 11491esac 11492fi 11493 11494 11495 11496# Reset variables that may have inherited troublesome values from 11497# the environment. 11498 11499# IFS needs to be set, to space, tab, and newline, in precisely that order. 11500# (If _AS_PATH_WALK were called with IFS unset, it would have the 11501# side effect of setting IFS to empty, thus disabling word splitting.) 11502# Quoting is to prevent editors from complaining about space-tab. 11503as_nl=' 11504' 11505export as_nl 11506IFS=" "" $as_nl" 11507 11508PS1='$ ' 11509PS2='> ' 11510PS4='+ ' 11511 11512# Ensure predictable behavior from utilities with locale-dependent output. 11513LC_ALL=C 11514export LC_ALL 11515LANGUAGE=C 11516export LANGUAGE 11517 11518# We cannot yet rely on "unset" to work, but we need these variables 11519# to be unset--not just set to an empty or harmless value--now, to 11520# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11521# also avoids known problems related to "unset" and subshell syntax 11522# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11523for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11524do eval test \${$as_var+y} \ 11525 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11526done 11527 11528# Ensure that fds 0, 1, and 2 are open. 11529if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11530if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11531if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11532 11533# The user is always right. 11534if ${PATH_SEPARATOR+false} :; then 11535 PATH_SEPARATOR=: 11536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11538 PATH_SEPARATOR=';' 11539 } 11540fi 11541 11542 11543# Find who we are. Look in the path if we contain no directory separator. 11544as_myself= 11545case $0 in #(( 11546 *[\\/]* ) as_myself=$0 ;; 11547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11548for as_dir in $PATH 11549do 11550 IFS=$as_save_IFS 11551 case $as_dir in #((( 11552 '') as_dir=./ ;; 11553 */) ;; 11554 *) as_dir=$as_dir/ ;; 11555 esac 11556 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11557 done 11558IFS=$as_save_IFS 11559 11560 ;; 11561esac 11562# We did not find ourselves, most probably we were run as `sh COMMAND' 11563# in which case we are not to be found in the path. 11564if test "x$as_myself" = x; then 11565 as_myself=$0 11566fi 11567if test ! -f "$as_myself"; then 11568 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11569 exit 1 11570fi 11571 11572 11573 11574# as_fn_error STATUS ERROR [LINENO LOG_FD] 11575# ---------------------------------------- 11576# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11577# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11578# script with STATUS, using 1 if that was 0. 11579as_fn_error () 11580{ 11581 as_status=$1; test $as_status -eq 0 && as_status=1 11582 if test "$4"; then 11583 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11585 fi 11586 printf "%s\n" "$as_me: error: $2" >&2 11587 as_fn_exit $as_status 11588} # as_fn_error 11589 11590 11591 11592# as_fn_set_status STATUS 11593# ----------------------- 11594# Set $? to STATUS, without forking. 11595as_fn_set_status () 11596{ 11597 return $1 11598} # as_fn_set_status 11599 11600# as_fn_exit STATUS 11601# ----------------- 11602# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11603as_fn_exit () 11604{ 11605 set +e 11606 as_fn_set_status $1 11607 exit $1 11608} # as_fn_exit 11609 11610# as_fn_unset VAR 11611# --------------- 11612# Portably unset VAR. 11613as_fn_unset () 11614{ 11615 { eval $1=; unset $1;} 11616} 11617as_unset=as_fn_unset 11618 11619# as_fn_append VAR VALUE 11620# ---------------------- 11621# Append the text in VALUE to the end of the definition contained in VAR. Take 11622# advantage of any shell optimizations that allow amortized linear growth over 11623# repeated appends, instead of the typical quadratic growth present in naive 11624# implementations. 11625if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11626then : 11627 eval 'as_fn_append () 11628 { 11629 eval $1+=\$2 11630 }' 11631else $as_nop 11632 as_fn_append () 11633 { 11634 eval $1=\$$1\$2 11635 } 11636fi # as_fn_append 11637 11638# as_fn_arith ARG... 11639# ------------------ 11640# Perform arithmetic evaluation on the ARGs, and store the result in the 11641# global $as_val. Take advantage of shells that can avoid forks. The arguments 11642# must be portable across $(()) and expr. 11643if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11644then : 11645 eval 'as_fn_arith () 11646 { 11647 as_val=$(( $* )) 11648 }' 11649else $as_nop 11650 as_fn_arith () 11651 { 11652 as_val=`expr "$@" || test $? -eq 1` 11653 } 11654fi # as_fn_arith 11655 11656 11657if expr a : '\(a\)' >/dev/null 2>&1 && 11658 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11659 as_expr=expr 11660else 11661 as_expr=false 11662fi 11663 11664if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11665 as_basename=basename 11666else 11667 as_basename=false 11668fi 11669 11670if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11671 as_dirname=dirname 11672else 11673 as_dirname=false 11674fi 11675 11676as_me=`$as_basename -- "$0" || 11677$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11678 X"$0" : 'X\(//\)$' \| \ 11679 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11680printf "%s\n" X/"$0" | 11681 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11682 s//\1/ 11683 q 11684 } 11685 /^X\/\(\/\/\)$/{ 11686 s//\1/ 11687 q 11688 } 11689 /^X\/\(\/\).*/{ 11690 s//\1/ 11691 q 11692 } 11693 s/.*/./; q'` 11694 11695# Avoid depending upon Character Ranges. 11696as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11697as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11698as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11699as_cr_digits='0123456789' 11700as_cr_alnum=$as_cr_Letters$as_cr_digits 11701 11702 11703# Determine whether it's possible to make 'echo' print without a newline. 11704# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11705# for compatibility with existing Makefiles. 11706ECHO_C= ECHO_N= ECHO_T= 11707case `echo -n x` in #((((( 11708-n*) 11709 case `echo 'xy\c'` in 11710 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11711 xy) ECHO_C='\c';; 11712 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11713 ECHO_T=' ';; 11714 esac;; 11715*) 11716 ECHO_N='-n';; 11717esac 11718 11719# For backward compatibility with old third-party macros, we provide 11720# the shell variables $as_echo and $as_echo_n. New code should use 11721# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11722as_echo='printf %s\n' 11723as_echo_n='printf %s' 11724 11725rm -f conf$$ conf$$.exe conf$$.file 11726if test -d conf$$.dir; then 11727 rm -f conf$$.dir/conf$$.file 11728else 11729 rm -f conf$$.dir 11730 mkdir conf$$.dir 2>/dev/null 11731fi 11732if (echo >conf$$.file) 2>/dev/null; then 11733 if ln -s conf$$.file conf$$ 2>/dev/null; then 11734 as_ln_s='ln -s' 11735 # ... but there are two gotchas: 11736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11738 # In both cases, we have to default to `cp -pR'. 11739 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11740 as_ln_s='cp -pR' 11741 elif ln conf$$.file conf$$ 2>/dev/null; then 11742 as_ln_s=ln 11743 else 11744 as_ln_s='cp -pR' 11745 fi 11746else 11747 as_ln_s='cp -pR' 11748fi 11749rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11750rmdir conf$$.dir 2>/dev/null 11751 11752 11753# as_fn_mkdir_p 11754# ------------- 11755# Create "$as_dir" as a directory, including parents if necessary. 11756as_fn_mkdir_p () 11757{ 11758 11759 case $as_dir in #( 11760 -*) as_dir=./$as_dir;; 11761 esac 11762 test -d "$as_dir" || eval $as_mkdir_p || { 11763 as_dirs= 11764 while :; do 11765 case $as_dir in #( 11766 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11767 *) as_qdir=$as_dir;; 11768 esac 11769 as_dirs="'$as_qdir' $as_dirs" 11770 as_dir=`$as_dirname -- "$as_dir" || 11771$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11772 X"$as_dir" : 'X\(//\)[^/]' \| \ 11773 X"$as_dir" : 'X\(//\)$' \| \ 11774 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11775printf "%s\n" X"$as_dir" | 11776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11777 s//\1/ 11778 q 11779 } 11780 /^X\(\/\/\)[^/].*/{ 11781 s//\1/ 11782 q 11783 } 11784 /^X\(\/\/\)$/{ 11785 s//\1/ 11786 q 11787 } 11788 /^X\(\/\).*/{ 11789 s//\1/ 11790 q 11791 } 11792 s/.*/./; q'` 11793 test -d "$as_dir" && break 11794 done 11795 test -z "$as_dirs" || eval "mkdir $as_dirs" 11796 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11797 11798 11799} # as_fn_mkdir_p 11800if mkdir -p . 2>/dev/null; then 11801 as_mkdir_p='mkdir -p "$as_dir"' 11802else 11803 test -d ./-p && rmdir ./-p 11804 as_mkdir_p=false 11805fi 11806 11807 11808# as_fn_executable_p FILE 11809# ----------------------- 11810# Test if FILE is an executable regular file. 11811as_fn_executable_p () 11812{ 11813 test -f "$1" && test -x "$1" 11814} # as_fn_executable_p 11815as_test_x='test -x' 11816as_executable_p=as_fn_executable_p 11817 11818# Sed expression to map a string onto a valid CPP name. 11819as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11820 11821# Sed expression to map a string onto a valid variable name. 11822as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11823 11824 11825exec 6>&1 11826## ----------------------------------- ## 11827## Main body of $CONFIG_STATUS script. ## 11828## ----------------------------------- ## 11829_ASEOF 11830test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11831 11832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11833# Save the log message, to keep $0 and so on meaningful, and to 11834# report actual input values of CONFIG_FILES etc. instead of their 11835# values after options handling. 11836ac_log=" 11837This file was extended by iceauth $as_me 1.0.9, which was 11838generated by GNU Autoconf 2.71. Invocation command line was 11839 11840 CONFIG_FILES = $CONFIG_FILES 11841 CONFIG_HEADERS = $CONFIG_HEADERS 11842 CONFIG_LINKS = $CONFIG_LINKS 11843 CONFIG_COMMANDS = $CONFIG_COMMANDS 11844 $ $0 $@ 11845 11846on `(hostname || uname -n) 2>/dev/null | sed 1q` 11847" 11848 11849_ACEOF 11850 11851case $ac_config_files in *" 11852"*) set x $ac_config_files; shift; ac_config_files=$*;; 11853esac 11854 11855case $ac_config_headers in *" 11856"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11857esac 11858 11859 11860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11861# Files that config.status was made for. 11862config_files="$ac_config_files" 11863config_headers="$ac_config_headers" 11864config_commands="$ac_config_commands" 11865 11866_ACEOF 11867 11868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11869ac_cs_usage="\ 11870\`$as_me' instantiates files and other configuration actions 11871from templates according to the current configuration. Unless the files 11872and actions are specified as TAGs, all are instantiated by default. 11873 11874Usage: $0 [OPTION]... [TAG]... 11875 11876 -h, --help print this help, then exit 11877 -V, --version print version number and configuration settings, then exit 11878 --config print configuration, then exit 11879 -q, --quiet, --silent 11880 do not print progress messages 11881 -d, --debug don't remove temporary files 11882 --recheck update $as_me by reconfiguring in the same conditions 11883 --file=FILE[:TEMPLATE] 11884 instantiate the configuration file FILE 11885 --header=FILE[:TEMPLATE] 11886 instantiate the configuration header FILE 11887 11888Configuration files: 11889$config_files 11890 11891Configuration headers: 11892$config_headers 11893 11894Configuration commands: 11895$config_commands 11896 11897Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/issues>." 11898 11899_ACEOF 11900ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11901ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11903ac_cs_config='$ac_cs_config_escaped' 11904ac_cs_version="\\ 11905iceauth config.status 1.0.9 11906configured by $0, generated by GNU Autoconf 2.71, 11907 with options \\"\$ac_cs_config\\" 11908 11909Copyright (C) 2021 Free Software Foundation, Inc. 11910This config.status script is free software; the Free Software Foundation 11911gives unlimited permission to copy, distribute and modify it." 11912 11913ac_pwd='$ac_pwd' 11914srcdir='$srcdir' 11915INSTALL='$INSTALL' 11916MKDIR_P='$MKDIR_P' 11917AWK='$AWK' 11918test -n "\$AWK" || AWK=awk 11919_ACEOF 11920 11921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11922# The default lists apply if the user does not specify any file. 11923ac_need_defaults=: 11924while test $# != 0 11925do 11926 case $1 in 11927 --*=?*) 11928 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11930 ac_shift=: 11931 ;; 11932 --*=) 11933 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11934 ac_optarg= 11935 ac_shift=: 11936 ;; 11937 *) 11938 ac_option=$1 11939 ac_optarg=$2 11940 ac_shift=shift 11941 ;; 11942 esac 11943 11944 case $ac_option in 11945 # Handling of the options. 11946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11947 ac_cs_recheck=: ;; 11948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11949 printf "%s\n" "$ac_cs_version"; exit ;; 11950 --config | --confi | --conf | --con | --co | --c ) 11951 printf "%s\n" "$ac_cs_config"; exit ;; 11952 --debug | --debu | --deb | --de | --d | -d ) 11953 debug=: ;; 11954 --file | --fil | --fi | --f ) 11955 $ac_shift 11956 case $ac_optarg in 11957 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11958 '') as_fn_error $? "missing file argument" ;; 11959 esac 11960 as_fn_append CONFIG_FILES " '$ac_optarg'" 11961 ac_need_defaults=false;; 11962 --header | --heade | --head | --hea ) 11963 $ac_shift 11964 case $ac_optarg in 11965 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11966 esac 11967 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11968 ac_need_defaults=false;; 11969 --he | --h) 11970 # Conflict between --help and --header 11971 as_fn_error $? "ambiguous option: \`$1' 11972Try \`$0 --help' for more information.";; 11973 --help | --hel | -h ) 11974 printf "%s\n" "$ac_cs_usage"; exit ;; 11975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11976 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11977 ac_cs_silent=: ;; 11978 11979 # This is an error. 11980 -*) as_fn_error $? "unrecognized option: \`$1' 11981Try \`$0 --help' for more information." ;; 11982 11983 *) as_fn_append ac_config_targets " $1" 11984 ac_need_defaults=false ;; 11985 11986 esac 11987 shift 11988done 11989 11990ac_configure_extra_args= 11991 11992if $ac_cs_silent; then 11993 exec 6>/dev/null 11994 ac_configure_extra_args="$ac_configure_extra_args --silent" 11995fi 11996 11997_ACEOF 11998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11999if \$ac_cs_recheck; then 12000 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12001 shift 12002 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12003 CONFIG_SHELL='$SHELL' 12004 export CONFIG_SHELL 12005 exec "\$@" 12006fi 12007 12008_ACEOF 12009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12010exec 5>>config.log 12011{ 12012 echo 12013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12014## Running $as_me. ## 12015_ASBOX 12016 printf "%s\n" "$ac_log" 12017} >&5 12018 12019_ACEOF 12020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12021# 12022# INIT-COMMANDS 12023# 12024AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12025 12026_ACEOF 12027 12028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12029 12030# Handling of arguments. 12031for ac_config_target in $ac_config_targets 12032do 12033 case $ac_config_target in 12034 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12035 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12037 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12038 12039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12040 esac 12041done 12042 12043 12044# If the user did not use the arguments to specify the items to instantiate, 12045# then the envvar interface is used. Set only those that are not. 12046# We use the long form for the default assignment because of an extremely 12047# bizarre bug on SunOS 4.1.3. 12048if $ac_need_defaults; then 12049 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12050 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12051 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12052fi 12053 12054# Have a temporary directory for convenience. Make it in the build tree 12055# simply because there is no reason against having it here, and in addition, 12056# creating and moving files from /tmp can sometimes cause problems. 12057# Hook for its removal unless debugging. 12058# Note that there is a small window in which the directory will not be cleaned: 12059# after its creation but before its name has been assigned to `$tmp'. 12060$debug || 12061{ 12062 tmp= ac_tmp= 12063 trap 'exit_status=$? 12064 : "${ac_tmp:=$tmp}" 12065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12066' 0 12067 trap 'as_fn_exit 1' 1 2 13 15 12068} 12069# Create a (secure) tmp directory for tmp files. 12070 12071{ 12072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12073 test -d "$tmp" 12074} || 12075{ 12076 tmp=./conf$$-$RANDOM 12077 (umask 077 && mkdir "$tmp") 12078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12079ac_tmp=$tmp 12080 12081# Set up the scripts for CONFIG_FILES section. 12082# No need to generate them if there are no CONFIG_FILES. 12083# This happens for instance with `./config.status config.h'. 12084if test -n "$CONFIG_FILES"; then 12085 12086 12087ac_cr=`echo X | tr X '\015'` 12088# On cygwin, bash can eat \r inside `` if the user requested igncr. 12089# But we know of no other shell where ac_cr would be empty at this 12090# point, so we can use a bashism as a fallback. 12091if test "x$ac_cr" = x; then 12092 eval ac_cr=\$\'\\r\' 12093fi 12094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12096 ac_cs_awk_cr='\\r' 12097else 12098 ac_cs_awk_cr=$ac_cr 12099fi 12100 12101echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12102_ACEOF 12103 12104 12105{ 12106 echo "cat >conf$$subs.awk <<_ACEOF" && 12107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12108 echo "_ACEOF" 12109} >conf$$subs.sh || 12110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12111ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12112ac_delim='%!_!# ' 12113for ac_last_try in false false false false false :; do 12114 . ./conf$$subs.sh || 12115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12116 12117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12118 if test $ac_delim_n = $ac_delim_num; then 12119 break 12120 elif $ac_last_try; then 12121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12122 else 12123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12124 fi 12125done 12126rm -f conf$$subs.sh 12127 12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12129cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12130_ACEOF 12131sed -n ' 12132h 12133s/^/S["/; s/!.*/"]=/ 12134p 12135g 12136s/^[^!]*!// 12137:repl 12138t repl 12139s/'"$ac_delim"'$// 12140t delim 12141:nl 12142h 12143s/\(.\{148\}\)..*/\1/ 12144t more1 12145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12146p 12147n 12148b repl 12149:more1 12150s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12151p 12152g 12153s/.\{148\}// 12154t nl 12155:delim 12156h 12157s/\(.\{148\}\)..*/\1/ 12158t more2 12159s/["\\]/\\&/g; s/^/"/; s/$/"/ 12160p 12161b 12162:more2 12163s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12164p 12165g 12166s/.\{148\}// 12167t delim 12168' <conf$$subs.awk | sed ' 12169/^[^""]/{ 12170 N 12171 s/\n// 12172} 12173' >>$CONFIG_STATUS || ac_write_fail=1 12174rm -f conf$$subs.awk 12175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12176_ACAWK 12177cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12178 for (key in S) S_is_set[key] = 1 12179 FS = "" 12180 12181} 12182{ 12183 line = $ 0 12184 nfields = split(line, field, "@") 12185 substed = 0 12186 len = length(field[1]) 12187 for (i = 2; i < nfields; i++) { 12188 key = field[i] 12189 keylen = length(key) 12190 if (S_is_set[key]) { 12191 value = S[key] 12192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12193 len += length(value) + length(field[++i]) 12194 substed = 1 12195 } else 12196 len += 1 + keylen 12197 } 12198 12199 print line 12200} 12201 12202_ACAWK 12203_ACEOF 12204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12207else 12208 cat 12209fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12211_ACEOF 12212 12213# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12214# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12215# trailing colons and then remove the whole line if VPATH becomes empty 12216# (actually we leave an empty line to preserve line numbers). 12217if test "x$srcdir" = x.; then 12218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12219h 12220s/// 12221s/^/:/ 12222s/[ ]*$/:/ 12223s/:\$(srcdir):/:/g 12224s/:\${srcdir}:/:/g 12225s/:@srcdir@:/:/g 12226s/^:*// 12227s/:*$// 12228x 12229s/\(=[ ]*\).*/\1/ 12230G 12231s/\n// 12232s/^[^=]*=[ ]*$// 12233}' 12234fi 12235 12236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12237fi # test -n "$CONFIG_FILES" 12238 12239# Set up the scripts for CONFIG_HEADERS section. 12240# No need to generate them if there are no CONFIG_HEADERS. 12241# This happens for instance with `./config.status Makefile'. 12242if test -n "$CONFIG_HEADERS"; then 12243cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12244BEGIN { 12245_ACEOF 12246 12247# Transform confdefs.h into an awk script `defines.awk', embedded as 12248# here-document in config.status, that substitutes the proper values into 12249# config.h.in to produce config.h. 12250 12251# Create a delimiter string that does not exist in confdefs.h, to ease 12252# handling of long lines. 12253ac_delim='%!_!# ' 12254for ac_last_try in false false :; do 12255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12256 if test -z "$ac_tt"; then 12257 break 12258 elif $ac_last_try; then 12259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12260 else 12261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12262 fi 12263done 12264 12265# For the awk script, D is an array of macro values keyed by name, 12266# likewise P contains macro parameters if any. Preserve backslash 12267# newline sequences. 12268 12269ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12270sed -n ' 12271s/.\{148\}/&'"$ac_delim"'/g 12272t rset 12273:rset 12274s/^[ ]*#[ ]*define[ ][ ]*/ / 12275t def 12276d 12277:def 12278s/\\$// 12279t bsnl 12280s/["\\]/\\&/g 12281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12282D["\1"]=" \3"/p 12283s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12284d 12285:bsnl 12286s/["\\]/\\&/g 12287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12288D["\1"]=" \3\\\\\\n"\\/p 12289t cont 12290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12291t cont 12292d 12293:cont 12294n 12295s/.\{148\}/&'"$ac_delim"'/g 12296t clear 12297:clear 12298s/\\$// 12299t bsnlc 12300s/["\\]/\\&/g; s/^/"/; s/$/"/p 12301d 12302:bsnlc 12303s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12304b cont 12305' <confdefs.h | sed ' 12306s/'"$ac_delim"'/"\\\ 12307"/g' >>$CONFIG_STATUS || ac_write_fail=1 12308 12309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12310 for (key in D) D_is_set[key] = 1 12311 FS = "" 12312} 12313/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12314 line = \$ 0 12315 split(line, arg, " ") 12316 if (arg[1] == "#") { 12317 defundef = arg[2] 12318 mac1 = arg[3] 12319 } else { 12320 defundef = substr(arg[1], 2) 12321 mac1 = arg[2] 12322 } 12323 split(mac1, mac2, "(") #) 12324 macro = mac2[1] 12325 prefix = substr(line, 1, index(line, defundef) - 1) 12326 if (D_is_set[macro]) { 12327 # Preserve the white space surrounding the "#". 12328 print prefix "define", macro P[macro] D[macro] 12329 next 12330 } else { 12331 # Replace #undef with comments. This is necessary, for example, 12332 # in the case of _POSIX_SOURCE, which is predefined and required 12333 # on some systems where configure will not decide to define it. 12334 if (defundef == "undef") { 12335 print "/*", prefix defundef, macro, "*/" 12336 next 12337 } 12338 } 12339} 12340{ print } 12341_ACAWK 12342_ACEOF 12343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12345fi # test -n "$CONFIG_HEADERS" 12346 12347 12348eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12349shift 12350for ac_tag 12351do 12352 case $ac_tag in 12353 :[FHLC]) ac_mode=$ac_tag; continue;; 12354 esac 12355 case $ac_mode$ac_tag in 12356 :[FHL]*:*);; 12357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12358 :[FH]-) ac_tag=-:-;; 12359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12360 esac 12361 ac_save_IFS=$IFS 12362 IFS=: 12363 set x $ac_tag 12364 IFS=$ac_save_IFS 12365 shift 12366 ac_file=$1 12367 shift 12368 12369 case $ac_mode in 12370 :L) ac_source=$1;; 12371 :[FH]) 12372 ac_file_inputs= 12373 for ac_f 12374 do 12375 case $ac_f in 12376 -) ac_f="$ac_tmp/stdin";; 12377 *) # Look for the file first in the build tree, then in the source tree 12378 # (if the path is not absolute). The absolute path cannot be DOS-style, 12379 # because $ac_f cannot contain `:'. 12380 test -f "$ac_f" || 12381 case $ac_f in 12382 [\\/$]*) false;; 12383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12384 esac || 12385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12386 esac 12387 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12388 as_fn_append ac_file_inputs " '$ac_f'" 12389 done 12390 12391 # Let's still pretend it is `configure' which instantiates (i.e., don't 12392 # use $as_me), people would be surprised to read: 12393 # /* config.h. Generated by config.status. */ 12394 configure_input='Generated from '` 12395 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12396 `' by configure.' 12397 if test x"$ac_file" != x-; then 12398 configure_input="$ac_file. $configure_input" 12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12400printf "%s\n" "$as_me: creating $ac_file" >&6;} 12401 fi 12402 # Neutralize special characters interpreted by sed in replacement strings. 12403 case $configure_input in #( 12404 *\&* | *\|* | *\\* ) 12405 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12406 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12407 *) ac_sed_conf_input=$configure_input;; 12408 esac 12409 12410 case $ac_tag in 12411 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12413 esac 12414 ;; 12415 esac 12416 12417 ac_dir=`$as_dirname -- "$ac_file" || 12418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12419 X"$ac_file" : 'X\(//\)[^/]' \| \ 12420 X"$ac_file" : 'X\(//\)$' \| \ 12421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12422printf "%s\n" X"$ac_file" | 12423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12424 s//\1/ 12425 q 12426 } 12427 /^X\(\/\/\)[^/].*/{ 12428 s//\1/ 12429 q 12430 } 12431 /^X\(\/\/\)$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\(\/\).*/{ 12436 s//\1/ 12437 q 12438 } 12439 s/.*/./; q'` 12440 as_dir="$ac_dir"; as_fn_mkdir_p 12441 ac_builddir=. 12442 12443case "$ac_dir" in 12444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12445*) 12446 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12447 # A ".." for each directory in $ac_dir_suffix. 12448 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12449 case $ac_top_builddir_sub in 12450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12452 esac ;; 12453esac 12454ac_abs_top_builddir=$ac_pwd 12455ac_abs_builddir=$ac_pwd$ac_dir_suffix 12456# for backward compatibility: 12457ac_top_builddir=$ac_top_build_prefix 12458 12459case $srcdir in 12460 .) # We are building in place. 12461 ac_srcdir=. 12462 ac_top_srcdir=$ac_top_builddir_sub 12463 ac_abs_top_srcdir=$ac_pwd ;; 12464 [\\/]* | ?:[\\/]* ) # Absolute name. 12465 ac_srcdir=$srcdir$ac_dir_suffix; 12466 ac_top_srcdir=$srcdir 12467 ac_abs_top_srcdir=$srcdir ;; 12468 *) # Relative name. 12469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12470 ac_top_srcdir=$ac_top_build_prefix$srcdir 12471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12472esac 12473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12474 12475 12476 case $ac_mode in 12477 :F) 12478 # 12479 # CONFIG_FILE 12480 # 12481 12482 case $INSTALL in 12483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12485 esac 12486 ac_MKDIR_P=$MKDIR_P 12487 case $MKDIR_P in 12488 [\\/$]* | ?:[\\/]* ) ;; 12489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12490 esac 12491_ACEOF 12492 12493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12494# If the template does not know about datarootdir, expand it. 12495# FIXME: This hack should be removed a few years after 2.60. 12496ac_datarootdir_hack=; ac_datarootdir_seen= 12497ac_sed_dataroot=' 12498/datarootdir/ { 12499 p 12500 q 12501} 12502/@datadir@/p 12503/@docdir@/p 12504/@infodir@/p 12505/@localedir@/p 12506/@mandir@/p' 12507case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12508*datarootdir*) ac_datarootdir_seen=yes;; 12509*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12511printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12512_ACEOF 12513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12514 ac_datarootdir_hack=' 12515 s&@datadir@&$datadir&g 12516 s&@docdir@&$docdir&g 12517 s&@infodir@&$infodir&g 12518 s&@localedir@&$localedir&g 12519 s&@mandir@&$mandir&g 12520 s&\\\${datarootdir}&$datarootdir&g' ;; 12521esac 12522_ACEOF 12523 12524# Neutralize VPATH when `$srcdir' = `.'. 12525# Shell code in configure.ac might set extrasub. 12526# FIXME: do we really want to maintain this feature? 12527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12528ac_sed_extra="$ac_vpsub 12529$extrasub 12530_ACEOF 12531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12532:t 12533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12534s|@configure_input@|$ac_sed_conf_input|;t t 12535s&@top_builddir@&$ac_top_builddir_sub&;t t 12536s&@top_build_prefix@&$ac_top_build_prefix&;t t 12537s&@srcdir@&$ac_srcdir&;t t 12538s&@abs_srcdir@&$ac_abs_srcdir&;t t 12539s&@top_srcdir@&$ac_top_srcdir&;t t 12540s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12541s&@builddir@&$ac_builddir&;t t 12542s&@abs_builddir@&$ac_abs_builddir&;t t 12543s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12544s&@INSTALL@&$ac_INSTALL&;t t 12545s&@MKDIR_P@&$ac_MKDIR_P&;t t 12546$ac_datarootdir_hack 12547" 12548eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12550 12551test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12554 "$ac_tmp/out"`; test -z "$ac_out"; } && 12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12556which seems to be undefined. Please make sure it is defined" >&5 12557printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12558which seems to be undefined. Please make sure it is defined" >&2;} 12559 12560 rm -f "$ac_tmp/stdin" 12561 case $ac_file in 12562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12564 esac \ 12565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12566 ;; 12567 :H) 12568 # 12569 # CONFIG_HEADER 12570 # 12571 if test x"$ac_file" != x-; then 12572 { 12573 printf "%s\n" "/* $configure_input */" >&1 \ 12574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12575 } >"$ac_tmp/config.h" \ 12576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12579printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12580 else 12581 rm -f "$ac_file" 12582 mv "$ac_tmp/config.h" "$ac_file" \ 12583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12584 fi 12585 else 12586 printf "%s\n" "/* $configure_input */" >&1 \ 12587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12588 || as_fn_error $? "could not create -" "$LINENO" 5 12589 fi 12590# Compute "$ac_file"'s index in $config_headers. 12591_am_arg="$ac_file" 12592_am_stamp_count=1 12593for _am_header in $config_headers :; do 12594 case $_am_header in 12595 $_am_arg | $_am_arg:* ) 12596 break ;; 12597 * ) 12598 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12599 esac 12600done 12601echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12602$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12603 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12604 X"$_am_arg" : 'X\(//\)$' \| \ 12605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12606printf "%s\n" X"$_am_arg" | 12607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12608 s//\1/ 12609 q 12610 } 12611 /^X\(\/\/\)[^/].*/{ 12612 s//\1/ 12613 q 12614 } 12615 /^X\(\/\/\)$/{ 12616 s//\1/ 12617 q 12618 } 12619 /^X\(\/\).*/{ 12620 s//\1/ 12621 q 12622 } 12623 s/.*/./; q'`/stamp-h$_am_stamp_count 12624 ;; 12625 12626 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12627printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12628 ;; 12629 esac 12630 12631 12632 case $ac_file$ac_mode in 12633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12634 # Older Autoconf quotes --file arguments for eval, but not when files 12635 # are listed without --file. Let's play safe and only enable the eval 12636 # if we detect the quoting. 12637 # TODO: see whether this extra hack can be removed once we start 12638 # requiring Autoconf 2.70 or later. 12639 case $CONFIG_FILES in #( 12640 *\'*) : 12641 eval set x "$CONFIG_FILES" ;; #( 12642 *) : 12643 set x $CONFIG_FILES ;; #( 12644 *) : 12645 ;; 12646esac 12647 shift 12648 # Used to flag and report bootstrapping failures. 12649 am_rc=0 12650 for am_mf 12651 do 12652 # Strip MF so we end up with the name of the file. 12653 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12654 # Check whether this is an Automake generated Makefile which includes 12655 # dependency-tracking related rules and includes. 12656 # Grep'ing the whole file directly is not great: AIX grep has a line 12657 # limit of 2048, but all sed's we know have understand at least 4000. 12658 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12659 || continue 12660 am_dirpart=`$as_dirname -- "$am_mf" || 12661$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12662 X"$am_mf" : 'X\(//\)[^/]' \| \ 12663 X"$am_mf" : 'X\(//\)$' \| \ 12664 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12665printf "%s\n" X"$am_mf" | 12666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12667 s//\1/ 12668 q 12669 } 12670 /^X\(\/\/\)[^/].*/{ 12671 s//\1/ 12672 q 12673 } 12674 /^X\(\/\/\)$/{ 12675 s//\1/ 12676 q 12677 } 12678 /^X\(\/\).*/{ 12679 s//\1/ 12680 q 12681 } 12682 s/.*/./; q'` 12683 am_filepart=`$as_basename -- "$am_mf" || 12684$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12685 X"$am_mf" : 'X\(//\)$' \| \ 12686 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12687printf "%s\n" X/"$am_mf" | 12688 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12689 s//\1/ 12690 q 12691 } 12692 /^X\/\(\/\/\)$/{ 12693 s//\1/ 12694 q 12695 } 12696 /^X\/\(\/\).*/{ 12697 s//\1/ 12698 q 12699 } 12700 s/.*/./; q'` 12701 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12702 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12703 | $MAKE -f - am--depfiles" >&5 12704 (cd "$am_dirpart" \ 12705 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12706 | $MAKE -f - am--depfiles) >&5 2>&5 12707 ac_status=$? 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); } || am_rc=$? 12710 done 12711 if test $am_rc -ne 0; then 12712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12713printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12714as_fn_error $? "Something went wrong bootstrapping makefile fragments 12715 for automatic dependency tracking. If GNU make was not used, consider 12716 re-running the configure script with MAKE=\"gmake\" (or whatever is 12717 necessary). You can also try re-running configure with the 12718 '--disable-dependency-tracking' option to at least be able to build 12719 the package (albeit without support for automatic dependency tracking). 12720See \`config.log' for more details" "$LINENO" 5; } 12721 fi 12722 { am_dirpart=; unset am_dirpart;} 12723 { am_filepart=; unset am_filepart;} 12724 { am_mf=; unset am_mf;} 12725 { am_rc=; unset am_rc;} 12726 rm -f conftest-deps.mk 12727} 12728 ;; 12729 12730 esac 12731done # for ac_tag 12732 12733 12734as_fn_exit 0 12735_ACEOF 12736ac_clean_files=$ac_clean_files_save 12737 12738test $ac_write_fail = 0 || 12739 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12740 12741 12742# configure is writing to config.log, and then calls config.status. 12743# config.status does its own redirection, appending to config.log. 12744# Unfortunately, on DOS this fails, as config.log is still kept open 12745# by configure, so config.status won't be able to write to it; its 12746# output is simply discarded. So we exec the FD to /dev/null, 12747# effectively closing config.log, so it can be properly (re)opened and 12748# appended to by config.status. When coming back to configure, we 12749# need to make the FD available again. 12750if test "$no_create" != yes; then 12751 ac_cs_success=: 12752 ac_config_status_args= 12753 test "$silent" = yes && 12754 ac_config_status_args="$ac_config_status_args --quiet" 12755 exec 5>/dev/null 12756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12757 exec 5>>config.log 12758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12759 # would make configure fail if this is the last instruction. 12760 $ac_cs_success || as_fn_exit 1 12761fi 12762if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12764printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12765fi 12766 12767 12768