configure revision 18eba588
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xorg-cf-files 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/cf/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/util/cf/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='xorg-cf-files' 614PACKAGE_TARNAME='xorg-cf-files' 615PACKAGE_VERSION='1.0.7' 616PACKAGE_STRING='xorg-cf-files 1.0.7' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/cf/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 657XCONFDIR 658ENCODINGSDIR 659FONTROOTDIR 660MAN_SUBSTS 661XORG_MAN_PAGE 662ADMIN_MAN_DIR 663DRIVER_MAN_DIR 664MISC_MAN_DIR 665FILE_MAN_DIR 666LIB_MAN_DIR 667APP_MAN_DIR 668ADMIN_MAN_SUFFIX 669DRIVER_MAN_SUFFIX 670MISC_MAN_SUFFIX 671FILE_MAN_SUFFIX 672LIB_MAN_SUFFIX 673APP_MAN_SUFFIX 674SED 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683INSTALL_CMD 684PKG_CONFIG_LIBDIR 685PKG_CONFIG_PATH 686PKG_CONFIG 687CHANGELOG_CMD 688STRICT_CFLAGS 689CWARNFLAGS 690BASE_CFLAGS 691am__fastdepCC_FALSE 692am__fastdepCC_TRUE 693CCDEPMODE 694am__nodep 695AMDEPBACKSLASH 696AMDEP_FALSE 697AMDEP_TRUE 698am__include 699DEPDIR 700OBJEXT 701EXEEXT 702ac_ct_CC 703CPPFLAGS 704LDFLAGS 705CFLAGS 706CC 707AM_BACKSLASH 708AM_DEFAULT_VERBOSITY 709AM_DEFAULT_V 710AM_V 711CSCOPE 712ETAGS 713CTAGS 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756runstatedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL 776am__quote' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_silent_rules 781enable_dependency_tracking 782enable_selective_werror 783enable_strict_compilation 784with_fontrootdir 785with_encodingsdir 786with_config_dir 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: \`$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: \`$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: \`$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: \`$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347\`configure' configures xorg-cf-files 1.0.7 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print \`checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for \`--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, \`make install' will install all the files in 1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1376for instance \`--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-cf-files] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of xorg-cf-files 1.0.7:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-fontrootdir=DIR Path to root directory for font files 1443 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings] 1444 --with-config-dir=<path> 1445 Path to config dir (default: ${libdir}/X11/config) 1446 1447Some influential environment variables: 1448 CC C compiler command 1449 CFLAGS C compiler flags 1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1451 nonstandard directory <lib dir> 1452 LIBS libraries to pass to the linker, e.g. -l<library> 1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1454 you have headers in a nonstandard directory <include dir> 1455 PKG_CONFIG path to pkg-config utility 1456 PKG_CONFIG_PATH 1457 directories to add to pkg-config's search path 1458 PKG_CONFIG_LIBDIR 1459 path overriding pkg-config's built-in search path 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to <https://gitlab.freedesktop.org/xorg/util/cf/issues>. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for configure.gnu first; this name is used for a wrapper for 1511 # Metaconfig's "Configure" on case-insensitive file systems. 1512 if test -f "$ac_srcdir/configure.gnu"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1515 elif test -f "$ac_srcdir/configure"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure" --help=recursive 1518 else 1519 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 fi || ac_status=$? 1521 cd "$ac_pwd" || { ac_status=$?; break; } 1522 done 1523fi 1524 1525test -n "$ac_init_help" && exit $ac_status 1526if $ac_init_version; then 1527 cat <<\_ACEOF 1528xorg-cf-files configure 1.0.7 1529generated by GNU Autoconf 2.71 1530 1531Copyright (C) 2021 Free Software Foundation, Inc. 1532This configure script is free software; the Free Software Foundation 1533gives unlimited permission to copy, distribute and modify it. 1534_ACEOF 1535 exit 1536fi 1537 1538## ------------------------ ## 1539## Autoconf initialization. ## 1540## ------------------------ ## 1541 1542# ac_fn_c_try_compile LINENO 1543# -------------------------- 1544# Try to compile conftest.$ac_ext, and return whether this succeeded. 1545ac_fn_c_try_compile () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 rm -f conftest.$ac_objext conftest.beam 1549 if { { ac_try="$ac_compile" 1550case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553esac 1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555printf "%s\n" "$ac_try_echo"; } >&5 1556 (eval "$ac_compile") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } && { 1565 test -z "$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 } && test -s conftest.$ac_objext 1568then : 1569 ac_retval=0 1570else $as_nop 1571 printf "%s\n" "$as_me: failed program was:" >&5 1572sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 1575fi 1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577 as_fn_set_status $ac_retval 1578 1579} # ac_fn_c_try_compile 1580 1581# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1582# ------------------------------------------------------------------ 1583# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1584# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1585ac_fn_check_decl () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 as_decl_name=`echo $2|sed 's/ *(.*//'` 1589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1590printf %s "checking whether $as_decl_name is declared... " >&6; } 1591if eval test \${$3+y} 1592then : 1593 printf %s "(cached) " >&6 1594else $as_nop 1595 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1596 eval ac_save_FLAGS=\$$6 1597 as_fn_append $6 " $5" 1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1599/* end confdefs.h. */ 1600$4 1601int 1602main (void) 1603{ 1604#ifndef $as_decl_name 1605#ifdef __cplusplus 1606 (void) $as_decl_use; 1607#else 1608 (void) $as_decl_name; 1609#endif 1610#endif 1611 1612 ; 1613 return 0; 1614} 1615_ACEOF 1616if ac_fn_c_try_compile "$LINENO" 1617then : 1618 eval "$3=yes" 1619else $as_nop 1620 eval "$3=no" 1621fi 1622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1623 eval $6=\$ac_save_FLAGS 1624 1625fi 1626eval ac_res=\$$3 1627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1628printf "%s\n" "$ac_res" >&6; } 1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1630 1631} # ac_fn_check_decl 1632 1633# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1634# ------------------------------------------------------- 1635# Tests whether HEADER exists and can be compiled using the include files in 1636# INCLUDES, setting the cache variable VAR accordingly. 1637ac_fn_c_check_header_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1641printf %s "checking for $2... " >&6; } 1642if eval test \${$3+y} 1643then : 1644 printf %s "(cached) " >&6 1645else $as_nop 1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648$4 1649#include <$2> 1650_ACEOF 1651if ac_fn_c_try_compile "$LINENO" 1652then : 1653 eval "$3=yes" 1654else $as_nop 1655 eval "$3=no" 1656fi 1657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1658fi 1659eval ac_res=\$$3 1660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661printf "%s\n" "$ac_res" >&6; } 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 1664} # ac_fn_c_check_header_compile 1665 1666# ac_fn_c_try_link LINENO 1667# ----------------------- 1668# Try to link conftest.$ac_ext, and return whether this succeeded. 1669ac_fn_c_try_link () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1673 if { { ac_try="$ac_link" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679printf "%s\n" "$ac_try_echo"; } >&5 1680 (eval "$ac_link") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest$ac_exeext && { 1692 test "$cross_compiling" = yes || 1693 test -x conftest$ac_exeext 1694 } 1695then : 1696 ac_retval=0 1697else $as_nop 1698 printf "%s\n" "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1705 # interfere with the next link command; also delete a directory that is 1706 # left behind by Apple's compiler. We do this before executing the actions. 1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_link 1712ac_configure_args_raw= 1713for ac_arg 1714do 1715 case $ac_arg in 1716 *\'*) 1717 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1718 esac 1719 as_fn_append ac_configure_args_raw " '$ac_arg'" 1720done 1721 1722case $ac_configure_args_raw in 1723 *$as_nl*) 1724 ac_safe_unquote= ;; 1725 *) 1726 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1727 ac_unsafe_a="$ac_unsafe_z#~" 1728 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1729 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1730esac 1731 1732cat >config.log <<_ACEOF 1733This file contains any messages produced by compilers while 1734running configure, to aid debugging if configure makes a mistake. 1735 1736It was created by xorg-cf-files $as_me 1.0.7, which was 1737generated by GNU Autoconf 2.71. Invocation command line was 1738 1739 $ $0$ac_configure_args_raw 1740 1741_ACEOF 1742exec 5>>config.log 1743{ 1744cat <<_ASUNAME 1745## --------- ## 1746## Platform. ## 1747## --------- ## 1748 1749hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1750uname -m = `(uname -m) 2>/dev/null || echo unknown` 1751uname -r = `(uname -r) 2>/dev/null || echo unknown` 1752uname -s = `(uname -s) 2>/dev/null || echo unknown` 1753uname -v = `(uname -v) 2>/dev/null || echo unknown` 1754 1755/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1756/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1757 1758/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1759/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1760/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1761/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1762/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1763/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1764/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1765 1766_ASUNAME 1767 1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1769for as_dir in $PATH 1770do 1771 IFS=$as_save_IFS 1772 case $as_dir in #((( 1773 '') as_dir=./ ;; 1774 */) ;; 1775 *) as_dir=$as_dir/ ;; 1776 esac 1777 printf "%s\n" "PATH: $as_dir" 1778 done 1779IFS=$as_save_IFS 1780 1781} >&5 1782 1783cat >&5 <<_ACEOF 1784 1785 1786## ----------- ## 1787## Core tests. ## 1788## ----------- ## 1789 1790_ACEOF 1791 1792 1793# Keep a trace of the command line. 1794# Strip out --no-create and --no-recursion so they do not pile up. 1795# Strip out --silent because we don't want to record it for future runs. 1796# Also quote any args containing shell meta-characters. 1797# Make two passes to allow for proper duplicate-argument suppression. 1798ac_configure_args= 1799ac_configure_args0= 1800ac_configure_args1= 1801ac_must_keep_next=false 1802for ac_pass in 1 2 1803do 1804 for ac_arg 1805 do 1806 case $ac_arg in 1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1809 | -silent | --silent | --silen | --sile | --sil) 1810 continue ;; 1811 *\'*) 1812 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1813 esac 1814 case $ac_pass in 1815 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1816 2) 1817 as_fn_append ac_configure_args1 " '$ac_arg'" 1818 if test $ac_must_keep_next = true; then 1819 ac_must_keep_next=false # Got value, back to normal. 1820 else 1821 case $ac_arg in 1822 *=* | --config-cache | -C | -disable-* | --disable-* \ 1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1825 | -with-* | --with-* | -without-* | --without-* | --x) 1826 case "$ac_configure_args0 " in 1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1828 esac 1829 ;; 1830 -* ) ac_must_keep_next=true ;; 1831 esac 1832 fi 1833 as_fn_append ac_configure_args " '$ac_arg'" 1834 ;; 1835 esac 1836 done 1837done 1838{ ac_configure_args0=; unset ac_configure_args0;} 1839{ ac_configure_args1=; unset ac_configure_args1;} 1840 1841# When interrupted or exit'd, cleanup temporary files, and complete 1842# config.log. We remove comments because anyway the quotes in there 1843# would cause problems or look ugly. 1844# WARNING: Use '\'' to represent an apostrophe within the trap. 1845# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1846trap 'exit_status=$? 1847 # Sanitize IFS. 1848 IFS=" "" $as_nl" 1849 # Save into config.log some information that might help in debugging. 1850 { 1851 echo 1852 1853 printf "%s\n" "## ---------------- ## 1854## Cache variables. ## 1855## ---------------- ##" 1856 echo 1857 # The following way of writing the cache mishandles newlines in values, 1858( 1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1860 eval ac_val=\$$ac_var 1861 case $ac_val in #( 1862 *${as_nl}*) 1863 case $ac_var in #( 1864 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1865printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1866 esac 1867 case $ac_var in #( 1868 _ | IFS | as_nl) ;; #( 1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1870 *) { eval $ac_var=; unset $ac_var;} ;; 1871 esac ;; 1872 esac 1873 done 1874 (set) 2>&1 | 1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1876 *${as_nl}ac_space=\ *) 1877 sed -n \ 1878 "s/'\''/'\''\\\\'\'''\''/g; 1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1880 ;; #( 1881 *) 1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1883 ;; 1884 esac | 1885 sort 1886) 1887 echo 1888 1889 printf "%s\n" "## ----------------- ## 1890## Output variables. ## 1891## ----------------- ##" 1892 echo 1893 for ac_var in $ac_subst_vars 1894 do 1895 eval ac_val=\$$ac_var 1896 case $ac_val in 1897 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1898 esac 1899 printf "%s\n" "$ac_var='\''$ac_val'\''" 1900 done | sort 1901 echo 1902 1903 if test -n "$ac_subst_files"; then 1904 printf "%s\n" "## ------------------- ## 1905## File substitutions. ## 1906## ------------------- ##" 1907 echo 1908 for ac_var in $ac_subst_files 1909 do 1910 eval ac_val=\$$ac_var 1911 case $ac_val in 1912 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1913 esac 1914 printf "%s\n" "$ac_var='\''$ac_val'\''" 1915 done | sort 1916 echo 1917 fi 1918 1919 if test -s confdefs.h; then 1920 printf "%s\n" "## ----------- ## 1921## confdefs.h. ## 1922## ----------- ##" 1923 echo 1924 cat confdefs.h 1925 echo 1926 fi 1927 test "$ac_signal" != 0 && 1928 printf "%s\n" "$as_me: caught signal $ac_signal" 1929 printf "%s\n" "$as_me: exit $exit_status" 1930 } >&5 1931 rm -f core *.core core.conftest.* && 1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1933 exit $exit_status 1934' 0 1935for ac_signal in 1 2 13 15; do 1936 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1937done 1938ac_signal=0 1939 1940# confdefs.h avoids OS command line length limits that DEFS can exceed. 1941rm -f -r conftest* confdefs.h 1942 1943printf "%s\n" "/* confdefs.h */" > confdefs.h 1944 1945# Predefined preprocessor variables. 1946 1947printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1948 1949printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1950 1951printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1952 1953printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1954 1955printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1956 1957printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1958 1959 1960# Let the site file select an alternate cache file if it wants to. 1961# Prefer an explicitly selected file to automatically selected ones. 1962if test -n "$CONFIG_SITE"; then 1963 ac_site_files="$CONFIG_SITE" 1964elif test "x$prefix" != xNONE; then 1965 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1966else 1967 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1968fi 1969 1970for ac_site_file in $ac_site_files 1971do 1972 case $ac_site_file in #( 1973 */*) : 1974 ;; #( 1975 *) : 1976 ac_site_file=./$ac_site_file ;; 1977esac 1978 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1980printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1981 sed 's/^/| /' "$ac_site_file" >&5 1982 . "$ac_site_file" \ 1983 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1984printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1985as_fn_error $? "failed to load site script $ac_site_file 1986See \`config.log' for more details" "$LINENO" 5; } 1987 fi 1988done 1989 1990if test -r "$cache_file"; then 1991 # Some versions of bash will fail to source /dev/null (special files 1992 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1993 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1995printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1996 case $cache_file in 1997 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1998 *) . "./$cache_file";; 1999 esac 2000 fi 2001else 2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2003printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2004 >$cache_file 2005fi 2006 2007# Test code for whether the C compiler supports C89 (global declarations) 2008ac_c_conftest_c89_globals=' 2009/* Does the compiler advertise C89 conformance? 2010 Do not test the value of __STDC__, because some compilers set it to 0 2011 while being otherwise adequately conformant. */ 2012#if !defined __STDC__ 2013# error "Compiler does not advertise C89 conformance" 2014#endif 2015 2016#include <stddef.h> 2017#include <stdarg.h> 2018struct stat; 2019/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2020struct buf { int x; }; 2021struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2022static char *e (p, i) 2023 char **p; 2024 int i; 2025{ 2026 return p[i]; 2027} 2028static char *f (char * (*g) (char **, int), char **p, ...) 2029{ 2030 char *s; 2031 va_list v; 2032 va_start (v,p); 2033 s = g (p, va_arg (v,int)); 2034 va_end (v); 2035 return s; 2036} 2037 2038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2039 function prototypes and stuff, but not \xHH hex character constants. 2040 These do not provoke an error unfortunately, instead are silently treated 2041 as an "x". The following induces an error, until -std is added to get 2042 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2043 array size at least. It is necessary to write \x00 == 0 to get something 2044 that is true only with -std. */ 2045int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2046 2047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2048 inside strings and character constants. */ 2049#define FOO(x) '\''x'\'' 2050int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2051 2052int test (int i, double x); 2053struct s1 {int (*f) (int a);}; 2054struct s2 {int (*f) (double a);}; 2055int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2056 int, int);' 2057 2058# Test code for whether the C compiler supports C89 (body of main). 2059ac_c_conftest_c89_main=' 2060ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2061' 2062 2063# Test code for whether the C compiler supports C99 (global declarations) 2064ac_c_conftest_c99_globals=' 2065// Does the compiler advertise C99 conformance? 2066#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2067# error "Compiler does not advertise C99 conformance" 2068#endif 2069 2070#include <stdbool.h> 2071extern int puts (const char *); 2072extern int printf (const char *, ...); 2073extern int dprintf (int, const char *, ...); 2074extern void *malloc (size_t); 2075 2076// Check varargs macros. These examples are taken from C99 6.10.3.5. 2077// dprintf is used instead of fprintf to avoid needing to declare 2078// FILE and stderr. 2079#define debug(...) dprintf (2, __VA_ARGS__) 2080#define showlist(...) puts (#__VA_ARGS__) 2081#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2082static void 2083test_varargs_macros (void) 2084{ 2085 int x = 1234; 2086 int y = 5678; 2087 debug ("Flag"); 2088 debug ("X = %d\n", x); 2089 showlist (The first, second, and third items.); 2090 report (x>y, "x is %d but y is %d", x, y); 2091} 2092 2093// Check long long types. 2094#define BIG64 18446744073709551615ull 2095#define BIG32 4294967295ul 2096#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2097#if !BIG_OK 2098 #error "your preprocessor is broken" 2099#endif 2100#if BIG_OK 2101#else 2102 #error "your preprocessor is broken" 2103#endif 2104static long long int bignum = -9223372036854775807LL; 2105static unsigned long long int ubignum = BIG64; 2106 2107struct incomplete_array 2108{ 2109 int datasize; 2110 double data[]; 2111}; 2112 2113struct named_init { 2114 int number; 2115 const wchar_t *name; 2116 double average; 2117}; 2118 2119typedef const char *ccp; 2120 2121static inline int 2122test_restrict (ccp restrict text) 2123{ 2124 // See if C++-style comments work. 2125 // Iterate through items via the restricted pointer. 2126 // Also check for declarations in for loops. 2127 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2128 continue; 2129 return 0; 2130} 2131 2132// Check varargs and va_copy. 2133static bool 2134test_varargs (const char *format, ...) 2135{ 2136 va_list args; 2137 va_start (args, format); 2138 va_list args_copy; 2139 va_copy (args_copy, args); 2140 2141 const char *str = ""; 2142 int number = 0; 2143 float fnumber = 0; 2144 2145 while (*format) 2146 { 2147 switch (*format++) 2148 { 2149 case '\''s'\'': // string 2150 str = va_arg (args_copy, const char *); 2151 break; 2152 case '\''d'\'': // int 2153 number = va_arg (args_copy, int); 2154 break; 2155 case '\''f'\'': // float 2156 fnumber = va_arg (args_copy, double); 2157 break; 2158 default: 2159 break; 2160 } 2161 } 2162 va_end (args_copy); 2163 va_end (args); 2164 2165 return *str && number && fnumber; 2166} 2167' 2168 2169# Test code for whether the C compiler supports C99 (body of main). 2170ac_c_conftest_c99_main=' 2171 // Check bool. 2172 _Bool success = false; 2173 success |= (argc != 0); 2174 2175 // Check restrict. 2176 if (test_restrict ("String literal") == 0) 2177 success = true; 2178 char *restrict newvar = "Another string"; 2179 2180 // Check varargs. 2181 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2182 test_varargs_macros (); 2183 2184 // Check flexible array members. 2185 struct incomplete_array *ia = 2186 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2187 ia->datasize = 10; 2188 for (int i = 0; i < ia->datasize; ++i) 2189 ia->data[i] = i * 1.234; 2190 2191 // Check named initializers. 2192 struct named_init ni = { 2193 .number = 34, 2194 .name = L"Test wide string", 2195 .average = 543.34343, 2196 }; 2197 2198 ni.number = 58; 2199 2200 int dynamic_array[ni.number]; 2201 dynamic_array[0] = argv[0][0]; 2202 dynamic_array[ni.number - 1] = 543; 2203 2204 // work around unused variable warnings 2205 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2206 || dynamic_array[ni.number - 1] != 543); 2207' 2208 2209# Test code for whether the C compiler supports C11 (global declarations) 2210ac_c_conftest_c11_globals=' 2211// Does the compiler advertise C11 conformance? 2212#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2213# error "Compiler does not advertise C11 conformance" 2214#endif 2215 2216// Check _Alignas. 2217char _Alignas (double) aligned_as_double; 2218char _Alignas (0) no_special_alignment; 2219extern char aligned_as_int; 2220char _Alignas (0) _Alignas (int) aligned_as_int; 2221 2222// Check _Alignof. 2223enum 2224{ 2225 int_alignment = _Alignof (int), 2226 int_array_alignment = _Alignof (int[100]), 2227 char_alignment = _Alignof (char) 2228}; 2229_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2230 2231// Check _Noreturn. 2232int _Noreturn does_not_return (void) { for (;;) continue; } 2233 2234// Check _Static_assert. 2235struct test_static_assert 2236{ 2237 int x; 2238 _Static_assert (sizeof (int) <= sizeof (long int), 2239 "_Static_assert does not work in struct"); 2240 long int y; 2241}; 2242 2243// Check UTF-8 literals. 2244#define u8 syntax error! 2245char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2246 2247// Check duplicate typedefs. 2248typedef long *long_ptr; 2249typedef long int *long_ptr; 2250typedef long_ptr long_ptr; 2251 2252// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2253struct anonymous 2254{ 2255 union { 2256 struct { int i; int j; }; 2257 struct { int k; long int l; } w; 2258 }; 2259 int m; 2260} v1; 2261' 2262 2263# Test code for whether the C compiler supports C11 (body of main). 2264ac_c_conftest_c11_main=' 2265 _Static_assert ((offsetof (struct anonymous, i) 2266 == offsetof (struct anonymous, w.k)), 2267 "Anonymous union alignment botch"); 2268 v1.i = 2; 2269 v1.w.k = 5; 2270 ok |= v1.i != 5; 2271' 2272 2273# Test code for whether the C compiler supports C11 (complete). 2274ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2275${ac_c_conftest_c99_globals} 2276${ac_c_conftest_c11_globals} 2277 2278int 2279main (int argc, char **argv) 2280{ 2281 int ok = 0; 2282 ${ac_c_conftest_c89_main} 2283 ${ac_c_conftest_c99_main} 2284 ${ac_c_conftest_c11_main} 2285 return ok; 2286} 2287" 2288 2289# Test code for whether the C compiler supports C99 (complete). 2290ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2291${ac_c_conftest_c99_globals} 2292 2293int 2294main (int argc, char **argv) 2295{ 2296 int ok = 0; 2297 ${ac_c_conftest_c89_main} 2298 ${ac_c_conftest_c99_main} 2299 return ok; 2300} 2301" 2302 2303# Test code for whether the C compiler supports C89 (complete). 2304ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2305 2306int 2307main (int argc, char **argv) 2308{ 2309 int ok = 0; 2310 ${ac_c_conftest_c89_main} 2311 return ok; 2312} 2313" 2314 2315as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2316as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2317as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2318as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2319as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2320as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2321as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2322as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2323as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2324 2325# Auxiliary files required by this configure script. 2326ac_aux_files="config.guess config.sub compile missing install-sh" 2327 2328# Locations in which to look for auxiliary files. 2329ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2330 2331# Search for a directory containing all of the required auxiliary files, 2332# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2333# If we don't find one directory that contains all the files we need, 2334# we report the set of missing files from the *first* directory in 2335# $ac_aux_dir_candidates and give up. 2336ac_missing_aux_files="" 2337ac_first_candidate=: 2338printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340as_found=false 2341for as_dir in $ac_aux_dir_candidates 2342do 2343 IFS=$as_save_IFS 2344 case $as_dir in #((( 2345 '') as_dir=./ ;; 2346 */) ;; 2347 *) as_dir=$as_dir/ ;; 2348 esac 2349 as_found=: 2350 2351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2352 ac_aux_dir_found=yes 2353 ac_install_sh= 2354 for ac_aux in $ac_aux_files 2355 do 2356 # As a special case, if "install-sh" is required, that requirement 2357 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2358 # and $ac_install_sh is set appropriately for whichever one is found. 2359 if test x"$ac_aux" = x"install-sh" 2360 then 2361 if test -f "${as_dir}install-sh"; then 2362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2363 ac_install_sh="${as_dir}install-sh -c" 2364 elif test -f "${as_dir}install.sh"; then 2365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2366 ac_install_sh="${as_dir}install.sh -c" 2367 elif test -f "${as_dir}shtool"; then 2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2369 ac_install_sh="${as_dir}shtool install -c" 2370 else 2371 ac_aux_dir_found=no 2372 if $ac_first_candidate; then 2373 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2374 else 2375 break 2376 fi 2377 fi 2378 else 2379 if test -f "${as_dir}${ac_aux}"; then 2380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2381 else 2382 ac_aux_dir_found=no 2383 if $ac_first_candidate; then 2384 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2385 else 2386 break 2387 fi 2388 fi 2389 fi 2390 done 2391 if test "$ac_aux_dir_found" = yes; then 2392 ac_aux_dir="$as_dir" 2393 break 2394 fi 2395 ac_first_candidate=false 2396 2397 as_found=false 2398done 2399IFS=$as_save_IFS 2400if $as_found 2401then : 2402 2403else $as_nop 2404 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2405fi 2406 2407 2408# These three variables are undocumented and unsupported, 2409# and are intended to be withdrawn in a future Autoconf release. 2410# They can cause serious problems if a builder's source tree is in a directory 2411# whose full name contains unusual characters. 2412if test -f "${ac_aux_dir}config.guess"; then 2413 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2414fi 2415if test -f "${ac_aux_dir}config.sub"; then 2416 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2417fi 2418if test -f "$ac_aux_dir/configure"; then 2419 ac_configure="$SHELL ${ac_aux_dir}configure" 2420fi 2421 2422# Check that the precious variables saved in the cache have kept the same 2423# value. 2424ac_cache_corrupted=false 2425for ac_var in $ac_precious_vars; do 2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2427 eval ac_new_set=\$ac_env_${ac_var}_set 2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2429 eval ac_new_val=\$ac_env_${ac_var}_value 2430 case $ac_old_set,$ac_new_set in 2431 set,) 2432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2433printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2434 ac_cache_corrupted=: ;; 2435 ,set) 2436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2437printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2438 ac_cache_corrupted=: ;; 2439 ,);; 2440 *) 2441 if test "x$ac_old_val" != "x$ac_new_val"; then 2442 # differences in whitespace do not lead to failure. 2443 ac_old_val_w=`echo x $ac_old_val` 2444 ac_new_val_w=`echo x $ac_new_val` 2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2447printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2448 ac_cache_corrupted=: 2449 else 2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2451printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2452 eval $ac_var=\$ac_old_val 2453 fi 2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2455printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2457printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2458 fi;; 2459 esac 2460 # Pass precious variables to config.status. 2461 if test "$ac_new_set" = set; then 2462 case $ac_new_val in 2463 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2464 *) ac_arg=$ac_var=$ac_new_val ;; 2465 esac 2466 case " $ac_configure_args " in 2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2469 esac 2470 fi 2471done 2472if $ac_cache_corrupted; then 2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2474printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2476printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2477 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2478 and start over" "$LINENO" 5 2479fi 2480## -------------------- ## 2481## Main body of script. ## 2482## -------------------- ## 2483 2484ac_ext=c 2485ac_cpp='$CPP $CPPFLAGS' 2486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2488ac_compiler_gnu=$ac_cv_c_compiler_gnu 2489 2490 2491 2492 2493# Initialize Automake 2494am__api_version='1.16' 2495 2496 2497 2498 # Find a good install program. We prefer a C program (faster), 2499# so one script is as good as another. But avoid the broken or 2500# incompatible versions: 2501# SysV /etc/install, /usr/sbin/install 2502# SunOS /usr/etc/install 2503# IRIX /sbin/install 2504# AIX /bin/install 2505# AmigaOS /C/install, which installs bootblocks on floppy discs 2506# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2507# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2508# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2509# OS/2's system install, which has a completely different semantic 2510# ./install, which can be erroneously created by make from ./install.sh. 2511# Reject install programs that cannot install multiple files. 2512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2513printf %s "checking for a BSD-compatible install... " >&6; } 2514if test -z "$INSTALL"; then 2515if test ${ac_cv_path_install+y} 2516then : 2517 printf %s "(cached) " >&6 2518else $as_nop 2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520for as_dir in $PATH 2521do 2522 IFS=$as_save_IFS 2523 case $as_dir in #((( 2524 '') as_dir=./ ;; 2525 */) ;; 2526 *) as_dir=$as_dir/ ;; 2527 esac 2528 # Account for fact that we put trailing slashes in our PATH walk. 2529case $as_dir in #(( 2530 ./ | /[cC]/* | \ 2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2533 /usr/ucb/* ) ;; 2534 *) 2535 # OSF1 and SCO ODT 3.0 have their own names for install. 2536 # Don't use installbsd from OSF since it installs stuff as root 2537 # by default. 2538 for ac_prog in ginstall scoinst install; do 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2541 if test $ac_prog = install && 2542 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2543 # AIX install. It has an incompatible calling convention. 2544 : 2545 elif test $ac_prog = install && 2546 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2547 # program-specific install script used by HP pwplus--don't use. 2548 : 2549 else 2550 rm -rf conftest.one conftest.two conftest.dir 2551 echo one > conftest.one 2552 echo two > conftest.two 2553 mkdir conftest.dir 2554 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2555 test -s conftest.one && test -s conftest.two && 2556 test -s conftest.dir/conftest.one && 2557 test -s conftest.dir/conftest.two 2558 then 2559 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2560 break 3 2561 fi 2562 fi 2563 fi 2564 done 2565 done 2566 ;; 2567esac 2568 2569 done 2570IFS=$as_save_IFS 2571 2572rm -rf conftest.one conftest.two conftest.dir 2573 2574fi 2575 if test ${ac_cv_path_install+y}; then 2576 INSTALL=$ac_cv_path_install 2577 else 2578 # As a last resort, use the slow shell script. Don't cache a 2579 # value for INSTALL within a source directory, because that will 2580 # break other packages using the cache if that directory is 2581 # removed, or if the value is a relative name. 2582 INSTALL=$ac_install_sh 2583 fi 2584fi 2585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2586printf "%s\n" "$INSTALL" >&6; } 2587 2588# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2589# It thinks the first close brace ends the variable substitution. 2590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2591 2592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2593 2594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2595 2596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2597printf %s "checking whether build environment is sane... " >&6; } 2598# Reject unsafe characters in $srcdir or the absolute working directory 2599# name. Accept space and tab only in the latter. 2600am_lf=' 2601' 2602case `pwd` in 2603 *[\\\"\#\$\&\'\`$am_lf]*) 2604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2605esac 2606case $srcdir in 2607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2608 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2609esac 2610 2611# Do 'set' in a subshell so we don't clobber the current shell's 2612# arguments. Must try -L first in case configure is actually a 2613# symlink; some systems play weird games with the mod time of symlinks 2614# (eg FreeBSD returns the mod time of the symlink's containing 2615# directory). 2616if ( 2617 am_has_slept=no 2618 for am_try in 1 2; do 2619 echo "timestamp, slept: $am_has_slept" > conftest.file 2620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2621 if test "$*" = "X"; then 2622 # -L didn't work. 2623 set X `ls -t "$srcdir/configure" conftest.file` 2624 fi 2625 if test "$*" != "X $srcdir/configure conftest.file" \ 2626 && test "$*" != "X conftest.file $srcdir/configure"; then 2627 2628 # If neither matched, then we have a broken ls. This can happen 2629 # if, for instance, CONFIG_SHELL is bash and it inherits a 2630 # broken ls alias from the environment. This has actually 2631 # happened. Such a system could not be considered "sane". 2632 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2633 alias in your environment" "$LINENO" 5 2634 fi 2635 if test "$2" = conftest.file || test $am_try -eq 2; then 2636 break 2637 fi 2638 # Just in case. 2639 sleep 1 2640 am_has_slept=yes 2641 done 2642 test "$2" = conftest.file 2643 ) 2644then 2645 # Ok. 2646 : 2647else 2648 as_fn_error $? "newly created file is older than distributed files! 2649Check your system clock" "$LINENO" 5 2650fi 2651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2652printf "%s\n" "yes" >&6; } 2653# If we didn't sleep, we still need to ensure time stamps of config.status and 2654# generated files are strictly newer. 2655am_sleep_pid= 2656if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2657 ( sleep 1 ) & 2658 am_sleep_pid=$! 2659fi 2660 2661rm -f conftest.file 2662 2663test "$program_prefix" != NONE && 2664 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2665# Use a double $ so make ignores it. 2666test "$program_suffix" != NONE && 2667 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2668# Double any \ or $. 2669# By default was `s,x,x', remove it if useless. 2670ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2671program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2672 2673 2674# Expand $ac_aux_dir to an absolute path. 2675am_aux_dir=`cd "$ac_aux_dir" && pwd` 2676 2677 2678 if test x"${MISSING+set}" != xset; then 2679 MISSING="\${SHELL} '$am_aux_dir/missing'" 2680fi 2681# Use eval to expand $SHELL 2682if eval "$MISSING --is-lightweight"; then 2683 am_missing_run="$MISSING " 2684else 2685 am_missing_run= 2686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2687printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2688fi 2689 2690if test x"${install_sh+set}" != xset; then 2691 case $am_aux_dir in 2692 *\ * | *\ *) 2693 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2694 *) 2695 install_sh="\${SHELL} $am_aux_dir/install-sh" 2696 esac 2697fi 2698 2699# Installed binaries are usually stripped using 'strip' when the user 2700# run "make install-strip". However 'strip' might not be the right 2701# tool to use in cross-compilation environments, therefore Automake 2702# will honor the 'STRIP' environment variable to overrule this program. 2703if test "$cross_compiling" != no; then 2704 if test -n "$ac_tool_prefix"; then 2705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2706set dummy ${ac_tool_prefix}strip; ac_word=$2 2707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2708printf %s "checking for $ac_word... " >&6; } 2709if test ${ac_cv_prog_STRIP+y} 2710then : 2711 printf %s "(cached) " >&6 2712else $as_nop 2713 if test -n "$STRIP"; then 2714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 case $as_dir in #((( 2721 '') as_dir=./ ;; 2722 */) ;; 2723 *) as_dir=$as_dir/ ;; 2724 esac 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2727 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732 done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737STRIP=$ac_cv_prog_STRIP 2738if test -n "$STRIP"; then 2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2740printf "%s\n" "$STRIP" >&6; } 2741else 2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2743printf "%s\n" "no" >&6; } 2744fi 2745 2746 2747fi 2748if test -z "$ac_cv_prog_STRIP"; then 2749 ac_ct_STRIP=$STRIP 2750 # Extract the first word of "strip", so it can be a program name with args. 2751set dummy strip; ac_word=$2 2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2753printf %s "checking for $ac_word... " >&6; } 2754if test ${ac_cv_prog_ac_ct_STRIP+y} 2755then : 2756 printf %s "(cached) " >&6 2757else $as_nop 2758 if test -n "$ac_ct_STRIP"; then 2759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 case $as_dir in #((( 2766 '') as_dir=./ ;; 2767 */) ;; 2768 *) as_dir=$as_dir/ ;; 2769 esac 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2772 ac_cv_prog_ac_ct_STRIP="strip" 2773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777 done 2778IFS=$as_save_IFS 2779 2780fi 2781fi 2782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2783if test -n "$ac_ct_STRIP"; then 2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2785printf "%s\n" "$ac_ct_STRIP" >&6; } 2786else 2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788printf "%s\n" "no" >&6; } 2789fi 2790 2791 if test "x$ac_ct_STRIP" = x; then 2792 STRIP=":" 2793 else 2794 case $cross_compiling:$ac_tool_warned in 2795yes:) 2796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2797printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2798ac_tool_warned=yes ;; 2799esac 2800 STRIP=$ac_ct_STRIP 2801 fi 2802else 2803 STRIP="$ac_cv_prog_STRIP" 2804fi 2805 2806fi 2807INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2808 2809 2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2811printf %s "checking for a race-free mkdir -p... " >&6; } 2812if test -z "$MKDIR_P"; then 2813 if test ${ac_cv_path_mkdir+y} 2814then : 2815 printf %s "(cached) " >&6 2816else $as_nop 2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2819do 2820 IFS=$as_save_IFS 2821 case $as_dir in #((( 2822 '') as_dir=./ ;; 2823 */) ;; 2824 *) as_dir=$as_dir/ ;; 2825 esac 2826 for ac_prog in mkdir gmkdir; do 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2829 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2830 'mkdir ('*'coreutils) '* | \ 2831 'BusyBox '* | \ 2832 'mkdir (fileutils) '4.1*) 2833 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2834 break 3;; 2835 esac 2836 done 2837 done 2838 done 2839IFS=$as_save_IFS 2840 2841fi 2842 2843 test -d ./--version && rmdir ./--version 2844 if test ${ac_cv_path_mkdir+y}; then 2845 MKDIR_P="$ac_cv_path_mkdir -p" 2846 else 2847 # As a last resort, use the slow shell script. Don't cache a 2848 # value for MKDIR_P within a source directory, because that will 2849 # break other packages using the cache if that directory is 2850 # removed, or if the value is a relative name. 2851 MKDIR_P="$ac_install_sh -d" 2852 fi 2853fi 2854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2855printf "%s\n" "$MKDIR_P" >&6; } 2856 2857for ac_prog in gawk mawk nawk awk 2858do 2859 # Extract the first word of "$ac_prog", so it can be a program name with args. 2860set dummy $ac_prog; ac_word=$2 2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862printf %s "checking for $ac_word... " >&6; } 2863if test ${ac_cv_prog_AWK+y} 2864then : 2865 printf %s "(cached) " >&6 2866else $as_nop 2867 if test -n "$AWK"; then 2868 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 case $as_dir in #((( 2875 '') as_dir=./ ;; 2876 */) ;; 2877 *) as_dir=$as_dir/ ;; 2878 esac 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_AWK="$ac_prog" 2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891AWK=$ac_cv_prog_AWK 2892if test -n "$AWK"; then 2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2894printf "%s\n" "$AWK" >&6; } 2895else 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897printf "%s\n" "no" >&6; } 2898fi 2899 2900 2901 test -n "$AWK" && break 2902done 2903 2904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2905printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2906set x ${MAKE-make} 2907ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2908if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2909then : 2910 printf %s "(cached) " >&6 2911else $as_nop 2912 cat >conftest.make <<\_ACEOF 2913SHELL = /bin/sh 2914all: 2915 @echo '@@@%%%=$(MAKE)=@@@%%%' 2916_ACEOF 2917# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2918case `${MAKE-make} -f conftest.make 2>/dev/null` in 2919 *@@@%%%=?*=@@@%%%*) 2920 eval ac_cv_prog_make_${ac_make}_set=yes;; 2921 *) 2922 eval ac_cv_prog_make_${ac_make}_set=no;; 2923esac 2924rm -f conftest.make 2925fi 2926if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2928printf "%s\n" "yes" >&6; } 2929 SET_MAKE= 2930else 2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932printf "%s\n" "no" >&6; } 2933 SET_MAKE="MAKE=${MAKE-make}" 2934fi 2935 2936rm -rf .tst 2>/dev/null 2937mkdir .tst 2>/dev/null 2938if test -d .tst; then 2939 am__leading_dot=. 2940else 2941 am__leading_dot=_ 2942fi 2943rmdir .tst 2>/dev/null 2944 2945# Check whether --enable-silent-rules was given. 2946if test ${enable_silent_rules+y} 2947then : 2948 enableval=$enable_silent_rules; 2949fi 2950 2951case $enable_silent_rules in # ((( 2952 yes) AM_DEFAULT_VERBOSITY=0;; 2953 no) AM_DEFAULT_VERBOSITY=1;; 2954 *) AM_DEFAULT_VERBOSITY=1;; 2955esac 2956am_make=${MAKE-make} 2957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2958printf %s "checking whether $am_make supports nested variables... " >&6; } 2959if test ${am_cv_make_support_nested_variables+y} 2960then : 2961 printf %s "(cached) " >&6 2962else $as_nop 2963 if printf "%s\n" 'TRUE=$(BAR$(V)) 2964BAR0=false 2965BAR1=true 2966V=1 2967am__doit: 2968 @$(TRUE) 2969.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2970 am_cv_make_support_nested_variables=yes 2971else 2972 am_cv_make_support_nested_variables=no 2973fi 2974fi 2975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2976printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2977if test $am_cv_make_support_nested_variables = yes; then 2978 AM_V='$(V)' 2979 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2980else 2981 AM_V=$AM_DEFAULT_VERBOSITY 2982 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2983fi 2984AM_BACKSLASH='\' 2985 2986if test "`cd $srcdir && pwd`" != "`pwd`"; then 2987 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2988 # is not polluted with repeated "-I." 2989 am__isrc=' -I$(srcdir)' 2990 # test to see if srcdir already configured 2991 if test -f $srcdir/config.status; then 2992 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2993 fi 2994fi 2995 2996# test whether we have cygpath 2997if test -z "$CYGPATH_W"; then 2998 if (cygpath --version) >/dev/null 2>/dev/null; then 2999 CYGPATH_W='cygpath -w' 3000 else 3001 CYGPATH_W=echo 3002 fi 3003fi 3004 3005 3006# Define the identity of the package. 3007 PACKAGE='xorg-cf-files' 3008 VERSION='1.0.7' 3009 3010 3011printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3012 3013 3014printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3015 3016# Some tools Automake needs. 3017 3018ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3019 3020 3021AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3022 3023 3024AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3025 3026 3027AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3028 3029 3030MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3031 3032# For better backward compatibility. To be removed once Automake 1.9.x 3033# dies out for good. For more background, see: 3034# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3035# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3036mkdir_p='$(MKDIR_P)' 3037 3038# We need awk for the "check" target (and possibly the TAP driver). The 3039# system "awk" is bad on some platforms. 3040# Always define AMTAR for backward compatibility. Yes, it's still used 3041# in the wild :-( We should find a proper way to deprecate it ... 3042AMTAR='$${TAR-tar}' 3043 3044 3045# We'll loop over all known methods to create a tar archive until one works. 3046_am_tools='gnutar pax cpio none' 3047 3048am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3049 3050 3051 3052 3053 3054# Variables for tags utilities; see am/tags.am 3055if test -z "$CTAGS"; then 3056 CTAGS=ctags 3057fi 3058 3059if test -z "$ETAGS"; then 3060 ETAGS=etags 3061fi 3062 3063if test -z "$CSCOPE"; then 3064 CSCOPE=cscope 3065fi 3066 3067 3068 3069# POSIX will say in a future version that running "rm -f" with no argument 3070# is OK; and we want to be able to make that assumption in our Makefile 3071# recipes. So use an aggressive probe to check that the usage we want is 3072# actually supported "in the wild" to an acceptable degree. 3073# See automake bug#10828. 3074# To make any issue more visible, cause the running configure to be aborted 3075# by default if the 'rm' program in use doesn't match our expectations; the 3076# user can still override this though. 3077if rm -f && rm -fr && rm -rf; then : OK; else 3078 cat >&2 <<'END' 3079Oops! 3080 3081Your 'rm' program seems unable to run without file operands specified 3082on the command line, even when the '-f' option is present. This is contrary 3083to the behaviour of most rm programs out there, and not conforming with 3084the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3085 3086Please tell bug-automake@gnu.org about your system, including the value 3087of your $PATH and any error possibly output before this message. This 3088can help us improve future automake versions. 3089 3090END 3091 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3092 echo 'Configuration will proceed anyway, since you have set the' >&2 3093 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3094 echo >&2 3095 else 3096 cat >&2 <<'END' 3097Aborting the configuration process, to ensure you take notice of the issue. 3098 3099You can download and install GNU coreutils to get an 'rm' implementation 3100that behaves properly: <https://www.gnu.org/software/coreutils/>. 3101 3102If you want to complete the configuration process using your problematic 3103'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3104to "yes", and re-run configure. 3105 3106END 3107 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3108 fi 3109fi 3110 3111 3112# Require xorg-macros 1.4 or later: XORG_DEFAULT_OPTIONS, XORG_INSTALL 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133DEPDIR="${am__leading_dot}deps" 3134 3135ac_config_commands="$ac_config_commands depfiles" 3136 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3138printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3139cat > confinc.mk << 'END' 3140am__doit: 3141 @echo this is the am__doit target >confinc.out 3142.PHONY: am__doit 3143END 3144am__include="#" 3145am__quote= 3146# BSD make does it like this. 3147echo '.include "confinc.mk" # ignored' > confmf.BSD 3148# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3149echo 'include confinc.mk # ignored' > confmf.GNU 3150_am_result=no 3151for s in GNU BSD; do 3152 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3153 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3154 ac_status=$? 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); } 3157 case $?:`cat confinc.out 2>/dev/null` in #( 3158 '0:this is the am__doit target') : 3159 case $s in #( 3160 BSD) : 3161 am__include='.include' am__quote='"' ;; #( 3162 *) : 3163 am__include='include' am__quote='' ;; 3164esac ;; #( 3165 *) : 3166 ;; 3167esac 3168 if test "$am__include" != "#"; then 3169 _am_result="yes ($s style)" 3170 break 3171 fi 3172done 3173rm -f confinc.* confmf.* 3174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3175printf "%s\n" "${_am_result}" >&6; } 3176 3177# Check whether --enable-dependency-tracking was given. 3178if test ${enable_dependency_tracking+y} 3179then : 3180 enableval=$enable_dependency_tracking; 3181fi 3182 3183if test "x$enable_dependency_tracking" != xno; then 3184 am_depcomp="$ac_aux_dir/depcomp" 3185 AMDEPBACKSLASH='\' 3186 am__nodep='_no' 3187fi 3188 if test "x$enable_dependency_tracking" != xno; then 3189 AMDEP_TRUE= 3190 AMDEP_FALSE='#' 3191else 3192 AMDEP_TRUE='#' 3193 AMDEP_FALSE= 3194fi 3195 3196 3197ac_ext=c 3198ac_cpp='$CPP $CPPFLAGS' 3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3201ac_compiler_gnu=$ac_cv_c_compiler_gnu 3202if test -n "$ac_tool_prefix"; then 3203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3204set dummy ${ac_tool_prefix}gcc; ac_word=$2 3205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206printf %s "checking for $ac_word... " >&6; } 3207if test ${ac_cv_prog_CC+y} 3208then : 3209 printf %s "(cached) " >&6 3210else $as_nop 3211 if test -n "$CC"; then 3212 ac_cv_prog_CC="$CC" # Let the user override the test. 3213else 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 case $as_dir in #((( 3219 '') as_dir=./ ;; 3220 */) ;; 3221 *) as_dir=$as_dir/ ;; 3222 esac 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3225 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233fi 3234fi 3235CC=$ac_cv_prog_CC 3236if test -n "$CC"; then 3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3238printf "%s\n" "$CC" >&6; } 3239else 3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241printf "%s\n" "no" >&6; } 3242fi 3243 3244 3245fi 3246if test -z "$ac_cv_prog_CC"; then 3247 ac_ct_CC=$CC 3248 # Extract the first word of "gcc", so it can be a program name with args. 3249set dummy gcc; ac_word=$2 3250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3251printf %s "checking for $ac_word... " >&6; } 3252if test ${ac_cv_prog_ac_ct_CC+y} 3253then : 3254 printf %s "(cached) " >&6 3255else $as_nop 3256 if test -n "$ac_ct_CC"; then 3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3258else 3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3260for as_dir in $PATH 3261do 3262 IFS=$as_save_IFS 3263 case $as_dir in #((( 3264 '') as_dir=./ ;; 3265 */) ;; 3266 *) as_dir=$as_dir/ ;; 3267 esac 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3270 ac_cv_prog_ac_ct_CC="gcc" 3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280ac_ct_CC=$ac_cv_prog_ac_ct_CC 3281if test -n "$ac_ct_CC"; then 3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3283printf "%s\n" "$ac_ct_CC" >&6; } 3284else 3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286printf "%s\n" "no" >&6; } 3287fi 3288 3289 if test "x$ac_ct_CC" = x; then 3290 CC="" 3291 else 3292 case $cross_compiling:$ac_tool_warned in 3293yes:) 3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3295printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3296ac_tool_warned=yes ;; 3297esac 3298 CC=$ac_ct_CC 3299 fi 3300else 3301 CC="$ac_cv_prog_CC" 3302fi 3303 3304if test -z "$CC"; then 3305 if test -n "$ac_tool_prefix"; then 3306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3307set dummy ${ac_tool_prefix}cc; ac_word=$2 3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309printf %s "checking for $ac_word... " >&6; } 3310if test ${ac_cv_prog_CC+y} 3311then : 3312 printf %s "(cached) " >&6 3313else $as_nop 3314 if test -n "$CC"; then 3315 ac_cv_prog_CC="$CC" # Let the user override the test. 3316else 3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3318for as_dir in $PATH 3319do 3320 IFS=$as_save_IFS 3321 case $as_dir in #((( 3322 '') as_dir=./ ;; 3323 */) ;; 3324 *) as_dir=$as_dir/ ;; 3325 esac 3326 for ac_exec_ext in '' $ac_executable_extensions; do 3327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3328 ac_cv_prog_CC="${ac_tool_prefix}cc" 3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3330 break 2 3331 fi 3332done 3333 done 3334IFS=$as_save_IFS 3335 3336fi 3337fi 3338CC=$ac_cv_prog_CC 3339if test -n "$CC"; then 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3341printf "%s\n" "$CC" >&6; } 3342else 3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3344printf "%s\n" "no" >&6; } 3345fi 3346 3347 3348 fi 3349fi 3350if test -z "$CC"; then 3351 # Extract the first word of "cc", so it can be a program name with args. 3352set dummy cc; ac_word=$2 3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354printf %s "checking for $ac_word... " >&6; } 3355if test ${ac_cv_prog_CC+y} 3356then : 3357 printf %s "(cached) " >&6 3358else $as_nop 3359 if test -n "$CC"; then 3360 ac_cv_prog_CC="$CC" # Let the user override the test. 3361else 3362 ac_prog_rejected=no 3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 case $as_dir in #((( 3368 '') as_dir=./ ;; 3369 */) ;; 3370 *) as_dir=$as_dir/ ;; 3371 esac 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3374 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3375 ac_prog_rejected=yes 3376 continue 3377 fi 3378 ac_cv_prog_CC="cc" 3379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3380 break 2 3381 fi 3382done 3383 done 3384IFS=$as_save_IFS 3385 3386if test $ac_prog_rejected = yes; then 3387 # We found a bogon in the path, so make sure we never use it. 3388 set dummy $ac_cv_prog_CC 3389 shift 3390 if test $# != 0; then 3391 # We chose a different compiler from the bogus one. 3392 # However, it has the same basename, so the bogon will be chosen 3393 # first if we set CC to just the basename; use the full file name. 3394 shift 3395 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3396 fi 3397fi 3398fi 3399fi 3400CC=$ac_cv_prog_CC 3401if test -n "$CC"; then 3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3403printf "%s\n" "$CC" >&6; } 3404else 3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406printf "%s\n" "no" >&6; } 3407fi 3408 3409 3410fi 3411if test -z "$CC"; then 3412 if test -n "$ac_tool_prefix"; then 3413 for ac_prog in cl.exe 3414 do 3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3416set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3418printf %s "checking for $ac_word... " >&6; } 3419if test ${ac_cv_prog_CC+y} 3420then : 3421 printf %s "(cached) " >&6 3422else $as_nop 3423 if test -n "$CC"; then 3424 ac_cv_prog_CC="$CC" # Let the user override the test. 3425else 3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427for as_dir in $PATH 3428do 3429 IFS=$as_save_IFS 3430 case $as_dir in #((( 3431 '') as_dir=./ ;; 3432 */) ;; 3433 *) as_dir=$as_dir/ ;; 3434 esac 3435 for ac_exec_ext in '' $ac_executable_extensions; do 3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3439 break 2 3440 fi 3441done 3442 done 3443IFS=$as_save_IFS 3444 3445fi 3446fi 3447CC=$ac_cv_prog_CC 3448if test -n "$CC"; then 3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3450printf "%s\n" "$CC" >&6; } 3451else 3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453printf "%s\n" "no" >&6; } 3454fi 3455 3456 3457 test -n "$CC" && break 3458 done 3459fi 3460if test -z "$CC"; then 3461 ac_ct_CC=$CC 3462 for ac_prog in cl.exe 3463do 3464 # Extract the first word of "$ac_prog", so it can be a program name with args. 3465set dummy $ac_prog; ac_word=$2 3466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3467printf %s "checking for $ac_word... " >&6; } 3468if test ${ac_cv_prog_ac_ct_CC+y} 3469then : 3470 printf %s "(cached) " >&6 3471else $as_nop 3472 if test -n "$ac_ct_CC"; then 3473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3474else 3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3476for as_dir in $PATH 3477do 3478 IFS=$as_save_IFS 3479 case $as_dir in #((( 3480 '') as_dir=./ ;; 3481 */) ;; 3482 *) as_dir=$as_dir/ ;; 3483 esac 3484 for ac_exec_ext in '' $ac_executable_extensions; do 3485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3486 ac_cv_prog_ac_ct_CC="$ac_prog" 3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3488 break 2 3489 fi 3490done 3491 done 3492IFS=$as_save_IFS 3493 3494fi 3495fi 3496ac_ct_CC=$ac_cv_prog_ac_ct_CC 3497if test -n "$ac_ct_CC"; then 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3499printf "%s\n" "$ac_ct_CC" >&6; } 3500else 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3502printf "%s\n" "no" >&6; } 3503fi 3504 3505 3506 test -n "$ac_ct_CC" && break 3507done 3508 3509 if test "x$ac_ct_CC" = x; then 3510 CC="" 3511 else 3512 case $cross_compiling:$ac_tool_warned in 3513yes:) 3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3515printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3516ac_tool_warned=yes ;; 3517esac 3518 CC=$ac_ct_CC 3519 fi 3520fi 3521 3522fi 3523if test -z "$CC"; then 3524 if test -n "$ac_tool_prefix"; then 3525 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3526set dummy ${ac_tool_prefix}clang; ac_word=$2 3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3528printf %s "checking for $ac_word... " >&6; } 3529if test ${ac_cv_prog_CC+y} 3530then : 3531 printf %s "(cached) " >&6 3532else $as_nop 3533 if test -n "$CC"; then 3534 ac_cv_prog_CC="$CC" # Let the user override the test. 3535else 3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in $PATH 3538do 3539 IFS=$as_save_IFS 3540 case $as_dir in #((( 3541 '') as_dir=./ ;; 3542 */) ;; 3543 *) as_dir=$as_dir/ ;; 3544 esac 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3547 ac_cv_prog_CC="${ac_tool_prefix}clang" 3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551done 3552 done 3553IFS=$as_save_IFS 3554 3555fi 3556fi 3557CC=$ac_cv_prog_CC 3558if test -n "$CC"; then 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3560printf "%s\n" "$CC" >&6; } 3561else 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3563printf "%s\n" "no" >&6; } 3564fi 3565 3566 3567fi 3568if test -z "$ac_cv_prog_CC"; then 3569 ac_ct_CC=$CC 3570 # Extract the first word of "clang", so it can be a program name with args. 3571set dummy clang; ac_word=$2 3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3573printf %s "checking for $ac_word... " >&6; } 3574if test ${ac_cv_prog_ac_ct_CC+y} 3575then : 3576 printf %s "(cached) " >&6 3577else $as_nop 3578 if test -n "$ac_ct_CC"; then 3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3580else 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 case $as_dir in #((( 3586 '') as_dir=./ ;; 3587 */) ;; 3588 *) as_dir=$as_dir/ ;; 3589 esac 3590 for ac_exec_ext in '' $ac_executable_extensions; do 3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3592 ac_cv_prog_ac_ct_CC="clang" 3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596done 3597 done 3598IFS=$as_save_IFS 3599 3600fi 3601fi 3602ac_ct_CC=$ac_cv_prog_ac_ct_CC 3603if test -n "$ac_ct_CC"; then 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3605printf "%s\n" "$ac_ct_CC" >&6; } 3606else 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3608printf "%s\n" "no" >&6; } 3609fi 3610 3611 if test "x$ac_ct_CC" = x; then 3612 CC="" 3613 else 3614 case $cross_compiling:$ac_tool_warned in 3615yes:) 3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3617printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3618ac_tool_warned=yes ;; 3619esac 3620 CC=$ac_ct_CC 3621 fi 3622else 3623 CC="$ac_cv_prog_CC" 3624fi 3625 3626fi 3627 3628 3629test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3630printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3631as_fn_error $? "no acceptable C compiler found in \$PATH 3632See \`config.log' for more details" "$LINENO" 5; } 3633 3634# Provide some information about the compiler. 3635printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3636set X $ac_compile 3637ac_compiler=$2 3638for ac_option in --version -v -V -qversion -version; do 3639 { { ac_try="$ac_compiler $ac_option >&5" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645printf "%s\n" "$ac_try_echo"; } >&5 3646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3647 ac_status=$? 3648 if test -s conftest.err; then 3649 sed '10a\ 3650... rest of stderr output deleted ... 3651 10q' conftest.err >conftest.er1 3652 cat conftest.er1 >&5 3653 fi 3654 rm -f conftest.er1 conftest.err 3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3656 test $ac_status = 0; } 3657done 3658 3659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660/* end confdefs.h. */ 3661 3662int 3663main (void) 3664{ 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670ac_clean_files_save=$ac_clean_files 3671ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3672# Try to create an executable without -o first, disregard a.out. 3673# It will help us diagnose broken compilers, and finding out an intuition 3674# of exeext. 3675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3676printf %s "checking whether the C compiler works... " >&6; } 3677ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3678 3679# The possible output files: 3680ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3681 3682ac_rmfiles= 3683for ac_file in $ac_files 3684do 3685 case $ac_file in 3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3687 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3688 esac 3689done 3690rm -f $ac_rmfiles 3691 3692if { { ac_try="$ac_link_default" 3693case "(($ac_try" in 3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3695 *) ac_try_echo=$ac_try;; 3696esac 3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3698printf "%s\n" "$ac_try_echo"; } >&5 3699 (eval "$ac_link_default") 2>&5 3700 ac_status=$? 3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3702 test $ac_status = 0; } 3703then : 3704 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3705# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3706# in a Makefile. We should not override ac_cv_exeext if it was cached, 3707# so that the user can short-circuit this test for compilers unknown to 3708# Autoconf. 3709for ac_file in $ac_files '' 3710do 3711 test -f "$ac_file" || continue 3712 case $ac_file in 3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3714 ;; 3715 [ab].out ) 3716 # We found the default executable, but exeext='' is most 3717 # certainly right. 3718 break;; 3719 *.* ) 3720 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3721 then :; else 3722 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3723 fi 3724 # We set ac_cv_exeext here because the later test for it is not 3725 # safe: cross compilers may not add the suffix if given an `-o' 3726 # argument, so we may need to know it at that point already. 3727 # Even if this section looks crufty: it has the advantage of 3728 # actually working. 3729 break;; 3730 * ) 3731 break;; 3732 esac 3733done 3734test "$ac_cv_exeext" = no && ac_cv_exeext= 3735 3736else $as_nop 3737 ac_file='' 3738fi 3739if test -z "$ac_file" 3740then : 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742printf "%s\n" "no" >&6; } 3743printf "%s\n" "$as_me: failed program was:" >&5 3744sed 's/^/| /' conftest.$ac_ext >&5 3745 3746{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3747printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3748as_fn_error 77 "C compiler cannot create executables 3749See \`config.log' for more details" "$LINENO" 5; } 3750else $as_nop 3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3752printf "%s\n" "yes" >&6; } 3753fi 3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3755printf %s "checking for C compiler default output file name... " >&6; } 3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3757printf "%s\n" "$ac_file" >&6; } 3758ac_exeext=$ac_cv_exeext 3759 3760rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3761ac_clean_files=$ac_clean_files_save 3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3763printf %s "checking for suffix of executables... " >&6; } 3764if { { ac_try="$ac_link" 3765case "(($ac_try" in 3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3767 *) ac_try_echo=$ac_try;; 3768esac 3769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3770printf "%s\n" "$ac_try_echo"; } >&5 3771 (eval "$ac_link") 2>&5 3772 ac_status=$? 3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3774 test $ac_status = 0; } 3775then : 3776 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3777# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3778# work properly (i.e., refer to `conftest.exe'), while it won't with 3779# `rm'. 3780for ac_file in conftest.exe conftest conftest.*; do 3781 test -f "$ac_file" || continue 3782 case $ac_file in 3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3785 break;; 3786 * ) break;; 3787 esac 3788done 3789else $as_nop 3790 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3791printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3792as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3793See \`config.log' for more details" "$LINENO" 5; } 3794fi 3795rm -f conftest conftest$ac_cv_exeext 3796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3797printf "%s\n" "$ac_cv_exeext" >&6; } 3798 3799rm -f conftest.$ac_ext 3800EXEEXT=$ac_cv_exeext 3801ac_exeext=$EXEEXT 3802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804#include <stdio.h> 3805int 3806main (void) 3807{ 3808FILE *f = fopen ("conftest.out", "w"); 3809 return ferror (f) || fclose (f) != 0; 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815ac_clean_files="$ac_clean_files conftest.out" 3816# Check that the compiler produces executables we can run. If not, either 3817# the compiler is broken, or we cross compile. 3818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3819printf %s "checking whether we are cross compiling... " >&6; } 3820if test "$cross_compiling" != yes; then 3821 { { ac_try="$ac_link" 3822case "(($ac_try" in 3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3824 *) ac_try_echo=$ac_try;; 3825esac 3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3827printf "%s\n" "$ac_try_echo"; } >&5 3828 (eval "$ac_link") 2>&5 3829 ac_status=$? 3830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3831 test $ac_status = 0; } 3832 if { ac_try='./conftest$ac_cv_exeext' 3833 { { case "(($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_try") 2>&5 3840 ac_status=$? 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; }; }; then 3843 cross_compiling=no 3844 else 3845 if test "$cross_compiling" = maybe; then 3846 cross_compiling=yes 3847 else 3848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3849printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3850as_fn_error 77 "cannot run C compiled programs. 3851If you meant to cross compile, use \`--host'. 3852See \`config.log' for more details" "$LINENO" 5; } 3853 fi 3854 fi 3855fi 3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3857printf "%s\n" "$cross_compiling" >&6; } 3858 3859rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3860ac_clean_files=$ac_clean_files_save 3861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3862printf %s "checking for suffix of object files... " >&6; } 3863if test ${ac_cv_objext+y} 3864then : 3865 printf %s "(cached) " >&6 3866else $as_nop 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main (void) 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878rm -f conftest.o conftest.obj 3879if { { ac_try="$ac_compile" 3880case "(($ac_try" in 3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3882 *) ac_try_echo=$ac_try;; 3883esac 3884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3885printf "%s\n" "$ac_try_echo"; } >&5 3886 (eval "$ac_compile") 2>&5 3887 ac_status=$? 3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3889 test $ac_status = 0; } 3890then : 3891 for ac_file in conftest.o conftest.obj conftest.*; do 3892 test -f "$ac_file" || continue; 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3896 break;; 3897 esac 3898done 3899else $as_nop 3900 printf "%s\n" "$as_me: failed program was:" >&5 3901sed 's/^/| /' conftest.$ac_ext >&5 3902 3903{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3905as_fn_error $? "cannot compute suffix of object files: cannot compile 3906See \`config.log' for more details" "$LINENO" 5; } 3907fi 3908rm -f conftest.$ac_cv_objext conftest.$ac_ext 3909fi 3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3911printf "%s\n" "$ac_cv_objext" >&6; } 3912OBJEXT=$ac_cv_objext 3913ac_objext=$OBJEXT 3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3915printf %s "checking whether the compiler supports GNU C... " >&6; } 3916if test ${ac_cv_c_compiler_gnu+y} 3917then : 3918 printf %s "(cached) " >&6 3919else $as_nop 3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3921/* end confdefs.h. */ 3922 3923int 3924main (void) 3925{ 3926#ifndef __GNUC__ 3927 choke me 3928#endif 3929 3930 ; 3931 return 0; 3932} 3933_ACEOF 3934if ac_fn_c_try_compile "$LINENO" 3935then : 3936 ac_compiler_gnu=yes 3937else $as_nop 3938 ac_compiler_gnu=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3941ac_cv_c_compiler_gnu=$ac_compiler_gnu 3942 3943fi 3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3945printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3946ac_compiler_gnu=$ac_cv_c_compiler_gnu 3947 3948if test $ac_compiler_gnu = yes; then 3949 GCC=yes 3950else 3951 GCC= 3952fi 3953ac_test_CFLAGS=${CFLAGS+y} 3954ac_save_CFLAGS=$CFLAGS 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3956printf %s "checking whether $CC accepts -g... " >&6; } 3957if test ${ac_cv_prog_cc_g+y} 3958then : 3959 printf %s "(cached) " >&6 3960else $as_nop 3961 ac_save_c_werror_flag=$ac_c_werror_flag 3962 ac_c_werror_flag=yes 3963 ac_cv_prog_cc_g=no 3964 CFLAGS="-g" 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main (void) 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976if ac_fn_c_try_compile "$LINENO" 3977then : 3978 ac_cv_prog_cc_g=yes 3979else $as_nop 3980 CFLAGS="" 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983 3984int 3985main (void) 3986{ 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992if ac_fn_c_try_compile "$LINENO" 3993then : 3994 3995else $as_nop 3996 ac_c_werror_flag=$ac_save_c_werror_flag 3997 CFLAGS="-g" 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001int 4002main (void) 4003{ 4004 4005 ; 4006 return 0; 4007} 4008_ACEOF 4009if ac_fn_c_try_compile "$LINENO" 4010then : 4011 ac_cv_prog_cc_g=yes 4012fi 4013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4014fi 4015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4016fi 4017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4018 ac_c_werror_flag=$ac_save_c_werror_flag 4019fi 4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4021printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4022if test $ac_test_CFLAGS; then 4023 CFLAGS=$ac_save_CFLAGS 4024elif test $ac_cv_prog_cc_g = yes; then 4025 if test "$GCC" = yes; then 4026 CFLAGS="-g -O2" 4027 else 4028 CFLAGS="-g" 4029 fi 4030else 4031 if test "$GCC" = yes; then 4032 CFLAGS="-O2" 4033 else 4034 CFLAGS= 4035 fi 4036fi 4037ac_prog_cc_stdc=no 4038if test x$ac_prog_cc_stdc = xno 4039then : 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4041printf %s "checking for $CC option to enable C11 features... " >&6; } 4042if test ${ac_cv_prog_cc_c11+y} 4043then : 4044 printf %s "(cached) " >&6 4045else $as_nop 4046 ac_cv_prog_cc_c11=no 4047ac_save_CC=$CC 4048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4049/* end confdefs.h. */ 4050$ac_c_conftest_c11_program 4051_ACEOF 4052for ac_arg in '' -std=gnu11 4053do 4054 CC="$ac_save_CC $ac_arg" 4055 if ac_fn_c_try_compile "$LINENO" 4056then : 4057 ac_cv_prog_cc_c11=$ac_arg 4058fi 4059rm -f core conftest.err conftest.$ac_objext conftest.beam 4060 test "x$ac_cv_prog_cc_c11" != "xno" && break 4061done 4062rm -f conftest.$ac_ext 4063CC=$ac_save_CC 4064fi 4065 4066if test "x$ac_cv_prog_cc_c11" = xno 4067then : 4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4069printf "%s\n" "unsupported" >&6; } 4070else $as_nop 4071 if test "x$ac_cv_prog_cc_c11" = x 4072then : 4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4074printf "%s\n" "none needed" >&6; } 4075else $as_nop 4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4077printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4078 CC="$CC $ac_cv_prog_cc_c11" 4079fi 4080 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4081 ac_prog_cc_stdc=c11 4082fi 4083fi 4084if test x$ac_prog_cc_stdc = xno 4085then : 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4087printf %s "checking for $CC option to enable C99 features... " >&6; } 4088if test ${ac_cv_prog_cc_c99+y} 4089then : 4090 printf %s "(cached) " >&6 4091else $as_nop 4092 ac_cv_prog_cc_c99=no 4093ac_save_CC=$CC 4094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095/* end confdefs.h. */ 4096$ac_c_conftest_c99_program 4097_ACEOF 4098for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4099do 4100 CC="$ac_save_CC $ac_arg" 4101 if ac_fn_c_try_compile "$LINENO" 4102then : 4103 ac_cv_prog_cc_c99=$ac_arg 4104fi 4105rm -f core conftest.err conftest.$ac_objext conftest.beam 4106 test "x$ac_cv_prog_cc_c99" != "xno" && break 4107done 4108rm -f conftest.$ac_ext 4109CC=$ac_save_CC 4110fi 4111 4112if test "x$ac_cv_prog_cc_c99" = xno 4113then : 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4115printf "%s\n" "unsupported" >&6; } 4116else $as_nop 4117 if test "x$ac_cv_prog_cc_c99" = x 4118then : 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4120printf "%s\n" "none needed" >&6; } 4121else $as_nop 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4123printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4124 CC="$CC $ac_cv_prog_cc_c99" 4125fi 4126 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4127 ac_prog_cc_stdc=c99 4128fi 4129fi 4130if test x$ac_prog_cc_stdc = xno 4131then : 4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4133printf %s "checking for $CC option to enable C89 features... " >&6; } 4134if test ${ac_cv_prog_cc_c89+y} 4135then : 4136 printf %s "(cached) " >&6 4137else $as_nop 4138 ac_cv_prog_cc_c89=no 4139ac_save_CC=$CC 4140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141/* end confdefs.h. */ 4142$ac_c_conftest_c89_program 4143_ACEOF 4144for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4145do 4146 CC="$ac_save_CC $ac_arg" 4147 if ac_fn_c_try_compile "$LINENO" 4148then : 4149 ac_cv_prog_cc_c89=$ac_arg 4150fi 4151rm -f core conftest.err conftest.$ac_objext conftest.beam 4152 test "x$ac_cv_prog_cc_c89" != "xno" && break 4153done 4154rm -f conftest.$ac_ext 4155CC=$ac_save_CC 4156fi 4157 4158if test "x$ac_cv_prog_cc_c89" = xno 4159then : 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4161printf "%s\n" "unsupported" >&6; } 4162else $as_nop 4163 if test "x$ac_cv_prog_cc_c89" = x 4164then : 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4166printf "%s\n" "none needed" >&6; } 4167else $as_nop 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4169printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4170 CC="$CC $ac_cv_prog_cc_c89" 4171fi 4172 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4173 ac_prog_cc_stdc=c89 4174fi 4175fi 4176 4177ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182 4183 4184 ac_ext=c 4185ac_cpp='$CPP $CPPFLAGS' 4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4188ac_compiler_gnu=$ac_cv_c_compiler_gnu 4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4190printf %s "checking whether $CC understands -c and -o together... " >&6; } 4191if test ${am_cv_prog_cc_c_o+y} 4192then : 4193 printf %s "(cached) " >&6 4194else $as_nop 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197 4198int 4199main (void) 4200{ 4201 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206 # Make sure it works both with $CC and with simple cc. 4207 # Following AC_PROG_CC_C_O, we do the test twice because some 4208 # compilers refuse to overwrite an existing .o file with -o, 4209 # though they will create one. 4210 am_cv_prog_cc_c_o=yes 4211 for am_i in 1 2; do 4212 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4213 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4214 ac_status=$? 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4216 (exit $ac_status); } \ 4217 && test -f conftest2.$ac_objext; then 4218 : OK 4219 else 4220 am_cv_prog_cc_c_o=no 4221 break 4222 fi 4223 done 4224 rm -f core conftest* 4225 unset am_i 4226fi 4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4228printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4229if test "$am_cv_prog_cc_c_o" != yes; then 4230 # Losing compiler, so override with the script. 4231 # FIXME: It is wrong to rewrite CC. 4232 # But if we don't then we get into trouble of one sort or another. 4233 # A longer-term fix would be to have automake use am__CC in this case, 4234 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4235 CC="$am_aux_dir/compile $CC" 4236fi 4237ac_ext=c 4238ac_cpp='$CPP $CPPFLAGS' 4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4241ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243 4244depcc="$CC" am_compiler_list= 4245 4246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4247printf %s "checking dependency style of $depcc... " >&6; } 4248if test ${am_cv_CC_dependencies_compiler_type+y} 4249then : 4250 printf %s "(cached) " >&6 4251else $as_nop 4252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4253 # We make a subdir and do the tests there. Otherwise we can end up 4254 # making bogus files that we don't know about and never remove. For 4255 # instance it was reported that on HP-UX the gcc test will end up 4256 # making a dummy file named 'D' -- because '-MD' means "put the output 4257 # in D". 4258 rm -rf conftest.dir 4259 mkdir conftest.dir 4260 # Copy depcomp to subdir because otherwise we won't find it if we're 4261 # using a relative directory. 4262 cp "$am_depcomp" conftest.dir 4263 cd conftest.dir 4264 # We will build objects and dependencies in a subdirectory because 4265 # it helps to detect inapplicable dependency modes. For instance 4266 # both Tru64's cc and ICC support -MD to output dependencies as a 4267 # side effect of compilation, but ICC will put the dependencies in 4268 # the current directory while Tru64 will put them in the object 4269 # directory. 4270 mkdir sub 4271 4272 am_cv_CC_dependencies_compiler_type=none 4273 if test "$am_compiler_list" = ""; then 4274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4275 fi 4276 am__universal=false 4277 case " $depcc " in #( 4278 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4279 esac 4280 4281 for depmode in $am_compiler_list; do 4282 # Setup a source with many dependencies, because some compilers 4283 # like to wrap large dependency lists on column 80 (with \), and 4284 # we should not choose a depcomp mode which is confused by this. 4285 # 4286 # We need to recreate these files for each test, as the compiler may 4287 # overwrite some of them when testing with obscure command lines. 4288 # This happens at least with the AIX C compiler. 4289 : > sub/conftest.c 4290 for i in 1 2 3 4 5 6; do 4291 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4292 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4293 # Solaris 10 /bin/sh. 4294 echo '/* dummy */' > sub/conftst$i.h 4295 done 4296 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4297 4298 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4299 # mode. It turns out that the SunPro C++ compiler does not properly 4300 # handle '-M -o', and we need to detect this. Also, some Intel 4301 # versions had trouble with output in subdirs. 4302 am__obj=sub/conftest.${OBJEXT-o} 4303 am__minus_obj="-o $am__obj" 4304 case $depmode in 4305 gcc) 4306 # This depmode causes a compiler race in universal mode. 4307 test "$am__universal" = false || continue 4308 ;; 4309 nosideeffect) 4310 # After this tag, mechanisms are not by side-effect, so they'll 4311 # only be used when explicitly requested. 4312 if test "x$enable_dependency_tracking" = xyes; then 4313 continue 4314 else 4315 break 4316 fi 4317 ;; 4318 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4319 # This compiler won't grok '-c -o', but also, the minuso test has 4320 # not run yet. These depmodes are late enough in the game, and 4321 # so weak that their functioning should not be impacted. 4322 am__obj=conftest.${OBJEXT-o} 4323 am__minus_obj= 4324 ;; 4325 none) break ;; 4326 esac 4327 if depmode=$depmode \ 4328 source=sub/conftest.c object=$am__obj \ 4329 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4330 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4331 >/dev/null 2>conftest.err && 4332 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4333 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4334 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4335 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4336 # icc doesn't choke on unknown options, it will just issue warnings 4337 # or remarks (even with -Werror). So we grep stderr for any message 4338 # that says an option was ignored or not supported. 4339 # When given -MP, icc 7.0 and 7.1 complain thusly: 4340 # icc: Command line warning: ignoring option '-M'; no argument required 4341 # The diagnosis changed in icc 8.0: 4342 # icc: Command line remark: option '-MP' not supported 4343 if (grep 'ignoring option' conftest.err || 4344 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4345 am_cv_CC_dependencies_compiler_type=$depmode 4346 break 4347 fi 4348 fi 4349 done 4350 4351 cd .. 4352 rm -rf conftest.dir 4353else 4354 am_cv_CC_dependencies_compiler_type=none 4355fi 4356 4357fi 4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4359printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4360CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4361 4362 if 4363 test "x$enable_dependency_tracking" != xno \ 4364 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4365 am__fastdepCC_TRUE= 4366 am__fastdepCC_FALSE='#' 4367else 4368 am__fastdepCC_TRUE='#' 4369 am__fastdepCC_FALSE= 4370fi 4371 4372 4373 4374 4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4376printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4377if test ${ac_cv_c_undeclared_builtin_options+y} 4378then : 4379 printf %s "(cached) " >&6 4380else $as_nop 4381 ac_save_CFLAGS=$CFLAGS 4382 ac_cv_c_undeclared_builtin_options='cannot detect' 4383 for ac_arg in '' -fno-builtin; do 4384 CFLAGS="$ac_save_CFLAGS $ac_arg" 4385 # This test program should *not* compile successfully. 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388 4389int 4390main (void) 4391{ 4392(void) strchr; 4393 ; 4394 return 0; 4395} 4396_ACEOF 4397if ac_fn_c_try_compile "$LINENO" 4398then : 4399 4400else $as_nop 4401 # This test program should compile successfully. 4402 # No library function is consistently available on 4403 # freestanding implementations, so test against a dummy 4404 # declaration. Include always-available headers on the 4405 # off chance that they somehow elicit warnings. 4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4407/* end confdefs.h. */ 4408#include <float.h> 4409#include <limits.h> 4410#include <stdarg.h> 4411#include <stddef.h> 4412extern void ac_decl (int, char *); 4413 4414int 4415main (void) 4416{ 4417(void) ac_decl (0, (char *) 0); 4418 (void) ac_decl; 4419 4420 ; 4421 return 0; 4422} 4423_ACEOF 4424if ac_fn_c_try_compile "$LINENO" 4425then : 4426 if test x"$ac_arg" = x 4427then : 4428 ac_cv_c_undeclared_builtin_options='none needed' 4429else $as_nop 4430 ac_cv_c_undeclared_builtin_options=$ac_arg 4431fi 4432 break 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4435fi 4436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4437 done 4438 CFLAGS=$ac_save_CFLAGS 4439 4440fi 4441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4442printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4443 case $ac_cv_c_undeclared_builtin_options in #( 4444 'cannot detect') : 4445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4446printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4447as_fn_error $? "cannot make $CC report undeclared builtins 4448See \`config.log' for more details" "$LINENO" 5; } ;; #( 4449 'none needed') : 4450 ac_c_undeclared_builtin_options='' ;; #( 4451 *) : 4452 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4453esac 4454 4455ac_header= ac_cache= 4456for ac_item in $ac_header_c_list 4457do 4458 if test $ac_cache; then 4459 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4460 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4461 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4462 fi 4463 ac_header= ac_cache= 4464 elif test $ac_header; then 4465 ac_cache=$ac_item 4466 else 4467 ac_header=$ac_item 4468 fi 4469done 4470 4471 4472 4473 4474 4475 4476 4477 4478if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4479then : 4480 4481printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4482 4483fi 4484 4485 4486 4487 4488ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4489if test "x$ac_cv_have_decl___clang__" = xyes 4490then : 4491 CLANGCC="yes" 4492else $as_nop 4493 CLANGCC="no" 4494fi 4495ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4496if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4497then : 4498 INTELCC="yes" 4499else $as_nop 4500 INTELCC="no" 4501fi 4502ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4503if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4504then : 4505 SUNCC="yes" 4506else $as_nop 4507 SUNCC="no" 4508fi 4509 4510 4511 4512 4513 4514 4515 4516 4517if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4518 if test -n "$ac_tool_prefix"; then 4519 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4520set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4522printf %s "checking for $ac_word... " >&6; } 4523if test ${ac_cv_path_PKG_CONFIG+y} 4524then : 4525 printf %s "(cached) " >&6 4526else $as_nop 4527 case $PKG_CONFIG in 4528 [\\/]* | ?:[\\/]*) 4529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4530 ;; 4531 *) 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4533for as_dir in $PATH 4534do 4535 IFS=$as_save_IFS 4536 case $as_dir in #((( 4537 '') as_dir=./ ;; 4538 */) ;; 4539 *) as_dir=$as_dir/ ;; 4540 esac 4541 for ac_exec_ext in '' $ac_executable_extensions; do 4542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4543 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551 ;; 4552esac 4553fi 4554PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4555if test -n "$PKG_CONFIG"; then 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4557printf "%s\n" "$PKG_CONFIG" >&6; } 4558else 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4560printf "%s\n" "no" >&6; } 4561fi 4562 4563 4564fi 4565if test -z "$ac_cv_path_PKG_CONFIG"; then 4566 ac_pt_PKG_CONFIG=$PKG_CONFIG 4567 # Extract the first word of "pkg-config", so it can be a program name with args. 4568set dummy pkg-config; ac_word=$2 4569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4570printf %s "checking for $ac_word... " >&6; } 4571if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4572then : 4573 printf %s "(cached) " >&6 4574else $as_nop 4575 case $ac_pt_PKG_CONFIG in 4576 [\\/]* | ?:[\\/]*) 4577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4578 ;; 4579 *) 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH 4582do 4583 IFS=$as_save_IFS 4584 case $as_dir in #((( 4585 '') as_dir=./ ;; 4586 */) ;; 4587 *) as_dir=$as_dir/ ;; 4588 esac 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4591 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4593 break 2 4594 fi 4595done 4596 done 4597IFS=$as_save_IFS 4598 4599 ;; 4600esac 4601fi 4602ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4603if test -n "$ac_pt_PKG_CONFIG"; then 4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4605printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4606else 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608printf "%s\n" "no" >&6; } 4609fi 4610 4611 if test "x$ac_pt_PKG_CONFIG" = x; then 4612 PKG_CONFIG="" 4613 else 4614 case $cross_compiling:$ac_tool_warned in 4615yes:) 4616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4617printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4618ac_tool_warned=yes ;; 4619esac 4620 PKG_CONFIG=$ac_pt_PKG_CONFIG 4621 fi 4622else 4623 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4624fi 4625 4626fi 4627if test -n "$PKG_CONFIG"; then 4628 _pkg_min_version=0.9.0 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4630printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4631 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4633printf "%s\n" "yes" >&6; } 4634 else 4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4636printf "%s\n" "no" >&6; } 4637 PKG_CONFIG="" 4638 fi 4639fi 4640 4641 4642 # Make sure we can run config.sub. 4643$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4644 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4645 4646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4647printf %s "checking build system type... " >&6; } 4648if test ${ac_cv_build+y} 4649then : 4650 printf %s "(cached) " >&6 4651else $as_nop 4652 ac_build_alias=$build_alias 4653test "x$ac_build_alias" = x && 4654 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4655test "x$ac_build_alias" = x && 4656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4657ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4658 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4659 4660fi 4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4662printf "%s\n" "$ac_cv_build" >&6; } 4663case $ac_cv_build in 4664*-*-*) ;; 4665*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4666esac 4667build=$ac_cv_build 4668ac_save_IFS=$IFS; IFS='-' 4669set x $ac_cv_build 4670shift 4671build_cpu=$1 4672build_vendor=$2 4673shift; shift 4674# Remember, the first character of IFS is used to create $*, 4675# except with old shells: 4676build_os=$* 4677IFS=$ac_save_IFS 4678case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4679 4680 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4682printf %s "checking host system type... " >&6; } 4683if test ${ac_cv_host+y} 4684then : 4685 printf %s "(cached) " >&6 4686else $as_nop 4687 if test "x$host_alias" = x; then 4688 ac_cv_host=$ac_cv_build 4689else 4690 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4691 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4692fi 4693 4694fi 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4696printf "%s\n" "$ac_cv_host" >&6; } 4697case $ac_cv_host in 4698*-*-*) ;; 4699*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4700esac 4701host=$ac_cv_host 4702ac_save_IFS=$IFS; IFS='-' 4703set x $ac_cv_host 4704shift 4705host_cpu=$1 4706host_vendor=$2 4707shift; shift 4708# Remember, the first character of IFS is used to create $*, 4709# except with old shells: 4710host_os=$* 4711IFS=$ac_save_IFS 4712case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4713 4714 4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4716printf %s "checking for a sed that does not truncate output... " >&6; } 4717if test ${ac_cv_path_SED+y} 4718then : 4719 printf %s "(cached) " >&6 4720else $as_nop 4721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4722 for ac_i in 1 2 3 4 5 6 7; do 4723 ac_script="$ac_script$as_nl$ac_script" 4724 done 4725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4726 { ac_script=; unset ac_script;} 4727 if test -z "$SED"; then 4728 ac_path_SED_found=false 4729 # Loop through the user's path and test for each of PROGNAME-LIST 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731for as_dir in $PATH 4732do 4733 IFS=$as_save_IFS 4734 case $as_dir in #((( 4735 '') as_dir=./ ;; 4736 */) ;; 4737 *) as_dir=$as_dir/ ;; 4738 esac 4739 for ac_prog in sed gsed 4740 do 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4743 as_fn_executable_p "$ac_path_SED" || continue 4744# Check for GNU ac_path_SED and select it if it is found. 4745 # Check for GNU $ac_path_SED 4746case `"$ac_path_SED" --version 2>&1` in 4747*GNU*) 4748 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4749*) 4750 ac_count=0 4751 printf %s 0123456789 >"conftest.in" 4752 while : 4753 do 4754 cat "conftest.in" "conftest.in" >"conftest.tmp" 4755 mv "conftest.tmp" "conftest.in" 4756 cp "conftest.in" "conftest.nl" 4757 printf "%s\n" '' >> "conftest.nl" 4758 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4760 as_fn_arith $ac_count + 1 && ac_count=$as_val 4761 if test $ac_count -gt ${ac_path_SED_max-0}; then 4762 # Best one so far, save it but keep looking for a better one 4763 ac_cv_path_SED="$ac_path_SED" 4764 ac_path_SED_max=$ac_count 4765 fi 4766 # 10*(2^10) chars as input seems more than enough 4767 test $ac_count -gt 10 && break 4768 done 4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4770esac 4771 4772 $ac_path_SED_found && break 3 4773 done 4774 done 4775 done 4776IFS=$as_save_IFS 4777 if test -z "$ac_cv_path_SED"; then 4778 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4779 fi 4780else 4781 ac_cv_path_SED=$SED 4782fi 4783 4784fi 4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4786printf "%s\n" "$ac_cv_path_SED" >&6; } 4787 SED="$ac_cv_path_SED" 4788 rm -f conftest.sed 4789 4790 4791 4792 4793 4794 4795# Check whether --enable-selective-werror was given. 4796if test ${enable_selective_werror+y} 4797then : 4798 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4799else $as_nop 4800 SELECTIVE_WERROR=yes 4801fi 4802 4803 4804 4805 4806 4807# -v is too short to test reliably with XORG_TESTSET_CFLAG 4808if test "x$SUNCC" = "xyes"; then 4809 BASE_CFLAGS="-v" 4810else 4811 BASE_CFLAGS="" 4812fi 4813 4814# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828xorg_testset_save_CFLAGS="$CFLAGS" 4829 4830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4834if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4835then : 4836 printf %s "(cached) " >&6 4837else $as_nop 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839/* end confdefs.h. */ 4840int i; 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO" 4843then : 4844 xorg_cv_cc_flag_unknown_warning_option=yes 4845else $as_nop 4846 xorg_cv_cc_flag_unknown_warning_option=no 4847fi 4848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4849fi 4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4853 CFLAGS="$xorg_testset_save_CFLAGS" 4854fi 4855 4856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4859 fi 4860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4864then : 4865 printf %s "(cached) " >&6 4866else $as_nop 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868/* end confdefs.h. */ 4869int i; 4870_ACEOF 4871if ac_fn_c_try_compile "$LINENO" 4872then : 4873 xorg_cv_cc_flag_unused_command_line_argument=yes 4874else $as_nop 4875 xorg_cv_cc_flag_unused_command_line_argument=no 4876fi 4877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4878fi 4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4882 CFLAGS="$xorg_testset_save_CFLAGS" 4883fi 4884 4885found="no" 4886 4887 if test $found = "no" ; then 4888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4890 fi 4891 4892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4894 fi 4895 4896 CFLAGS="$CFLAGS -Wall" 4897 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4899printf %s "checking if $CC supports -Wall... " >&6; } 4900 cacheid=xorg_cv_cc_flag__Wall 4901 if eval test \${$cacheid+y} 4902then : 4903 printf %s "(cached) " >&6 4904else $as_nop 4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906/* end confdefs.h. */ 4907int i; 4908int 4909main (void) 4910{ 4911 4912 ; 4913 return 0; 4914} 4915_ACEOF 4916if ac_fn_c_try_link "$LINENO" 4917then : 4918 eval $cacheid=yes 4919else $as_nop 4920 eval $cacheid=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4923 conftest$ac_exeext conftest.$ac_ext 4924fi 4925 4926 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928 4929 eval supported=\$$cacheid 4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4931printf "%s\n" "$supported" >&6; } 4932 if test "$supported" = "yes" ; then 4933 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4934 found="yes" 4935 fi 4936 fi 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952xorg_testset_save_CFLAGS="$CFLAGS" 4953 4954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4958if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4959then : 4960 printf %s "(cached) " >&6 4961else $as_nop 4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963/* end confdefs.h. */ 4964int i; 4965_ACEOF 4966if ac_fn_c_try_compile "$LINENO" 4967then : 4968 xorg_cv_cc_flag_unknown_warning_option=yes 4969else $as_nop 4970 xorg_cv_cc_flag_unknown_warning_option=no 4971fi 4972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4973fi 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4977 CFLAGS="$xorg_testset_save_CFLAGS" 4978fi 4979 4980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4983 fi 4984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4987if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4988then : 4989 printf %s "(cached) " >&6 4990else $as_nop 4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992/* end confdefs.h. */ 4993int i; 4994_ACEOF 4995if ac_fn_c_try_compile "$LINENO" 4996then : 4997 xorg_cv_cc_flag_unused_command_line_argument=yes 4998else $as_nop 4999 xorg_cv_cc_flag_unused_command_line_argument=no 5000fi 5001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5002fi 5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007fi 5008 5009found="no" 5010 5011 if test $found = "no" ; then 5012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 fi 5015 5016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018 fi 5019 5020 CFLAGS="$CFLAGS -Wpointer-arith" 5021 5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5023printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5024 cacheid=xorg_cv_cc_flag__Wpointer_arith 5025 if eval test \${$cacheid+y} 5026then : 5027 printf %s "(cached) " >&6 5028else $as_nop 5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030/* end confdefs.h. */ 5031int i; 5032int 5033main (void) 5034{ 5035 5036 ; 5037 return 0; 5038} 5039_ACEOF 5040if ac_fn_c_try_link "$LINENO" 5041then : 5042 eval $cacheid=yes 5043else $as_nop 5044 eval $cacheid=no 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5047 conftest$ac_exeext conftest.$ac_ext 5048fi 5049 5050 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052 5053 eval supported=\$$cacheid 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5055printf "%s\n" "$supported" >&6; } 5056 if test "$supported" = "yes" ; then 5057 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5058 found="yes" 5059 fi 5060 fi 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076xorg_testset_save_CFLAGS="$CFLAGS" 5077 5078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5082if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5083then : 5084 printf %s "(cached) " >&6 5085else $as_nop 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088int i; 5089_ACEOF 5090if ac_fn_c_try_compile "$LINENO" 5091then : 5092 xorg_cv_cc_flag_unknown_warning_option=yes 5093else $as_nop 5094 xorg_cv_cc_flag_unknown_warning_option=no 5095fi 5096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5097fi 5098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5101 CFLAGS="$xorg_testset_save_CFLAGS" 5102fi 5103 5104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107 fi 5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5111if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5112then : 5113 printf %s "(cached) " >&6 5114else $as_nop 5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117int i; 5118_ACEOF 5119if ac_fn_c_try_compile "$LINENO" 5120then : 5121 xorg_cv_cc_flag_unused_command_line_argument=yes 5122else $as_nop 5123 xorg_cv_cc_flag_unused_command_line_argument=no 5124fi 5125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5126fi 5127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5130 CFLAGS="$xorg_testset_save_CFLAGS" 5131fi 5132 5133found="no" 5134 5135 if test $found = "no" ; then 5136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5138 fi 5139 5140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5142 fi 5143 5144 CFLAGS="$CFLAGS -Wmissing-declarations" 5145 5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5147printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5148 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5149 if eval test \${$cacheid+y} 5150then : 5151 printf %s "(cached) " >&6 5152else $as_nop 5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154/* end confdefs.h. */ 5155int i; 5156int 5157main (void) 5158{ 5159 5160 ; 5161 return 0; 5162} 5163_ACEOF 5164if ac_fn_c_try_link "$LINENO" 5165then : 5166 eval $cacheid=yes 5167else $as_nop 5168 eval $cacheid=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5171 conftest$ac_exeext conftest.$ac_ext 5172fi 5173 5174 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176 5177 eval supported=\$$cacheid 5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5179printf "%s\n" "$supported" >&6; } 5180 if test "$supported" = "yes" ; then 5181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5182 found="yes" 5183 fi 5184 fi 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200xorg_testset_save_CFLAGS="$CFLAGS" 5201 5202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5206if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5207then : 5208 printf %s "(cached) " >&6 5209else $as_nop 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212int i; 5213_ACEOF 5214if ac_fn_c_try_compile "$LINENO" 5215then : 5216 xorg_cv_cc_flag_unknown_warning_option=yes 5217else $as_nop 5218 xorg_cv_cc_flag_unknown_warning_option=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5221fi 5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226fi 5227 5228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5231 fi 5232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5235if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5236then : 5237 printf %s "(cached) " >&6 5238else $as_nop 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241int i; 5242_ACEOF 5243if ac_fn_c_try_compile "$LINENO" 5244then : 5245 xorg_cv_cc_flag_unused_command_line_argument=yes 5246else $as_nop 5247 xorg_cv_cc_flag_unused_command_line_argument=no 5248fi 5249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5250fi 5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5254 CFLAGS="$xorg_testset_save_CFLAGS" 5255fi 5256 5257found="no" 5258 5259 if test $found = "no" ; then 5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 fi 5263 5264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266 fi 5267 5268 CFLAGS="$CFLAGS -Wformat=2" 5269 5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5271printf %s "checking if $CC supports -Wformat=2... " >&6; } 5272 cacheid=xorg_cv_cc_flag__Wformat_2 5273 if eval test \${$cacheid+y} 5274then : 5275 printf %s "(cached) " >&6 5276else $as_nop 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279int i; 5280int 5281main (void) 5282{ 5283 5284 ; 5285 return 0; 5286} 5287_ACEOF 5288if ac_fn_c_try_link "$LINENO" 5289then : 5290 eval $cacheid=yes 5291else $as_nop 5292 eval $cacheid=no 5293fi 5294rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5295 conftest$ac_exeext conftest.$ac_ext 5296fi 5297 5298 5299 CFLAGS="$xorg_testset_save_CFLAGS" 5300 5301 eval supported=\$$cacheid 5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5303printf "%s\n" "$supported" >&6; } 5304 if test "$supported" = "yes" ; then 5305 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5306 found="yes" 5307 fi 5308 fi 5309 5310 if test $found = "no" ; then 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 fi 5314 5315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5317 fi 5318 5319 CFLAGS="$CFLAGS -Wformat" 5320 5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5322printf %s "checking if $CC supports -Wformat... " >&6; } 5323 cacheid=xorg_cv_cc_flag__Wformat 5324 if eval test \${$cacheid+y} 5325then : 5326 printf %s "(cached) " >&6 5327else $as_nop 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329/* end confdefs.h. */ 5330int i; 5331int 5332main (void) 5333{ 5334 5335 ; 5336 return 0; 5337} 5338_ACEOF 5339if ac_fn_c_try_link "$LINENO" 5340then : 5341 eval $cacheid=yes 5342else $as_nop 5343 eval $cacheid=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5346 conftest$ac_exeext conftest.$ac_ext 5347fi 5348 5349 5350 CFLAGS="$xorg_testset_save_CFLAGS" 5351 5352 eval supported=\$$cacheid 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5354printf "%s\n" "$supported" >&6; } 5355 if test "$supported" = "yes" ; then 5356 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5357 found="yes" 5358 fi 5359 fi 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377xorg_testset_save_CFLAGS="$CFLAGS" 5378 5379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5384then : 5385 printf %s "(cached) " >&6 5386else $as_nop 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390_ACEOF 5391if ac_fn_c_try_compile "$LINENO" 5392then : 5393 xorg_cv_cc_flag_unknown_warning_option=yes 5394else $as_nop 5395 xorg_cv_cc_flag_unknown_warning_option=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5398fi 5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5413then : 5414 printf %s "(cached) " >&6 5415else $as_nop 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418int i; 5419_ACEOF 5420if ac_fn_c_try_compile "$LINENO" 5421then : 5422 xorg_cv_cc_flag_unused_command_line_argument=yes 5423else $as_nop 5424 xorg_cv_cc_flag_unused_command_line_argument=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5427fi 5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432fi 5433 5434found="no" 5435 5436 if test $found = "no" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 fi 5444 5445 CFLAGS="$CFLAGS -Wstrict-prototypes" 5446 5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5448printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5449 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5450 if eval test \${$cacheid+y} 5451then : 5452 printf %s "(cached) " >&6 5453else $as_nop 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457int 5458main (void) 5459{ 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_link "$LINENO" 5466then : 5467 eval $cacheid=yes 5468else $as_nop 5469 eval $cacheid=no 5470fi 5471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5472 conftest$ac_exeext conftest.$ac_ext 5473fi 5474 5475 5476 CFLAGS="$xorg_testset_save_CFLAGS" 5477 5478 eval supported=\$$cacheid 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5480printf "%s\n" "$supported" >&6; } 5481 if test "$supported" = "yes" ; then 5482 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5483 found="yes" 5484 fi 5485 fi 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501xorg_testset_save_CFLAGS="$CFLAGS" 5502 5503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5508then : 5509 printf %s "(cached) " >&6 5510else $as_nop 5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5512/* end confdefs.h. */ 5513int i; 5514_ACEOF 5515if ac_fn_c_try_compile "$LINENO" 5516then : 5517 xorg_cv_cc_flag_unknown_warning_option=yes 5518else $as_nop 5519 xorg_cv_cc_flag_unknown_warning_option=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5522fi 5523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527fi 5528 5529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532 fi 5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5537then : 5538 printf %s "(cached) " >&6 5539else $as_nop 5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5541/* end confdefs.h. */ 5542int i; 5543_ACEOF 5544if ac_fn_c_try_compile "$LINENO" 5545then : 5546 xorg_cv_cc_flag_unused_command_line_argument=yes 5547else $as_nop 5548 xorg_cv_cc_flag_unused_command_line_argument=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5551fi 5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556fi 5557 5558found="no" 5559 5560 if test $found = "no" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 5565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5567 fi 5568 5569 CFLAGS="$CFLAGS -Wmissing-prototypes" 5570 5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5572printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5573 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5574 if eval test \${$cacheid+y} 5575then : 5576 printf %s "(cached) " >&6 5577else $as_nop 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580int i; 5581int 5582main (void) 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO" 5590then : 5591 eval $cacheid=yes 5592else $as_nop 5593 eval $cacheid=no 5594fi 5595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5596 conftest$ac_exeext conftest.$ac_ext 5597fi 5598 5599 5600 CFLAGS="$xorg_testset_save_CFLAGS" 5601 5602 eval supported=\$$cacheid 5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5604printf "%s\n" "$supported" >&6; } 5605 if test "$supported" = "yes" ; then 5606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5607 found="yes" 5608 fi 5609 fi 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625xorg_testset_save_CFLAGS="$CFLAGS" 5626 5627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5632then : 5633 printf %s "(cached) " >&6 5634else $as_nop 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO" 5640then : 5641 xorg_cv_cc_flag_unknown_warning_option=yes 5642else $as_nop 5643 xorg_cv_cc_flag_unknown_warning_option=no 5644fi 5645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5646fi 5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5650 CFLAGS="$xorg_testset_save_CFLAGS" 5651fi 5652 5653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656 fi 5657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5661then : 5662 printf %s "(cached) " >&6 5663else $as_nop 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO" 5669then : 5670 xorg_cv_cc_flag_unused_command_line_argument=yes 5671else $as_nop 5672 xorg_cv_cc_flag_unused_command_line_argument=no 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5675fi 5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5679 CFLAGS="$xorg_testset_save_CFLAGS" 5680fi 5681 5682found="no" 5683 5684 if test $found = "no" ; then 5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 fi 5688 5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691 fi 5692 5693 CFLAGS="$CFLAGS -Wnested-externs" 5694 5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5696printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5697 cacheid=xorg_cv_cc_flag__Wnested_externs 5698 if eval test \${$cacheid+y} 5699then : 5700 printf %s "(cached) " >&6 5701else $as_nop 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703/* end confdefs.h. */ 5704int i; 5705int 5706main (void) 5707{ 5708 5709 ; 5710 return 0; 5711} 5712_ACEOF 5713if ac_fn_c_try_link "$LINENO" 5714then : 5715 eval $cacheid=yes 5716else $as_nop 5717 eval $cacheid=no 5718fi 5719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5720 conftest$ac_exeext conftest.$ac_ext 5721fi 5722 5723 5724 CFLAGS="$xorg_testset_save_CFLAGS" 5725 5726 eval supported=\$$cacheid 5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5728printf "%s\n" "$supported" >&6; } 5729 if test "$supported" = "yes" ; then 5730 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5731 found="yes" 5732 fi 5733 fi 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749xorg_testset_save_CFLAGS="$CFLAGS" 5750 5751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5756then : 5757 printf %s "(cached) " >&6 5758else $as_nop 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761int i; 5762_ACEOF 5763if ac_fn_c_try_compile "$LINENO" 5764then : 5765 xorg_cv_cc_flag_unknown_warning_option=yes 5766else $as_nop 5767 xorg_cv_cc_flag_unknown_warning_option=no 5768fi 5769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5770fi 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5774 CFLAGS="$xorg_testset_save_CFLAGS" 5775fi 5776 5777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5780 fi 5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5785then : 5786 printf %s "(cached) " >&6 5787else $as_nop 5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5789/* end confdefs.h. */ 5790int i; 5791_ACEOF 5792if ac_fn_c_try_compile "$LINENO" 5793then : 5794 xorg_cv_cc_flag_unused_command_line_argument=yes 5795else $as_nop 5796 xorg_cv_cc_flag_unused_command_line_argument=no 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5799fi 5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5803 CFLAGS="$xorg_testset_save_CFLAGS" 5804fi 5805 5806found="no" 5807 5808 if test $found = "no" ; then 5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811 fi 5812 5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5815 fi 5816 5817 CFLAGS="$CFLAGS -Wbad-function-cast" 5818 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5820printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5821 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5822 if eval test \${$cacheid+y} 5823then : 5824 printf %s "(cached) " >&6 5825else $as_nop 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828int i; 5829int 5830main (void) 5831{ 5832 5833 ; 5834 return 0; 5835} 5836_ACEOF 5837if ac_fn_c_try_link "$LINENO" 5838then : 5839 eval $cacheid=yes 5840else $as_nop 5841 eval $cacheid=no 5842fi 5843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5844 conftest$ac_exeext conftest.$ac_ext 5845fi 5846 5847 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849 5850 eval supported=\$$cacheid 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5852printf "%s\n" "$supported" >&6; } 5853 if test "$supported" = "yes" ; then 5854 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5855 found="yes" 5856 fi 5857 fi 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873xorg_testset_save_CFLAGS="$CFLAGS" 5874 5875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5880then : 5881 printf %s "(cached) " >&6 5882else $as_nop 5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884/* end confdefs.h. */ 5885int i; 5886_ACEOF 5887if ac_fn_c_try_compile "$LINENO" 5888then : 5889 xorg_cv_cc_flag_unknown_warning_option=yes 5890else $as_nop 5891 xorg_cv_cc_flag_unknown_warning_option=no 5892fi 5893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5894fi 5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5898 CFLAGS="$xorg_testset_save_CFLAGS" 5899fi 5900 5901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904 fi 5905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5909then : 5910 printf %s "(cached) " >&6 5911else $as_nop 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914int i; 5915_ACEOF 5916if ac_fn_c_try_compile "$LINENO" 5917then : 5918 xorg_cv_cc_flag_unused_command_line_argument=yes 5919else $as_nop 5920 xorg_cv_cc_flag_unused_command_line_argument=no 5921fi 5922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5923fi 5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5927 CFLAGS="$xorg_testset_save_CFLAGS" 5928fi 5929 5930found="no" 5931 5932 if test $found = "no" ; then 5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935 fi 5936 5937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5939 fi 5940 5941 CFLAGS="$CFLAGS -Wold-style-definition" 5942 5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5944printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5945 cacheid=xorg_cv_cc_flag__Wold_style_definition 5946 if eval test \${$cacheid+y} 5947then : 5948 printf %s "(cached) " >&6 5949else $as_nop 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952int i; 5953int 5954main (void) 5955{ 5956 5957 ; 5958 return 0; 5959} 5960_ACEOF 5961if ac_fn_c_try_link "$LINENO" 5962then : 5963 eval $cacheid=yes 5964else $as_nop 5965 eval $cacheid=no 5966fi 5967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5968 conftest$ac_exeext conftest.$ac_ext 5969fi 5970 5971 5972 CFLAGS="$xorg_testset_save_CFLAGS" 5973 5974 eval supported=\$$cacheid 5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5976printf "%s\n" "$supported" >&6; } 5977 if test "$supported" = "yes" ; then 5978 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5979 found="yes" 5980 fi 5981 fi 5982 5983 if test $found = "no" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 fi 5991 5992 CFLAGS="$CFLAGS -fd" 5993 5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5995printf %s "checking if $CC supports -fd... " >&6; } 5996 cacheid=xorg_cv_cc_flag__fd 5997 if eval test \${$cacheid+y} 5998then : 5999 printf %s "(cached) " >&6 6000else $as_nop 6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6002/* end confdefs.h. */ 6003int i; 6004int 6005main (void) 6006{ 6007 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012if ac_fn_c_try_link "$LINENO" 6013then : 6014 eval $cacheid=yes 6015else $as_nop 6016 eval $cacheid=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6019 conftest$ac_exeext conftest.$ac_ext 6020fi 6021 6022 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024 6025 eval supported=\$$cacheid 6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6027printf "%s\n" "$supported" >&6; } 6028 if test "$supported" = "yes" ; then 6029 BASE_CFLAGS="$BASE_CFLAGS -fd" 6030 found="yes" 6031 fi 6032 fi 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048xorg_testset_save_CFLAGS="$CFLAGS" 6049 6050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6054if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6055then : 6056 printf %s "(cached) " >&6 6057else $as_nop 6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059/* end confdefs.h. */ 6060int i; 6061_ACEOF 6062if ac_fn_c_try_compile "$LINENO" 6063then : 6064 xorg_cv_cc_flag_unknown_warning_option=yes 6065else $as_nop 6066 xorg_cv_cc_flag_unknown_warning_option=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6069fi 6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6084then : 6085 printf %s "(cached) " >&6 6086else $as_nop 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090_ACEOF 6091if ac_fn_c_try_compile "$LINENO" 6092then : 6093 xorg_cv_cc_flag_unused_command_line_argument=yes 6094else $as_nop 6095 xorg_cv_cc_flag_unused_command_line_argument=no 6096fi 6097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6098fi 6099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6102 CFLAGS="$xorg_testset_save_CFLAGS" 6103fi 6104 6105found="no" 6106 6107 if test $found = "no" ; then 6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6110 fi 6111 6112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114 fi 6115 6116 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6117 6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6119printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6120 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6121 if eval test \${$cacheid+y} 6122then : 6123 printf %s "(cached) " >&6 6124else $as_nop 6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127int i; 6128int 6129main (void) 6130{ 6131 6132 ; 6133 return 0; 6134} 6135_ACEOF 6136if ac_fn_c_try_link "$LINENO" 6137then : 6138 eval $cacheid=yes 6139else $as_nop 6140 eval $cacheid=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6143 conftest$ac_exeext conftest.$ac_ext 6144fi 6145 6146 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148 6149 eval supported=\$$cacheid 6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6151printf "%s\n" "$supported" >&6; } 6152 if test "$supported" = "yes" ; then 6153 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6154 found="yes" 6155 fi 6156 fi 6157 6158 6159 6160 6161 6162# This chunk adds additional warnings that could catch undesired effects. 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176xorg_testset_save_CFLAGS="$CFLAGS" 6177 6178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6183then : 6184 printf %s "(cached) " >&6 6185else $as_nop 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO" 6191then : 6192 xorg_cv_cc_flag_unknown_warning_option=yes 6193else $as_nop 6194 xorg_cv_cc_flag_unknown_warning_option=no 6195fi 6196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6197fi 6198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6201 CFLAGS="$xorg_testset_save_CFLAGS" 6202fi 6203 6204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 fi 6208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6211if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6212then : 6213 printf %s "(cached) " >&6 6214else $as_nop 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217int i; 6218_ACEOF 6219if ac_fn_c_try_compile "$LINENO" 6220then : 6221 xorg_cv_cc_flag_unused_command_line_argument=yes 6222else $as_nop 6223 xorg_cv_cc_flag_unused_command_line_argument=no 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6226fi 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6230 CFLAGS="$xorg_testset_save_CFLAGS" 6231fi 6232 6233found="no" 6234 6235 if test $found = "no" ; then 6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238 fi 6239 6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6242 fi 6243 6244 CFLAGS="$CFLAGS -Wunused" 6245 6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6247printf %s "checking if $CC supports -Wunused... " >&6; } 6248 cacheid=xorg_cv_cc_flag__Wunused 6249 if eval test \${$cacheid+y} 6250then : 6251 printf %s "(cached) " >&6 6252else $as_nop 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256int 6257main (void) 6258{ 6259 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264if ac_fn_c_try_link "$LINENO" 6265then : 6266 eval $cacheid=yes 6267else $as_nop 6268 eval $cacheid=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6271 conftest$ac_exeext conftest.$ac_ext 6272fi 6273 6274 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276 6277 eval supported=\$$cacheid 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6279printf "%s\n" "$supported" >&6; } 6280 if test "$supported" = "yes" ; then 6281 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6282 found="yes" 6283 fi 6284 fi 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300xorg_testset_save_CFLAGS="$CFLAGS" 6301 6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6306if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6307then : 6308 printf %s "(cached) " >&6 6309else $as_nop 6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312int i; 6313_ACEOF 6314if ac_fn_c_try_compile "$LINENO" 6315then : 6316 xorg_cv_cc_flag_unknown_warning_option=yes 6317else $as_nop 6318 xorg_cv_cc_flag_unknown_warning_option=no 6319fi 6320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6321fi 6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6325 CFLAGS="$xorg_testset_save_CFLAGS" 6326fi 6327 6328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6331 fi 6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6335if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6336then : 6337 printf %s "(cached) " >&6 6338else $as_nop 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO" 6344then : 6345 xorg_cv_cc_flag_unused_command_line_argument=yes 6346else $as_nop 6347 xorg_cv_cc_flag_unused_command_line_argument=no 6348fi 6349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6350fi 6351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6354 CFLAGS="$xorg_testset_save_CFLAGS" 6355fi 6356 6357found="no" 6358 6359 if test $found = "no" ; then 6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362 fi 6363 6364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6366 fi 6367 6368 CFLAGS="$CFLAGS -Wuninitialized" 6369 6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6371printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6372 cacheid=xorg_cv_cc_flag__Wuninitialized 6373 if eval test \${$cacheid+y} 6374then : 6375 printf %s "(cached) " >&6 6376else $as_nop 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378/* end confdefs.h. */ 6379int i; 6380int 6381main (void) 6382{ 6383 6384 ; 6385 return 0; 6386} 6387_ACEOF 6388if ac_fn_c_try_link "$LINENO" 6389then : 6390 eval $cacheid=yes 6391else $as_nop 6392 eval $cacheid=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6395 conftest$ac_exeext conftest.$ac_ext 6396fi 6397 6398 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400 6401 eval supported=\$$cacheid 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6403printf "%s\n" "$supported" >&6; } 6404 if test "$supported" = "yes" ; then 6405 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6406 found="yes" 6407 fi 6408 fi 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424xorg_testset_save_CFLAGS="$CFLAGS" 6425 6426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6430if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6431then : 6432 printf %s "(cached) " >&6 6433else $as_nop 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435/* end confdefs.h. */ 6436int i; 6437_ACEOF 6438if ac_fn_c_try_compile "$LINENO" 6439then : 6440 xorg_cv_cc_flag_unknown_warning_option=yes 6441else $as_nop 6442 xorg_cv_cc_flag_unknown_warning_option=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6445fi 6446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450fi 6451 6452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455 fi 6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6459if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6460then : 6461 printf %s "(cached) " >&6 6462else $as_nop 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465int i; 6466_ACEOF 6467if ac_fn_c_try_compile "$LINENO" 6468then : 6469 xorg_cv_cc_flag_unused_command_line_argument=yes 6470else $as_nop 6471 xorg_cv_cc_flag_unused_command_line_argument=no 6472fi 6473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6474fi 6475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6478 CFLAGS="$xorg_testset_save_CFLAGS" 6479fi 6480 6481found="no" 6482 6483 if test $found = "no" ; then 6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 fi 6487 6488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6490 fi 6491 6492 CFLAGS="$CFLAGS -Wshadow" 6493 6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6495printf %s "checking if $CC supports -Wshadow... " >&6; } 6496 cacheid=xorg_cv_cc_flag__Wshadow 6497 if eval test \${$cacheid+y} 6498then : 6499 printf %s "(cached) " >&6 6500else $as_nop 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503int i; 6504int 6505main (void) 6506{ 6507 6508 ; 6509 return 0; 6510} 6511_ACEOF 6512if ac_fn_c_try_link "$LINENO" 6513then : 6514 eval $cacheid=yes 6515else $as_nop 6516 eval $cacheid=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6519 conftest$ac_exeext conftest.$ac_ext 6520fi 6521 6522 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524 6525 eval supported=\$$cacheid 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6527printf "%s\n" "$supported" >&6; } 6528 if test "$supported" = "yes" ; then 6529 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6530 found="yes" 6531 fi 6532 fi 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548xorg_testset_save_CFLAGS="$CFLAGS" 6549 6550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6554if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6555then : 6556 printf %s "(cached) " >&6 6557else $as_nop 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO" 6563then : 6564 xorg_cv_cc_flag_unknown_warning_option=yes 6565else $as_nop 6566 xorg_cv_cc_flag_unknown_warning_option=no 6567fi 6568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6569fi 6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6573 CFLAGS="$xorg_testset_save_CFLAGS" 6574fi 6575 6576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579 fi 6580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6583if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6584then : 6585 printf %s "(cached) " >&6 6586else $as_nop 6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589int i; 6590_ACEOF 6591if ac_fn_c_try_compile "$LINENO" 6592then : 6593 xorg_cv_cc_flag_unused_command_line_argument=yes 6594else $as_nop 6595 xorg_cv_cc_flag_unused_command_line_argument=no 6596fi 6597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6598fi 6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6602 CFLAGS="$xorg_testset_save_CFLAGS" 6603fi 6604 6605found="no" 6606 6607 if test $found = "no" ; then 6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610 fi 6611 6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6614 fi 6615 6616 CFLAGS="$CFLAGS -Wmissing-noreturn" 6617 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6619printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6620 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6621 if eval test \${$cacheid+y} 6622then : 6623 printf %s "(cached) " >&6 6624else $as_nop 6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626/* end confdefs.h. */ 6627int i; 6628int 6629main (void) 6630{ 6631 6632 ; 6633 return 0; 6634} 6635_ACEOF 6636if ac_fn_c_try_link "$LINENO" 6637then : 6638 eval $cacheid=yes 6639else $as_nop 6640 eval $cacheid=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6643 conftest$ac_exeext conftest.$ac_ext 6644fi 6645 6646 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648 6649 eval supported=\$$cacheid 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6651printf "%s\n" "$supported" >&6; } 6652 if test "$supported" = "yes" ; then 6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6654 found="yes" 6655 fi 6656 fi 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672xorg_testset_save_CFLAGS="$CFLAGS" 6673 6674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6678if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6679then : 6680 printf %s "(cached) " >&6 6681else $as_nop 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684int i; 6685_ACEOF 6686if ac_fn_c_try_compile "$LINENO" 6687then : 6688 xorg_cv_cc_flag_unknown_warning_option=yes 6689else $as_nop 6690 xorg_cv_cc_flag_unknown_warning_option=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6693fi 6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698fi 6699 6700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6707if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6708then : 6709 printf %s "(cached) " >&6 6710else $as_nop 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO" 6716then : 6717 xorg_cv_cc_flag_unused_command_line_argument=yes 6718else $as_nop 6719 xorg_cv_cc_flag_unused_command_line_argument=no 6720fi 6721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6722fi 6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6726 CFLAGS="$xorg_testset_save_CFLAGS" 6727fi 6728 6729found="no" 6730 6731 if test $found = "no" ; then 6732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 fi 6735 6736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6738 fi 6739 6740 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6741 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6743printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6744 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6745 if eval test \${$cacheid+y} 6746then : 6747 printf %s "(cached) " >&6 6748else $as_nop 6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750/* end confdefs.h. */ 6751int i; 6752int 6753main (void) 6754{ 6755 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760if ac_fn_c_try_link "$LINENO" 6761then : 6762 eval $cacheid=yes 6763else $as_nop 6764 eval $cacheid=no 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6767 conftest$ac_exeext conftest.$ac_ext 6768fi 6769 6770 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772 6773 eval supported=\$$cacheid 6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6775printf "%s\n" "$supported" >&6; } 6776 if test "$supported" = "yes" ; then 6777 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6778 found="yes" 6779 fi 6780 fi 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796xorg_testset_save_CFLAGS="$CFLAGS" 6797 6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6802if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6803then : 6804 printf %s "(cached) " >&6 6805else $as_nop 6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808int i; 6809_ACEOF 6810if ac_fn_c_try_compile "$LINENO" 6811then : 6812 xorg_cv_cc_flag_unknown_warning_option=yes 6813else $as_nop 6814 xorg_cv_cc_flag_unknown_warning_option=no 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6817fi 6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6821 CFLAGS="$xorg_testset_save_CFLAGS" 6822fi 6823 6824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6827 fi 6828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6831if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6832then : 6833 printf %s "(cached) " >&6 6834else $as_nop 6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836/* end confdefs.h. */ 6837int i; 6838_ACEOF 6839if ac_fn_c_try_compile "$LINENO" 6840then : 6841 xorg_cv_cc_flag_unused_command_line_argument=yes 6842else $as_nop 6843 xorg_cv_cc_flag_unused_command_line_argument=no 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6846fi 6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6850 CFLAGS="$xorg_testset_save_CFLAGS" 6851fi 6852 6853found="no" 6854 6855 if test $found = "no" ; then 6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 fi 6859 6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6862 fi 6863 6864 CFLAGS="$CFLAGS -Wredundant-decls" 6865 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6867printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6868 cacheid=xorg_cv_cc_flag__Wredundant_decls 6869 if eval test \${$cacheid+y} 6870then : 6871 printf %s "(cached) " >&6 6872else $as_nop 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875int i; 6876int 6877main (void) 6878{ 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO" 6885then : 6886 eval $cacheid=yes 6887else $as_nop 6888 eval $cacheid=no 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6891 conftest$ac_exeext conftest.$ac_ext 6892fi 6893 6894 6895 CFLAGS="$xorg_testset_save_CFLAGS" 6896 6897 eval supported=\$$cacheid 6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6899printf "%s\n" "$supported" >&6; } 6900 if test "$supported" = "yes" ; then 6901 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6902 found="yes" 6903 fi 6904 fi 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920xorg_testset_save_CFLAGS="$CFLAGS" 6921 6922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6926if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6927then : 6928 printf %s "(cached) " >&6 6929else $as_nop 6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931/* end confdefs.h. */ 6932int i; 6933_ACEOF 6934if ac_fn_c_try_compile "$LINENO" 6935then : 6936 xorg_cv_cc_flag_unknown_warning_option=yes 6937else $as_nop 6938 xorg_cv_cc_flag_unknown_warning_option=no 6939fi 6940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6941fi 6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946fi 6947 6948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 fi 6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6955if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6956then : 6957 printf %s "(cached) " >&6 6958else $as_nop 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962_ACEOF 6963if ac_fn_c_try_compile "$LINENO" 6964then : 6965 xorg_cv_cc_flag_unused_command_line_argument=yes 6966else $as_nop 6967 xorg_cv_cc_flag_unused_command_line_argument=no 6968fi 6969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6970fi 6971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6974 CFLAGS="$xorg_testset_save_CFLAGS" 6975fi 6976 6977found="no" 6978 6979 if test $found = "no" ; then 6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 fi 6983 6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6986 fi 6987 6988 CFLAGS="$CFLAGS -Wlogical-op" 6989 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6991printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6992 cacheid=xorg_cv_cc_flag__Wlogical_op 6993 if eval test \${$cacheid+y} 6994then : 6995 printf %s "(cached) " >&6 6996else $as_nop 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int i; 7000int 7001main (void) 7002{ 7003 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008if ac_fn_c_try_link "$LINENO" 7009then : 7010 eval $cacheid=yes 7011else $as_nop 7012 eval $cacheid=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7015 conftest$ac_exeext conftest.$ac_ext 7016fi 7017 7018 7019 CFLAGS="$xorg_testset_save_CFLAGS" 7020 7021 eval supported=\$$cacheid 7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7023printf "%s\n" "$supported" >&6; } 7024 if test "$supported" = "yes" ; then 7025 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7026 found="yes" 7027 fi 7028 fi 7029 7030 7031 7032# These are currently disabled because they are noisy. They will be enabled 7033# in the future once the codebase is sufficiently modernized to silence 7034# them. For now, I don't want them to drown out the other warnings. 7035# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7036# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7037# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7038 7039# Turn some warnings into errors, so we don't accidently get successful builds 7040# when there are problems that should be fixed. 7041 7042if test "x$SELECTIVE_WERROR" = "xyes" ; then 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056xorg_testset_save_CFLAGS="$CFLAGS" 7057 7058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7062if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7063then : 7064 printf %s "(cached) " >&6 7065else $as_nop 7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068int i; 7069_ACEOF 7070if ac_fn_c_try_compile "$LINENO" 7071then : 7072 xorg_cv_cc_flag_unknown_warning_option=yes 7073else $as_nop 7074 xorg_cv_cc_flag_unknown_warning_option=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7077fi 7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7081 CFLAGS="$xorg_testset_save_CFLAGS" 7082fi 7083 7084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7087 fi 7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7091if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7092then : 7093 printf %s "(cached) " >&6 7094else $as_nop 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097int i; 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO" 7100then : 7101 xorg_cv_cc_flag_unused_command_line_argument=yes 7102else $as_nop 7103 xorg_cv_cc_flag_unused_command_line_argument=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7106fi 7107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113found="no" 7114 7115 if test $found = "no" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122 fi 7123 7124 CFLAGS="$CFLAGS -Werror=implicit" 7125 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7127printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7128 cacheid=xorg_cv_cc_flag__Werror_implicit 7129 if eval test \${$cacheid+y} 7130then : 7131 printf %s "(cached) " >&6 7132else $as_nop 7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135int i; 7136int 7137main (void) 7138{ 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144if ac_fn_c_try_link "$LINENO" 7145then : 7146 eval $cacheid=yes 7147else $as_nop 7148 eval $cacheid=no 7149fi 7150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7151 conftest$ac_exeext conftest.$ac_ext 7152fi 7153 7154 7155 CFLAGS="$xorg_testset_save_CFLAGS" 7156 7157 eval supported=\$$cacheid 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7159printf "%s\n" "$supported" >&6; } 7160 if test "$supported" = "yes" ; then 7161 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7162 found="yes" 7163 fi 7164 fi 7165 7166 if test $found = "no" ; then 7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169 fi 7170 7171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 fi 7174 7175 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7176 7177 { 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 7178printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7179 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7180 if eval test \${$cacheid+y} 7181then : 7182 printf %s "(cached) " >&6 7183else $as_nop 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186int i; 7187int 7188main (void) 7189{ 7190 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195if ac_fn_c_try_link "$LINENO" 7196then : 7197 eval $cacheid=yes 7198else $as_nop 7199 eval $cacheid=no 7200fi 7201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7202 conftest$ac_exeext conftest.$ac_ext 7203fi 7204 7205 7206 CFLAGS="$xorg_testset_save_CFLAGS" 7207 7208 eval supported=\$$cacheid 7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7210printf "%s\n" "$supported" >&6; } 7211 if test "$supported" = "yes" ; then 7212 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7213 found="yes" 7214 fi 7215 fi 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231xorg_testset_save_CFLAGS="$CFLAGS" 7232 7233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7238then : 7239 printf %s "(cached) " >&6 7240else $as_nop 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243int i; 7244_ACEOF 7245if ac_fn_c_try_compile "$LINENO" 7246then : 7247 xorg_cv_cc_flag_unknown_warning_option=yes 7248else $as_nop 7249 xorg_cv_cc_flag_unknown_warning_option=no 7250fi 7251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7252fi 7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7256 CFLAGS="$xorg_testset_save_CFLAGS" 7257fi 7258 7259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7262 fi 7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7267then : 7268 printf %s "(cached) " >&6 7269else $as_nop 7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7271/* end confdefs.h. */ 7272int i; 7273_ACEOF 7274if ac_fn_c_try_compile "$LINENO" 7275then : 7276 xorg_cv_cc_flag_unused_command_line_argument=yes 7277else $as_nop 7278 xorg_cv_cc_flag_unused_command_line_argument=no 7279fi 7280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7281fi 7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7285 CFLAGS="$xorg_testset_save_CFLAGS" 7286fi 7287 7288found="no" 7289 7290 if test $found = "no" ; then 7291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293 fi 7294 7295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 fi 7298 7299 CFLAGS="$CFLAGS -Werror=nonnull" 7300 7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7302printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7303 cacheid=xorg_cv_cc_flag__Werror_nonnull 7304 if eval test \${$cacheid+y} 7305then : 7306 printf %s "(cached) " >&6 7307else $as_nop 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310int i; 7311int 7312main (void) 7313{ 7314 7315 ; 7316 return 0; 7317} 7318_ACEOF 7319if ac_fn_c_try_link "$LINENO" 7320then : 7321 eval $cacheid=yes 7322else $as_nop 7323 eval $cacheid=no 7324fi 7325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7326 conftest$ac_exeext conftest.$ac_ext 7327fi 7328 7329 7330 CFLAGS="$xorg_testset_save_CFLAGS" 7331 7332 eval supported=\$$cacheid 7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7334printf "%s\n" "$supported" >&6; } 7335 if test "$supported" = "yes" ; then 7336 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7337 found="yes" 7338 fi 7339 fi 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355xorg_testset_save_CFLAGS="$CFLAGS" 7356 7357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7362then : 7363 printf %s "(cached) " >&6 7364else $as_nop 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367int i; 7368_ACEOF 7369if ac_fn_c_try_compile "$LINENO" 7370then : 7371 xorg_cv_cc_flag_unknown_warning_option=yes 7372else $as_nop 7373 xorg_cv_cc_flag_unknown_warning_option=no 7374fi 7375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7376fi 7377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7380 CFLAGS="$xorg_testset_save_CFLAGS" 7381fi 7382 7383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386 fi 7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7391then : 7392 printf %s "(cached) " >&6 7393else $as_nop 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395/* end confdefs.h. */ 7396int i; 7397_ACEOF 7398if ac_fn_c_try_compile "$LINENO" 7399then : 7400 xorg_cv_cc_flag_unused_command_line_argument=yes 7401else $as_nop 7402 xorg_cv_cc_flag_unused_command_line_argument=no 7403fi 7404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7405fi 7406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7409 CFLAGS="$xorg_testset_save_CFLAGS" 7410fi 7411 7412found="no" 7413 7414 if test $found = "no" ; then 7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 fi 7418 7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7421 fi 7422 7423 CFLAGS="$CFLAGS -Werror=init-self" 7424 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7426printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7427 cacheid=xorg_cv_cc_flag__Werror_init_self 7428 if eval test \${$cacheid+y} 7429then : 7430 printf %s "(cached) " >&6 7431else $as_nop 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434int i; 7435int 7436main (void) 7437{ 7438 7439 ; 7440 return 0; 7441} 7442_ACEOF 7443if ac_fn_c_try_link "$LINENO" 7444then : 7445 eval $cacheid=yes 7446else $as_nop 7447 eval $cacheid=no 7448fi 7449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7450 conftest$ac_exeext conftest.$ac_ext 7451fi 7452 7453 7454 CFLAGS="$xorg_testset_save_CFLAGS" 7455 7456 eval supported=\$$cacheid 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7458printf "%s\n" "$supported" >&6; } 7459 if test "$supported" = "yes" ; then 7460 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7461 found="yes" 7462 fi 7463 fi 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479xorg_testset_save_CFLAGS="$CFLAGS" 7480 7481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7486then : 7487 printf %s "(cached) " >&6 7488else $as_nop 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491int i; 7492_ACEOF 7493if ac_fn_c_try_compile "$LINENO" 7494then : 7495 xorg_cv_cc_flag_unknown_warning_option=yes 7496else $as_nop 7497 xorg_cv_cc_flag_unknown_warning_option=no 7498fi 7499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7500fi 7501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7504 CFLAGS="$xorg_testset_save_CFLAGS" 7505fi 7506 7507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7510 fi 7511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7514if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7515then : 7516 printf %s "(cached) " >&6 7517else $as_nop 7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519/* end confdefs.h. */ 7520int i; 7521_ACEOF 7522if ac_fn_c_try_compile "$LINENO" 7523then : 7524 xorg_cv_cc_flag_unused_command_line_argument=yes 7525else $as_nop 7526 xorg_cv_cc_flag_unused_command_line_argument=no 7527fi 7528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7529fi 7530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7533 CFLAGS="$xorg_testset_save_CFLAGS" 7534fi 7535 7536found="no" 7537 7538 if test $found = "no" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7545 fi 7546 7547 CFLAGS="$CFLAGS -Werror=main" 7548 7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7550printf %s "checking if $CC supports -Werror=main... " >&6; } 7551 cacheid=xorg_cv_cc_flag__Werror_main 7552 if eval test \${$cacheid+y} 7553then : 7554 printf %s "(cached) " >&6 7555else $as_nop 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558int i; 7559int 7560main (void) 7561{ 7562 7563 ; 7564 return 0; 7565} 7566_ACEOF 7567if ac_fn_c_try_link "$LINENO" 7568then : 7569 eval $cacheid=yes 7570else $as_nop 7571 eval $cacheid=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7574 conftest$ac_exeext conftest.$ac_ext 7575fi 7576 7577 7578 CFLAGS="$xorg_testset_save_CFLAGS" 7579 7580 eval supported=\$$cacheid 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7582printf "%s\n" "$supported" >&6; } 7583 if test "$supported" = "yes" ; then 7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7585 found="yes" 7586 fi 7587 fi 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603xorg_testset_save_CFLAGS="$CFLAGS" 7604 7605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7610then : 7611 printf %s "(cached) " >&6 7612else $as_nop 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616_ACEOF 7617if ac_fn_c_try_compile "$LINENO" 7618then : 7619 xorg_cv_cc_flag_unknown_warning_option=yes 7620else $as_nop 7621 xorg_cv_cc_flag_unknown_warning_option=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7624fi 7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629fi 7630 7631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634 fi 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7638if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7639then : 7640 printf %s "(cached) " >&6 7641else $as_nop 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644int i; 7645_ACEOF 7646if ac_fn_c_try_compile "$LINENO" 7647then : 7648 xorg_cv_cc_flag_unused_command_line_argument=yes 7649else $as_nop 7650 xorg_cv_cc_flag_unused_command_line_argument=no 7651fi 7652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7653fi 7654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7657 CFLAGS="$xorg_testset_save_CFLAGS" 7658fi 7659 7660found="no" 7661 7662 if test $found = "no" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669 fi 7670 7671 CFLAGS="$CFLAGS -Werror=missing-braces" 7672 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7674printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7675 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7676 if eval test \${$cacheid+y} 7677then : 7678 printf %s "(cached) " >&6 7679else $as_nop 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682int i; 7683int 7684main (void) 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_link "$LINENO" 7692then : 7693 eval $cacheid=yes 7694else $as_nop 7695 eval $cacheid=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7698 conftest$ac_exeext conftest.$ac_ext 7699fi 7700 7701 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703 7704 eval supported=\$$cacheid 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7706printf "%s\n" "$supported" >&6; } 7707 if test "$supported" = "yes" ; then 7708 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7709 found="yes" 7710 fi 7711 fi 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727xorg_testset_save_CFLAGS="$CFLAGS" 7728 7729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7733if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7734then : 7735 printf %s "(cached) " >&6 7736else $as_nop 7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738/* end confdefs.h. */ 7739int i; 7740_ACEOF 7741if ac_fn_c_try_compile "$LINENO" 7742then : 7743 xorg_cv_cc_flag_unknown_warning_option=yes 7744else $as_nop 7745 xorg_cv_cc_flag_unknown_warning_option=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7748fi 7749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753fi 7754 7755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7758 fi 7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7762if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7763then : 7764 printf %s "(cached) " >&6 7765else $as_nop 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768int i; 7769_ACEOF 7770if ac_fn_c_try_compile "$LINENO" 7771then : 7772 xorg_cv_cc_flag_unused_command_line_argument=yes 7773else $as_nop 7774 xorg_cv_cc_flag_unused_command_line_argument=no 7775fi 7776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7777fi 7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7781 CFLAGS="$xorg_testset_save_CFLAGS" 7782fi 7783 7784found="no" 7785 7786 if test $found = "no" ; then 7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 fi 7790 7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7793 fi 7794 7795 CFLAGS="$CFLAGS -Werror=sequence-point" 7796 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7798printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7799 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7800 if eval test \${$cacheid+y} 7801then : 7802 printf %s "(cached) " >&6 7803else $as_nop 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806int i; 7807int 7808main (void) 7809{ 7810 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815if ac_fn_c_try_link "$LINENO" 7816then : 7817 eval $cacheid=yes 7818else $as_nop 7819 eval $cacheid=no 7820fi 7821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7822 conftest$ac_exeext conftest.$ac_ext 7823fi 7824 7825 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827 7828 eval supported=\$$cacheid 7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7830printf "%s\n" "$supported" >&6; } 7831 if test "$supported" = "yes" ; then 7832 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7833 found="yes" 7834 fi 7835 fi 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851xorg_testset_save_CFLAGS="$CFLAGS" 7852 7853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7858then : 7859 printf %s "(cached) " >&6 7860else $as_nop 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863int i; 7864_ACEOF 7865if ac_fn_c_try_compile "$LINENO" 7866then : 7867 xorg_cv_cc_flag_unknown_warning_option=yes 7868else $as_nop 7869 xorg_cv_cc_flag_unknown_warning_option=no 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7872fi 7873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7876 CFLAGS="$xorg_testset_save_CFLAGS" 7877fi 7878 7879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 fi 7883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7887then : 7888 printf %s "(cached) " >&6 7889else $as_nop 7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7891/* end confdefs.h. */ 7892int i; 7893_ACEOF 7894if ac_fn_c_try_compile "$LINENO" 7895then : 7896 xorg_cv_cc_flag_unused_command_line_argument=yes 7897else $as_nop 7898 xorg_cv_cc_flag_unused_command_line_argument=no 7899fi 7900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7901fi 7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7905 CFLAGS="$xorg_testset_save_CFLAGS" 7906fi 7907 7908found="no" 7909 7910 if test $found = "no" ; then 7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 fi 7914 7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7917 fi 7918 7919 CFLAGS="$CFLAGS -Werror=return-type" 7920 7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7922printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7923 cacheid=xorg_cv_cc_flag__Werror_return_type 7924 if eval test \${$cacheid+y} 7925then : 7926 printf %s "(cached) " >&6 7927else $as_nop 7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929/* end confdefs.h. */ 7930int i; 7931int 7932main (void) 7933{ 7934 7935 ; 7936 return 0; 7937} 7938_ACEOF 7939if ac_fn_c_try_link "$LINENO" 7940then : 7941 eval $cacheid=yes 7942else $as_nop 7943 eval $cacheid=no 7944fi 7945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7946 conftest$ac_exeext conftest.$ac_ext 7947fi 7948 7949 7950 CFLAGS="$xorg_testset_save_CFLAGS" 7951 7952 eval supported=\$$cacheid 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7954printf "%s\n" "$supported" >&6; } 7955 if test "$supported" = "yes" ; then 7956 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7957 found="yes" 7958 fi 7959 fi 7960 7961 if test $found = "no" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 7966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 fi 7969 7970 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7971 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7973printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7974 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7975 if eval test \${$cacheid+y} 7976then : 7977 printf %s "(cached) " >&6 7978else $as_nop 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981int i; 7982int 7983main (void) 7984{ 7985 7986 ; 7987 return 0; 7988} 7989_ACEOF 7990if ac_fn_c_try_link "$LINENO" 7991then : 7992 eval $cacheid=yes 7993else $as_nop 7994 eval $cacheid=no 7995fi 7996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997 conftest$ac_exeext conftest.$ac_ext 7998fi 7999 8000 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002 8003 eval supported=\$$cacheid 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8005printf "%s\n" "$supported" >&6; } 8006 if test "$supported" = "yes" ; then 8007 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8008 found="yes" 8009 fi 8010 fi 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026xorg_testset_save_CFLAGS="$CFLAGS" 8027 8028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8032if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8033then : 8034 printf %s "(cached) " >&6 8035else $as_nop 8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038int i; 8039_ACEOF 8040if ac_fn_c_try_compile "$LINENO" 8041then : 8042 xorg_cv_cc_flag_unknown_warning_option=yes 8043else $as_nop 8044 xorg_cv_cc_flag_unknown_warning_option=no 8045fi 8046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8047fi 8048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8051 CFLAGS="$xorg_testset_save_CFLAGS" 8052fi 8053 8054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057 fi 8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8061if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8062then : 8063 printf %s "(cached) " >&6 8064else $as_nop 8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066/* end confdefs.h. */ 8067int i; 8068_ACEOF 8069if ac_fn_c_try_compile "$LINENO" 8070then : 8071 xorg_cv_cc_flag_unused_command_line_argument=yes 8072else $as_nop 8073 xorg_cv_cc_flag_unused_command_line_argument=no 8074fi 8075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8076fi 8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8080 CFLAGS="$xorg_testset_save_CFLAGS" 8081fi 8082 8083found="no" 8084 8085 if test $found = "no" ; then 8086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8088 fi 8089 8090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 fi 8093 8094 CFLAGS="$CFLAGS -Werror=trigraphs" 8095 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8097printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8098 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8099 if eval test \${$cacheid+y} 8100then : 8101 printf %s "(cached) " >&6 8102else $as_nop 8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105int i; 8106int 8107main (void) 8108{ 8109 8110 ; 8111 return 0; 8112} 8113_ACEOF 8114if ac_fn_c_try_link "$LINENO" 8115then : 8116 eval $cacheid=yes 8117else $as_nop 8118 eval $cacheid=no 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8121 conftest$ac_exeext conftest.$ac_ext 8122fi 8123 8124 8125 CFLAGS="$xorg_testset_save_CFLAGS" 8126 8127 eval supported=\$$cacheid 8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8129printf "%s\n" "$supported" >&6; } 8130 if test "$supported" = "yes" ; then 8131 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8132 found="yes" 8133 fi 8134 fi 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150xorg_testset_save_CFLAGS="$CFLAGS" 8151 8152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8156if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8157then : 8158 printf %s "(cached) " >&6 8159else $as_nop 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO" 8165then : 8166 xorg_cv_cc_flag_unknown_warning_option=yes 8167else $as_nop 8168 xorg_cv_cc_flag_unknown_warning_option=no 8169fi 8170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8171fi 8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8175 CFLAGS="$xorg_testset_save_CFLAGS" 8176fi 8177 8178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8181 fi 8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8185if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8186then : 8187 printf %s "(cached) " >&6 8188else $as_nop 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191int i; 8192_ACEOF 8193if ac_fn_c_try_compile "$LINENO" 8194then : 8195 xorg_cv_cc_flag_unused_command_line_argument=yes 8196else $as_nop 8197 xorg_cv_cc_flag_unused_command_line_argument=no 8198fi 8199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8200fi 8201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8204 CFLAGS="$xorg_testset_save_CFLAGS" 8205fi 8206 8207found="no" 8208 8209 if test $found = "no" ; then 8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 fi 8213 8214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8216 fi 8217 8218 CFLAGS="$CFLAGS -Werror=array-bounds" 8219 8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8221printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8222 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8223 if eval test \${$cacheid+y} 8224then : 8225 printf %s "(cached) " >&6 8226else $as_nop 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228/* end confdefs.h. */ 8229int i; 8230int 8231main (void) 8232{ 8233 8234 ; 8235 return 0; 8236} 8237_ACEOF 8238if ac_fn_c_try_link "$LINENO" 8239then : 8240 eval $cacheid=yes 8241else $as_nop 8242 eval $cacheid=no 8243fi 8244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8245 conftest$ac_exeext conftest.$ac_ext 8246fi 8247 8248 8249 CFLAGS="$xorg_testset_save_CFLAGS" 8250 8251 eval supported=\$$cacheid 8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8253printf "%s\n" "$supported" >&6; } 8254 if test "$supported" = "yes" ; then 8255 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8256 found="yes" 8257 fi 8258 fi 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274xorg_testset_save_CFLAGS="$CFLAGS" 8275 8276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8280if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8281then : 8282 printf %s "(cached) " >&6 8283else $as_nop 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286int i; 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO" 8289then : 8290 xorg_cv_cc_flag_unknown_warning_option=yes 8291else $as_nop 8292 xorg_cv_cc_flag_unknown_warning_option=no 8293fi 8294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8295fi 8296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8299 CFLAGS="$xorg_testset_save_CFLAGS" 8300fi 8301 8302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8310then : 8311 printf %s "(cached) " >&6 8312else $as_nop 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316_ACEOF 8317if ac_fn_c_try_compile "$LINENO" 8318then : 8319 xorg_cv_cc_flag_unused_command_line_argument=yes 8320else $as_nop 8321 xorg_cv_cc_flag_unused_command_line_argument=no 8322fi 8323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8324fi 8325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8328 CFLAGS="$xorg_testset_save_CFLAGS" 8329fi 8330 8331found="no" 8332 8333 if test $found = "no" ; then 8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340 fi 8341 8342 CFLAGS="$CFLAGS -Werror=write-strings" 8343 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8345printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8346 cacheid=xorg_cv_cc_flag__Werror_write_strings 8347 if eval test \${$cacheid+y} 8348then : 8349 printf %s "(cached) " >&6 8350else $as_nop 8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354int 8355main (void) 8356{ 8357 8358 ; 8359 return 0; 8360} 8361_ACEOF 8362if ac_fn_c_try_link "$LINENO" 8363then : 8364 eval $cacheid=yes 8365else $as_nop 8366 eval $cacheid=no 8367fi 8368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8369 conftest$ac_exeext conftest.$ac_ext 8370fi 8371 8372 8373 CFLAGS="$xorg_testset_save_CFLAGS" 8374 8375 eval supported=\$$cacheid 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8377printf "%s\n" "$supported" >&6; } 8378 if test "$supported" = "yes" ; then 8379 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8380 found="yes" 8381 fi 8382 fi 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398xorg_testset_save_CFLAGS="$CFLAGS" 8399 8400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8404if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8405then : 8406 printf %s "(cached) " >&6 8407else $as_nop 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410int i; 8411_ACEOF 8412if ac_fn_c_try_compile "$LINENO" 8413then : 8414 xorg_cv_cc_flag_unknown_warning_option=yes 8415else $as_nop 8416 xorg_cv_cc_flag_unknown_warning_option=no 8417fi 8418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8419fi 8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8423 CFLAGS="$xorg_testset_save_CFLAGS" 8424fi 8425 8426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429 fi 8430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8433if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8434then : 8435 printf %s "(cached) " >&6 8436else $as_nop 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440_ACEOF 8441if ac_fn_c_try_compile "$LINENO" 8442then : 8443 xorg_cv_cc_flag_unused_command_line_argument=yes 8444else $as_nop 8445 xorg_cv_cc_flag_unused_command_line_argument=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8448fi 8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453fi 8454 8455found="no" 8456 8457 if test $found = "no" ; then 8458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 fi 8461 8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8464 fi 8465 8466 CFLAGS="$CFLAGS -Werror=address" 8467 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8469printf %s "checking if $CC supports -Werror=address... " >&6; } 8470 cacheid=xorg_cv_cc_flag__Werror_address 8471 if eval test \${$cacheid+y} 8472then : 8473 printf %s "(cached) " >&6 8474else $as_nop 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477int i; 8478int 8479main (void) 8480{ 8481 8482 ; 8483 return 0; 8484} 8485_ACEOF 8486if ac_fn_c_try_link "$LINENO" 8487then : 8488 eval $cacheid=yes 8489else $as_nop 8490 eval $cacheid=no 8491fi 8492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8493 conftest$ac_exeext conftest.$ac_ext 8494fi 8495 8496 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498 8499 eval supported=\$$cacheid 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8501printf "%s\n" "$supported" >&6; } 8502 if test "$supported" = "yes" ; then 8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8504 found="yes" 8505 fi 8506 fi 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522xorg_testset_save_CFLAGS="$CFLAGS" 8523 8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8528if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8529then : 8530 printf %s "(cached) " >&6 8531else $as_nop 8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533/* end confdefs.h. */ 8534int i; 8535_ACEOF 8536if ac_fn_c_try_compile "$LINENO" 8537then : 8538 xorg_cv_cc_flag_unknown_warning_option=yes 8539else $as_nop 8540 xorg_cv_cc_flag_unknown_warning_option=no 8541fi 8542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8543fi 8544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8547 CFLAGS="$xorg_testset_save_CFLAGS" 8548fi 8549 8550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8553 fi 8554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8557if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8558then : 8559 printf %s "(cached) " >&6 8560else $as_nop 8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562/* end confdefs.h. */ 8563int i; 8564_ACEOF 8565if ac_fn_c_try_compile "$LINENO" 8566then : 8567 xorg_cv_cc_flag_unused_command_line_argument=yes 8568else $as_nop 8569 xorg_cv_cc_flag_unused_command_line_argument=no 8570fi 8571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8572fi 8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577fi 8578 8579found="no" 8580 8581 if test $found = "no" ; then 8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 fi 8585 8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8588 fi 8589 8590 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8591 8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8593printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8594 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8595 if eval test \${$cacheid+y} 8596then : 8597 printf %s "(cached) " >&6 8598else $as_nop 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601int i; 8602int 8603main (void) 8604{ 8605 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610if ac_fn_c_try_link "$LINENO" 8611then : 8612 eval $cacheid=yes 8613else $as_nop 8614 eval $cacheid=no 8615fi 8616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8617 conftest$ac_exeext conftest.$ac_ext 8618fi 8619 8620 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622 8623 eval supported=\$$cacheid 8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8625printf "%s\n" "$supported" >&6; } 8626 if test "$supported" = "yes" ; then 8627 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8628 found="yes" 8629 fi 8630 fi 8631 8632 if test $found = "no" ; then 8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 fi 8636 8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8639 fi 8640 8641 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8642 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8644printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8645 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8646 if eval test \${$cacheid+y} 8647then : 8648 printf %s "(cached) " >&6 8649else $as_nop 8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8651/* end confdefs.h. */ 8652int i; 8653int 8654main (void) 8655{ 8656 8657 ; 8658 return 0; 8659} 8660_ACEOF 8661if ac_fn_c_try_link "$LINENO" 8662then : 8663 eval $cacheid=yes 8664else $as_nop 8665 eval $cacheid=no 8666fi 8667rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8668 conftest$ac_exeext conftest.$ac_ext 8669fi 8670 8671 8672 CFLAGS="$xorg_testset_save_CFLAGS" 8673 8674 eval supported=\$$cacheid 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8676printf "%s\n" "$supported" >&6; } 8677 if test "$supported" = "yes" ; then 8678 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8679 found="yes" 8680 fi 8681 fi 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697xorg_testset_save_CFLAGS="$CFLAGS" 8698 8699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8704then : 8705 printf %s "(cached) " >&6 8706else $as_nop 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709int i; 8710_ACEOF 8711if ac_fn_c_try_compile "$LINENO" 8712then : 8713 xorg_cv_cc_flag_unknown_warning_option=yes 8714else $as_nop 8715 xorg_cv_cc_flag_unknown_warning_option=no 8716fi 8717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8718fi 8719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723fi 8724 8725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 fi 8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8733then : 8734 printf %s "(cached) " >&6 8735else $as_nop 8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738int i; 8739_ACEOF 8740if ac_fn_c_try_compile "$LINENO" 8741then : 8742 xorg_cv_cc_flag_unused_command_line_argument=yes 8743else $as_nop 8744 xorg_cv_cc_flag_unused_command_line_argument=no 8745fi 8746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8747fi 8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8751 CFLAGS="$xorg_testset_save_CFLAGS" 8752fi 8753 8754found="no" 8755 8756 if test $found = "no" ; then 8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 fi 8760 8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8763 fi 8764 8765 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8766 8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8768printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8769 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8770 if eval test \${$cacheid+y} 8771then : 8772 printf %s "(cached) " >&6 8773else $as_nop 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777int 8778main (void) 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO" 8786then : 8787 eval $cacheid=yes 8788else $as_nop 8789 eval $cacheid=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8792 conftest$ac_exeext conftest.$ac_ext 8793fi 8794 8795 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797 8798 eval supported=\$$cacheid 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8800printf "%s\n" "$supported" >&6; } 8801 if test "$supported" = "yes" ; then 8802 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8803 found="yes" 8804 fi 8805 fi 8806 8807 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8808else 8809{ 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 8810printf "%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;} 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824xorg_testset_save_CFLAGS="$CFLAGS" 8825 8826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8830if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8831then : 8832 printf %s "(cached) " >&6 8833else $as_nop 8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8835/* end confdefs.h. */ 8836int i; 8837_ACEOF 8838if ac_fn_c_try_compile "$LINENO" 8839then : 8840 xorg_cv_cc_flag_unknown_warning_option=yes 8841else $as_nop 8842 xorg_cv_cc_flag_unknown_warning_option=no 8843fi 8844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8845fi 8846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850fi 8851 8852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855 fi 8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8859if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8860then : 8861 printf %s "(cached) " >&6 8862else $as_nop 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865int i; 8866_ACEOF 8867if ac_fn_c_try_compile "$LINENO" 8868then : 8869 xorg_cv_cc_flag_unused_command_line_argument=yes 8870else $as_nop 8871 xorg_cv_cc_flag_unused_command_line_argument=no 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8874fi 8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8878 CFLAGS="$xorg_testset_save_CFLAGS" 8879fi 8880 8881found="no" 8882 8883 if test $found = "no" ; then 8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886 fi 8887 8888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890 fi 8891 8892 CFLAGS="$CFLAGS -Wimplicit" 8893 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8895printf %s "checking if $CC supports -Wimplicit... " >&6; } 8896 cacheid=xorg_cv_cc_flag__Wimplicit 8897 if eval test \${$cacheid+y} 8898then : 8899 printf %s "(cached) " >&6 8900else $as_nop 8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903int i; 8904int 8905main (void) 8906{ 8907 8908 ; 8909 return 0; 8910} 8911_ACEOF 8912if ac_fn_c_try_link "$LINENO" 8913then : 8914 eval $cacheid=yes 8915else $as_nop 8916 eval $cacheid=no 8917fi 8918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8919 conftest$ac_exeext conftest.$ac_ext 8920fi 8921 8922 8923 CFLAGS="$xorg_testset_save_CFLAGS" 8924 8925 eval supported=\$$cacheid 8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8927printf "%s\n" "$supported" >&6; } 8928 if test "$supported" = "yes" ; then 8929 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8930 found="yes" 8931 fi 8932 fi 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948xorg_testset_save_CFLAGS="$CFLAGS" 8949 8950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8954if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8955then : 8956 printf %s "(cached) " >&6 8957else $as_nop 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961_ACEOF 8962if ac_fn_c_try_compile "$LINENO" 8963then : 8964 xorg_cv_cc_flag_unknown_warning_option=yes 8965else $as_nop 8966 xorg_cv_cc_flag_unknown_warning_option=no 8967fi 8968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8969fi 8970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8973 CFLAGS="$xorg_testset_save_CFLAGS" 8974fi 8975 8976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 fi 8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8983if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8984then : 8985 printf %s "(cached) " >&6 8986else $as_nop 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988/* end confdefs.h. */ 8989int i; 8990_ACEOF 8991if ac_fn_c_try_compile "$LINENO" 8992then : 8993 xorg_cv_cc_flag_unused_command_line_argument=yes 8994else $as_nop 8995 xorg_cv_cc_flag_unused_command_line_argument=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8998fi 8999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003fi 9004 9005found="no" 9006 9007 if test $found = "no" ; then 9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 fi 9011 9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014 fi 9015 9016 CFLAGS="$CFLAGS -Wnonnull" 9017 9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9019printf %s "checking if $CC supports -Wnonnull... " >&6; } 9020 cacheid=xorg_cv_cc_flag__Wnonnull 9021 if eval test \${$cacheid+y} 9022then : 9023 printf %s "(cached) " >&6 9024else $as_nop 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027int i; 9028int 9029main (void) 9030{ 9031 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036if ac_fn_c_try_link "$LINENO" 9037then : 9038 eval $cacheid=yes 9039else $as_nop 9040 eval $cacheid=no 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9043 conftest$ac_exeext conftest.$ac_ext 9044fi 9045 9046 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048 9049 eval supported=\$$cacheid 9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9051printf "%s\n" "$supported" >&6; } 9052 if test "$supported" = "yes" ; then 9053 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9054 found="yes" 9055 fi 9056 fi 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072xorg_testset_save_CFLAGS="$CFLAGS" 9073 9074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9078if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9079then : 9080 printf %s "(cached) " >&6 9081else $as_nop 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083/* end confdefs.h. */ 9084int i; 9085_ACEOF 9086if ac_fn_c_try_compile "$LINENO" 9087then : 9088 xorg_cv_cc_flag_unknown_warning_option=yes 9089else $as_nop 9090 xorg_cv_cc_flag_unknown_warning_option=no 9091fi 9092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9093fi 9094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9097 CFLAGS="$xorg_testset_save_CFLAGS" 9098fi 9099 9100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103 fi 9104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9107if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9108then : 9109 printf %s "(cached) " >&6 9110else $as_nop 9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112/* end confdefs.h. */ 9113int i; 9114_ACEOF 9115if ac_fn_c_try_compile "$LINENO" 9116then : 9117 xorg_cv_cc_flag_unused_command_line_argument=yes 9118else $as_nop 9119 xorg_cv_cc_flag_unused_command_line_argument=no 9120fi 9121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9122fi 9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9126 CFLAGS="$xorg_testset_save_CFLAGS" 9127fi 9128 9129found="no" 9130 9131 if test $found = "no" ; then 9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 fi 9135 9136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9138 fi 9139 9140 CFLAGS="$CFLAGS -Winit-self" 9141 9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9143printf %s "checking if $CC supports -Winit-self... " >&6; } 9144 cacheid=xorg_cv_cc_flag__Winit_self 9145 if eval test \${$cacheid+y} 9146then : 9147 printf %s "(cached) " >&6 9148else $as_nop 9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9150/* end confdefs.h. */ 9151int i; 9152int 9153main (void) 9154{ 9155 9156 ; 9157 return 0; 9158} 9159_ACEOF 9160if ac_fn_c_try_link "$LINENO" 9161then : 9162 eval $cacheid=yes 9163else $as_nop 9164 eval $cacheid=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9167 conftest$ac_exeext conftest.$ac_ext 9168fi 9169 9170 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172 9173 eval supported=\$$cacheid 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9175printf "%s\n" "$supported" >&6; } 9176 if test "$supported" = "yes" ; then 9177 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9178 found="yes" 9179 fi 9180 fi 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196xorg_testset_save_CFLAGS="$CFLAGS" 9197 9198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9202if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9203then : 9204 printf %s "(cached) " >&6 9205else $as_nop 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208int i; 9209_ACEOF 9210if ac_fn_c_try_compile "$LINENO" 9211then : 9212 xorg_cv_cc_flag_unknown_warning_option=yes 9213else $as_nop 9214 xorg_cv_cc_flag_unknown_warning_option=no 9215fi 9216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9217fi 9218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9221 CFLAGS="$xorg_testset_save_CFLAGS" 9222fi 9223 9224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9232then : 9233 printf %s "(cached) " >&6 9234else $as_nop 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237int i; 9238_ACEOF 9239if ac_fn_c_try_compile "$LINENO" 9240then : 9241 xorg_cv_cc_flag_unused_command_line_argument=yes 9242else $as_nop 9243 xorg_cv_cc_flag_unused_command_line_argument=no 9244fi 9245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9246fi 9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9250 CFLAGS="$xorg_testset_save_CFLAGS" 9251fi 9252 9253found="no" 9254 9255 if test $found = "no" ; then 9256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258 fi 9259 9260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9262 fi 9263 9264 CFLAGS="$CFLAGS -Wmain" 9265 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9267printf %s "checking if $CC supports -Wmain... " >&6; } 9268 cacheid=xorg_cv_cc_flag__Wmain 9269 if eval test \${$cacheid+y} 9270then : 9271 printf %s "(cached) " >&6 9272else $as_nop 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274/* end confdefs.h. */ 9275int i; 9276int 9277main (void) 9278{ 9279 9280 ; 9281 return 0; 9282} 9283_ACEOF 9284if ac_fn_c_try_link "$LINENO" 9285then : 9286 eval $cacheid=yes 9287else $as_nop 9288 eval $cacheid=no 9289fi 9290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9291 conftest$ac_exeext conftest.$ac_ext 9292fi 9293 9294 9295 CFLAGS="$xorg_testset_save_CFLAGS" 9296 9297 eval supported=\$$cacheid 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9299printf "%s\n" "$supported" >&6; } 9300 if test "$supported" = "yes" ; then 9301 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9302 found="yes" 9303 fi 9304 fi 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320xorg_testset_save_CFLAGS="$CFLAGS" 9321 9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9327then : 9328 printf %s "(cached) " >&6 9329else $as_nop 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332int i; 9333_ACEOF 9334if ac_fn_c_try_compile "$LINENO" 9335then : 9336 xorg_cv_cc_flag_unknown_warning_option=yes 9337else $as_nop 9338 xorg_cv_cc_flag_unknown_warning_option=no 9339fi 9340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346fi 9347 9348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 fi 9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9356then : 9357 printf %s "(cached) " >&6 9358else $as_nop 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361int i; 9362_ACEOF 9363if ac_fn_c_try_compile "$LINENO" 9364then : 9365 xorg_cv_cc_flag_unused_command_line_argument=yes 9366else $as_nop 9367 xorg_cv_cc_flag_unused_command_line_argument=no 9368fi 9369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9370fi 9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9374 CFLAGS="$xorg_testset_save_CFLAGS" 9375fi 9376 9377found="no" 9378 9379 if test $found = "no" ; then 9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382 fi 9383 9384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9386 fi 9387 9388 CFLAGS="$CFLAGS -Wmissing-braces" 9389 9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9391printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9392 cacheid=xorg_cv_cc_flag__Wmissing_braces 9393 if eval test \${$cacheid+y} 9394then : 9395 printf %s "(cached) " >&6 9396else $as_nop 9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9398/* end confdefs.h. */ 9399int i; 9400int 9401main (void) 9402{ 9403 9404 ; 9405 return 0; 9406} 9407_ACEOF 9408if ac_fn_c_try_link "$LINENO" 9409then : 9410 eval $cacheid=yes 9411else $as_nop 9412 eval $cacheid=no 9413fi 9414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9415 conftest$ac_exeext conftest.$ac_ext 9416fi 9417 9418 9419 CFLAGS="$xorg_testset_save_CFLAGS" 9420 9421 eval supported=\$$cacheid 9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9423printf "%s\n" "$supported" >&6; } 9424 if test "$supported" = "yes" ; then 9425 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9426 found="yes" 9427 fi 9428 fi 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444xorg_testset_save_CFLAGS="$CFLAGS" 9445 9446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9450if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9451then : 9452 printf %s "(cached) " >&6 9453else $as_nop 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int i; 9457_ACEOF 9458if ac_fn_c_try_compile "$LINENO" 9459then : 9460 xorg_cv_cc_flag_unknown_warning_option=yes 9461else $as_nop 9462 xorg_cv_cc_flag_unknown_warning_option=no 9463fi 9464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9465fi 9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9469 CFLAGS="$xorg_testset_save_CFLAGS" 9470fi 9471 9472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9475 fi 9476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9480then : 9481 printf %s "(cached) " >&6 9482else $as_nop 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int i; 9486_ACEOF 9487if ac_fn_c_try_compile "$LINENO" 9488then : 9489 xorg_cv_cc_flag_unused_command_line_argument=yes 9490else $as_nop 9491 xorg_cv_cc_flag_unused_command_line_argument=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9494fi 9495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499fi 9500 9501found="no" 9502 9503 if test $found = "no" ; then 9504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9506 fi 9507 9508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9510 fi 9511 9512 CFLAGS="$CFLAGS -Wsequence-point" 9513 9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9515printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9516 cacheid=xorg_cv_cc_flag__Wsequence_point 9517 if eval test \${$cacheid+y} 9518then : 9519 printf %s "(cached) " >&6 9520else $as_nop 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int i; 9524int 9525main (void) 9526{ 9527 9528 ; 9529 return 0; 9530} 9531_ACEOF 9532if ac_fn_c_try_link "$LINENO" 9533then : 9534 eval $cacheid=yes 9535else $as_nop 9536 eval $cacheid=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9539 conftest$ac_exeext conftest.$ac_ext 9540fi 9541 9542 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544 9545 eval supported=\$$cacheid 9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9547printf "%s\n" "$supported" >&6; } 9548 if test "$supported" = "yes" ; then 9549 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9550 found="yes" 9551 fi 9552 fi 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568xorg_testset_save_CFLAGS="$CFLAGS" 9569 9570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9575then : 9576 printf %s "(cached) " >&6 9577else $as_nop 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580int i; 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO" 9583then : 9584 xorg_cv_cc_flag_unknown_warning_option=yes 9585else $as_nop 9586 xorg_cv_cc_flag_unknown_warning_option=no 9587fi 9588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9589fi 9590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 fi 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9604then : 9605 printf %s "(cached) " >&6 9606else $as_nop 9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO" 9612then : 9613 xorg_cv_cc_flag_unused_command_line_argument=yes 9614else $as_nop 9615 xorg_cv_cc_flag_unused_command_line_argument=no 9616fi 9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9618fi 9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9622 CFLAGS="$xorg_testset_save_CFLAGS" 9623fi 9624 9625found="no" 9626 9627 if test $found = "no" ; then 9628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630 fi 9631 9632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9634 fi 9635 9636 CFLAGS="$CFLAGS -Wreturn-type" 9637 9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9639printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9640 cacheid=xorg_cv_cc_flag__Wreturn_type 9641 if eval test \${$cacheid+y} 9642then : 9643 printf %s "(cached) " >&6 9644else $as_nop 9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646/* end confdefs.h. */ 9647int i; 9648int 9649main (void) 9650{ 9651 9652 ; 9653 return 0; 9654} 9655_ACEOF 9656if ac_fn_c_try_link "$LINENO" 9657then : 9658 eval $cacheid=yes 9659else $as_nop 9660 eval $cacheid=no 9661fi 9662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9663 conftest$ac_exeext conftest.$ac_ext 9664fi 9665 9666 9667 CFLAGS="$xorg_testset_save_CFLAGS" 9668 9669 eval supported=\$$cacheid 9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9671printf "%s\n" "$supported" >&6; } 9672 if test "$supported" = "yes" ; then 9673 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9674 found="yes" 9675 fi 9676 fi 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692xorg_testset_save_CFLAGS="$CFLAGS" 9693 9694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9699then : 9700 printf %s "(cached) " >&6 9701else $as_nop 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704int i; 9705_ACEOF 9706if ac_fn_c_try_compile "$LINENO" 9707then : 9708 xorg_cv_cc_flag_unknown_warning_option=yes 9709else $as_nop 9710 xorg_cv_cc_flag_unknown_warning_option=no 9711fi 9712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9713fi 9714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9717 CFLAGS="$xorg_testset_save_CFLAGS" 9718fi 9719 9720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723 fi 9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9728then : 9729 printf %s "(cached) " >&6 9730else $as_nop 9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733int i; 9734_ACEOF 9735if ac_fn_c_try_compile "$LINENO" 9736then : 9737 xorg_cv_cc_flag_unused_command_line_argument=yes 9738else $as_nop 9739 xorg_cv_cc_flag_unused_command_line_argument=no 9740fi 9741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9742fi 9743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9746 CFLAGS="$xorg_testset_save_CFLAGS" 9747fi 9748 9749found="no" 9750 9751 if test $found = "no" ; then 9752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 fi 9755 9756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9758 fi 9759 9760 CFLAGS="$CFLAGS -Wtrigraphs" 9761 9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9763printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9764 cacheid=xorg_cv_cc_flag__Wtrigraphs 9765 if eval test \${$cacheid+y} 9766then : 9767 printf %s "(cached) " >&6 9768else $as_nop 9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770/* end confdefs.h. */ 9771int i; 9772int 9773main (void) 9774{ 9775 9776 ; 9777 return 0; 9778} 9779_ACEOF 9780if ac_fn_c_try_link "$LINENO" 9781then : 9782 eval $cacheid=yes 9783else $as_nop 9784 eval $cacheid=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9787 conftest$ac_exeext conftest.$ac_ext 9788fi 9789 9790 9791 CFLAGS="$xorg_testset_save_CFLAGS" 9792 9793 eval supported=\$$cacheid 9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9795printf "%s\n" "$supported" >&6; } 9796 if test "$supported" = "yes" ; then 9797 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9798 found="yes" 9799 fi 9800 fi 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816xorg_testset_save_CFLAGS="$CFLAGS" 9817 9818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9822if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9823then : 9824 printf %s "(cached) " >&6 9825else $as_nop 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828int i; 9829_ACEOF 9830if ac_fn_c_try_compile "$LINENO" 9831then : 9832 xorg_cv_cc_flag_unknown_warning_option=yes 9833else $as_nop 9834 xorg_cv_cc_flag_unknown_warning_option=no 9835fi 9836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9837fi 9838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9841 CFLAGS="$xorg_testset_save_CFLAGS" 9842fi 9843 9844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9847 fi 9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9851if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9852then : 9853 printf %s "(cached) " >&6 9854else $as_nop 9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9856/* end confdefs.h. */ 9857int i; 9858_ACEOF 9859if ac_fn_c_try_compile "$LINENO" 9860then : 9861 xorg_cv_cc_flag_unused_command_line_argument=yes 9862else $as_nop 9863 xorg_cv_cc_flag_unused_command_line_argument=no 9864fi 9865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9866fi 9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871fi 9872 9873found="no" 9874 9875 if test $found = "no" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 fi 9883 9884 CFLAGS="$CFLAGS -Warray-bounds" 9885 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9887printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9888 cacheid=xorg_cv_cc_flag__Warray_bounds 9889 if eval test \${$cacheid+y} 9890then : 9891 printf %s "(cached) " >&6 9892else $as_nop 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895int i; 9896int 9897main (void) 9898{ 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904if ac_fn_c_try_link "$LINENO" 9905then : 9906 eval $cacheid=yes 9907else $as_nop 9908 eval $cacheid=no 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9911 conftest$ac_exeext conftest.$ac_ext 9912fi 9913 9914 9915 CFLAGS="$xorg_testset_save_CFLAGS" 9916 9917 eval supported=\$$cacheid 9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9919printf "%s\n" "$supported" >&6; } 9920 if test "$supported" = "yes" ; then 9921 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9922 found="yes" 9923 fi 9924 fi 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940xorg_testset_save_CFLAGS="$CFLAGS" 9941 9942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9947then : 9948 printf %s "(cached) " >&6 9949else $as_nop 9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952int i; 9953_ACEOF 9954if ac_fn_c_try_compile "$LINENO" 9955then : 9956 xorg_cv_cc_flag_unknown_warning_option=yes 9957else $as_nop 9958 xorg_cv_cc_flag_unknown_warning_option=no 9959fi 9960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9961fi 9962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9965 CFLAGS="$xorg_testset_save_CFLAGS" 9966fi 9967 9968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9971 fi 9972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9976then : 9977 printf %s "(cached) " >&6 9978else $as_nop 9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9980/* end confdefs.h. */ 9981int i; 9982_ACEOF 9983if ac_fn_c_try_compile "$LINENO" 9984then : 9985 xorg_cv_cc_flag_unused_command_line_argument=yes 9986else $as_nop 9987 xorg_cv_cc_flag_unused_command_line_argument=no 9988fi 9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9990fi 9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9994 CFLAGS="$xorg_testset_save_CFLAGS" 9995fi 9996 9997found="no" 9998 9999 if test $found = "no" ; then 10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10006 fi 10007 10008 CFLAGS="$CFLAGS -Wwrite-strings" 10009 10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10011printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10012 cacheid=xorg_cv_cc_flag__Wwrite_strings 10013 if eval test \${$cacheid+y} 10014then : 10015 printf %s "(cached) " >&6 10016else $as_nop 10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10018/* end confdefs.h. */ 10019int i; 10020int 10021main (void) 10022{ 10023 10024 ; 10025 return 0; 10026} 10027_ACEOF 10028if ac_fn_c_try_link "$LINENO" 10029then : 10030 eval $cacheid=yes 10031else $as_nop 10032 eval $cacheid=no 10033fi 10034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10035 conftest$ac_exeext conftest.$ac_ext 10036fi 10037 10038 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040 10041 eval supported=\$$cacheid 10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10043printf "%s\n" "$supported" >&6; } 10044 if test "$supported" = "yes" ; then 10045 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10046 found="yes" 10047 fi 10048 fi 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064xorg_testset_save_CFLAGS="$CFLAGS" 10065 10066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10070if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10071then : 10072 printf %s "(cached) " >&6 10073else $as_nop 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076int i; 10077_ACEOF 10078if ac_fn_c_try_compile "$LINENO" 10079then : 10080 xorg_cv_cc_flag_unknown_warning_option=yes 10081else $as_nop 10082 xorg_cv_cc_flag_unknown_warning_option=no 10083fi 10084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10085fi 10086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10089 CFLAGS="$xorg_testset_save_CFLAGS" 10090fi 10091 10092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10095 fi 10096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10099if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10100then : 10101 printf %s "(cached) " >&6 10102else $as_nop 10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104/* end confdefs.h. */ 10105int i; 10106_ACEOF 10107if ac_fn_c_try_compile "$LINENO" 10108then : 10109 xorg_cv_cc_flag_unused_command_line_argument=yes 10110else $as_nop 10111 xorg_cv_cc_flag_unused_command_line_argument=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10114fi 10115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119fi 10120 10121found="no" 10122 10123 if test $found = "no" ; then 10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 fi 10127 10128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10130 fi 10131 10132 CFLAGS="$CFLAGS -Waddress" 10133 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10135printf %s "checking if $CC supports -Waddress... " >&6; } 10136 cacheid=xorg_cv_cc_flag__Waddress 10137 if eval test \${$cacheid+y} 10138then : 10139 printf %s "(cached) " >&6 10140else $as_nop 10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142/* end confdefs.h. */ 10143int i; 10144int 10145main (void) 10146{ 10147 10148 ; 10149 return 0; 10150} 10151_ACEOF 10152if ac_fn_c_try_link "$LINENO" 10153then : 10154 eval $cacheid=yes 10155else $as_nop 10156 eval $cacheid=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10159 conftest$ac_exeext conftest.$ac_ext 10160fi 10161 10162 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164 10165 eval supported=\$$cacheid 10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10167printf "%s\n" "$supported" >&6; } 10168 if test "$supported" = "yes" ; then 10169 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10170 found="yes" 10171 fi 10172 fi 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188xorg_testset_save_CFLAGS="$CFLAGS" 10189 10190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10194if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10195then : 10196 printf %s "(cached) " >&6 10197else $as_nop 10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199/* end confdefs.h. */ 10200int i; 10201_ACEOF 10202if ac_fn_c_try_compile "$LINENO" 10203then : 10204 xorg_cv_cc_flag_unknown_warning_option=yes 10205else $as_nop 10206 xorg_cv_cc_flag_unknown_warning_option=no 10207fi 10208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10209fi 10210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10211printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10213 CFLAGS="$xorg_testset_save_CFLAGS" 10214fi 10215 10216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219 fi 10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10222printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10223if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10224then : 10225 printf %s "(cached) " >&6 10226else $as_nop 10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228/* end confdefs.h. */ 10229int i; 10230_ACEOF 10231if ac_fn_c_try_compile "$LINENO" 10232then : 10233 xorg_cv_cc_flag_unused_command_line_argument=yes 10234else $as_nop 10235 xorg_cv_cc_flag_unused_command_line_argument=no 10236fi 10237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10238fi 10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10240printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10242 CFLAGS="$xorg_testset_save_CFLAGS" 10243fi 10244 10245found="no" 10246 10247 if test $found = "no" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10254 fi 10255 10256 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10257 10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10259printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10260 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10261 if eval test \${$cacheid+y} 10262then : 10263 printf %s "(cached) " >&6 10264else $as_nop 10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10266/* end confdefs.h. */ 10267int i; 10268int 10269main (void) 10270{ 10271 10272 ; 10273 return 0; 10274} 10275_ACEOF 10276if ac_fn_c_try_link "$LINENO" 10277then : 10278 eval $cacheid=yes 10279else $as_nop 10280 eval $cacheid=no 10281fi 10282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10283 conftest$ac_exeext conftest.$ac_ext 10284fi 10285 10286 10287 CFLAGS="$xorg_testset_save_CFLAGS" 10288 10289 eval supported=\$$cacheid 10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10291printf "%s\n" "$supported" >&6; } 10292 if test "$supported" = "yes" ; then 10293 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10294 found="yes" 10295 fi 10296 fi 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312xorg_testset_save_CFLAGS="$CFLAGS" 10313 10314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10318if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10319then : 10320 printf %s "(cached) " >&6 10321else $as_nop 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323/* end confdefs.h. */ 10324int i; 10325_ACEOF 10326if ac_fn_c_try_compile "$LINENO" 10327then : 10328 xorg_cv_cc_flag_unknown_warning_option=yes 10329else $as_nop 10330 xorg_cv_cc_flag_unknown_warning_option=no 10331fi 10332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10333fi 10334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10337 CFLAGS="$xorg_testset_save_CFLAGS" 10338fi 10339 10340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10343 fi 10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10348then : 10349 printf %s "(cached) " >&6 10350else $as_nop 10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352/* end confdefs.h. */ 10353int i; 10354_ACEOF 10355if ac_fn_c_try_compile "$LINENO" 10356then : 10357 xorg_cv_cc_flag_unused_command_line_argument=yes 10358else $as_nop 10359 xorg_cv_cc_flag_unused_command_line_argument=no 10360fi 10361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10362fi 10363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10366 CFLAGS="$xorg_testset_save_CFLAGS" 10367fi 10368 10369found="no" 10370 10371 if test $found = "no" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10378 fi 10379 10380 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10381 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10383printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10384 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10385 if eval test \${$cacheid+y} 10386then : 10387 printf %s "(cached) " >&6 10388else $as_nop 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391int i; 10392int 10393main (void) 10394{ 10395 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400if ac_fn_c_try_link "$LINENO" 10401then : 10402 eval $cacheid=yes 10403else $as_nop 10404 eval $cacheid=no 10405fi 10406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10407 conftest$ac_exeext conftest.$ac_ext 10408fi 10409 10410 10411 CFLAGS="$xorg_testset_save_CFLAGS" 10412 10413 eval supported=\$$cacheid 10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10415printf "%s\n" "$supported" >&6; } 10416 if test "$supported" = "yes" ; then 10417 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10418 found="yes" 10419 fi 10420 fi 10421 10422 10423fi 10424 10425 10426 10427 10428 10429 10430 10431 CWARNFLAGS="$BASE_CFLAGS" 10432 if test "x$GCC" = xyes ; then 10433 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10434 fi 10435 10436 10437 10438 10439 10440 10441 10442 10443# Check whether --enable-strict-compilation was given. 10444if test ${enable_strict_compilation+y} 10445then : 10446 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10447else $as_nop 10448 STRICT_COMPILE=no 10449fi 10450 10451 10452 10453 10454 10455 10456STRICT_CFLAGS="" 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470xorg_testset_save_CFLAGS="$CFLAGS" 10471 10472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10477then : 10478 printf %s "(cached) " >&6 10479else $as_nop 10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482int i; 10483_ACEOF 10484if ac_fn_c_try_compile "$LINENO" 10485then : 10486 xorg_cv_cc_flag_unknown_warning_option=yes 10487else $as_nop 10488 xorg_cv_cc_flag_unknown_warning_option=no 10489fi 10490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10491fi 10492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10495 CFLAGS="$xorg_testset_save_CFLAGS" 10496fi 10497 10498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10501 fi 10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10505if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10506then : 10507 printf %s "(cached) " >&6 10508else $as_nop 10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510/* end confdefs.h. */ 10511int i; 10512_ACEOF 10513if ac_fn_c_try_compile "$LINENO" 10514then : 10515 xorg_cv_cc_flag_unused_command_line_argument=yes 10516else $as_nop 10517 xorg_cv_cc_flag_unused_command_line_argument=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10520fi 10521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10524 CFLAGS="$xorg_testset_save_CFLAGS" 10525fi 10526 10527found="no" 10528 10529 if test $found = "no" ; then 10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 fi 10533 10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10536 fi 10537 10538 CFLAGS="$CFLAGS -pedantic" 10539 10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10541printf %s "checking if $CC supports -pedantic... " >&6; } 10542 cacheid=xorg_cv_cc_flag__pedantic 10543 if eval test \${$cacheid+y} 10544then : 10545 printf %s "(cached) " >&6 10546else $as_nop 10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10548/* end confdefs.h. */ 10549int i; 10550int 10551main (void) 10552{ 10553 10554 ; 10555 return 0; 10556} 10557_ACEOF 10558if ac_fn_c_try_link "$LINENO" 10559then : 10560 eval $cacheid=yes 10561else $as_nop 10562 eval $cacheid=no 10563fi 10564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10565 conftest$ac_exeext conftest.$ac_ext 10566fi 10567 10568 10569 CFLAGS="$xorg_testset_save_CFLAGS" 10570 10571 eval supported=\$$cacheid 10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10573printf "%s\n" "$supported" >&6; } 10574 if test "$supported" = "yes" ; then 10575 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10576 found="yes" 10577 fi 10578 fi 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594xorg_testset_save_CFLAGS="$CFLAGS" 10595 10596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10601then : 10602 printf %s "(cached) " >&6 10603else $as_nop 10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605/* end confdefs.h. */ 10606int i; 10607_ACEOF 10608if ac_fn_c_try_compile "$LINENO" 10609then : 10610 xorg_cv_cc_flag_unknown_warning_option=yes 10611else $as_nop 10612 xorg_cv_cc_flag_unknown_warning_option=no 10613fi 10614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10615fi 10616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620fi 10621 10622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10625 fi 10626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10630then : 10631 printf %s "(cached) " >&6 10632else $as_nop 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635int i; 10636_ACEOF 10637if ac_fn_c_try_compile "$LINENO" 10638then : 10639 xorg_cv_cc_flag_unused_command_line_argument=yes 10640else $as_nop 10641 xorg_cv_cc_flag_unused_command_line_argument=no 10642fi 10643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10644fi 10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10648 CFLAGS="$xorg_testset_save_CFLAGS" 10649fi 10650 10651found="no" 10652 10653 if test $found = "no" ; then 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 fi 10657 10658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10660 fi 10661 10662 CFLAGS="$CFLAGS -Werror" 10663 10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10665printf %s "checking if $CC supports -Werror... " >&6; } 10666 cacheid=xorg_cv_cc_flag__Werror 10667 if eval test \${$cacheid+y} 10668then : 10669 printf %s "(cached) " >&6 10670else $as_nop 10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10672/* end confdefs.h. */ 10673int i; 10674int 10675main (void) 10676{ 10677 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682if ac_fn_c_try_link "$LINENO" 10683then : 10684 eval $cacheid=yes 10685else $as_nop 10686 eval $cacheid=no 10687fi 10688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10689 conftest$ac_exeext conftest.$ac_ext 10690fi 10691 10692 10693 CFLAGS="$xorg_testset_save_CFLAGS" 10694 10695 eval supported=\$$cacheid 10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10697printf "%s\n" "$supported" >&6; } 10698 if test "$supported" = "yes" ; then 10699 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10700 found="yes" 10701 fi 10702 fi 10703 10704 if test $found = "no" ; then 10705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10707 fi 10708 10709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10711 fi 10712 10713 CFLAGS="$CFLAGS -errwarn" 10714 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10716printf %s "checking if $CC supports -errwarn... " >&6; } 10717 cacheid=xorg_cv_cc_flag__errwarn 10718 if eval test \${$cacheid+y} 10719then : 10720 printf %s "(cached) " >&6 10721else $as_nop 10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10723/* end confdefs.h. */ 10724int i; 10725int 10726main (void) 10727{ 10728 10729 ; 10730 return 0; 10731} 10732_ACEOF 10733if ac_fn_c_try_link "$LINENO" 10734then : 10735 eval $cacheid=yes 10736else $as_nop 10737 eval $cacheid=no 10738fi 10739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10740 conftest$ac_exeext conftest.$ac_ext 10741fi 10742 10743 10744 CFLAGS="$xorg_testset_save_CFLAGS" 10745 10746 eval supported=\$$cacheid 10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10748printf "%s\n" "$supported" >&6; } 10749 if test "$supported" = "yes" ; then 10750 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10751 found="yes" 10752 fi 10753 fi 10754 10755 10756 10757# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10758# activate it with -Werror, so we add it here explicitly. 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772xorg_testset_save_CFLAGS="$CFLAGS" 10773 10774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10779then : 10780 printf %s "(cached) " >&6 10781else $as_nop 10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783/* end confdefs.h. */ 10784int i; 10785_ACEOF 10786if ac_fn_c_try_compile "$LINENO" 10787then : 10788 xorg_cv_cc_flag_unknown_warning_option=yes 10789else $as_nop 10790 xorg_cv_cc_flag_unknown_warning_option=no 10791fi 10792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10793fi 10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10797 CFLAGS="$xorg_testset_save_CFLAGS" 10798fi 10799 10800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 fi 10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10808then : 10809 printf %s "(cached) " >&6 10810else $as_nop 10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10812/* end confdefs.h. */ 10813int i; 10814_ACEOF 10815if ac_fn_c_try_compile "$LINENO" 10816then : 10817 xorg_cv_cc_flag_unused_command_line_argument=yes 10818else $as_nop 10819 xorg_cv_cc_flag_unused_command_line_argument=no 10820fi 10821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10822fi 10823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10826 CFLAGS="$xorg_testset_save_CFLAGS" 10827fi 10828 10829found="no" 10830 10831 if test $found = "no" ; then 10832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10834 fi 10835 10836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10838 fi 10839 10840 CFLAGS="$CFLAGS -Werror=attributes" 10841 10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10843printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10844 cacheid=xorg_cv_cc_flag__Werror_attributes 10845 if eval test \${$cacheid+y} 10846then : 10847 printf %s "(cached) " >&6 10848else $as_nop 10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10850/* end confdefs.h. */ 10851int i; 10852int 10853main (void) 10854{ 10855 10856 ; 10857 return 0; 10858} 10859_ACEOF 10860if ac_fn_c_try_link "$LINENO" 10861then : 10862 eval $cacheid=yes 10863else $as_nop 10864 eval $cacheid=no 10865fi 10866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10867 conftest$ac_exeext conftest.$ac_ext 10868fi 10869 10870 10871 CFLAGS="$xorg_testset_save_CFLAGS" 10872 10873 eval supported=\$$cacheid 10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10875printf "%s\n" "$supported" >&6; } 10876 if test "$supported" = "yes" ; then 10877 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10878 found="yes" 10879 fi 10880 fi 10881 10882 10883 10884if test "x$STRICT_COMPILE" = "xyes"; then 10885 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10886 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10887fi 10888 10889 10890 10891 10892 10893 10894cat >>confdefs.h <<_ACEOF 10895#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10896_ACEOF 10897 10898 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10899 if test "x$PVM" = "x"; then 10900 PVM="0" 10901 fi 10902 10903printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10904 10905 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10906 if test "x$PVP" = "x"; then 10907 PVP="0" 10908 fi 10909 10910printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10911 10912 10913 10914CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10915mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10916|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10917touch \$(top_srcdir)/ChangeLog; \ 10918echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10919 10920 10921 10922 10923macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10924INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10925mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10926|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10927touch \$(top_srcdir)/INSTALL; \ 10928echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10929 10930 10931 10932 10933 10934 10935case $host_os in 10936 solaris*) 10937 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10938 # check for a man page file found in later versions that use 10939 # traditional section numbers instead 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10941printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10942if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10943then : 10944 printf %s "(cached) " >&6 10945else $as_nop 10946 test "$cross_compiling" = yes && 10947 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10948if test -r "/usr/share/man/man7/attributes.7"; then 10949 ac_cv_file__usr_share_man_man7_attributes_7=yes 10950else 10951 ac_cv_file__usr_share_man_man7_attributes_7=no 10952fi 10953fi 10954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10955printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10956if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10957then : 10958 SYSV_MAN_SECTIONS=false 10959else $as_nop 10960 SYSV_MAN_SECTIONS=true 10961fi 10962 10963 ;; 10964 *) SYSV_MAN_SECTIONS=false ;; 10965esac 10966 10967if test x$APP_MAN_SUFFIX = x ; then 10968 APP_MAN_SUFFIX=1 10969fi 10970if test x$APP_MAN_DIR = x ; then 10971 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10972fi 10973 10974if test x$LIB_MAN_SUFFIX = x ; then 10975 LIB_MAN_SUFFIX=3 10976fi 10977if test x$LIB_MAN_DIR = x ; then 10978 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10979fi 10980 10981if test x$FILE_MAN_SUFFIX = x ; then 10982 case $SYSV_MAN_SECTIONS in 10983 true) FILE_MAN_SUFFIX=4 ;; 10984 *) FILE_MAN_SUFFIX=5 ;; 10985 esac 10986fi 10987if test x$FILE_MAN_DIR = x ; then 10988 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10989fi 10990 10991if test x$MISC_MAN_SUFFIX = x ; then 10992 case $SYSV_MAN_SECTIONS in 10993 true) MISC_MAN_SUFFIX=5 ;; 10994 *) MISC_MAN_SUFFIX=7 ;; 10995 esac 10996fi 10997if test x$MISC_MAN_DIR = x ; then 10998 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10999fi 11000 11001if test x$DRIVER_MAN_SUFFIX = x ; then 11002 case $SYSV_MAN_SECTIONS in 11003 true) DRIVER_MAN_SUFFIX=7 ;; 11004 *) DRIVER_MAN_SUFFIX=4 ;; 11005 esac 11006fi 11007if test x$DRIVER_MAN_DIR = x ; then 11008 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11009fi 11010 11011if test x$ADMIN_MAN_SUFFIX = x ; then 11012 case $SYSV_MAN_SECTIONS in 11013 true) ADMIN_MAN_SUFFIX=1m ;; 11014 *) ADMIN_MAN_SUFFIX=8 ;; 11015 esac 11016fi 11017if test x$ADMIN_MAN_DIR = x ; then 11018 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11019fi 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035XORG_MAN_PAGE="X Version 11" 11036 11037MAN_SUBSTS="\ 11038 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11039 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11040 -e 's|__xservername__|Xorg|g' \ 11041 -e 's|__xconfigfile__|xorg.conf|g' \ 11042 -e 's|__projectroot__|\$(prefix)|g' \ 11043 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11044 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11045 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11046 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11047 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11048 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11049 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11050 11051 11052 11053# Check whether --enable-silent-rules was given. 11054if test ${enable_silent_rules+y} 11055then : 11056 enableval=$enable_silent_rules; 11057fi 11058 11059case $enable_silent_rules in # ((( 11060 yes) AM_DEFAULT_VERBOSITY=0;; 11061 no) AM_DEFAULT_VERBOSITY=1;; 11062 *) AM_DEFAULT_VERBOSITY=0;; 11063esac 11064am_make=${MAKE-make} 11065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11066printf %s "checking whether $am_make supports nested variables... " >&6; } 11067if test ${am_cv_make_support_nested_variables+y} 11068then : 11069 printf %s "(cached) " >&6 11070else $as_nop 11071 if printf "%s\n" 'TRUE=$(BAR$(V)) 11072BAR0=false 11073BAR1=true 11074V=1 11075am__doit: 11076 @$(TRUE) 11077.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11078 am_cv_make_support_nested_variables=yes 11079else 11080 am_cv_make_support_nested_variables=no 11081fi 11082fi 11083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11084printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11085if test $am_cv_make_support_nested_variables = yes; then 11086 AM_V='$(V)' 11087 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11088else 11089 AM_V=$AM_DEFAULT_VERBOSITY 11090 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11091fi 11092AM_BACKSLASH='\' 11093 11094 11095 11096# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 11112printf %s "checking for root directory for font files... " >&6; } 11113 11114# Check whether --with-fontrootdir was given. 11115if test ${with_fontrootdir+y} 11116then : 11117 withval=$with_fontrootdir; FONTROOTDIR="$withval" 11118fi 11119 11120 # if --with-fontrootdir not specified... 11121 if test "x${FONTROOTDIR}" = "x"; then 11122 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 11123 fi 11124 # ...and if pkg-config didn't find fontdir in fontutil.pc... 11125 if test "x${FONTROOTDIR}" = "x"; then 11126 FONTROOTDIR="${datadir}/fonts/X11" 11127 fi 11128 11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 11130printf "%s\n" "${FONTROOTDIR}" >&6; } 11131 11132 11133 11134 11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5 11136printf %s "checking for directory for encodings files... " >&6; } 11137 11138# Check whether --with-encodingsdir was given. 11139if test ${with_encodingsdir+y} 11140then : 11141 withval=$with_encodingsdir; ENCODINGSDIR="${withval}" 11142else $as_nop 11143 ENCODINGSDIR='${FONTROOTDIR}/encodings' 11144fi 11145 11146 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5 11148printf "%s\n" "${ENCODINGSDIR}" >&6; } 11149 11150 11151 11152 11153DEFAULT_XCONFDIR="${libdir}/X11/config" 11154 11155# Check whether --with-config-dir was given. 11156if test ${with_config_dir+y} 11157then : 11158 withval=$with_config_dir; XCONFDIR="$withval" 11159else $as_nop 11160 XCONFDIR="$DEFAULT_XCONFDIR" 11161fi 11162 11163 11164 11165ac_config_files="$ac_config_files Makefile site.def" 11166 11167cat >confcache <<\_ACEOF 11168# This file is a shell script that caches the results of configure 11169# tests run on this system so they can be shared between configure 11170# scripts and configure runs, see configure's option --config-cache. 11171# It is not useful on other systems. If it contains results you don't 11172# want to keep, you may remove or edit it. 11173# 11174# config.status only pays attention to the cache file if you give it 11175# the --recheck option to rerun configure. 11176# 11177# `ac_cv_env_foo' variables (set or unset) will be overridden when 11178# loading this file, other *unset* `ac_cv_foo' will be assigned the 11179# following values. 11180 11181_ACEOF 11182 11183# The following way of writing the cache mishandles newlines in values, 11184# but we know of no workaround that is simple, portable, and efficient. 11185# So, we kill variables containing newlines. 11186# Ultrix sh set writes to stderr and can't be redirected directly, 11187# and sets the high bit in the cache file unless we assign to the vars. 11188( 11189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11190 eval ac_val=\$$ac_var 11191 case $ac_val in #( 11192 *${as_nl}*) 11193 case $ac_var in #( 11194 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11195printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11196 esac 11197 case $ac_var in #( 11198 _ | IFS | as_nl) ;; #( 11199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11200 *) { eval $ac_var=; unset $ac_var;} ;; 11201 esac ;; 11202 esac 11203 done 11204 11205 (set) 2>&1 | 11206 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11207 *${as_nl}ac_space=\ *) 11208 # `set' does not quote correctly, so add quotes: double-quote 11209 # substitution turns \\\\ into \\, and sed turns \\ into \. 11210 sed -n \ 11211 "s/'/'\\\\''/g; 11212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11213 ;; #( 11214 *) 11215 # `set' quotes correctly as required by POSIX, so do not add quotes. 11216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11217 ;; 11218 esac | 11219 sort 11220) | 11221 sed ' 11222 /^ac_cv_env_/b end 11223 t clear 11224 :clear 11225 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11226 t end 11227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11228 :end' >>confcache 11229if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11230 if test -w "$cache_file"; then 11231 if test "x$cache_file" != "x/dev/null"; then 11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11233printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11234 if test ! -f "$cache_file" || test -h "$cache_file"; then 11235 cat confcache >"$cache_file" 11236 else 11237 case $cache_file in #( 11238 */* | ?:*) 11239 mv -f confcache "$cache_file"$$ && 11240 mv -f "$cache_file"$$ "$cache_file" ;; #( 11241 *) 11242 mv -f confcache "$cache_file" ;; 11243 esac 11244 fi 11245 fi 11246 else 11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11248printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11249 fi 11250fi 11251rm -f confcache 11252 11253test "x$prefix" = xNONE && prefix=$ac_default_prefix 11254# Let make expand exec_prefix. 11255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11256 11257# Transform confdefs.h into DEFS. 11258# Protect against shell expansion while executing Makefile rules. 11259# Protect against Makefile macro expansion. 11260# 11261# If the first sed substitution is executed (which looks for macros that 11262# take arguments), then branch to the quote section. Otherwise, 11263# look for a macro that doesn't take arguments. 11264ac_script=' 11265:mline 11266/\\$/{ 11267 N 11268 s,\\\n,, 11269 b mline 11270} 11271t clear 11272:clear 11273s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11274t quote 11275s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11276t quote 11277b any 11278:quote 11279s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11280s/\[/\\&/g 11281s/\]/\\&/g 11282s/\$/$$/g 11283H 11284:any 11285${ 11286 g 11287 s/^\n// 11288 s/\n/ /g 11289 p 11290} 11291' 11292DEFS=`sed -n "$ac_script" confdefs.h` 11293 11294 11295ac_libobjs= 11296ac_ltlibobjs= 11297U= 11298for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11299 # 1. Remove the extension, and $U if already installed. 11300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11301 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11303 # will be set to the directory where LIBOBJS objects are built. 11304 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11305 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11306done 11307LIBOBJS=$ac_libobjs 11308 11309LTLIBOBJS=$ac_ltlibobjs 11310 11311 11312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11313printf %s "checking that generated files are newer than configure... " >&6; } 11314 if test -n "$am_sleep_pid"; then 11315 # Hide warnings about reused PIDs. 11316 wait $am_sleep_pid 2>/dev/null 11317 fi 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11319printf "%s\n" "done" >&6; } 11320 if test -n "$EXEEXT"; then 11321 am__EXEEXT_TRUE= 11322 am__EXEEXT_FALSE='#' 11323else 11324 am__EXEEXT_TRUE='#' 11325 am__EXEEXT_FALSE= 11326fi 11327 11328if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11329 as_fn_error $? "conditional \"AMDEP\" was never defined. 11330Usually this means the macro was only invoked conditionally." "$LINENO" 5 11331fi 11332if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11333 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11334Usually this means the macro was only invoked conditionally." "$LINENO" 5 11335fi 11336 11337: "${CONFIG_STATUS=./config.status}" 11338ac_write_fail=0 11339ac_clean_files_save=$ac_clean_files 11340ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11342printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11343as_write_fail=0 11344cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11345#! $SHELL 11346# Generated by $as_me. 11347# Run this file to recreate the current configuration. 11348# Compiler output produced by configure, useful for debugging 11349# configure, is in config.log if it exists. 11350 11351debug=false 11352ac_cs_recheck=false 11353ac_cs_silent=false 11354 11355SHELL=\${CONFIG_SHELL-$SHELL} 11356export SHELL 11357_ASEOF 11358cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11359## -------------------- ## 11360## M4sh Initialization. ## 11361## -------------------- ## 11362 11363# Be more Bourne compatible 11364DUALCASE=1; export DUALCASE # for MKS sh 11365as_nop=: 11366if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11367then : 11368 emulate sh 11369 NULLCMD=: 11370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11371 # is contrary to our usage. Disable this feature. 11372 alias -g '${1+"$@"}'='"$@"' 11373 setopt NO_GLOB_SUBST 11374else $as_nop 11375 case `(set -o) 2>/dev/null` in #( 11376 *posix*) : 11377 set -o posix ;; #( 11378 *) : 11379 ;; 11380esac 11381fi 11382 11383 11384 11385# Reset variables that may have inherited troublesome values from 11386# the environment. 11387 11388# IFS needs to be set, to space, tab, and newline, in precisely that order. 11389# (If _AS_PATH_WALK were called with IFS unset, it would have the 11390# side effect of setting IFS to empty, thus disabling word splitting.) 11391# Quoting is to prevent editors from complaining about space-tab. 11392as_nl=' 11393' 11394export as_nl 11395IFS=" "" $as_nl" 11396 11397PS1='$ ' 11398PS2='> ' 11399PS4='+ ' 11400 11401# Ensure predictable behavior from utilities with locale-dependent output. 11402LC_ALL=C 11403export LC_ALL 11404LANGUAGE=C 11405export LANGUAGE 11406 11407# We cannot yet rely on "unset" to work, but we need these variables 11408# to be unset--not just set to an empty or harmless value--now, to 11409# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11410# also avoids known problems related to "unset" and subshell syntax 11411# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11412for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11413do eval test \${$as_var+y} \ 11414 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11415done 11416 11417# Ensure that fds 0, 1, and 2 are open. 11418if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11419if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11420if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11421 11422# The user is always right. 11423if ${PATH_SEPARATOR+false} :; then 11424 PATH_SEPARATOR=: 11425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11427 PATH_SEPARATOR=';' 11428 } 11429fi 11430 11431 11432# Find who we are. Look in the path if we contain no directory separator. 11433as_myself= 11434case $0 in #(( 11435 *[\\/]* ) as_myself=$0 ;; 11436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11437for as_dir in $PATH 11438do 11439 IFS=$as_save_IFS 11440 case $as_dir in #((( 11441 '') as_dir=./ ;; 11442 */) ;; 11443 *) as_dir=$as_dir/ ;; 11444 esac 11445 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11446 done 11447IFS=$as_save_IFS 11448 11449 ;; 11450esac 11451# We did not find ourselves, most probably we were run as `sh COMMAND' 11452# in which case we are not to be found in the path. 11453if test "x$as_myself" = x; then 11454 as_myself=$0 11455fi 11456if test ! -f "$as_myself"; then 11457 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11458 exit 1 11459fi 11460 11461 11462 11463# as_fn_error STATUS ERROR [LINENO LOG_FD] 11464# ---------------------------------------- 11465# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11466# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11467# script with STATUS, using 1 if that was 0. 11468as_fn_error () 11469{ 11470 as_status=$1; test $as_status -eq 0 && as_status=1 11471 if test "$4"; then 11472 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11474 fi 11475 printf "%s\n" "$as_me: error: $2" >&2 11476 as_fn_exit $as_status 11477} # as_fn_error 11478 11479 11480 11481# as_fn_set_status STATUS 11482# ----------------------- 11483# Set $? to STATUS, without forking. 11484as_fn_set_status () 11485{ 11486 return $1 11487} # as_fn_set_status 11488 11489# as_fn_exit STATUS 11490# ----------------- 11491# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11492as_fn_exit () 11493{ 11494 set +e 11495 as_fn_set_status $1 11496 exit $1 11497} # as_fn_exit 11498 11499# as_fn_unset VAR 11500# --------------- 11501# Portably unset VAR. 11502as_fn_unset () 11503{ 11504 { eval $1=; unset $1;} 11505} 11506as_unset=as_fn_unset 11507 11508# as_fn_append VAR VALUE 11509# ---------------------- 11510# Append the text in VALUE to the end of the definition contained in VAR. Take 11511# advantage of any shell optimizations that allow amortized linear growth over 11512# repeated appends, instead of the typical quadratic growth present in naive 11513# implementations. 11514if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11515then : 11516 eval 'as_fn_append () 11517 { 11518 eval $1+=\$2 11519 }' 11520else $as_nop 11521 as_fn_append () 11522 { 11523 eval $1=\$$1\$2 11524 } 11525fi # as_fn_append 11526 11527# as_fn_arith ARG... 11528# ------------------ 11529# Perform arithmetic evaluation on the ARGs, and store the result in the 11530# global $as_val. Take advantage of shells that can avoid forks. The arguments 11531# must be portable across $(()) and expr. 11532if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11533then : 11534 eval 'as_fn_arith () 11535 { 11536 as_val=$(( $* )) 11537 }' 11538else $as_nop 11539 as_fn_arith () 11540 { 11541 as_val=`expr "$@" || test $? -eq 1` 11542 } 11543fi # as_fn_arith 11544 11545 11546if expr a : '\(a\)' >/dev/null 2>&1 && 11547 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11548 as_expr=expr 11549else 11550 as_expr=false 11551fi 11552 11553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11554 as_basename=basename 11555else 11556 as_basename=false 11557fi 11558 11559if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11560 as_dirname=dirname 11561else 11562 as_dirname=false 11563fi 11564 11565as_me=`$as_basename -- "$0" || 11566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11567 X"$0" : 'X\(//\)$' \| \ 11568 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11569printf "%s\n" X/"$0" | 11570 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11571 s//\1/ 11572 q 11573 } 11574 /^X\/\(\/\/\)$/{ 11575 s//\1/ 11576 q 11577 } 11578 /^X\/\(\/\).*/{ 11579 s//\1/ 11580 q 11581 } 11582 s/.*/./; q'` 11583 11584# Avoid depending upon Character Ranges. 11585as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11586as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11587as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11588as_cr_digits='0123456789' 11589as_cr_alnum=$as_cr_Letters$as_cr_digits 11590 11591 11592# Determine whether it's possible to make 'echo' print without a newline. 11593# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11594# for compatibility with existing Makefiles. 11595ECHO_C= ECHO_N= ECHO_T= 11596case `echo -n x` in #((((( 11597-n*) 11598 case `echo 'xy\c'` in 11599 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11600 xy) ECHO_C='\c';; 11601 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11602 ECHO_T=' ';; 11603 esac;; 11604*) 11605 ECHO_N='-n';; 11606esac 11607 11608# For backward compatibility with old third-party macros, we provide 11609# the shell variables $as_echo and $as_echo_n. New code should use 11610# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11611as_echo='printf %s\n' 11612as_echo_n='printf %s' 11613 11614rm -f conf$$ conf$$.exe conf$$.file 11615if test -d conf$$.dir; then 11616 rm -f conf$$.dir/conf$$.file 11617else 11618 rm -f conf$$.dir 11619 mkdir conf$$.dir 2>/dev/null 11620fi 11621if (echo >conf$$.file) 2>/dev/null; then 11622 if ln -s conf$$.file conf$$ 2>/dev/null; then 11623 as_ln_s='ln -s' 11624 # ... but there are two gotchas: 11625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11627 # In both cases, we have to default to `cp -pR'. 11628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11629 as_ln_s='cp -pR' 11630 elif ln conf$$.file conf$$ 2>/dev/null; then 11631 as_ln_s=ln 11632 else 11633 as_ln_s='cp -pR' 11634 fi 11635else 11636 as_ln_s='cp -pR' 11637fi 11638rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11639rmdir conf$$.dir 2>/dev/null 11640 11641 11642# as_fn_mkdir_p 11643# ------------- 11644# Create "$as_dir" as a directory, including parents if necessary. 11645as_fn_mkdir_p () 11646{ 11647 11648 case $as_dir in #( 11649 -*) as_dir=./$as_dir;; 11650 esac 11651 test -d "$as_dir" || eval $as_mkdir_p || { 11652 as_dirs= 11653 while :; do 11654 case $as_dir in #( 11655 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11656 *) as_qdir=$as_dir;; 11657 esac 11658 as_dirs="'$as_qdir' $as_dirs" 11659 as_dir=`$as_dirname -- "$as_dir" || 11660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11661 X"$as_dir" : 'X\(//\)[^/]' \| \ 11662 X"$as_dir" : 'X\(//\)$' \| \ 11663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11664printf "%s\n" X"$as_dir" | 11665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11666 s//\1/ 11667 q 11668 } 11669 /^X\(\/\/\)[^/].*/{ 11670 s//\1/ 11671 q 11672 } 11673 /^X\(\/\/\)$/{ 11674 s//\1/ 11675 q 11676 } 11677 /^X\(\/\).*/{ 11678 s//\1/ 11679 q 11680 } 11681 s/.*/./; q'` 11682 test -d "$as_dir" && break 11683 done 11684 test -z "$as_dirs" || eval "mkdir $as_dirs" 11685 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11686 11687 11688} # as_fn_mkdir_p 11689if mkdir -p . 2>/dev/null; then 11690 as_mkdir_p='mkdir -p "$as_dir"' 11691else 11692 test -d ./-p && rmdir ./-p 11693 as_mkdir_p=false 11694fi 11695 11696 11697# as_fn_executable_p FILE 11698# ----------------------- 11699# Test if FILE is an executable regular file. 11700as_fn_executable_p () 11701{ 11702 test -f "$1" && test -x "$1" 11703} # as_fn_executable_p 11704as_test_x='test -x' 11705as_executable_p=as_fn_executable_p 11706 11707# Sed expression to map a string onto a valid CPP name. 11708as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11709 11710# Sed expression to map a string onto a valid variable name. 11711as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11712 11713 11714exec 6>&1 11715## ----------------------------------- ## 11716## Main body of $CONFIG_STATUS script. ## 11717## ----------------------------------- ## 11718_ASEOF 11719test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11720 11721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11722# Save the log message, to keep $0 and so on meaningful, and to 11723# report actual input values of CONFIG_FILES etc. instead of their 11724# values after options handling. 11725ac_log=" 11726This file was extended by xorg-cf-files $as_me 1.0.7, which was 11727generated by GNU Autoconf 2.71. Invocation command line was 11728 11729 CONFIG_FILES = $CONFIG_FILES 11730 CONFIG_HEADERS = $CONFIG_HEADERS 11731 CONFIG_LINKS = $CONFIG_LINKS 11732 CONFIG_COMMANDS = $CONFIG_COMMANDS 11733 $ $0 $@ 11734 11735on `(hostname || uname -n) 2>/dev/null | sed 1q` 11736" 11737 11738_ACEOF 11739 11740case $ac_config_files in *" 11741"*) set x $ac_config_files; shift; ac_config_files=$*;; 11742esac 11743 11744 11745 11746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11747# Files that config.status was made for. 11748config_files="$ac_config_files" 11749config_commands="$ac_config_commands" 11750 11751_ACEOF 11752 11753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11754ac_cs_usage="\ 11755\`$as_me' instantiates files and other configuration actions 11756from templates according to the current configuration. Unless the files 11757and actions are specified as TAGs, all are instantiated by default. 11758 11759Usage: $0 [OPTION]... [TAG]... 11760 11761 -h, --help print this help, then exit 11762 -V, --version print version number and configuration settings, then exit 11763 --config print configuration, then exit 11764 -q, --quiet, --silent 11765 do not print progress messages 11766 -d, --debug don't remove temporary files 11767 --recheck update $as_me by reconfiguring in the same conditions 11768 --file=FILE[:TEMPLATE] 11769 instantiate the configuration file FILE 11770 11771Configuration files: 11772$config_files 11773 11774Configuration commands: 11775$config_commands 11776 11777Report bugs to <https://gitlab.freedesktop.org/xorg/util/cf/issues>." 11778 11779_ACEOF 11780ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11781ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11783ac_cs_config='$ac_cs_config_escaped' 11784ac_cs_version="\\ 11785xorg-cf-files config.status 1.0.7 11786configured by $0, generated by GNU Autoconf 2.71, 11787 with options \\"\$ac_cs_config\\" 11788 11789Copyright (C) 2021 Free Software Foundation, Inc. 11790This config.status script is free software; the Free Software Foundation 11791gives unlimited permission to copy, distribute and modify it." 11792 11793ac_pwd='$ac_pwd' 11794srcdir='$srcdir' 11795INSTALL='$INSTALL' 11796MKDIR_P='$MKDIR_P' 11797AWK='$AWK' 11798test -n "\$AWK" || AWK=awk 11799_ACEOF 11800 11801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11802# The default lists apply if the user does not specify any file. 11803ac_need_defaults=: 11804while test $# != 0 11805do 11806 case $1 in 11807 --*=?*) 11808 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11809 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11810 ac_shift=: 11811 ;; 11812 --*=) 11813 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11814 ac_optarg= 11815 ac_shift=: 11816 ;; 11817 *) 11818 ac_option=$1 11819 ac_optarg=$2 11820 ac_shift=shift 11821 ;; 11822 esac 11823 11824 case $ac_option in 11825 # Handling of the options. 11826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11827 ac_cs_recheck=: ;; 11828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11829 printf "%s\n" "$ac_cs_version"; exit ;; 11830 --config | --confi | --conf | --con | --co | --c ) 11831 printf "%s\n" "$ac_cs_config"; exit ;; 11832 --debug | --debu | --deb | --de | --d | -d ) 11833 debug=: ;; 11834 --file | --fil | --fi | --f ) 11835 $ac_shift 11836 case $ac_optarg in 11837 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11838 '') as_fn_error $? "missing file argument" ;; 11839 esac 11840 as_fn_append CONFIG_FILES " '$ac_optarg'" 11841 ac_need_defaults=false;; 11842 --he | --h | --help | --hel | -h ) 11843 printf "%s\n" "$ac_cs_usage"; exit ;; 11844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11845 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11846 ac_cs_silent=: ;; 11847 11848 # This is an error. 11849 -*) as_fn_error $? "unrecognized option: \`$1' 11850Try \`$0 --help' for more information." ;; 11851 11852 *) as_fn_append ac_config_targets " $1" 11853 ac_need_defaults=false ;; 11854 11855 esac 11856 shift 11857done 11858 11859ac_configure_extra_args= 11860 11861if $ac_cs_silent; then 11862 exec 6>/dev/null 11863 ac_configure_extra_args="$ac_configure_extra_args --silent" 11864fi 11865 11866_ACEOF 11867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11868if \$ac_cs_recheck; then 11869 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11870 shift 11871 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11872 CONFIG_SHELL='$SHELL' 11873 export CONFIG_SHELL 11874 exec "\$@" 11875fi 11876 11877_ACEOF 11878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11879exec 5>>config.log 11880{ 11881 echo 11882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11883## Running $as_me. ## 11884_ASBOX 11885 printf "%s\n" "$ac_log" 11886} >&5 11887 11888_ACEOF 11889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11890# 11891# INIT-COMMANDS 11892# 11893AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11894 11895_ACEOF 11896 11897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11898 11899# Handling of arguments. 11900for ac_config_target in $ac_config_targets 11901do 11902 case $ac_config_target in 11903 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11905 "site.def") CONFIG_FILES="$CONFIG_FILES site.def" ;; 11906 11907 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11908 esac 11909done 11910 11911 11912# If the user did not use the arguments to specify the items to instantiate, 11913# then the envvar interface is used. Set only those that are not. 11914# We use the long form for the default assignment because of an extremely 11915# bizarre bug on SunOS 4.1.3. 11916if $ac_need_defaults; then 11917 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11918 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11919fi 11920 11921# Have a temporary directory for convenience. Make it in the build tree 11922# simply because there is no reason against having it here, and in addition, 11923# creating and moving files from /tmp can sometimes cause problems. 11924# Hook for its removal unless debugging. 11925# Note that there is a small window in which the directory will not be cleaned: 11926# after its creation but before its name has been assigned to `$tmp'. 11927$debug || 11928{ 11929 tmp= ac_tmp= 11930 trap 'exit_status=$? 11931 : "${ac_tmp:=$tmp}" 11932 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11933' 0 11934 trap 'as_fn_exit 1' 1 2 13 15 11935} 11936# Create a (secure) tmp directory for tmp files. 11937 11938{ 11939 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11940 test -d "$tmp" 11941} || 11942{ 11943 tmp=./conf$$-$RANDOM 11944 (umask 077 && mkdir "$tmp") 11945} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11946ac_tmp=$tmp 11947 11948# Set up the scripts for CONFIG_FILES section. 11949# No need to generate them if there are no CONFIG_FILES. 11950# This happens for instance with `./config.status config.h'. 11951if test -n "$CONFIG_FILES"; then 11952 11953 11954ac_cr=`echo X | tr X '\015'` 11955# On cygwin, bash can eat \r inside `` if the user requested igncr. 11956# But we know of no other shell where ac_cr would be empty at this 11957# point, so we can use a bashism as a fallback. 11958if test "x$ac_cr" = x; then 11959 eval ac_cr=\$\'\\r\' 11960fi 11961ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11962if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11963 ac_cs_awk_cr='\\r' 11964else 11965 ac_cs_awk_cr=$ac_cr 11966fi 11967 11968echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11969_ACEOF 11970 11971 11972{ 11973 echo "cat >conf$$subs.awk <<_ACEOF" && 11974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11975 echo "_ACEOF" 11976} >conf$$subs.sh || 11977 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11978ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11979ac_delim='%!_!# ' 11980for ac_last_try in false false false false false :; do 11981 . ./conf$$subs.sh || 11982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11983 11984 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11985 if test $ac_delim_n = $ac_delim_num; then 11986 break 11987 elif $ac_last_try; then 11988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11989 else 11990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11991 fi 11992done 11993rm -f conf$$subs.sh 11994 11995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11996cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11997_ACEOF 11998sed -n ' 11999h 12000s/^/S["/; s/!.*/"]=/ 12001p 12002g 12003s/^[^!]*!// 12004:repl 12005t repl 12006s/'"$ac_delim"'$// 12007t delim 12008:nl 12009h 12010s/\(.\{148\}\)..*/\1/ 12011t more1 12012s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12013p 12014n 12015b repl 12016:more1 12017s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12018p 12019g 12020s/.\{148\}// 12021t nl 12022:delim 12023h 12024s/\(.\{148\}\)..*/\1/ 12025t more2 12026s/["\\]/\\&/g; s/^/"/; s/$/"/ 12027p 12028b 12029:more2 12030s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12031p 12032g 12033s/.\{148\}// 12034t delim 12035' <conf$$subs.awk | sed ' 12036/^[^""]/{ 12037 N 12038 s/\n// 12039} 12040' >>$CONFIG_STATUS || ac_write_fail=1 12041rm -f conf$$subs.awk 12042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12043_ACAWK 12044cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12045 for (key in S) S_is_set[key] = 1 12046 FS = "" 12047 12048} 12049{ 12050 line = $ 0 12051 nfields = split(line, field, "@") 12052 substed = 0 12053 len = length(field[1]) 12054 for (i = 2; i < nfields; i++) { 12055 key = field[i] 12056 keylen = length(key) 12057 if (S_is_set[key]) { 12058 value = S[key] 12059 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12060 len += length(value) + length(field[++i]) 12061 substed = 1 12062 } else 12063 len += 1 + keylen 12064 } 12065 12066 print line 12067} 12068 12069_ACAWK 12070_ACEOF 12071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12072if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12073 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12074else 12075 cat 12076fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12077 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12078_ACEOF 12079 12080# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12081# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12082# trailing colons and then remove the whole line if VPATH becomes empty 12083# (actually we leave an empty line to preserve line numbers). 12084if test "x$srcdir" = x.; then 12085 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12086h 12087s/// 12088s/^/:/ 12089s/[ ]*$/:/ 12090s/:\$(srcdir):/:/g 12091s/:\${srcdir}:/:/g 12092s/:@srcdir@:/:/g 12093s/^:*// 12094s/:*$// 12095x 12096s/\(=[ ]*\).*/\1/ 12097G 12098s/\n// 12099s/^[^=]*=[ ]*$// 12100}' 12101fi 12102 12103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12104fi # test -n "$CONFIG_FILES" 12105 12106 12107eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12108shift 12109for ac_tag 12110do 12111 case $ac_tag in 12112 :[FHLC]) ac_mode=$ac_tag; continue;; 12113 esac 12114 case $ac_mode$ac_tag in 12115 :[FHL]*:*);; 12116 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12117 :[FH]-) ac_tag=-:-;; 12118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12119 esac 12120 ac_save_IFS=$IFS 12121 IFS=: 12122 set x $ac_tag 12123 IFS=$ac_save_IFS 12124 shift 12125 ac_file=$1 12126 shift 12127 12128 case $ac_mode in 12129 :L) ac_source=$1;; 12130 :[FH]) 12131 ac_file_inputs= 12132 for ac_f 12133 do 12134 case $ac_f in 12135 -) ac_f="$ac_tmp/stdin";; 12136 *) # Look for the file first in the build tree, then in the source tree 12137 # (if the path is not absolute). The absolute path cannot be DOS-style, 12138 # because $ac_f cannot contain `:'. 12139 test -f "$ac_f" || 12140 case $ac_f in 12141 [\\/$]*) false;; 12142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12143 esac || 12144 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12145 esac 12146 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12147 as_fn_append ac_file_inputs " '$ac_f'" 12148 done 12149 12150 # Let's still pretend it is `configure' which instantiates (i.e., don't 12151 # use $as_me), people would be surprised to read: 12152 # /* config.h. Generated by config.status. */ 12153 configure_input='Generated from '` 12154 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12155 `' by configure.' 12156 if test x"$ac_file" != x-; then 12157 configure_input="$ac_file. $configure_input" 12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12159printf "%s\n" "$as_me: creating $ac_file" >&6;} 12160 fi 12161 # Neutralize special characters interpreted by sed in replacement strings. 12162 case $configure_input in #( 12163 *\&* | *\|* | *\\* ) 12164 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12165 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12166 *) ac_sed_conf_input=$configure_input;; 12167 esac 12168 12169 case $ac_tag in 12170 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12172 esac 12173 ;; 12174 esac 12175 12176 ac_dir=`$as_dirname -- "$ac_file" || 12177$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12178 X"$ac_file" : 'X\(//\)[^/]' \| \ 12179 X"$ac_file" : 'X\(//\)$' \| \ 12180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12181printf "%s\n" X"$ac_file" | 12182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12183 s//\1/ 12184 q 12185 } 12186 /^X\(\/\/\)[^/].*/{ 12187 s//\1/ 12188 q 12189 } 12190 /^X\(\/\/\)$/{ 12191 s//\1/ 12192 q 12193 } 12194 /^X\(\/\).*/{ 12195 s//\1/ 12196 q 12197 } 12198 s/.*/./; q'` 12199 as_dir="$ac_dir"; as_fn_mkdir_p 12200 ac_builddir=. 12201 12202case "$ac_dir" in 12203.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12204*) 12205 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12206 # A ".." for each directory in $ac_dir_suffix. 12207 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12208 case $ac_top_builddir_sub in 12209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12211 esac ;; 12212esac 12213ac_abs_top_builddir=$ac_pwd 12214ac_abs_builddir=$ac_pwd$ac_dir_suffix 12215# for backward compatibility: 12216ac_top_builddir=$ac_top_build_prefix 12217 12218case $srcdir in 12219 .) # We are building in place. 12220 ac_srcdir=. 12221 ac_top_srcdir=$ac_top_builddir_sub 12222 ac_abs_top_srcdir=$ac_pwd ;; 12223 [\\/]* | ?:[\\/]* ) # Absolute name. 12224 ac_srcdir=$srcdir$ac_dir_suffix; 12225 ac_top_srcdir=$srcdir 12226 ac_abs_top_srcdir=$srcdir ;; 12227 *) # Relative name. 12228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12229 ac_top_srcdir=$ac_top_build_prefix$srcdir 12230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12231esac 12232ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12233 12234 12235 case $ac_mode in 12236 :F) 12237 # 12238 # CONFIG_FILE 12239 # 12240 12241 case $INSTALL in 12242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12244 esac 12245 ac_MKDIR_P=$MKDIR_P 12246 case $MKDIR_P in 12247 [\\/$]* | ?:[\\/]* ) ;; 12248 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12249 esac 12250_ACEOF 12251 12252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12253# If the template does not know about datarootdir, expand it. 12254# FIXME: This hack should be removed a few years after 2.60. 12255ac_datarootdir_hack=; ac_datarootdir_seen= 12256ac_sed_dataroot=' 12257/datarootdir/ { 12258 p 12259 q 12260} 12261/@datadir@/p 12262/@docdir@/p 12263/@infodir@/p 12264/@localedir@/p 12265/@mandir@/p' 12266case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12267*datarootdir*) ac_datarootdir_seen=yes;; 12268*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12270printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12271_ACEOF 12272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12273 ac_datarootdir_hack=' 12274 s&@datadir@&$datadir&g 12275 s&@docdir@&$docdir&g 12276 s&@infodir@&$infodir&g 12277 s&@localedir@&$localedir&g 12278 s&@mandir@&$mandir&g 12279 s&\\\${datarootdir}&$datarootdir&g' ;; 12280esac 12281_ACEOF 12282 12283# Neutralize VPATH when `$srcdir' = `.'. 12284# Shell code in configure.ac might set extrasub. 12285# FIXME: do we really want to maintain this feature? 12286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12287ac_sed_extra="$ac_vpsub 12288$extrasub 12289_ACEOF 12290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12291:t 12292/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12293s|@configure_input@|$ac_sed_conf_input|;t t 12294s&@top_builddir@&$ac_top_builddir_sub&;t t 12295s&@top_build_prefix@&$ac_top_build_prefix&;t t 12296s&@srcdir@&$ac_srcdir&;t t 12297s&@abs_srcdir@&$ac_abs_srcdir&;t t 12298s&@top_srcdir@&$ac_top_srcdir&;t t 12299s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12300s&@builddir@&$ac_builddir&;t t 12301s&@abs_builddir@&$ac_abs_builddir&;t t 12302s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12303s&@INSTALL@&$ac_INSTALL&;t t 12304s&@MKDIR_P@&$ac_MKDIR_P&;t t 12305$ac_datarootdir_hack 12306" 12307eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12308 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12309 12310test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12311 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12312 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12313 "$ac_tmp/out"`; test -z "$ac_out"; } && 12314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12315which seems to be undefined. Please make sure it is defined" >&5 12316printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12317which seems to be undefined. Please make sure it is defined" >&2;} 12318 12319 rm -f "$ac_tmp/stdin" 12320 case $ac_file in 12321 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12322 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12323 esac \ 12324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12325 ;; 12326 12327 12328 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12329printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12330 ;; 12331 esac 12332 12333 12334 case $ac_file$ac_mode in 12335 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12336 # Older Autoconf quotes --file arguments for eval, but not when files 12337 # are listed without --file. Let's play safe and only enable the eval 12338 # if we detect the quoting. 12339 # TODO: see whether this extra hack can be removed once we start 12340 # requiring Autoconf 2.70 or later. 12341 case $CONFIG_FILES in #( 12342 *\'*) : 12343 eval set x "$CONFIG_FILES" ;; #( 12344 *) : 12345 set x $CONFIG_FILES ;; #( 12346 *) : 12347 ;; 12348esac 12349 shift 12350 # Used to flag and report bootstrapping failures. 12351 am_rc=0 12352 for am_mf 12353 do 12354 # Strip MF so we end up with the name of the file. 12355 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12356 # Check whether this is an Automake generated Makefile which includes 12357 # dependency-tracking related rules and includes. 12358 # Grep'ing the whole file directly is not great: AIX grep has a line 12359 # limit of 2048, but all sed's we know have understand at least 4000. 12360 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12361 || continue 12362 am_dirpart=`$as_dirname -- "$am_mf" || 12363$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12364 X"$am_mf" : 'X\(//\)[^/]' \| \ 12365 X"$am_mf" : 'X\(//\)$' \| \ 12366 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12367printf "%s\n" X"$am_mf" | 12368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12369 s//\1/ 12370 q 12371 } 12372 /^X\(\/\/\)[^/].*/{ 12373 s//\1/ 12374 q 12375 } 12376 /^X\(\/\/\)$/{ 12377 s//\1/ 12378 q 12379 } 12380 /^X\(\/\).*/{ 12381 s//\1/ 12382 q 12383 } 12384 s/.*/./; q'` 12385 am_filepart=`$as_basename -- "$am_mf" || 12386$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12387 X"$am_mf" : 'X\(//\)$' \| \ 12388 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12389printf "%s\n" X/"$am_mf" | 12390 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12391 s//\1/ 12392 q 12393 } 12394 /^X\/\(\/\/\)$/{ 12395 s//\1/ 12396 q 12397 } 12398 /^X\/\(\/\).*/{ 12399 s//\1/ 12400 q 12401 } 12402 s/.*/./; q'` 12403 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12404 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12405 | $MAKE -f - am--depfiles" >&5 12406 (cd "$am_dirpart" \ 12407 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12408 | $MAKE -f - am--depfiles) >&5 2>&5 12409 ac_status=$? 12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12411 (exit $ac_status); } || am_rc=$? 12412 done 12413 if test $am_rc -ne 0; then 12414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12415printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12416as_fn_error $? "Something went wrong bootstrapping makefile fragments 12417 for automatic dependency tracking. If GNU make was not used, consider 12418 re-running the configure script with MAKE=\"gmake\" (or whatever is 12419 necessary). You can also try re-running configure with the 12420 '--disable-dependency-tracking' option to at least be able to build 12421 the package (albeit without support for automatic dependency tracking). 12422See \`config.log' for more details" "$LINENO" 5; } 12423 fi 12424 { am_dirpart=; unset am_dirpart;} 12425 { am_filepart=; unset am_filepart;} 12426 { am_mf=; unset am_mf;} 12427 { am_rc=; unset am_rc;} 12428 rm -f conftest-deps.mk 12429} 12430 ;; 12431 12432 esac 12433done # for ac_tag 12434 12435 12436as_fn_exit 0 12437_ACEOF 12438ac_clean_files=$ac_clean_files_save 12439 12440test $ac_write_fail = 0 || 12441 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12442 12443 12444# configure is writing to config.log, and then calls config.status. 12445# config.status does its own redirection, appending to config.log. 12446# Unfortunately, on DOS this fails, as config.log is still kept open 12447# by configure, so config.status won't be able to write to it; its 12448# output is simply discarded. So we exec the FD to /dev/null, 12449# effectively closing config.log, so it can be properly (re)opened and 12450# appended to by config.status. When coming back to configure, we 12451# need to make the FD available again. 12452if test "$no_create" != yes; then 12453 ac_cs_success=: 12454 ac_config_status_args= 12455 test "$silent" = yes && 12456 ac_config_status_args="$ac_config_status_args --quiet" 12457 exec 5>/dev/null 12458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12459 exec 5>>config.log 12460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12461 # would make configure fail if this is the last instruction. 12462 $ac_cs_success || as_fn_exit 1 12463fi 12464if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12466printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12467fi 12468 12469 12470