configure revision 3a99fc18
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xlogo 1.0.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/xlogo/-/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='xlogo' 614PACKAGE_TARNAME='xlogo' 615PACKAGE_VERSION='1.0.6' 616PACKAGE_STRING='xlogo 1.0.6' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/-/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 657appdefaultdir 658APPDEFS_LIBS 659APPDEFS_CFLAGS 660XLOGO_LIBS 661XLOGO_CFLAGS 662USE_RENDER_FALSE 663USE_RENDER_TRUE 664MAN_SUBSTS 665XORG_MAN_PAGE 666ADMIN_MAN_DIR 667DRIVER_MAN_DIR 668MISC_MAN_DIR 669FILE_MAN_DIR 670LIB_MAN_DIR 671APP_MAN_DIR 672ADMIN_MAN_SUFFIX 673DRIVER_MAN_SUFFIX 674MISC_MAN_SUFFIX 675FILE_MAN_SUFFIX 676LIB_MAN_SUFFIX 677APP_MAN_SUFFIX 678SED 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687INSTALL_CMD 688PKG_CONFIG_LIBDIR 689PKG_CONFIG_PATH 690PKG_CONFIG 691CHANGELOG_CMD 692STRICT_CFLAGS 693CWARNFLAGS 694BASE_CFLAGS 695am__fastdepCC_FALSE 696am__fastdepCC_TRUE 697CCDEPMODE 698am__nodep 699AMDEPBACKSLASH 700AMDEP_FALSE 701AMDEP_TRUE 702am__include 703DEPDIR 704OBJEXT 705EXEEXT 706ac_ct_CC 707CPPFLAGS 708LDFLAGS 709CFLAGS 710CC 711AM_BACKSLASH 712AM_DEFAULT_VERBOSITY 713AM_DEFAULT_V 714AM_V 715CSCOPE 716ETAGS 717CTAGS 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738INSTALL_DATA 739INSTALL_SCRIPT 740INSTALL_PROGRAM 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760runstatedir 761localstatedir 762sharedstatedir 763sysconfdir 764datadir 765datarootdir 766libexecdir 767sbindir 768bindir 769program_transform_name 770prefix 771exec_prefix 772PACKAGE_URL 773PACKAGE_BUGREPORT 774PACKAGE_STRING 775PACKAGE_VERSION 776PACKAGE_TARNAME 777PACKAGE_NAME 778PATH_SEPARATOR 779SHELL 780am__quote' 781ac_subst_files='' 782ac_user_opts=' 783enable_option_checking 784enable_silent_rules 785enable_dependency_tracking 786enable_selective_werror 787enable_strict_compilation 788with_render 789with_xkb 790with_appdefaultdir 791' 792 ac_precious_vars='build_alias 793host_alias 794target_alias 795CC 796CFLAGS 797LDFLAGS 798LIBS 799CPPFLAGS 800PKG_CONFIG 801PKG_CONFIG_PATH 802PKG_CONFIG_LIBDIR 803XLOGO_CFLAGS 804XLOGO_LIBS 805APPDEFS_CFLAGS 806APPDEFS_LIBS' 807 808 809# Initialize some variables set by options. 810ac_init_help= 811ac_init_version=false 812ac_unrecognized_opts= 813ac_unrecognized_sep= 814# The variables have the same names as the options, with 815# dashes changed to underlines. 816cache_file=/dev/null 817exec_prefix=NONE 818no_create= 819no_recursion= 820prefix=NONE 821program_prefix=NONE 822program_suffix=NONE 823program_transform_name=s,x,x, 824silent= 825site= 826srcdir= 827verbose= 828x_includes=NONE 829x_libraries=NONE 830 831# Installation directory options. 832# These are left unexpanded so users can "make install exec_prefix=/foo" 833# and all the variables that are supposed to be based on exec_prefix 834# by default will actually change. 835# Use braces instead of parens because sh, perl, etc. also accept them. 836# (The list follows the same order as the GNU Coding Standards.) 837bindir='${exec_prefix}/bin' 838sbindir='${exec_prefix}/sbin' 839libexecdir='${exec_prefix}/libexec' 840datarootdir='${prefix}/share' 841datadir='${datarootdir}' 842sysconfdir='${prefix}/etc' 843sharedstatedir='${prefix}/com' 844localstatedir='${prefix}/var' 845runstatedir='${localstatedir}/run' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: \`$ac_useropt'" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: \`$ac_useropt'" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 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 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1097 | --runstate | --runstat | --runsta | --runst | --runs \ 1098 | --run | --ru | --r) 1099 ac_prev=runstatedir ;; 1100 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1101 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1102 | --run=* | --ru=* | --r=*) 1103 runstatedir=$ac_optarg ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: \`$ac_useropt'" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: \`$ac_useropt'" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"with_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1201Try \`$0 --help' for more information" 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220 ;; 1221 1222 esac 1223done 1224 1225if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error $? "missing argument to $ac_option" 1228fi 1229 1230if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236fi 1237 1238# Check all directory arguments for consistency. 1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir runstatedir 1243do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257done 1258 1259# There might be people who depend on the old broken behavior: `$host' 1260# used to hold the argument of --host etc. 1261# FIXME: To remove some day. 1262build=$build_alias 1263host=$host_alias 1264target=$target_alias 1265 1266# FIXME: To remove some day. 1267if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error $? "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error $? "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298printf "%s\n" X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures xlogo 1.0.6 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking ...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1396 --libdir=DIR object code libraries [EPREFIX/lib] 1397 --includedir=DIR C header files [PREFIX/include] 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1401 --infodir=DIR info documentation [DATAROOTDIR/info] 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1403 --mandir=DIR man documentation [DATAROOTDIR/man] 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xlogo] 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417 1418System types: 1419 --build=BUILD configure for building on BUILD [guessed] 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1421_ACEOF 1422fi 1423 1424if test -n "$ac_init_help"; then 1425 case $ac_init_help in 1426 short | recursive ) echo "Configuration of xlogo 1.0.6:";; 1427 esac 1428 cat <<\_ACEOF 1429 1430Optional Features: 1431 --disable-option-checking ignore unrecognized --enable/--with options 1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --enable-dependency-tracking 1437 do not reject slow dependency extractors 1438 --disable-dependency-tracking 1439 speeds up one-time build 1440 --disable-selective-werror 1441 Turn off selective compiler errors. (default: 1442 enabled) 1443 --enable-strict-compilation 1444 Enable all warnings from compiler and make them 1445 errors (default: disabled) 1446 1447Optional Packages: 1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1450 --with-render Use Xrender & Xft2 to draw logo 1451 --with-xkb Use XKB to sound bells 1452 --with-appdefaultdir=<pathname> 1453 specify directory for app-defaults files (default is 1454 autodetected) 1455 1456Some influential environment variables: 1457 CC C compiler command 1458 CFLAGS C compiler flags 1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1460 nonstandard directory <lib dir> 1461 LIBS libraries to pass to the linker, e.g. -l<library> 1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1463 you have headers in a nonstandard directory <include dir> 1464 PKG_CONFIG path to pkg-config utility 1465 PKG_CONFIG_PATH 1466 directories to add to pkg-config's search path 1467 PKG_CONFIG_LIBDIR 1468 path overriding pkg-config's built-in search path 1469 XLOGO_CFLAGS 1470 C compiler flags for XLOGO, overriding pkg-config 1471 XLOGO_LIBS linker flags for XLOGO, overriding pkg-config 1472 APPDEFS_CFLAGS 1473 C compiler flags for APPDEFS, overriding pkg-config 1474 APPDEFS_LIBS 1475 linker flags for APPDEFS, overriding pkg-config 1476 1477Use these variables to override the choices made by `configure' or to help 1478it to find libraries and programs with nonstandard names/locations. 1479 1480Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>. 1481_ACEOF 1482ac_status=$? 1483fi 1484 1485if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for configure.gnu first; this name is used for a wrapper for 1527 # Metaconfig's "Configure" on case-insensitive file systems. 1528 if test -f "$ac_srcdir/configure.gnu"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1531 elif test -f "$ac_srcdir/configure"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure" --help=recursive 1534 else 1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1536 fi || ac_status=$? 1537 cd "$ac_pwd" || { ac_status=$?; break; } 1538 done 1539fi 1540 1541test -n "$ac_init_help" && exit $ac_status 1542if $ac_init_version; then 1543 cat <<\_ACEOF 1544xlogo configure 1.0.6 1545generated by GNU Autoconf 2.71 1546 1547Copyright (C) 2021 Free Software Foundation, Inc. 1548This configure script is free software; the Free Software Foundation 1549gives unlimited permission to copy, distribute and modify it. 1550_ACEOF 1551 exit 1552fi 1553 1554## ------------------------ ## 1555## Autoconf initialization. ## 1556## ------------------------ ## 1557 1558# ac_fn_c_try_compile LINENO 1559# -------------------------- 1560# Try to compile conftest.$ac_ext, and return whether this succeeded. 1561ac_fn_c_try_compile () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 rm -f conftest.$ac_objext conftest.beam 1565 if { { ac_try="$ac_compile" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571printf "%s\n" "$ac_try_echo"; } >&5 1572 (eval "$ac_compile") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } && { 1581 test -z "$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 } && test -s conftest.$ac_objext 1584then : 1585 ac_retval=0 1586else $as_nop 1587 printf "%s\n" "$as_me: failed program was:" >&5 1588sed 's/^/| /' conftest.$ac_ext >&5 1589 1590 ac_retval=1 1591fi 1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1593 as_fn_set_status $ac_retval 1594 1595} # ac_fn_c_try_compile 1596 1597# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1598# ------------------------------------------------------------------ 1599# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1600# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1601ac_fn_check_decl () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 as_decl_name=`echo $2|sed 's/ *(.*//'` 1605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1606printf %s "checking whether $as_decl_name is declared... " >&6; } 1607if eval test \${$3+y} 1608then : 1609 printf %s "(cached) " >&6 1610else $as_nop 1611 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1612 eval ac_save_FLAGS=\$$6 1613 as_fn_append $6 " $5" 1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1615/* end confdefs.h. */ 1616$4 1617int 1618main (void) 1619{ 1620#ifndef $as_decl_name 1621#ifdef __cplusplus 1622 (void) $as_decl_use; 1623#else 1624 (void) $as_decl_name; 1625#endif 1626#endif 1627 1628 ; 1629 return 0; 1630} 1631_ACEOF 1632if ac_fn_c_try_compile "$LINENO" 1633then : 1634 eval "$3=yes" 1635else $as_nop 1636 eval "$3=no" 1637fi 1638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1639 eval $6=\$ac_save_FLAGS 1640 1641fi 1642eval ac_res=\$$3 1643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1644printf "%s\n" "$ac_res" >&6; } 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 1647} # ac_fn_check_decl 1648 1649# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1650# ------------------------------------------------------- 1651# Tests whether HEADER exists and can be compiled using the include files in 1652# INCLUDES, setting the cache variable VAR accordingly. 1653ac_fn_c_check_header_compile () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1657printf %s "checking for $2... " >&6; } 1658if eval test \${$3+y} 1659then : 1660 printf %s "(cached) " >&6 1661else $as_nop 1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1663/* end confdefs.h. */ 1664$4 1665#include <$2> 1666_ACEOF 1667if ac_fn_c_try_compile "$LINENO" 1668then : 1669 eval "$3=yes" 1670else $as_nop 1671 eval "$3=no" 1672fi 1673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1674fi 1675eval ac_res=\$$3 1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677printf "%s\n" "$ac_res" >&6; } 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 1680} # ac_fn_c_check_header_compile 1681 1682# ac_fn_c_try_link LINENO 1683# ----------------------- 1684# Try to link conftest.$ac_ext, and return whether this succeeded. 1685ac_fn_c_try_link () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1689 if { { ac_try="$ac_link" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695printf "%s\n" "$ac_try_echo"; } >&5 1696 (eval "$ac_link") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { 1705 test -z "$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 } && test -s conftest$ac_exeext && { 1708 test "$cross_compiling" = yes || 1709 test -x conftest$ac_exeext 1710 } 1711then : 1712 ac_retval=0 1713else $as_nop 1714 printf "%s\n" "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1721 # interfere with the next link command; also delete a directory that is 1722 # left behind by Apple's compiler. We do this before executing the actions. 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 as_fn_set_status $ac_retval 1726 1727} # ac_fn_c_try_link 1728ac_configure_args_raw= 1729for ac_arg 1730do 1731 case $ac_arg in 1732 *\'*) 1733 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1734 esac 1735 as_fn_append ac_configure_args_raw " '$ac_arg'" 1736done 1737 1738case $ac_configure_args_raw in 1739 *$as_nl*) 1740 ac_safe_unquote= ;; 1741 *) 1742 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1743 ac_unsafe_a="$ac_unsafe_z#~" 1744 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1745 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1746esac 1747 1748cat >config.log <<_ACEOF 1749This file contains any messages produced by compilers while 1750running configure, to aid debugging if configure makes a mistake. 1751 1752It was created by xlogo $as_me 1.0.6, which was 1753generated by GNU Autoconf 2.71. Invocation command line was 1754 1755 $ $0$ac_configure_args_raw 1756 1757_ACEOF 1758exec 5>>config.log 1759{ 1760cat <<_ASUNAME 1761## --------- ## 1762## Platform. ## 1763## --------- ## 1764 1765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1766uname -m = `(uname -m) 2>/dev/null || echo unknown` 1767uname -r = `(uname -r) 2>/dev/null || echo unknown` 1768uname -s = `(uname -s) 2>/dev/null || echo unknown` 1769uname -v = `(uname -v) 2>/dev/null || echo unknown` 1770 1771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1772/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1773 1774/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1775/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1777/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1778/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1779/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1780/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1781 1782_ASUNAME 1783 1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1785for as_dir in $PATH 1786do 1787 IFS=$as_save_IFS 1788 case $as_dir in #((( 1789 '') as_dir=./ ;; 1790 */) ;; 1791 *) as_dir=$as_dir/ ;; 1792 esac 1793 printf "%s\n" "PATH: $as_dir" 1794 done 1795IFS=$as_save_IFS 1796 1797} >&5 1798 1799cat >&5 <<_ACEOF 1800 1801 1802## ----------- ## 1803## Core tests. ## 1804## ----------- ## 1805 1806_ACEOF 1807 1808 1809# Keep a trace of the command line. 1810# Strip out --no-create and --no-recursion so they do not pile up. 1811# Strip out --silent because we don't want to record it for future runs. 1812# Also quote any args containing shell meta-characters. 1813# Make two passes to allow for proper duplicate-argument suppression. 1814ac_configure_args= 1815ac_configure_args0= 1816ac_configure_args1= 1817ac_must_keep_next=false 1818for ac_pass in 1 2 1819do 1820 for ac_arg 1821 do 1822 case $ac_arg in 1823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1825 | -silent | --silent | --silen | --sile | --sil) 1826 continue ;; 1827 *\'*) 1828 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1829 esac 1830 case $ac_pass in 1831 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1832 2) 1833 as_fn_append ac_configure_args1 " '$ac_arg'" 1834 if test $ac_must_keep_next = true; then 1835 ac_must_keep_next=false # Got value, back to normal. 1836 else 1837 case $ac_arg in 1838 *=* | --config-cache | -C | -disable-* | --disable-* \ 1839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1841 | -with-* | --with-* | -without-* | --without-* | --x) 1842 case "$ac_configure_args0 " in 1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1844 esac 1845 ;; 1846 -* ) ac_must_keep_next=true ;; 1847 esac 1848 fi 1849 as_fn_append ac_configure_args " '$ac_arg'" 1850 ;; 1851 esac 1852 done 1853done 1854{ ac_configure_args0=; unset ac_configure_args0;} 1855{ ac_configure_args1=; unset ac_configure_args1;} 1856 1857# When interrupted or exit'd, cleanup temporary files, and complete 1858# config.log. We remove comments because anyway the quotes in there 1859# would cause problems or look ugly. 1860# WARNING: Use '\'' to represent an apostrophe within the trap. 1861# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1862trap 'exit_status=$? 1863 # Sanitize IFS. 1864 IFS=" "" $as_nl" 1865 # Save into config.log some information that might help in debugging. 1866 { 1867 echo 1868 1869 printf "%s\n" "## ---------------- ## 1870## Cache variables. ## 1871## ---------------- ##" 1872 echo 1873 # The following way of writing the cache mishandles newlines in values, 1874( 1875 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1876 eval ac_val=\$$ac_var 1877 case $ac_val in #( 1878 *${as_nl}*) 1879 case $ac_var in #( 1880 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1881printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1882 esac 1883 case $ac_var in #( 1884 _ | IFS | as_nl) ;; #( 1885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1886 *) { eval $ac_var=; unset $ac_var;} ;; 1887 esac ;; 1888 esac 1889 done 1890 (set) 2>&1 | 1891 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1892 *${as_nl}ac_space=\ *) 1893 sed -n \ 1894 "s/'\''/'\''\\\\'\'''\''/g; 1895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1896 ;; #( 1897 *) 1898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1899 ;; 1900 esac | 1901 sort 1902) 1903 echo 1904 1905 printf "%s\n" "## ----------------- ## 1906## Output variables. ## 1907## ----------------- ##" 1908 echo 1909 for ac_var in $ac_subst_vars 1910 do 1911 eval ac_val=\$$ac_var 1912 case $ac_val in 1913 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1914 esac 1915 printf "%s\n" "$ac_var='\''$ac_val'\''" 1916 done | sort 1917 echo 1918 1919 if test -n "$ac_subst_files"; then 1920 printf "%s\n" "## ------------------- ## 1921## File substitutions. ## 1922## ------------------- ##" 1923 echo 1924 for ac_var in $ac_subst_files 1925 do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in 1928 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1929 esac 1930 printf "%s\n" "$ac_var='\''$ac_val'\''" 1931 done | sort 1932 echo 1933 fi 1934 1935 if test -s confdefs.h; then 1936 printf "%s\n" "## ----------- ## 1937## confdefs.h. ## 1938## ----------- ##" 1939 echo 1940 cat confdefs.h 1941 echo 1942 fi 1943 test "$ac_signal" != 0 && 1944 printf "%s\n" "$as_me: caught signal $ac_signal" 1945 printf "%s\n" "$as_me: exit $exit_status" 1946 } >&5 1947 rm -f core *.core core.conftest.* && 1948 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1949 exit $exit_status 1950' 0 1951for ac_signal in 1 2 13 15; do 1952 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1953done 1954ac_signal=0 1955 1956# confdefs.h avoids OS command line length limits that DEFS can exceed. 1957rm -f -r conftest* confdefs.h 1958 1959printf "%s\n" "/* confdefs.h */" > confdefs.h 1960 1961# Predefined preprocessor variables. 1962 1963printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1964 1965printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1966 1967printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1968 1969printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1970 1971printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1972 1973printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1974 1975 1976# Let the site file select an alternate cache file if it wants to. 1977# Prefer an explicitly selected file to automatically selected ones. 1978if test -n "$CONFIG_SITE"; then 1979 ac_site_files="$CONFIG_SITE" 1980elif test "x$prefix" != xNONE; then 1981 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1982else 1983 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1984fi 1985 1986for ac_site_file in $ac_site_files 1987do 1988 case $ac_site_file in #( 1989 */*) : 1990 ;; #( 1991 *) : 1992 ac_site_file=./$ac_site_file ;; 1993esac 1994 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1996printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1997 sed 's/^/| /' "$ac_site_file" >&5 1998 . "$ac_site_file" \ 1999 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2000printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2001as_fn_error $? "failed to load site script $ac_site_file 2002See \`config.log' for more details" "$LINENO" 5; } 2003 fi 2004done 2005 2006if test -r "$cache_file"; then 2007 # Some versions of bash will fail to source /dev/null (special files 2008 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2009 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2011printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2012 case $cache_file in 2013 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2014 *) . "./$cache_file";; 2015 esac 2016 fi 2017else 2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2019printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2020 >$cache_file 2021fi 2022 2023# Test code for whether the C compiler supports C89 (global declarations) 2024ac_c_conftest_c89_globals=' 2025/* Does the compiler advertise C89 conformance? 2026 Do not test the value of __STDC__, because some compilers set it to 0 2027 while being otherwise adequately conformant. */ 2028#if !defined __STDC__ 2029# error "Compiler does not advertise C89 conformance" 2030#endif 2031 2032#include <stddef.h> 2033#include <stdarg.h> 2034struct stat; 2035/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2036struct buf { int x; }; 2037struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2038static char *e (p, i) 2039 char **p; 2040 int i; 2041{ 2042 return p[i]; 2043} 2044static char *f (char * (*g) (char **, int), char **p, ...) 2045{ 2046 char *s; 2047 va_list v; 2048 va_start (v,p); 2049 s = g (p, va_arg (v,int)); 2050 va_end (v); 2051 return s; 2052} 2053 2054/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2055 function prototypes and stuff, but not \xHH hex character constants. 2056 These do not provoke an error unfortunately, instead are silently treated 2057 as an "x". The following induces an error, until -std is added to get 2058 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2059 array size at least. It is necessary to write \x00 == 0 to get something 2060 that is true only with -std. */ 2061int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2062 2063/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2064 inside strings and character constants. */ 2065#define FOO(x) '\''x'\'' 2066int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2067 2068int test (int i, double x); 2069struct s1 {int (*f) (int a);}; 2070struct s2 {int (*f) (double a);}; 2071int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2072 int, int);' 2073 2074# Test code for whether the C compiler supports C89 (body of main). 2075ac_c_conftest_c89_main=' 2076ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2077' 2078 2079# Test code for whether the C compiler supports C99 (global declarations) 2080ac_c_conftest_c99_globals=' 2081// Does the compiler advertise C99 conformance? 2082#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2083# error "Compiler does not advertise C99 conformance" 2084#endif 2085 2086#include <stdbool.h> 2087extern int puts (const char *); 2088extern int printf (const char *, ...); 2089extern int dprintf (int, const char *, ...); 2090extern void *malloc (size_t); 2091 2092// Check varargs macros. These examples are taken from C99 6.10.3.5. 2093// dprintf is used instead of fprintf to avoid needing to declare 2094// FILE and stderr. 2095#define debug(...) dprintf (2, __VA_ARGS__) 2096#define showlist(...) puts (#__VA_ARGS__) 2097#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2098static void 2099test_varargs_macros (void) 2100{ 2101 int x = 1234; 2102 int y = 5678; 2103 debug ("Flag"); 2104 debug ("X = %d\n", x); 2105 showlist (The first, second, and third items.); 2106 report (x>y, "x is %d but y is %d", x, y); 2107} 2108 2109// Check long long types. 2110#define BIG64 18446744073709551615ull 2111#define BIG32 4294967295ul 2112#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2113#if !BIG_OK 2114 #error "your preprocessor is broken" 2115#endif 2116#if BIG_OK 2117#else 2118 #error "your preprocessor is broken" 2119#endif 2120static long long int bignum = -9223372036854775807LL; 2121static unsigned long long int ubignum = BIG64; 2122 2123struct incomplete_array 2124{ 2125 int datasize; 2126 double data[]; 2127}; 2128 2129struct named_init { 2130 int number; 2131 const wchar_t *name; 2132 double average; 2133}; 2134 2135typedef const char *ccp; 2136 2137static inline int 2138test_restrict (ccp restrict text) 2139{ 2140 // See if C++-style comments work. 2141 // Iterate through items via the restricted pointer. 2142 // Also check for declarations in for loops. 2143 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2144 continue; 2145 return 0; 2146} 2147 2148// Check varargs and va_copy. 2149static bool 2150test_varargs (const char *format, ...) 2151{ 2152 va_list args; 2153 va_start (args, format); 2154 va_list args_copy; 2155 va_copy (args_copy, args); 2156 2157 const char *str = ""; 2158 int number = 0; 2159 float fnumber = 0; 2160 2161 while (*format) 2162 { 2163 switch (*format++) 2164 { 2165 case '\''s'\'': // string 2166 str = va_arg (args_copy, const char *); 2167 break; 2168 case '\''d'\'': // int 2169 number = va_arg (args_copy, int); 2170 break; 2171 case '\''f'\'': // float 2172 fnumber = va_arg (args_copy, double); 2173 break; 2174 default: 2175 break; 2176 } 2177 } 2178 va_end (args_copy); 2179 va_end (args); 2180 2181 return *str && number && fnumber; 2182} 2183' 2184 2185# Test code for whether the C compiler supports C99 (body of main). 2186ac_c_conftest_c99_main=' 2187 // Check bool. 2188 _Bool success = false; 2189 success |= (argc != 0); 2190 2191 // Check restrict. 2192 if (test_restrict ("String literal") == 0) 2193 success = true; 2194 char *restrict newvar = "Another string"; 2195 2196 // Check varargs. 2197 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2198 test_varargs_macros (); 2199 2200 // Check flexible array members. 2201 struct incomplete_array *ia = 2202 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2203 ia->datasize = 10; 2204 for (int i = 0; i < ia->datasize; ++i) 2205 ia->data[i] = i * 1.234; 2206 2207 // Check named initializers. 2208 struct named_init ni = { 2209 .number = 34, 2210 .name = L"Test wide string", 2211 .average = 543.34343, 2212 }; 2213 2214 ni.number = 58; 2215 2216 int dynamic_array[ni.number]; 2217 dynamic_array[0] = argv[0][0]; 2218 dynamic_array[ni.number - 1] = 543; 2219 2220 // work around unused variable warnings 2221 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2222 || dynamic_array[ni.number - 1] != 543); 2223' 2224 2225# Test code for whether the C compiler supports C11 (global declarations) 2226ac_c_conftest_c11_globals=' 2227// Does the compiler advertise C11 conformance? 2228#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2229# error "Compiler does not advertise C11 conformance" 2230#endif 2231 2232// Check _Alignas. 2233char _Alignas (double) aligned_as_double; 2234char _Alignas (0) no_special_alignment; 2235extern char aligned_as_int; 2236char _Alignas (0) _Alignas (int) aligned_as_int; 2237 2238// Check _Alignof. 2239enum 2240{ 2241 int_alignment = _Alignof (int), 2242 int_array_alignment = _Alignof (int[100]), 2243 char_alignment = _Alignof (char) 2244}; 2245_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2246 2247// Check _Noreturn. 2248int _Noreturn does_not_return (void) { for (;;) continue; } 2249 2250// Check _Static_assert. 2251struct test_static_assert 2252{ 2253 int x; 2254 _Static_assert (sizeof (int) <= sizeof (long int), 2255 "_Static_assert does not work in struct"); 2256 long int y; 2257}; 2258 2259// Check UTF-8 literals. 2260#define u8 syntax error! 2261char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2262 2263// Check duplicate typedefs. 2264typedef long *long_ptr; 2265typedef long int *long_ptr; 2266typedef long_ptr long_ptr; 2267 2268// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2269struct anonymous 2270{ 2271 union { 2272 struct { int i; int j; }; 2273 struct { int k; long int l; } w; 2274 }; 2275 int m; 2276} v1; 2277' 2278 2279# Test code for whether the C compiler supports C11 (body of main). 2280ac_c_conftest_c11_main=' 2281 _Static_assert ((offsetof (struct anonymous, i) 2282 == offsetof (struct anonymous, w.k)), 2283 "Anonymous union alignment botch"); 2284 v1.i = 2; 2285 v1.w.k = 5; 2286 ok |= v1.i != 5; 2287' 2288 2289# Test code for whether the C compiler supports C11 (complete). 2290ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2291${ac_c_conftest_c99_globals} 2292${ac_c_conftest_c11_globals} 2293 2294int 2295main (int argc, char **argv) 2296{ 2297 int ok = 0; 2298 ${ac_c_conftest_c89_main} 2299 ${ac_c_conftest_c99_main} 2300 ${ac_c_conftest_c11_main} 2301 return ok; 2302} 2303" 2304 2305# Test code for whether the C compiler supports C99 (complete). 2306ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2307${ac_c_conftest_c99_globals} 2308 2309int 2310main (int argc, char **argv) 2311{ 2312 int ok = 0; 2313 ${ac_c_conftest_c89_main} 2314 ${ac_c_conftest_c99_main} 2315 return ok; 2316} 2317" 2318 2319# Test code for whether the C compiler supports C89 (complete). 2320ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2321 2322int 2323main (int argc, char **argv) 2324{ 2325 int ok = 0; 2326 ${ac_c_conftest_c89_main} 2327 return ok; 2328} 2329" 2330 2331as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2332as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2333as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2334as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2335as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2336as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2337as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2338as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2339as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2340 2341# Auxiliary files required by this configure script. 2342ac_aux_files="config.guess config.sub compile missing install-sh" 2343 2344# Locations in which to look for auxiliary files. 2345ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2346 2347# Search for a directory containing all of the required auxiliary files, 2348# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2349# If we don't find one directory that contains all the files we need, 2350# we report the set of missing files from the *first* directory in 2351# $ac_aux_dir_candidates and give up. 2352ac_missing_aux_files="" 2353ac_first_candidate=: 2354printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2356as_found=false 2357for as_dir in $ac_aux_dir_candidates 2358do 2359 IFS=$as_save_IFS 2360 case $as_dir in #((( 2361 '') as_dir=./ ;; 2362 */) ;; 2363 *) as_dir=$as_dir/ ;; 2364 esac 2365 as_found=: 2366 2367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2368 ac_aux_dir_found=yes 2369 ac_install_sh= 2370 for ac_aux in $ac_aux_files 2371 do 2372 # As a special case, if "install-sh" is required, that requirement 2373 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2374 # and $ac_install_sh is set appropriately for whichever one is found. 2375 if test x"$ac_aux" = x"install-sh" 2376 then 2377 if test -f "${as_dir}install-sh"; then 2378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2379 ac_install_sh="${as_dir}install-sh -c" 2380 elif test -f "${as_dir}install.sh"; then 2381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2382 ac_install_sh="${as_dir}install.sh -c" 2383 elif test -f "${as_dir}shtool"; then 2384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2385 ac_install_sh="${as_dir}shtool install -c" 2386 else 2387 ac_aux_dir_found=no 2388 if $ac_first_candidate; then 2389 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2390 else 2391 break 2392 fi 2393 fi 2394 else 2395 if test -f "${as_dir}${ac_aux}"; then 2396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2397 else 2398 ac_aux_dir_found=no 2399 if $ac_first_candidate; then 2400 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2401 else 2402 break 2403 fi 2404 fi 2405 fi 2406 done 2407 if test "$ac_aux_dir_found" = yes; then 2408 ac_aux_dir="$as_dir" 2409 break 2410 fi 2411 ac_first_candidate=false 2412 2413 as_found=false 2414done 2415IFS=$as_save_IFS 2416if $as_found 2417then : 2418 2419else $as_nop 2420 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2421fi 2422 2423 2424# These three variables are undocumented and unsupported, 2425# and are intended to be withdrawn in a future Autoconf release. 2426# They can cause serious problems if a builder's source tree is in a directory 2427# whose full name contains unusual characters. 2428if test -f "${ac_aux_dir}config.guess"; then 2429 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2430fi 2431if test -f "${ac_aux_dir}config.sub"; then 2432 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2433fi 2434if test -f "$ac_aux_dir/configure"; then 2435 ac_configure="$SHELL ${ac_aux_dir}configure" 2436fi 2437 2438# Check that the precious variables saved in the cache have kept the same 2439# value. 2440ac_cache_corrupted=false 2441for ac_var in $ac_precious_vars; do 2442 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2443 eval ac_new_set=\$ac_env_${ac_var}_set 2444 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2445 eval ac_new_val=\$ac_env_${ac_var}_value 2446 case $ac_old_set,$ac_new_set in 2447 set,) 2448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2449printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2450 ac_cache_corrupted=: ;; 2451 ,set) 2452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2453printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2454 ac_cache_corrupted=: ;; 2455 ,);; 2456 *) 2457 if test "x$ac_old_val" != "x$ac_new_val"; then 2458 # differences in whitespace do not lead to failure. 2459 ac_old_val_w=`echo x $ac_old_val` 2460 ac_new_val_w=`echo x $ac_new_val` 2461 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2463printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2464 ac_cache_corrupted=: 2465 else 2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2467printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2468 eval $ac_var=\$ac_old_val 2469 fi 2470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2471printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2473printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2474 fi;; 2475 esac 2476 # Pass precious variables to config.status. 2477 if test "$ac_new_set" = set; then 2478 case $ac_new_val in 2479 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2480 *) ac_arg=$ac_var=$ac_new_val ;; 2481 esac 2482 case " $ac_configure_args " in 2483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2484 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2485 esac 2486 fi 2487done 2488if $ac_cache_corrupted; then 2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2490printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2492printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2493 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2494 and start over" "$LINENO" 5 2495fi 2496## -------------------- ## 2497## Main body of script. ## 2498## -------------------- ## 2499 2500ac_ext=c 2501ac_cpp='$CPP $CPPFLAGS' 2502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2504ac_compiler_gnu=$ac_cv_c_compiler_gnu 2505 2506 2507 2508ac_config_headers="$ac_config_headers config.h" 2509 2510 2511# Initialize Automake 2512am__api_version='1.16' 2513 2514 2515 2516 # Find a good install program. We prefer a C program (faster), 2517# so one script is as good as another. But avoid the broken or 2518# incompatible versions: 2519# SysV /etc/install, /usr/sbin/install 2520# SunOS /usr/etc/install 2521# IRIX /sbin/install 2522# AIX /bin/install 2523# AmigaOS /C/install, which installs bootblocks on floppy discs 2524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2525# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2527# OS/2's system install, which has a completely different semantic 2528# ./install, which can be erroneously created by make from ./install.sh. 2529# Reject install programs that cannot install multiple files. 2530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2531printf %s "checking for a BSD-compatible install... " >&6; } 2532if test -z "$INSTALL"; then 2533if test ${ac_cv_path_install+y} 2534then : 2535 printf %s "(cached) " >&6 2536else $as_nop 2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH 2539do 2540 IFS=$as_save_IFS 2541 case $as_dir in #((( 2542 '') as_dir=./ ;; 2543 */) ;; 2544 *) as_dir=$as_dir/ ;; 2545 esac 2546 # Account for fact that we put trailing slashes in our PATH walk. 2547case $as_dir in #(( 2548 ./ | /[cC]/* | \ 2549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2550 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2551 /usr/ucb/* ) ;; 2552 *) 2553 # OSF1 and SCO ODT 3.0 have their own names for install. 2554 # Don't use installbsd from OSF since it installs stuff as root 2555 # by default. 2556 for ac_prog in ginstall scoinst install; do 2557 for ac_exec_ext in '' $ac_executable_extensions; do 2558 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2559 if test $ac_prog = install && 2560 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2561 # AIX install. It has an incompatible calling convention. 2562 : 2563 elif test $ac_prog = install && 2564 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2565 # program-specific install script used by HP pwplus--don't use. 2566 : 2567 else 2568 rm -rf conftest.one conftest.two conftest.dir 2569 echo one > conftest.one 2570 echo two > conftest.two 2571 mkdir conftest.dir 2572 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2573 test -s conftest.one && test -s conftest.two && 2574 test -s conftest.dir/conftest.one && 2575 test -s conftest.dir/conftest.two 2576 then 2577 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2578 break 3 2579 fi 2580 fi 2581 fi 2582 done 2583 done 2584 ;; 2585esac 2586 2587 done 2588IFS=$as_save_IFS 2589 2590rm -rf conftest.one conftest.two conftest.dir 2591 2592fi 2593 if test ${ac_cv_path_install+y}; then 2594 INSTALL=$ac_cv_path_install 2595 else 2596 # As a last resort, use the slow shell script. Don't cache a 2597 # value for INSTALL within a source directory, because that will 2598 # break other packages using the cache if that directory is 2599 # removed, or if the value is a relative name. 2600 INSTALL=$ac_install_sh 2601 fi 2602fi 2603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2604printf "%s\n" "$INSTALL" >&6; } 2605 2606# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2607# It thinks the first close brace ends the variable substitution. 2608test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2609 2610test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2611 2612test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2613 2614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2615printf %s "checking whether build environment is sane... " >&6; } 2616# Reject unsafe characters in $srcdir or the absolute working directory 2617# name. Accept space and tab only in the latter. 2618am_lf=' 2619' 2620case `pwd` in 2621 *[\\\"\#\$\&\'\`$am_lf]*) 2622 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2623esac 2624case $srcdir in 2625 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2626 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2627esac 2628 2629# Do 'set' in a subshell so we don't clobber the current shell's 2630# arguments. Must try -L first in case configure is actually a 2631# symlink; some systems play weird games with the mod time of symlinks 2632# (eg FreeBSD returns the mod time of the symlink's containing 2633# directory). 2634if ( 2635 am_has_slept=no 2636 for am_try in 1 2; do 2637 echo "timestamp, slept: $am_has_slept" > conftest.file 2638 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2639 if test "$*" = "X"; then 2640 # -L didn't work. 2641 set X `ls -t "$srcdir/configure" conftest.file` 2642 fi 2643 if test "$*" != "X $srcdir/configure conftest.file" \ 2644 && test "$*" != "X conftest.file $srcdir/configure"; then 2645 2646 # If neither matched, then we have a broken ls. This can happen 2647 # if, for instance, CONFIG_SHELL is bash and it inherits a 2648 # broken ls alias from the environment. This has actually 2649 # happened. Such a system could not be considered "sane". 2650 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2651 alias in your environment" "$LINENO" 5 2652 fi 2653 if test "$2" = conftest.file || test $am_try -eq 2; then 2654 break 2655 fi 2656 # Just in case. 2657 sleep 1 2658 am_has_slept=yes 2659 done 2660 test "$2" = conftest.file 2661 ) 2662then 2663 # Ok. 2664 : 2665else 2666 as_fn_error $? "newly created file is older than distributed files! 2667Check your system clock" "$LINENO" 5 2668fi 2669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2670printf "%s\n" "yes" >&6; } 2671# If we didn't sleep, we still need to ensure time stamps of config.status and 2672# generated files are strictly newer. 2673am_sleep_pid= 2674if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2675 ( sleep 1 ) & 2676 am_sleep_pid=$! 2677fi 2678 2679rm -f conftest.file 2680 2681test "$program_prefix" != NONE && 2682 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2683# Use a double $ so make ignores it. 2684test "$program_suffix" != NONE && 2685 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2686# Double any \ or $. 2687# By default was `s,x,x', remove it if useless. 2688ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2689program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2690 2691 2692# Expand $ac_aux_dir to an absolute path. 2693am_aux_dir=`cd "$ac_aux_dir" && pwd` 2694 2695 2696 if test x"${MISSING+set}" != xset; then 2697 MISSING="\${SHELL} '$am_aux_dir/missing'" 2698fi 2699# Use eval to expand $SHELL 2700if eval "$MISSING --is-lightweight"; then 2701 am_missing_run="$MISSING " 2702else 2703 am_missing_run= 2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2705printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2706fi 2707 2708if test x"${install_sh+set}" != xset; then 2709 case $am_aux_dir in 2710 *\ * | *\ *) 2711 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2712 *) 2713 install_sh="\${SHELL} $am_aux_dir/install-sh" 2714 esac 2715fi 2716 2717# Installed binaries are usually stripped using 'strip' when the user 2718# run "make install-strip". However 'strip' might not be the right 2719# tool to use in cross-compilation environments, therefore Automake 2720# will honor the 'STRIP' environment variable to overrule this program. 2721if test "$cross_compiling" != no; then 2722 if test -n "$ac_tool_prefix"; then 2723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2724set dummy ${ac_tool_prefix}strip; ac_word=$2 2725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726printf %s "checking for $ac_word... " >&6; } 2727if test ${ac_cv_prog_STRIP+y} 2728then : 2729 printf %s "(cached) " >&6 2730else $as_nop 2731 if test -n "$STRIP"; then 2732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 case $as_dir in #((( 2739 '') as_dir=./ ;; 2740 */) ;; 2741 *) as_dir=$as_dir/ ;; 2742 esac 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2745 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2747 break 2 2748 fi 2749done 2750 done 2751IFS=$as_save_IFS 2752 2753fi 2754fi 2755STRIP=$ac_cv_prog_STRIP 2756if test -n "$STRIP"; then 2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2758printf "%s\n" "$STRIP" >&6; } 2759else 2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2761printf "%s\n" "no" >&6; } 2762fi 2763 2764 2765fi 2766if test -z "$ac_cv_prog_STRIP"; then 2767 ac_ct_STRIP=$STRIP 2768 # Extract the first word of "strip", so it can be a program name with args. 2769set dummy strip; ac_word=$2 2770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2771printf %s "checking for $ac_word... " >&6; } 2772if test ${ac_cv_prog_ac_ct_STRIP+y} 2773then : 2774 printf %s "(cached) " >&6 2775else $as_nop 2776 if test -n "$ac_ct_STRIP"; then 2777 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2778else 2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH 2781do 2782 IFS=$as_save_IFS 2783 case $as_dir in #((( 2784 '') as_dir=./ ;; 2785 */) ;; 2786 *) as_dir=$as_dir/ ;; 2787 esac 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2790 ac_cv_prog_ac_ct_STRIP="strip" 2791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794done 2795 done 2796IFS=$as_save_IFS 2797 2798fi 2799fi 2800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2801if test -n "$ac_ct_STRIP"; then 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2803printf "%s\n" "$ac_ct_STRIP" >&6; } 2804else 2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806printf "%s\n" "no" >&6; } 2807fi 2808 2809 if test "x$ac_ct_STRIP" = x; then 2810 STRIP=":" 2811 else 2812 case $cross_compiling:$ac_tool_warned in 2813yes:) 2814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2815printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2816ac_tool_warned=yes ;; 2817esac 2818 STRIP=$ac_ct_STRIP 2819 fi 2820else 2821 STRIP="$ac_cv_prog_STRIP" 2822fi 2823 2824fi 2825INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2826 2827 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2829printf %s "checking for a race-free mkdir -p... " >&6; } 2830if test -z "$MKDIR_P"; then 2831 if test ${ac_cv_path_mkdir+y} 2832then : 2833 printf %s "(cached) " >&6 2834else $as_nop 2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2837do 2838 IFS=$as_save_IFS 2839 case $as_dir in #((( 2840 '') as_dir=./ ;; 2841 */) ;; 2842 *) as_dir=$as_dir/ ;; 2843 esac 2844 for ac_prog in mkdir gmkdir; do 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2847 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2848 'mkdir ('*'coreutils) '* | \ 2849 'BusyBox '* | \ 2850 'mkdir (fileutils) '4.1*) 2851 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2852 break 3;; 2853 esac 2854 done 2855 done 2856 done 2857IFS=$as_save_IFS 2858 2859fi 2860 2861 test -d ./--version && rmdir ./--version 2862 if test ${ac_cv_path_mkdir+y}; then 2863 MKDIR_P="$ac_cv_path_mkdir -p" 2864 else 2865 # As a last resort, use the slow shell script. Don't cache a 2866 # value for MKDIR_P within a source directory, because that will 2867 # break other packages using the cache if that directory is 2868 # removed, or if the value is a relative name. 2869 MKDIR_P="$ac_install_sh -d" 2870 fi 2871fi 2872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2873printf "%s\n" "$MKDIR_P" >&6; } 2874 2875for ac_prog in gawk mawk nawk awk 2876do 2877 # Extract the first word of "$ac_prog", so it can be a program name with args. 2878set dummy $ac_prog; ac_word=$2 2879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880printf %s "checking for $ac_word... " >&6; } 2881if test ${ac_cv_prog_AWK+y} 2882then : 2883 printf %s "(cached) " >&6 2884else $as_nop 2885 if test -n "$AWK"; then 2886 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2887else 2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889for as_dir in $PATH 2890do 2891 IFS=$as_save_IFS 2892 case $as_dir in #((( 2893 '') as_dir=./ ;; 2894 */) ;; 2895 *) as_dir=$as_dir/ ;; 2896 esac 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2899 ac_cv_prog_AWK="$ac_prog" 2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2901 break 2 2902 fi 2903done 2904 done 2905IFS=$as_save_IFS 2906 2907fi 2908fi 2909AWK=$ac_cv_prog_AWK 2910if test -n "$AWK"; then 2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2912printf "%s\n" "$AWK" >&6; } 2913else 2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2915printf "%s\n" "no" >&6; } 2916fi 2917 2918 2919 test -n "$AWK" && break 2920done 2921 2922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2923printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2924set x ${MAKE-make} 2925ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2926if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2927then : 2928 printf %s "(cached) " >&6 2929else $as_nop 2930 cat >conftest.make <<\_ACEOF 2931SHELL = /bin/sh 2932all: 2933 @echo '@@@%%%=$(MAKE)=@@@%%%' 2934_ACEOF 2935# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2936case `${MAKE-make} -f conftest.make 2>/dev/null` in 2937 *@@@%%%=?*=@@@%%%*) 2938 eval ac_cv_prog_make_${ac_make}_set=yes;; 2939 *) 2940 eval ac_cv_prog_make_${ac_make}_set=no;; 2941esac 2942rm -f conftest.make 2943fi 2944if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2946printf "%s\n" "yes" >&6; } 2947 SET_MAKE= 2948else 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950printf "%s\n" "no" >&6; } 2951 SET_MAKE="MAKE=${MAKE-make}" 2952fi 2953 2954rm -rf .tst 2>/dev/null 2955mkdir .tst 2>/dev/null 2956if test -d .tst; then 2957 am__leading_dot=. 2958else 2959 am__leading_dot=_ 2960fi 2961rmdir .tst 2>/dev/null 2962 2963# Check whether --enable-silent-rules was given. 2964if test ${enable_silent_rules+y} 2965then : 2966 enableval=$enable_silent_rules; 2967fi 2968 2969case $enable_silent_rules in # ((( 2970 yes) AM_DEFAULT_VERBOSITY=0;; 2971 no) AM_DEFAULT_VERBOSITY=1;; 2972 *) AM_DEFAULT_VERBOSITY=1;; 2973esac 2974am_make=${MAKE-make} 2975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2976printf %s "checking whether $am_make supports nested variables... " >&6; } 2977if test ${am_cv_make_support_nested_variables+y} 2978then : 2979 printf %s "(cached) " >&6 2980else $as_nop 2981 if printf "%s\n" 'TRUE=$(BAR$(V)) 2982BAR0=false 2983BAR1=true 2984V=1 2985am__doit: 2986 @$(TRUE) 2987.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2988 am_cv_make_support_nested_variables=yes 2989else 2990 am_cv_make_support_nested_variables=no 2991fi 2992fi 2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2994printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2995if test $am_cv_make_support_nested_variables = yes; then 2996 AM_V='$(V)' 2997 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2998else 2999 AM_V=$AM_DEFAULT_VERBOSITY 3000 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3001fi 3002AM_BACKSLASH='\' 3003 3004if test "`cd $srcdir && pwd`" != "`pwd`"; then 3005 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3006 # is not polluted with repeated "-I." 3007 am__isrc=' -I$(srcdir)' 3008 # test to see if srcdir already configured 3009 if test -f $srcdir/config.status; then 3010 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3011 fi 3012fi 3013 3014# test whether we have cygpath 3015if test -z "$CYGPATH_W"; then 3016 if (cygpath --version) >/dev/null 2>/dev/null; then 3017 CYGPATH_W='cygpath -w' 3018 else 3019 CYGPATH_W=echo 3020 fi 3021fi 3022 3023 3024# Define the identity of the package. 3025 PACKAGE='xlogo' 3026 VERSION='1.0.6' 3027 3028 3029printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3030 3031 3032printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3033 3034# Some tools Automake needs. 3035 3036ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3037 3038 3039AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3040 3041 3042AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3043 3044 3045AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3046 3047 3048MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3049 3050# For better backward compatibility. To be removed once Automake 1.9.x 3051# dies out for good. For more background, see: 3052# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3053# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3054mkdir_p='$(MKDIR_P)' 3055 3056# We need awk for the "check" target (and possibly the TAP driver). The 3057# system "awk" is bad on some platforms. 3058# Always define AMTAR for backward compatibility. Yes, it's still used 3059# in the wild :-( We should find a proper way to deprecate it ... 3060AMTAR='$${TAR-tar}' 3061 3062 3063# We'll loop over all known methods to create a tar archive until one works. 3064_am_tools='gnutar pax cpio none' 3065 3066am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3067 3068 3069 3070 3071 3072# Variables for tags utilities; see am/tags.am 3073if test -z "$CTAGS"; then 3074 CTAGS=ctags 3075fi 3076 3077if test -z "$ETAGS"; then 3078 ETAGS=etags 3079fi 3080 3081if test -z "$CSCOPE"; then 3082 CSCOPE=cscope 3083fi 3084 3085 3086 3087# POSIX will say in a future version that running "rm -f" with no argument 3088# is OK; and we want to be able to make that assumption in our Makefile 3089# recipes. So use an aggressive probe to check that the usage we want is 3090# actually supported "in the wild" to an acceptable degree. 3091# See automake bug#10828. 3092# To make any issue more visible, cause the running configure to be aborted 3093# by default if the 'rm' program in use doesn't match our expectations; the 3094# user can still override this though. 3095if rm -f && rm -fr && rm -rf; then : OK; else 3096 cat >&2 <<'END' 3097Oops! 3098 3099Your 'rm' program seems unable to run without file operands specified 3100on the command line, even when the '-f' option is present. This is contrary 3101to the behaviour of most rm programs out there, and not conforming with 3102the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3103 3104Please tell bug-automake@gnu.org about your system, including the value 3105of your $PATH and any error possibly output before this message. This 3106can help us improve future automake versions. 3107 3108END 3109 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3110 echo 'Configuration will proceed anyway, since you have set the' >&2 3111 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3112 echo >&2 3113 else 3114 cat >&2 <<'END' 3115Aborting the configuration process, to ensure you take notice of the issue. 3116 3117You can download and install GNU coreutils to get an 'rm' implementation 3118that behaves properly: <https://www.gnu.org/software/coreutils/>. 3119 3120If you want to complete the configuration process using your problematic 3121'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3122to "yes", and re-run configure. 3123 3124END 3125 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3126 fi 3127fi 3128 3129 3130# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151DEPDIR="${am__leading_dot}deps" 3152 3153ac_config_commands="$ac_config_commands depfiles" 3154 3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3156printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3157cat > confinc.mk << 'END' 3158am__doit: 3159 @echo this is the am__doit target >confinc.out 3160.PHONY: am__doit 3161END 3162am__include="#" 3163am__quote= 3164# BSD make does it like this. 3165echo '.include "confinc.mk" # ignored' > confmf.BSD 3166# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3167echo 'include confinc.mk # ignored' > confmf.GNU 3168_am_result=no 3169for s in GNU BSD; do 3170 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3171 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3172 ac_status=$? 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } 3175 case $?:`cat confinc.out 2>/dev/null` in #( 3176 '0:this is the am__doit target') : 3177 case $s in #( 3178 BSD) : 3179 am__include='.include' am__quote='"' ;; #( 3180 *) : 3181 am__include='include' am__quote='' ;; 3182esac ;; #( 3183 *) : 3184 ;; 3185esac 3186 if test "$am__include" != "#"; then 3187 _am_result="yes ($s style)" 3188 break 3189 fi 3190done 3191rm -f confinc.* confmf.* 3192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3193printf "%s\n" "${_am_result}" >&6; } 3194 3195# Check whether --enable-dependency-tracking was given. 3196if test ${enable_dependency_tracking+y} 3197then : 3198 enableval=$enable_dependency_tracking; 3199fi 3200 3201if test "x$enable_dependency_tracking" != xno; then 3202 am_depcomp="$ac_aux_dir/depcomp" 3203 AMDEPBACKSLASH='\' 3204 am__nodep='_no' 3205fi 3206 if test "x$enable_dependency_tracking" != xno; then 3207 AMDEP_TRUE= 3208 AMDEP_FALSE='#' 3209else 3210 AMDEP_TRUE='#' 3211 AMDEP_FALSE= 3212fi 3213 3214 3215ac_ext=c 3216ac_cpp='$CPP $CPPFLAGS' 3217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3219ac_compiler_gnu=$ac_cv_c_compiler_gnu 3220if test -n "$ac_tool_prefix"; then 3221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3222set dummy ${ac_tool_prefix}gcc; ac_word=$2 3223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3224printf %s "checking for $ac_word... " >&6; } 3225if test ${ac_cv_prog_CC+y} 3226then : 3227 printf %s "(cached) " >&6 3228else $as_nop 3229 if test -n "$CC"; then 3230 ac_cv_prog_CC="$CC" # Let the user override the test. 3231else 3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH 3234do 3235 IFS=$as_save_IFS 3236 case $as_dir in #((( 3237 '') as_dir=./ ;; 3238 */) ;; 3239 *) as_dir=$as_dir/ ;; 3240 esac 3241 for ac_exec_ext in '' $ac_executable_extensions; do 3242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3243 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3245 break 2 3246 fi 3247done 3248 done 3249IFS=$as_save_IFS 3250 3251fi 3252fi 3253CC=$ac_cv_prog_CC 3254if test -n "$CC"; then 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3256printf "%s\n" "$CC" >&6; } 3257else 3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259printf "%s\n" "no" >&6; } 3260fi 3261 3262 3263fi 3264if test -z "$ac_cv_prog_CC"; then 3265 ac_ct_CC=$CC 3266 # Extract the first word of "gcc", so it can be a program name with args. 3267set dummy gcc; ac_word=$2 3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269printf %s "checking for $ac_word... " >&6; } 3270if test ${ac_cv_prog_ac_ct_CC+y} 3271then : 3272 printf %s "(cached) " >&6 3273else $as_nop 3274 if test -n "$ac_ct_CC"; then 3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 case $as_dir in #((( 3282 '') as_dir=./ ;; 3283 */) ;; 3284 *) as_dir=$as_dir/ ;; 3285 esac 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_ac_ct_CC="gcc" 3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi 3297fi 3298ac_ct_CC=$ac_cv_prog_ac_ct_CC 3299if test -n "$ac_ct_CC"; then 3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3301printf "%s\n" "$ac_ct_CC" >&6; } 3302else 3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3304printf "%s\n" "no" >&6; } 3305fi 3306 3307 if test "x$ac_ct_CC" = x; then 3308 CC="" 3309 else 3310 case $cross_compiling:$ac_tool_warned in 3311yes:) 3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3313printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3314ac_tool_warned=yes ;; 3315esac 3316 CC=$ac_ct_CC 3317 fi 3318else 3319 CC="$ac_cv_prog_CC" 3320fi 3321 3322if test -z "$CC"; then 3323 if test -n "$ac_tool_prefix"; then 3324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3325set dummy ${ac_tool_prefix}cc; ac_word=$2 3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327printf %s "checking for $ac_word... " >&6; } 3328if test ${ac_cv_prog_CC+y} 3329then : 3330 printf %s "(cached) " >&6 3331else $as_nop 3332 if test -n "$CC"; then 3333 ac_cv_prog_CC="$CC" # Let the user override the test. 3334else 3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3336for as_dir in $PATH 3337do 3338 IFS=$as_save_IFS 3339 case $as_dir in #((( 3340 '') as_dir=./ ;; 3341 */) ;; 3342 *) as_dir=$as_dir/ ;; 3343 esac 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_CC="${ac_tool_prefix}cc" 3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350done 3351 done 3352IFS=$as_save_IFS 3353 3354fi 3355fi 3356CC=$ac_cv_prog_CC 3357if test -n "$CC"; then 3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3359printf "%s\n" "$CC" >&6; } 3360else 3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362printf "%s\n" "no" >&6; } 3363fi 3364 3365 3366 fi 3367fi 3368if test -z "$CC"; then 3369 # Extract the first word of "cc", so it can be a program name with args. 3370set dummy cc; ac_word=$2 3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3372printf %s "checking for $ac_word... " >&6; } 3373if test ${ac_cv_prog_CC+y} 3374then : 3375 printf %s "(cached) " >&6 3376else $as_nop 3377 if test -n "$CC"; then 3378 ac_cv_prog_CC="$CC" # Let the user override the test. 3379else 3380 ac_prog_rejected=no 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 case $as_dir in #((( 3386 '') as_dir=./ ;; 3387 */) ;; 3388 *) as_dir=$as_dir/ ;; 3389 esac 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3392 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3393 ac_prog_rejected=yes 3394 continue 3395 fi 3396 ac_cv_prog_CC="cc" 3397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3398 break 2 3399 fi 3400done 3401 done 3402IFS=$as_save_IFS 3403 3404if test $ac_prog_rejected = yes; then 3405 # We found a bogon in the path, so make sure we never use it. 3406 set dummy $ac_cv_prog_CC 3407 shift 3408 if test $# != 0; then 3409 # We chose a different compiler from the bogus one. 3410 # However, it has the same basename, so the bogon will be chosen 3411 # first if we set CC to just the basename; use the full file name. 3412 shift 3413 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3414 fi 3415fi 3416fi 3417fi 3418CC=$ac_cv_prog_CC 3419if test -n "$CC"; then 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3421printf "%s\n" "$CC" >&6; } 3422else 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424printf "%s\n" "no" >&6; } 3425fi 3426 3427 3428fi 3429if test -z "$CC"; then 3430 if test -n "$ac_tool_prefix"; then 3431 for ac_prog in cl.exe 3432 do 3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3434set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3436printf %s "checking for $ac_word... " >&6; } 3437if test ${ac_cv_prog_CC+y} 3438then : 3439 printf %s "(cached) " >&6 3440else $as_nop 3441 if test -n "$CC"; then 3442 ac_cv_prog_CC="$CC" # Let the user override the test. 3443else 3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3445for as_dir in $PATH 3446do 3447 IFS=$as_save_IFS 3448 case $as_dir in #((( 3449 '') as_dir=./ ;; 3450 */) ;; 3451 *) as_dir=$as_dir/ ;; 3452 esac 3453 for ac_exec_ext in '' $ac_executable_extensions; do 3454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3457 break 2 3458 fi 3459done 3460 done 3461IFS=$as_save_IFS 3462 3463fi 3464fi 3465CC=$ac_cv_prog_CC 3466if test -n "$CC"; then 3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3468printf "%s\n" "$CC" >&6; } 3469else 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471printf "%s\n" "no" >&6; } 3472fi 3473 3474 3475 test -n "$CC" && break 3476 done 3477fi 3478if test -z "$CC"; then 3479 ac_ct_CC=$CC 3480 for ac_prog in cl.exe 3481do 3482 # Extract the first word of "$ac_prog", so it can be a program name with args. 3483set dummy $ac_prog; ac_word=$2 3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3485printf %s "checking for $ac_word... " >&6; } 3486if test ${ac_cv_prog_ac_ct_CC+y} 3487then : 3488 printf %s "(cached) " >&6 3489else $as_nop 3490 if test -n "$ac_ct_CC"; then 3491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3492else 3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3494for as_dir in $PATH 3495do 3496 IFS=$as_save_IFS 3497 case $as_dir in #((( 3498 '') as_dir=./ ;; 3499 */) ;; 3500 *) as_dir=$as_dir/ ;; 3501 esac 3502 for ac_exec_ext in '' $ac_executable_extensions; do 3503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3504 ac_cv_prog_ac_ct_CC="$ac_prog" 3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3506 break 2 3507 fi 3508done 3509 done 3510IFS=$as_save_IFS 3511 3512fi 3513fi 3514ac_ct_CC=$ac_cv_prog_ac_ct_CC 3515if test -n "$ac_ct_CC"; then 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3517printf "%s\n" "$ac_ct_CC" >&6; } 3518else 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3520printf "%s\n" "no" >&6; } 3521fi 3522 3523 3524 test -n "$ac_ct_CC" && break 3525done 3526 3527 if test "x$ac_ct_CC" = x; then 3528 CC="" 3529 else 3530 case $cross_compiling:$ac_tool_warned in 3531yes:) 3532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3533printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3534ac_tool_warned=yes ;; 3535esac 3536 CC=$ac_ct_CC 3537 fi 3538fi 3539 3540fi 3541if test -z "$CC"; then 3542 if test -n "$ac_tool_prefix"; then 3543 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3544set dummy ${ac_tool_prefix}clang; ac_word=$2 3545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546printf %s "checking for $ac_word... " >&6; } 3547if test ${ac_cv_prog_CC+y} 3548then : 3549 printf %s "(cached) " >&6 3550else $as_nop 3551 if test -n "$CC"; then 3552 ac_cv_prog_CC="$CC" # Let the user override the test. 3553else 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 case $as_dir in #((( 3559 '') as_dir=./ ;; 3560 */) ;; 3561 *) as_dir=$as_dir/ ;; 3562 esac 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_CC="${ac_tool_prefix}clang" 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575CC=$ac_cv_prog_CC 3576if test -n "$CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578printf "%s\n" "$CC" >&6; } 3579else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581printf "%s\n" "no" >&6; } 3582fi 3583 3584 3585fi 3586if test -z "$ac_cv_prog_CC"; then 3587 ac_ct_CC=$CC 3588 # Extract the first word of "clang", so it can be a program name with args. 3589set dummy clang; ac_word=$2 3590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591printf %s "checking for $ac_word... " >&6; } 3592if test ${ac_cv_prog_ac_ct_CC+y} 3593then : 3594 printf %s "(cached) " >&6 3595else $as_nop 3596 if test -n "$ac_ct_CC"; then 3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3598else 3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3600for as_dir in $PATH 3601do 3602 IFS=$as_save_IFS 3603 case $as_dir in #((( 3604 '') as_dir=./ ;; 3605 */) ;; 3606 *) as_dir=$as_dir/ ;; 3607 esac 3608 for ac_exec_ext in '' $ac_executable_extensions; do 3609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3610 ac_cv_prog_ac_ct_CC="clang" 3611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3612 break 2 3613 fi 3614done 3615 done 3616IFS=$as_save_IFS 3617 3618fi 3619fi 3620ac_ct_CC=$ac_cv_prog_ac_ct_CC 3621if test -n "$ac_ct_CC"; then 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3623printf "%s\n" "$ac_ct_CC" >&6; } 3624else 3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3626printf "%s\n" "no" >&6; } 3627fi 3628 3629 if test "x$ac_ct_CC" = x; then 3630 CC="" 3631 else 3632 case $cross_compiling:$ac_tool_warned in 3633yes:) 3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3636ac_tool_warned=yes ;; 3637esac 3638 CC=$ac_ct_CC 3639 fi 3640else 3641 CC="$ac_cv_prog_CC" 3642fi 3643 3644fi 3645 3646 3647test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3648printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3649as_fn_error $? "no acceptable C compiler found in \$PATH 3650See \`config.log' for more details" "$LINENO" 5; } 3651 3652# Provide some information about the compiler. 3653printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3654set X $ac_compile 3655ac_compiler=$2 3656for ac_option in --version -v -V -qversion -version; do 3657 { { ac_try="$ac_compiler $ac_option >&5" 3658case "(($ac_try" in 3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3660 *) ac_try_echo=$ac_try;; 3661esac 3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3663printf "%s\n" "$ac_try_echo"; } >&5 3664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3665 ac_status=$? 3666 if test -s conftest.err; then 3667 sed '10a\ 3668... rest of stderr output deleted ... 3669 10q' conftest.err >conftest.er1 3670 cat conftest.er1 >&5 3671 fi 3672 rm -f conftest.er1 conftest.err 3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3674 test $ac_status = 0; } 3675done 3676 3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679 3680int 3681main (void) 3682{ 3683 3684 ; 3685 return 0; 3686} 3687_ACEOF 3688ac_clean_files_save=$ac_clean_files 3689ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3690# Try to create an executable without -o first, disregard a.out. 3691# It will help us diagnose broken compilers, and finding out an intuition 3692# of exeext. 3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3694printf %s "checking whether the C compiler works... " >&6; } 3695ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3696 3697# The possible output files: 3698ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3699 3700ac_rmfiles= 3701for ac_file in $ac_files 3702do 3703 case $ac_file in 3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3705 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3706 esac 3707done 3708rm -f $ac_rmfiles 3709 3710if { { ac_try="$ac_link_default" 3711case "(($ac_try" in 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 *) ac_try_echo=$ac_try;; 3714esac 3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3716printf "%s\n" "$ac_try_echo"; } >&5 3717 (eval "$ac_link_default") 2>&5 3718 ac_status=$? 3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; } 3721then : 3722 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3723# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3724# in a Makefile. We should not override ac_cv_exeext if it was cached, 3725# so that the user can short-circuit this test for compilers unknown to 3726# Autoconf. 3727for ac_file in $ac_files '' 3728do 3729 test -f "$ac_file" || continue 3730 case $ac_file in 3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3732 ;; 3733 [ab].out ) 3734 # We found the default executable, but exeext='' is most 3735 # certainly right. 3736 break;; 3737 *.* ) 3738 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3739 then :; else 3740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3741 fi 3742 # We set ac_cv_exeext here because the later test for it is not 3743 # safe: cross compilers may not add the suffix if given an `-o' 3744 # argument, so we may need to know it at that point already. 3745 # Even if this section looks crufty: it has the advantage of 3746 # actually working. 3747 break;; 3748 * ) 3749 break;; 3750 esac 3751done 3752test "$ac_cv_exeext" = no && ac_cv_exeext= 3753 3754else $as_nop 3755 ac_file='' 3756fi 3757if test -z "$ac_file" 3758then : 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3760printf "%s\n" "no" >&6; } 3761printf "%s\n" "$as_me: failed program was:" >&5 3762sed 's/^/| /' conftest.$ac_ext >&5 3763 3764{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3766as_fn_error 77 "C compiler cannot create executables 3767See \`config.log' for more details" "$LINENO" 5; } 3768else $as_nop 3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3770printf "%s\n" "yes" >&6; } 3771fi 3772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3773printf %s "checking for C compiler default output file name... " >&6; } 3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3775printf "%s\n" "$ac_file" >&6; } 3776ac_exeext=$ac_cv_exeext 3777 3778rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3779ac_clean_files=$ac_clean_files_save 3780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3781printf %s "checking for suffix of executables... " >&6; } 3782if { { ac_try="$ac_link" 3783case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786esac 3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3788printf "%s\n" "$ac_try_echo"; } >&5 3789 (eval "$ac_link") 2>&5 3790 ac_status=$? 3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3792 test $ac_status = 0; } 3793then : 3794 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3795# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3796# work properly (i.e., refer to `conftest.exe'), while it won't with 3797# `rm'. 3798for ac_file in conftest.exe conftest conftest.*; do 3799 test -f "$ac_file" || continue 3800 case $ac_file in 3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3802 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3803 break;; 3804 * ) break;; 3805 esac 3806done 3807else $as_nop 3808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3809printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3810as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3811See \`config.log' for more details" "$LINENO" 5; } 3812fi 3813rm -f conftest conftest$ac_cv_exeext 3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3815printf "%s\n" "$ac_cv_exeext" >&6; } 3816 3817rm -f conftest.$ac_ext 3818EXEEXT=$ac_cv_exeext 3819ac_exeext=$EXEEXT 3820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822#include <stdio.h> 3823int 3824main (void) 3825{ 3826FILE *f = fopen ("conftest.out", "w"); 3827 return ferror (f) || fclose (f) != 0; 3828 3829 ; 3830 return 0; 3831} 3832_ACEOF 3833ac_clean_files="$ac_clean_files conftest.out" 3834# Check that the compiler produces executables we can run. If not, either 3835# the compiler is broken, or we cross compile. 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3837printf %s "checking whether we are cross compiling... " >&6; } 3838if test "$cross_compiling" != yes; then 3839 { { ac_try="$ac_link" 3840case "(($ac_try" in 3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3842 *) ac_try_echo=$ac_try;; 3843esac 3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3845printf "%s\n" "$ac_try_echo"; } >&5 3846 (eval "$ac_link") 2>&5 3847 ac_status=$? 3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3849 test $ac_status = 0; } 3850 if { ac_try='./conftest$ac_cv_exeext' 3851 { { case "(($ac_try" in 3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3853 *) ac_try_echo=$ac_try;; 3854esac 3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3856printf "%s\n" "$ac_try_echo"; } >&5 3857 (eval "$ac_try") 2>&5 3858 ac_status=$? 3859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3860 test $ac_status = 0; }; }; then 3861 cross_compiling=no 3862 else 3863 if test "$cross_compiling" = maybe; then 3864 cross_compiling=yes 3865 else 3866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3867printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3868as_fn_error 77 "cannot run C compiled programs. 3869If you meant to cross compile, use \`--host'. 3870See \`config.log' for more details" "$LINENO" 5; } 3871 fi 3872 fi 3873fi 3874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3875printf "%s\n" "$cross_compiling" >&6; } 3876 3877rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3878ac_clean_files=$ac_clean_files_save 3879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3880printf %s "checking for suffix of object files... " >&6; } 3881if test ${ac_cv_objext+y} 3882then : 3883 printf %s "(cached) " >&6 3884else $as_nop 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3886/* end confdefs.h. */ 3887 3888int 3889main (void) 3890{ 3891 3892 ; 3893 return 0; 3894} 3895_ACEOF 3896rm -f conftest.o conftest.obj 3897if { { ac_try="$ac_compile" 3898case "(($ac_try" in 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *) ac_try_echo=$ac_try;; 3901esac 3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3903printf "%s\n" "$ac_try_echo"; } >&5 3904 (eval "$ac_compile") 2>&5 3905 ac_status=$? 3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3907 test $ac_status = 0; } 3908then : 3909 for ac_file in conftest.o conftest.obj conftest.*; do 3910 test -f "$ac_file" || continue; 3911 case $ac_file in 3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3914 break;; 3915 esac 3916done 3917else $as_nop 3918 printf "%s\n" "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3922printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3923as_fn_error $? "cannot compute suffix of object files: cannot compile 3924See \`config.log' for more details" "$LINENO" 5; } 3925fi 3926rm -f conftest.$ac_cv_objext conftest.$ac_ext 3927fi 3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3929printf "%s\n" "$ac_cv_objext" >&6; } 3930OBJEXT=$ac_cv_objext 3931ac_objext=$OBJEXT 3932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3933printf %s "checking whether the compiler supports GNU C... " >&6; } 3934if test ${ac_cv_c_compiler_gnu+y} 3935then : 3936 printf %s "(cached) " >&6 3937else $as_nop 3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3939/* end confdefs.h. */ 3940 3941int 3942main (void) 3943{ 3944#ifndef __GNUC__ 3945 choke me 3946#endif 3947 3948 ; 3949 return 0; 3950} 3951_ACEOF 3952if ac_fn_c_try_compile "$LINENO" 3953then : 3954 ac_compiler_gnu=yes 3955else $as_nop 3956 ac_compiler_gnu=no 3957fi 3958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3959ac_cv_c_compiler_gnu=$ac_compiler_gnu 3960 3961fi 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3963printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3964ac_compiler_gnu=$ac_cv_c_compiler_gnu 3965 3966if test $ac_compiler_gnu = yes; then 3967 GCC=yes 3968else 3969 GCC= 3970fi 3971ac_test_CFLAGS=${CFLAGS+y} 3972ac_save_CFLAGS=$CFLAGS 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3974printf %s "checking whether $CC accepts -g... " >&6; } 3975if test ${ac_cv_prog_cc_g+y} 3976then : 3977 printf %s "(cached) " >&6 3978else $as_nop 3979 ac_save_c_werror_flag=$ac_c_werror_flag 3980 ac_c_werror_flag=yes 3981 ac_cv_prog_cc_g=no 3982 CFLAGS="-g" 3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985 3986int 3987main (void) 3988{ 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994if ac_fn_c_try_compile "$LINENO" 3995then : 3996 ac_cv_prog_cc_g=yes 3997else $as_nop 3998 CFLAGS="" 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main (void) 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010if ac_fn_c_try_compile "$LINENO" 4011then : 4012 4013else $as_nop 4014 ac_c_werror_flag=$ac_save_c_werror_flag 4015 CFLAGS="-g" 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main (void) 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_compile "$LINENO" 4028then : 4029 ac_cv_prog_cc_g=yes 4030fi 4031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4036 ac_c_werror_flag=$ac_save_c_werror_flag 4037fi 4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4039printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4040if test $ac_test_CFLAGS; then 4041 CFLAGS=$ac_save_CFLAGS 4042elif test $ac_cv_prog_cc_g = yes; then 4043 if test "$GCC" = yes; then 4044 CFLAGS="-g -O2" 4045 else 4046 CFLAGS="-g" 4047 fi 4048else 4049 if test "$GCC" = yes; then 4050 CFLAGS="-O2" 4051 else 4052 CFLAGS= 4053 fi 4054fi 4055ac_prog_cc_stdc=no 4056if test x$ac_prog_cc_stdc = xno 4057then : 4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4059printf %s "checking for $CC option to enable C11 features... " >&6; } 4060if test ${ac_cv_prog_cc_c11+y} 4061then : 4062 printf %s "(cached) " >&6 4063else $as_nop 4064 ac_cv_prog_cc_c11=no 4065ac_save_CC=$CC 4066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4067/* end confdefs.h. */ 4068$ac_c_conftest_c11_program 4069_ACEOF 4070for ac_arg in '' -std=gnu11 4071do 4072 CC="$ac_save_CC $ac_arg" 4073 if ac_fn_c_try_compile "$LINENO" 4074then : 4075 ac_cv_prog_cc_c11=$ac_arg 4076fi 4077rm -f core conftest.err conftest.$ac_objext conftest.beam 4078 test "x$ac_cv_prog_cc_c11" != "xno" && break 4079done 4080rm -f conftest.$ac_ext 4081CC=$ac_save_CC 4082fi 4083 4084if test "x$ac_cv_prog_cc_c11" = xno 4085then : 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4087printf "%s\n" "unsupported" >&6; } 4088else $as_nop 4089 if test "x$ac_cv_prog_cc_c11" = x 4090then : 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4092printf "%s\n" "none needed" >&6; } 4093else $as_nop 4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4095printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4096 CC="$CC $ac_cv_prog_cc_c11" 4097fi 4098 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4099 ac_prog_cc_stdc=c11 4100fi 4101fi 4102if test x$ac_prog_cc_stdc = xno 4103then : 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4105printf %s "checking for $CC option to enable C99 features... " >&6; } 4106if test ${ac_cv_prog_cc_c99+y} 4107then : 4108 printf %s "(cached) " >&6 4109else $as_nop 4110 ac_cv_prog_cc_c99=no 4111ac_save_CC=$CC 4112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114$ac_c_conftest_c99_program 4115_ACEOF 4116for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4117do 4118 CC="$ac_save_CC $ac_arg" 4119 if ac_fn_c_try_compile "$LINENO" 4120then : 4121 ac_cv_prog_cc_c99=$ac_arg 4122fi 4123rm -f core conftest.err conftest.$ac_objext conftest.beam 4124 test "x$ac_cv_prog_cc_c99" != "xno" && break 4125done 4126rm -f conftest.$ac_ext 4127CC=$ac_save_CC 4128fi 4129 4130if test "x$ac_cv_prog_cc_c99" = xno 4131then : 4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4133printf "%s\n" "unsupported" >&6; } 4134else $as_nop 4135 if test "x$ac_cv_prog_cc_c99" = x 4136then : 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4138printf "%s\n" "none needed" >&6; } 4139else $as_nop 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4141printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4142 CC="$CC $ac_cv_prog_cc_c99" 4143fi 4144 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4145 ac_prog_cc_stdc=c99 4146fi 4147fi 4148if test x$ac_prog_cc_stdc = xno 4149then : 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4151printf %s "checking for $CC option to enable C89 features... " >&6; } 4152if test ${ac_cv_prog_cc_c89+y} 4153then : 4154 printf %s "(cached) " >&6 4155else $as_nop 4156 ac_cv_prog_cc_c89=no 4157ac_save_CC=$CC 4158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4159/* end confdefs.h. */ 4160$ac_c_conftest_c89_program 4161_ACEOF 4162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4163do 4164 CC="$ac_save_CC $ac_arg" 4165 if ac_fn_c_try_compile "$LINENO" 4166then : 4167 ac_cv_prog_cc_c89=$ac_arg 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.beam 4170 test "x$ac_cv_prog_cc_c89" != "xno" && break 4171done 4172rm -f conftest.$ac_ext 4173CC=$ac_save_CC 4174fi 4175 4176if test "x$ac_cv_prog_cc_c89" = xno 4177then : 4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4179printf "%s\n" "unsupported" >&6; } 4180else $as_nop 4181 if test "x$ac_cv_prog_cc_c89" = x 4182then : 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4184printf "%s\n" "none needed" >&6; } 4185else $as_nop 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4187printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4188 CC="$CC $ac_cv_prog_cc_c89" 4189fi 4190 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4191 ac_prog_cc_stdc=c89 4192fi 4193fi 4194 4195ac_ext=c 4196ac_cpp='$CPP $CPPFLAGS' 4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4199ac_compiler_gnu=$ac_cv_c_compiler_gnu 4200 4201 4202 ac_ext=c 4203ac_cpp='$CPP $CPPFLAGS' 4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4206ac_compiler_gnu=$ac_cv_c_compiler_gnu 4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4208printf %s "checking whether $CC understands -c and -o together... " >&6; } 4209if test ${am_cv_prog_cc_c_o+y} 4210then : 4211 printf %s "(cached) " >&6 4212else $as_nop 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214/* end confdefs.h. */ 4215 4216int 4217main (void) 4218{ 4219 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224 # Make sure it works both with $CC and with simple cc. 4225 # Following AC_PROG_CC_C_O, we do the test twice because some 4226 # compilers refuse to overwrite an existing .o file with -o, 4227 # though they will create one. 4228 am_cv_prog_cc_c_o=yes 4229 for am_i in 1 2; do 4230 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4231 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4232 ac_status=$? 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); } \ 4235 && test -f conftest2.$ac_objext; then 4236 : OK 4237 else 4238 am_cv_prog_cc_c_o=no 4239 break 4240 fi 4241 done 4242 rm -f core conftest* 4243 unset am_i 4244fi 4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4246printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4247if test "$am_cv_prog_cc_c_o" != yes; then 4248 # Losing compiler, so override with the script. 4249 # FIXME: It is wrong to rewrite CC. 4250 # But if we don't then we get into trouble of one sort or another. 4251 # A longer-term fix would be to have automake use am__CC in this case, 4252 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4253 CC="$am_aux_dir/compile $CC" 4254fi 4255ac_ext=c 4256ac_cpp='$CPP $CPPFLAGS' 4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4259ac_compiler_gnu=$ac_cv_c_compiler_gnu 4260 4261 4262depcc="$CC" am_compiler_list= 4263 4264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4265printf %s "checking dependency style of $depcc... " >&6; } 4266if test ${am_cv_CC_dependencies_compiler_type+y} 4267then : 4268 printf %s "(cached) " >&6 4269else $as_nop 4270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4271 # We make a subdir and do the tests there. Otherwise we can end up 4272 # making bogus files that we don't know about and never remove. For 4273 # instance it was reported that on HP-UX the gcc test will end up 4274 # making a dummy file named 'D' -- because '-MD' means "put the output 4275 # in D". 4276 rm -rf conftest.dir 4277 mkdir conftest.dir 4278 # Copy depcomp to subdir because otherwise we won't find it if we're 4279 # using a relative directory. 4280 cp "$am_depcomp" conftest.dir 4281 cd conftest.dir 4282 # We will build objects and dependencies in a subdirectory because 4283 # it helps to detect inapplicable dependency modes. For instance 4284 # both Tru64's cc and ICC support -MD to output dependencies as a 4285 # side effect of compilation, but ICC will put the dependencies in 4286 # the current directory while Tru64 will put them in the object 4287 # directory. 4288 mkdir sub 4289 4290 am_cv_CC_dependencies_compiler_type=none 4291 if test "$am_compiler_list" = ""; then 4292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4293 fi 4294 am__universal=false 4295 case " $depcc " in #( 4296 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4297 esac 4298 4299 for depmode in $am_compiler_list; do 4300 # Setup a source with many dependencies, because some compilers 4301 # like to wrap large dependency lists on column 80 (with \), and 4302 # we should not choose a depcomp mode which is confused by this. 4303 # 4304 # We need to recreate these files for each test, as the compiler may 4305 # overwrite some of them when testing with obscure command lines. 4306 # This happens at least with the AIX C compiler. 4307 : > sub/conftest.c 4308 for i in 1 2 3 4 5 6; do 4309 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4311 # Solaris 10 /bin/sh. 4312 echo '/* dummy */' > sub/conftst$i.h 4313 done 4314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4315 4316 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4317 # mode. It turns out that the SunPro C++ compiler does not properly 4318 # handle '-M -o', and we need to detect this. Also, some Intel 4319 # versions had trouble with output in subdirs. 4320 am__obj=sub/conftest.${OBJEXT-o} 4321 am__minus_obj="-o $am__obj" 4322 case $depmode in 4323 gcc) 4324 # This depmode causes a compiler race in universal mode. 4325 test "$am__universal" = false || continue 4326 ;; 4327 nosideeffect) 4328 # After this tag, mechanisms are not by side-effect, so they'll 4329 # only be used when explicitly requested. 4330 if test "x$enable_dependency_tracking" = xyes; then 4331 continue 4332 else 4333 break 4334 fi 4335 ;; 4336 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4337 # This compiler won't grok '-c -o', but also, the minuso test has 4338 # not run yet. These depmodes are late enough in the game, and 4339 # so weak that their functioning should not be impacted. 4340 am__obj=conftest.${OBJEXT-o} 4341 am__minus_obj= 4342 ;; 4343 none) break ;; 4344 esac 4345 if depmode=$depmode \ 4346 source=sub/conftest.c object=$am__obj \ 4347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4349 >/dev/null 2>conftest.err && 4350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4354 # icc doesn't choke on unknown options, it will just issue warnings 4355 # or remarks (even with -Werror). So we grep stderr for any message 4356 # that says an option was ignored or not supported. 4357 # When given -MP, icc 7.0 and 7.1 complain thusly: 4358 # icc: Command line warning: ignoring option '-M'; no argument required 4359 # The diagnosis changed in icc 8.0: 4360 # icc: Command line remark: option '-MP' not supported 4361 if (grep 'ignoring option' conftest.err || 4362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4363 am_cv_CC_dependencies_compiler_type=$depmode 4364 break 4365 fi 4366 fi 4367 done 4368 4369 cd .. 4370 rm -rf conftest.dir 4371else 4372 am_cv_CC_dependencies_compiler_type=none 4373fi 4374 4375fi 4376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4377printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4378CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4379 4380 if 4381 test "x$enable_dependency_tracking" != xno \ 4382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4383 am__fastdepCC_TRUE= 4384 am__fastdepCC_FALSE='#' 4385else 4386 am__fastdepCC_TRUE='#' 4387 am__fastdepCC_FALSE= 4388fi 4389 4390 4391 4392 4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4394printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4395if test ${ac_cv_c_undeclared_builtin_options+y} 4396then : 4397 printf %s "(cached) " >&6 4398else $as_nop 4399 ac_save_CFLAGS=$CFLAGS 4400 ac_cv_c_undeclared_builtin_options='cannot detect' 4401 for ac_arg in '' -fno-builtin; do 4402 CFLAGS="$ac_save_CFLAGS $ac_arg" 4403 # This test program should *not* compile successfully. 4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4405/* end confdefs.h. */ 4406 4407int 4408main (void) 4409{ 4410(void) strchr; 4411 ; 4412 return 0; 4413} 4414_ACEOF 4415if ac_fn_c_try_compile "$LINENO" 4416then : 4417 4418else $as_nop 4419 # This test program should compile successfully. 4420 # No library function is consistently available on 4421 # freestanding implementations, so test against a dummy 4422 # declaration. Include always-available headers on the 4423 # off chance that they somehow elicit warnings. 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425/* end confdefs.h. */ 4426#include <float.h> 4427#include <limits.h> 4428#include <stdarg.h> 4429#include <stddef.h> 4430extern void ac_decl (int, char *); 4431 4432int 4433main (void) 4434{ 4435(void) ac_decl (0, (char *) 0); 4436 (void) ac_decl; 4437 4438 ; 4439 return 0; 4440} 4441_ACEOF 4442if ac_fn_c_try_compile "$LINENO" 4443then : 4444 if test x"$ac_arg" = x 4445then : 4446 ac_cv_c_undeclared_builtin_options='none needed' 4447else $as_nop 4448 ac_cv_c_undeclared_builtin_options=$ac_arg 4449fi 4450 break 4451fi 4452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4453fi 4454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4455 done 4456 CFLAGS=$ac_save_CFLAGS 4457 4458fi 4459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4460printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4461 case $ac_cv_c_undeclared_builtin_options in #( 4462 'cannot detect') : 4463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4464printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4465as_fn_error $? "cannot make $CC report undeclared builtins 4466See \`config.log' for more details" "$LINENO" 5; } ;; #( 4467 'none needed') : 4468 ac_c_undeclared_builtin_options='' ;; #( 4469 *) : 4470 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4471esac 4472 4473ac_header= ac_cache= 4474for ac_item in $ac_header_c_list 4475do 4476 if test $ac_cache; then 4477 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4478 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4479 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4480 fi 4481 ac_header= ac_cache= 4482 elif test $ac_header; then 4483 ac_cache=$ac_item 4484 else 4485 ac_header=$ac_item 4486 fi 4487done 4488 4489 4490 4491 4492 4493 4494 4495 4496if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4497then : 4498 4499printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4500 4501fi 4502 4503 4504 4505 4506ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4507if test "x$ac_cv_have_decl___clang__" = xyes 4508then : 4509 CLANGCC="yes" 4510else $as_nop 4511 CLANGCC="no" 4512fi 4513ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4514if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4515then : 4516 INTELCC="yes" 4517else $as_nop 4518 INTELCC="no" 4519fi 4520ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4521if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4522then : 4523 SUNCC="yes" 4524else $as_nop 4525 SUNCC="no" 4526fi 4527 4528 4529 4530 4531 4532 4533 4534 4535if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4536 if test -n "$ac_tool_prefix"; then 4537 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4538set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4540printf %s "checking for $ac_word... " >&6; } 4541if test ${ac_cv_path_PKG_CONFIG+y} 4542then : 4543 printf %s "(cached) " >&6 4544else $as_nop 4545 case $PKG_CONFIG in 4546 [\\/]* | ?:[\\/]*) 4547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4548 ;; 4549 *) 4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551for as_dir in $PATH 4552do 4553 IFS=$as_save_IFS 4554 case $as_dir in #((( 4555 '') as_dir=./ ;; 4556 */) ;; 4557 *) as_dir=$as_dir/ ;; 4558 esac 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4561 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4563 break 2 4564 fi 4565done 4566 done 4567IFS=$as_save_IFS 4568 4569 ;; 4570esac 4571fi 4572PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4573if test -n "$PKG_CONFIG"; then 4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4575printf "%s\n" "$PKG_CONFIG" >&6; } 4576else 4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578printf "%s\n" "no" >&6; } 4579fi 4580 4581 4582fi 4583if test -z "$ac_cv_path_PKG_CONFIG"; then 4584 ac_pt_PKG_CONFIG=$PKG_CONFIG 4585 # Extract the first word of "pkg-config", so it can be a program name with args. 4586set dummy pkg-config; ac_word=$2 4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4588printf %s "checking for $ac_word... " >&6; } 4589if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4590then : 4591 printf %s "(cached) " >&6 4592else $as_nop 4593 case $ac_pt_PKG_CONFIG in 4594 [\\/]* | ?:[\\/]*) 4595 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4596 ;; 4597 *) 4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH 4600do 4601 IFS=$as_save_IFS 4602 case $as_dir in #((( 4603 '') as_dir=./ ;; 4604 */) ;; 4605 *) as_dir=$as_dir/ ;; 4606 esac 4607 for ac_exec_ext in '' $ac_executable_extensions; do 4608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4609 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4611 break 2 4612 fi 4613done 4614 done 4615IFS=$as_save_IFS 4616 4617 ;; 4618esac 4619fi 4620ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4621if test -n "$ac_pt_PKG_CONFIG"; then 4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4623printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4624else 4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626printf "%s\n" "no" >&6; } 4627fi 4628 4629 if test "x$ac_pt_PKG_CONFIG" = x; then 4630 PKG_CONFIG="" 4631 else 4632 case $cross_compiling:$ac_tool_warned in 4633yes:) 4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4636ac_tool_warned=yes ;; 4637esac 4638 PKG_CONFIG=$ac_pt_PKG_CONFIG 4639 fi 4640else 4641 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4642fi 4643 4644fi 4645if test -n "$PKG_CONFIG"; then 4646 _pkg_min_version=0.9.0 4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4648printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4649 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4651printf "%s\n" "yes" >&6; } 4652 else 4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4654printf "%s\n" "no" >&6; } 4655 PKG_CONFIG="" 4656 fi 4657fi 4658 4659 4660 # Make sure we can run config.sub. 4661$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4662 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4663 4664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4665printf %s "checking build system type... " >&6; } 4666if test ${ac_cv_build+y} 4667then : 4668 printf %s "(cached) " >&6 4669else $as_nop 4670 ac_build_alias=$build_alias 4671test "x$ac_build_alias" = x && 4672 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4673test "x$ac_build_alias" = x && 4674 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4675ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4676 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4677 4678fi 4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4680printf "%s\n" "$ac_cv_build" >&6; } 4681case $ac_cv_build in 4682*-*-*) ;; 4683*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4684esac 4685build=$ac_cv_build 4686ac_save_IFS=$IFS; IFS='-' 4687set x $ac_cv_build 4688shift 4689build_cpu=$1 4690build_vendor=$2 4691shift; shift 4692# Remember, the first character of IFS is used to create $*, 4693# except with old shells: 4694build_os=$* 4695IFS=$ac_save_IFS 4696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4697 4698 4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4700printf %s "checking host system type... " >&6; } 4701if test ${ac_cv_host+y} 4702then : 4703 printf %s "(cached) " >&6 4704else $as_nop 4705 if test "x$host_alias" = x; then 4706 ac_cv_host=$ac_cv_build 4707else 4708 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4709 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4710fi 4711 4712fi 4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4714printf "%s\n" "$ac_cv_host" >&6; } 4715case $ac_cv_host in 4716*-*-*) ;; 4717*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4718esac 4719host=$ac_cv_host 4720ac_save_IFS=$IFS; IFS='-' 4721set x $ac_cv_host 4722shift 4723host_cpu=$1 4724host_vendor=$2 4725shift; shift 4726# Remember, the first character of IFS is used to create $*, 4727# except with old shells: 4728host_os=$* 4729IFS=$ac_save_IFS 4730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4731 4732 4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4734printf %s "checking for a sed that does not truncate output... " >&6; } 4735if test ${ac_cv_path_SED+y} 4736then : 4737 printf %s "(cached) " >&6 4738else $as_nop 4739 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4740 for ac_i in 1 2 3 4 5 6 7; do 4741 ac_script="$ac_script$as_nl$ac_script" 4742 done 4743 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4744 { ac_script=; unset ac_script;} 4745 if test -z "$SED"; then 4746 ac_path_SED_found=false 4747 # Loop through the user's path and test for each of PROGNAME-LIST 4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4749for as_dir in $PATH 4750do 4751 IFS=$as_save_IFS 4752 case $as_dir in #((( 4753 '') as_dir=./ ;; 4754 */) ;; 4755 *) as_dir=$as_dir/ ;; 4756 esac 4757 for ac_prog in sed gsed 4758 do 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4761 as_fn_executable_p "$ac_path_SED" || continue 4762# Check for GNU ac_path_SED and select it if it is found. 4763 # Check for GNU $ac_path_SED 4764case `"$ac_path_SED" --version 2>&1` in 4765*GNU*) 4766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4767*) 4768 ac_count=0 4769 printf %s 0123456789 >"conftest.in" 4770 while : 4771 do 4772 cat "conftest.in" "conftest.in" >"conftest.tmp" 4773 mv "conftest.tmp" "conftest.in" 4774 cp "conftest.in" "conftest.nl" 4775 printf "%s\n" '' >> "conftest.nl" 4776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4778 as_fn_arith $ac_count + 1 && ac_count=$as_val 4779 if test $ac_count -gt ${ac_path_SED_max-0}; then 4780 # Best one so far, save it but keep looking for a better one 4781 ac_cv_path_SED="$ac_path_SED" 4782 ac_path_SED_max=$ac_count 4783 fi 4784 # 10*(2^10) chars as input seems more than enough 4785 test $ac_count -gt 10 && break 4786 done 4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4788esac 4789 4790 $ac_path_SED_found && break 3 4791 done 4792 done 4793 done 4794IFS=$as_save_IFS 4795 if test -z "$ac_cv_path_SED"; then 4796 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4797 fi 4798else 4799 ac_cv_path_SED=$SED 4800fi 4801 4802fi 4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4804printf "%s\n" "$ac_cv_path_SED" >&6; } 4805 SED="$ac_cv_path_SED" 4806 rm -f conftest.sed 4807 4808 4809 4810 4811 4812 4813# Check whether --enable-selective-werror was given. 4814if test ${enable_selective_werror+y} 4815then : 4816 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4817else $as_nop 4818 SELECTIVE_WERROR=yes 4819fi 4820 4821 4822 4823 4824 4825# -v is too short to test reliably with XORG_TESTSET_CFLAG 4826if test "x$SUNCC" = "xyes"; then 4827 BASE_CFLAGS="-v" 4828else 4829 BASE_CFLAGS="" 4830fi 4831 4832# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846xorg_testset_save_CFLAGS="$CFLAGS" 4847 4848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4852if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4853then : 4854 printf %s "(cached) " >&6 4855else $as_nop 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4857/* end confdefs.h. */ 4858int i; 4859_ACEOF 4860if ac_fn_c_try_compile "$LINENO" 4861then : 4862 xorg_cv_cc_flag_unknown_warning_option=yes 4863else $as_nop 4864 xorg_cv_cc_flag_unknown_warning_option=no 4865fi 4866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4867fi 4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4871 CFLAGS="$xorg_testset_save_CFLAGS" 4872fi 4873 4874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4877 fi 4878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4881if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4882then : 4883 printf %s "(cached) " >&6 4884else $as_nop 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887int i; 4888_ACEOF 4889if ac_fn_c_try_compile "$LINENO" 4890then : 4891 xorg_cv_cc_flag_unused_command_line_argument=yes 4892else $as_nop 4893 xorg_cv_cc_flag_unused_command_line_argument=no 4894fi 4895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4896fi 4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4900 CFLAGS="$xorg_testset_save_CFLAGS" 4901fi 4902 4903found="no" 4904 4905 if test $found = "no" ; then 4906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4908 fi 4909 4910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4912 fi 4913 4914 CFLAGS="$CFLAGS -Wall" 4915 4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4917printf %s "checking if $CC supports -Wall... " >&6; } 4918 cacheid=xorg_cv_cc_flag__Wall 4919 if eval test \${$cacheid+y} 4920then : 4921 printf %s "(cached) " >&6 4922else $as_nop 4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4924/* end confdefs.h. */ 4925int i; 4926int 4927main (void) 4928{ 4929 4930 ; 4931 return 0; 4932} 4933_ACEOF 4934if ac_fn_c_try_link "$LINENO" 4935then : 4936 eval $cacheid=yes 4937else $as_nop 4938 eval $cacheid=no 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4941 conftest$ac_exeext conftest.$ac_ext 4942fi 4943 4944 4945 CFLAGS="$xorg_testset_save_CFLAGS" 4946 4947 eval supported=\$$cacheid 4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4949printf "%s\n" "$supported" >&6; } 4950 if test "$supported" = "yes" ; then 4951 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4952 found="yes" 4953 fi 4954 fi 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970xorg_testset_save_CFLAGS="$CFLAGS" 4971 4972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4977then : 4978 printf %s "(cached) " >&6 4979else $as_nop 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982int i; 4983_ACEOF 4984if ac_fn_c_try_compile "$LINENO" 4985then : 4986 xorg_cv_cc_flag_unknown_warning_option=yes 4987else $as_nop 4988 xorg_cv_cc_flag_unknown_warning_option=no 4989fi 4990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4991fi 4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4995 CFLAGS="$xorg_testset_save_CFLAGS" 4996fi 4997 4998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001 fi 5002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5006then : 5007 printf %s "(cached) " >&6 5008else $as_nop 5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5010/* end confdefs.h. */ 5011int i; 5012_ACEOF 5013if ac_fn_c_try_compile "$LINENO" 5014then : 5015 xorg_cv_cc_flag_unused_command_line_argument=yes 5016else $as_nop 5017 xorg_cv_cc_flag_unused_command_line_argument=no 5018fi 5019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5020fi 5021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5024 CFLAGS="$xorg_testset_save_CFLAGS" 5025fi 5026 5027found="no" 5028 5029 if test $found = "no" ; then 5030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 fi 5033 5034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5036 fi 5037 5038 CFLAGS="$CFLAGS -Wpointer-arith" 5039 5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5041printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5042 cacheid=xorg_cv_cc_flag__Wpointer_arith 5043 if eval test \${$cacheid+y} 5044then : 5045 printf %s "(cached) " >&6 5046else $as_nop 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049int i; 5050int 5051main (void) 5052{ 5053 5054 ; 5055 return 0; 5056} 5057_ACEOF 5058if ac_fn_c_try_link "$LINENO" 5059then : 5060 eval $cacheid=yes 5061else $as_nop 5062 eval $cacheid=no 5063fi 5064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5065 conftest$ac_exeext conftest.$ac_ext 5066fi 5067 5068 5069 CFLAGS="$xorg_testset_save_CFLAGS" 5070 5071 eval supported=\$$cacheid 5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5073printf "%s\n" "$supported" >&6; } 5074 if test "$supported" = "yes" ; then 5075 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5076 found="yes" 5077 fi 5078 fi 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094xorg_testset_save_CFLAGS="$CFLAGS" 5095 5096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5100if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5101then : 5102 printf %s "(cached) " >&6 5103else $as_nop 5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5105/* end confdefs.h. */ 5106int i; 5107_ACEOF 5108if ac_fn_c_try_compile "$LINENO" 5109then : 5110 xorg_cv_cc_flag_unknown_warning_option=yes 5111else $as_nop 5112 xorg_cv_cc_flag_unknown_warning_option=no 5113fi 5114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5115fi 5116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5119 CFLAGS="$xorg_testset_save_CFLAGS" 5120fi 5121 5122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5125 fi 5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5130then : 5131 printf %s "(cached) " >&6 5132else $as_nop 5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5134/* end confdefs.h. */ 5135int i; 5136_ACEOF 5137if ac_fn_c_try_compile "$LINENO" 5138then : 5139 xorg_cv_cc_flag_unused_command_line_argument=yes 5140else $as_nop 5141 xorg_cv_cc_flag_unused_command_line_argument=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5144fi 5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149fi 5150 5151found="no" 5152 5153 if test $found = "no" ; then 5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 fi 5157 5158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5160 fi 5161 5162 CFLAGS="$CFLAGS -Wmissing-declarations" 5163 5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5165printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5166 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5167 if eval test \${$cacheid+y} 5168then : 5169 printf %s "(cached) " >&6 5170else $as_nop 5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173int i; 5174int 5175main (void) 5176{ 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182if ac_fn_c_try_link "$LINENO" 5183then : 5184 eval $cacheid=yes 5185else $as_nop 5186 eval $cacheid=no 5187fi 5188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5189 conftest$ac_exeext conftest.$ac_ext 5190fi 5191 5192 5193 CFLAGS="$xorg_testset_save_CFLAGS" 5194 5195 eval supported=\$$cacheid 5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5197printf "%s\n" "$supported" >&6; } 5198 if test "$supported" = "yes" ; then 5199 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5200 found="yes" 5201 fi 5202 fi 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218xorg_testset_save_CFLAGS="$CFLAGS" 5219 5220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5225then : 5226 printf %s "(cached) " >&6 5227else $as_nop 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229/* end confdefs.h. */ 5230int i; 5231_ACEOF 5232if ac_fn_c_try_compile "$LINENO" 5233then : 5234 xorg_cv_cc_flag_unknown_warning_option=yes 5235else $as_nop 5236 xorg_cv_cc_flag_unknown_warning_option=no 5237fi 5238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5239fi 5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5243 CFLAGS="$xorg_testset_save_CFLAGS" 5244fi 5245 5246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 fi 5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5254then : 5255 printf %s "(cached) " >&6 5256else $as_nop 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258/* end confdefs.h. */ 5259int i; 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO" 5262then : 5263 xorg_cv_cc_flag_unused_command_line_argument=yes 5264else $as_nop 5265 xorg_cv_cc_flag_unused_command_line_argument=no 5266fi 5267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5268fi 5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5272 CFLAGS="$xorg_testset_save_CFLAGS" 5273fi 5274 5275found="no" 5276 5277 if test $found = "no" ; then 5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5280 fi 5281 5282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5284 fi 5285 5286 CFLAGS="$CFLAGS -Wformat=2" 5287 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5289printf %s "checking if $CC supports -Wformat=2... " >&6; } 5290 cacheid=xorg_cv_cc_flag__Wformat_2 5291 if eval test \${$cacheid+y} 5292then : 5293 printf %s "(cached) " >&6 5294else $as_nop 5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5296/* end confdefs.h. */ 5297int i; 5298int 5299main (void) 5300{ 5301 5302 ; 5303 return 0; 5304} 5305_ACEOF 5306if ac_fn_c_try_link "$LINENO" 5307then : 5308 eval $cacheid=yes 5309else $as_nop 5310 eval $cacheid=no 5311fi 5312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5313 conftest$ac_exeext conftest.$ac_ext 5314fi 5315 5316 5317 CFLAGS="$xorg_testset_save_CFLAGS" 5318 5319 eval supported=\$$cacheid 5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5321printf "%s\n" "$supported" >&6; } 5322 if test "$supported" = "yes" ; then 5323 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5324 found="yes" 5325 fi 5326 fi 5327 5328 if test $found = "no" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 5333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5335 fi 5336 5337 CFLAGS="$CFLAGS -Wformat" 5338 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5340printf %s "checking if $CC supports -Wformat... " >&6; } 5341 cacheid=xorg_cv_cc_flag__Wformat 5342 if eval test \${$cacheid+y} 5343then : 5344 printf %s "(cached) " >&6 5345else $as_nop 5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347/* end confdefs.h. */ 5348int i; 5349int 5350main (void) 5351{ 5352 5353 ; 5354 return 0; 5355} 5356_ACEOF 5357if ac_fn_c_try_link "$LINENO" 5358then : 5359 eval $cacheid=yes 5360else $as_nop 5361 eval $cacheid=no 5362fi 5363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5364 conftest$ac_exeext conftest.$ac_ext 5365fi 5366 5367 5368 CFLAGS="$xorg_testset_save_CFLAGS" 5369 5370 eval supported=\$$cacheid 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5372printf "%s\n" "$supported" >&6; } 5373 if test "$supported" = "yes" ; then 5374 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5375 found="yes" 5376 fi 5377 fi 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395xorg_testset_save_CFLAGS="$CFLAGS" 5396 5397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5401if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5402then : 5403 printf %s "(cached) " >&6 5404else $as_nop 5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5406/* end confdefs.h. */ 5407int i; 5408_ACEOF 5409if ac_fn_c_try_compile "$LINENO" 5410then : 5411 xorg_cv_cc_flag_unknown_warning_option=yes 5412else $as_nop 5413 xorg_cv_cc_flag_unknown_warning_option=no 5414fi 5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5416fi 5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5420 CFLAGS="$xorg_testset_save_CFLAGS" 5421fi 5422 5423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5426 fi 5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5430if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5431then : 5432 printf %s "(cached) " >&6 5433else $as_nop 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435/* end confdefs.h. */ 5436int i; 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO" 5439then : 5440 xorg_cv_cc_flag_unused_command_line_argument=yes 5441else $as_nop 5442 xorg_cv_cc_flag_unused_command_line_argument=no 5443fi 5444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5445fi 5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5449 CFLAGS="$xorg_testset_save_CFLAGS" 5450fi 5451 5452found="no" 5453 5454 if test $found = "no" ; then 5455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5457 fi 5458 5459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5461 fi 5462 5463 CFLAGS="$CFLAGS -Wstrict-prototypes" 5464 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5466printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5467 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5468 if eval test \${$cacheid+y} 5469then : 5470 printf %s "(cached) " >&6 5471else $as_nop 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474int i; 5475int 5476main (void) 5477{ 5478 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483if ac_fn_c_try_link "$LINENO" 5484then : 5485 eval $cacheid=yes 5486else $as_nop 5487 eval $cacheid=no 5488fi 5489rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5490 conftest$ac_exeext conftest.$ac_ext 5491fi 5492 5493 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495 5496 eval supported=\$$cacheid 5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5498printf "%s\n" "$supported" >&6; } 5499 if test "$supported" = "yes" ; then 5500 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5501 found="yes" 5502 fi 5503 fi 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519xorg_testset_save_CFLAGS="$CFLAGS" 5520 5521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5525if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5526then : 5527 printf %s "(cached) " >&6 5528else $as_nop 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531int i; 5532_ACEOF 5533if ac_fn_c_try_compile "$LINENO" 5534then : 5535 xorg_cv_cc_flag_unknown_warning_option=yes 5536else $as_nop 5537 xorg_cv_cc_flag_unknown_warning_option=no 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5540fi 5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545fi 5546 5547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5550 fi 5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5554if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5555then : 5556 printf %s "(cached) " >&6 5557else $as_nop 5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5559/* end confdefs.h. */ 5560int i; 5561_ACEOF 5562if ac_fn_c_try_compile "$LINENO" 5563then : 5564 xorg_cv_cc_flag_unused_command_line_argument=yes 5565else $as_nop 5566 xorg_cv_cc_flag_unused_command_line_argument=no 5567fi 5568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5569fi 5570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5573 CFLAGS="$xorg_testset_save_CFLAGS" 5574fi 5575 5576found="no" 5577 5578 if test $found = "no" ; then 5579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5581 fi 5582 5583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5585 fi 5586 5587 CFLAGS="$CFLAGS -Wmissing-prototypes" 5588 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5590printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5591 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5592 if eval test \${$cacheid+y} 5593then : 5594 printf %s "(cached) " >&6 5595else $as_nop 5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598int i; 5599int 5600main (void) 5601{ 5602 5603 ; 5604 return 0; 5605} 5606_ACEOF 5607if ac_fn_c_try_link "$LINENO" 5608then : 5609 eval $cacheid=yes 5610else $as_nop 5611 eval $cacheid=no 5612fi 5613rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5614 conftest$ac_exeext conftest.$ac_ext 5615fi 5616 5617 5618 CFLAGS="$xorg_testset_save_CFLAGS" 5619 5620 eval supported=\$$cacheid 5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5622printf "%s\n" "$supported" >&6; } 5623 if test "$supported" = "yes" ; then 5624 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5625 found="yes" 5626 fi 5627 fi 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643xorg_testset_save_CFLAGS="$CFLAGS" 5644 5645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5649if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5650then : 5651 printf %s "(cached) " >&6 5652else $as_nop 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655int i; 5656_ACEOF 5657if ac_fn_c_try_compile "$LINENO" 5658then : 5659 xorg_cv_cc_flag_unknown_warning_option=yes 5660else $as_nop 5661 xorg_cv_cc_flag_unknown_warning_option=no 5662fi 5663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5664fi 5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5668 CFLAGS="$xorg_testset_save_CFLAGS" 5669fi 5670 5671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5674 fi 5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5678if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5679then : 5680 printf %s "(cached) " >&6 5681else $as_nop 5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5683/* end confdefs.h. */ 5684int i; 5685_ACEOF 5686if ac_fn_c_try_compile "$LINENO" 5687then : 5688 xorg_cv_cc_flag_unused_command_line_argument=yes 5689else $as_nop 5690 xorg_cv_cc_flag_unused_command_line_argument=no 5691fi 5692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5693fi 5694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5697 CFLAGS="$xorg_testset_save_CFLAGS" 5698fi 5699 5700found="no" 5701 5702 if test $found = "no" ; then 5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5705 fi 5706 5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 fi 5710 5711 CFLAGS="$CFLAGS -Wnested-externs" 5712 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5714printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5715 cacheid=xorg_cv_cc_flag__Wnested_externs 5716 if eval test \${$cacheid+y} 5717then : 5718 printf %s "(cached) " >&6 5719else $as_nop 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723int 5724main (void) 5725{ 5726 5727 ; 5728 return 0; 5729} 5730_ACEOF 5731if ac_fn_c_try_link "$LINENO" 5732then : 5733 eval $cacheid=yes 5734else $as_nop 5735 eval $cacheid=no 5736fi 5737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5738 conftest$ac_exeext conftest.$ac_ext 5739fi 5740 5741 5742 CFLAGS="$xorg_testset_save_CFLAGS" 5743 5744 eval supported=\$$cacheid 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5746printf "%s\n" "$supported" >&6; } 5747 if test "$supported" = "yes" ; then 5748 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5749 found="yes" 5750 fi 5751 fi 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767xorg_testset_save_CFLAGS="$CFLAGS" 5768 5769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5773if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5774then : 5775 printf %s "(cached) " >&6 5776else $as_nop 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780_ACEOF 5781if ac_fn_c_try_compile "$LINENO" 5782then : 5783 xorg_cv_cc_flag_unknown_warning_option=yes 5784else $as_nop 5785 xorg_cv_cc_flag_unknown_warning_option=no 5786fi 5787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5788fi 5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5792 CFLAGS="$xorg_testset_save_CFLAGS" 5793fi 5794 5795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5798 fi 5799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5802if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5803then : 5804 printf %s "(cached) " >&6 5805else $as_nop 5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5807/* end confdefs.h. */ 5808int i; 5809_ACEOF 5810if ac_fn_c_try_compile "$LINENO" 5811then : 5812 xorg_cv_cc_flag_unused_command_line_argument=yes 5813else $as_nop 5814 xorg_cv_cc_flag_unused_command_line_argument=no 5815fi 5816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5817fi 5818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5821 CFLAGS="$xorg_testset_save_CFLAGS" 5822fi 5823 5824found="no" 5825 5826 if test $found = "no" ; then 5827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 fi 5830 5831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5833 fi 5834 5835 CFLAGS="$CFLAGS -Wbad-function-cast" 5836 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5838printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5839 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5840 if eval test \${$cacheid+y} 5841then : 5842 printf %s "(cached) " >&6 5843else $as_nop 5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5845/* end confdefs.h. */ 5846int i; 5847int 5848main (void) 5849{ 5850 5851 ; 5852 return 0; 5853} 5854_ACEOF 5855if ac_fn_c_try_link "$LINENO" 5856then : 5857 eval $cacheid=yes 5858else $as_nop 5859 eval $cacheid=no 5860fi 5861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5862 conftest$ac_exeext conftest.$ac_ext 5863fi 5864 5865 5866 CFLAGS="$xorg_testset_save_CFLAGS" 5867 5868 eval supported=\$$cacheid 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5870printf "%s\n" "$supported" >&6; } 5871 if test "$supported" = "yes" ; then 5872 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5873 found="yes" 5874 fi 5875 fi 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891xorg_testset_save_CFLAGS="$CFLAGS" 5892 5893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5896printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5897if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5898then : 5899 printf %s "(cached) " >&6 5900else $as_nop 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903int i; 5904_ACEOF 5905if ac_fn_c_try_compile "$LINENO" 5906then : 5907 xorg_cv_cc_flag_unknown_warning_option=yes 5908else $as_nop 5909 xorg_cv_cc_flag_unknown_warning_option=no 5910fi 5911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5912fi 5913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917fi 5918 5919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5922 fi 5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5926if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5927then : 5928 printf %s "(cached) " >&6 5929else $as_nop 5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5931/* end confdefs.h. */ 5932int i; 5933_ACEOF 5934if ac_fn_c_try_compile "$LINENO" 5935then : 5936 xorg_cv_cc_flag_unused_command_line_argument=yes 5937else $as_nop 5938 xorg_cv_cc_flag_unused_command_line_argument=no 5939fi 5940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5941fi 5942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5943printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5945 CFLAGS="$xorg_testset_save_CFLAGS" 5946fi 5947 5948found="no" 5949 5950 if test $found = "no" ; then 5951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5953 fi 5954 5955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5957 fi 5958 5959 CFLAGS="$CFLAGS -Wold-style-definition" 5960 5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5962printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5963 cacheid=xorg_cv_cc_flag__Wold_style_definition 5964 if eval test \${$cacheid+y} 5965then : 5966 printf %s "(cached) " >&6 5967else $as_nop 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970int i; 5971int 5972main (void) 5973{ 5974 5975 ; 5976 return 0; 5977} 5978_ACEOF 5979if ac_fn_c_try_link "$LINENO" 5980then : 5981 eval $cacheid=yes 5982else $as_nop 5983 eval $cacheid=no 5984fi 5985rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5986 conftest$ac_exeext conftest.$ac_ext 5987fi 5988 5989 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991 5992 eval supported=\$$cacheid 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5994printf "%s\n" "$supported" >&6; } 5995 if test "$supported" = "yes" ; then 5996 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5997 found="yes" 5998 fi 5999 fi 6000 6001 if test $found = "no" ; then 6002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6004 fi 6005 6006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6008 fi 6009 6010 CFLAGS="$CFLAGS -fd" 6011 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6013printf %s "checking if $CC supports -fd... " >&6; } 6014 cacheid=xorg_cv_cc_flag__fd 6015 if eval test \${$cacheid+y} 6016then : 6017 printf %s "(cached) " >&6 6018else $as_nop 6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6020/* end confdefs.h. */ 6021int i; 6022int 6023main (void) 6024{ 6025 6026 ; 6027 return 0; 6028} 6029_ACEOF 6030if ac_fn_c_try_link "$LINENO" 6031then : 6032 eval $cacheid=yes 6033else $as_nop 6034 eval $cacheid=no 6035fi 6036rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6037 conftest$ac_exeext conftest.$ac_ext 6038fi 6039 6040 6041 CFLAGS="$xorg_testset_save_CFLAGS" 6042 6043 eval supported=\$$cacheid 6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6045printf "%s\n" "$supported" >&6; } 6046 if test "$supported" = "yes" ; then 6047 BASE_CFLAGS="$BASE_CFLAGS -fd" 6048 found="yes" 6049 fi 6050 fi 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066xorg_testset_save_CFLAGS="$CFLAGS" 6067 6068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6072if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6073then : 6074 printf %s "(cached) " >&6 6075else $as_nop 6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077/* end confdefs.h. */ 6078int i; 6079_ACEOF 6080if ac_fn_c_try_compile "$LINENO" 6081then : 6082 xorg_cv_cc_flag_unknown_warning_option=yes 6083else $as_nop 6084 xorg_cv_cc_flag_unknown_warning_option=no 6085fi 6086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6087fi 6088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6091 CFLAGS="$xorg_testset_save_CFLAGS" 6092fi 6093 6094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6097 fi 6098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6101if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6102then : 6103 printf %s "(cached) " >&6 6104else $as_nop 6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107int i; 6108_ACEOF 6109if ac_fn_c_try_compile "$LINENO" 6110then : 6111 xorg_cv_cc_flag_unused_command_line_argument=yes 6112else $as_nop 6113 xorg_cv_cc_flag_unused_command_line_argument=no 6114fi 6115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6116fi 6117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121fi 6122 6123found="no" 6124 6125 if test $found = "no" ; then 6126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6128 fi 6129 6130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6132 fi 6133 6134 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6135 6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6137printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6138 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6139 if eval test \${$cacheid+y} 6140then : 6141 printf %s "(cached) " >&6 6142else $as_nop 6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6144/* end confdefs.h. */ 6145int i; 6146int 6147main (void) 6148{ 6149 6150 ; 6151 return 0; 6152} 6153_ACEOF 6154if ac_fn_c_try_link "$LINENO" 6155then : 6156 eval $cacheid=yes 6157else $as_nop 6158 eval $cacheid=no 6159fi 6160rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6161 conftest$ac_exeext conftest.$ac_ext 6162fi 6163 6164 6165 CFLAGS="$xorg_testset_save_CFLAGS" 6166 6167 eval supported=\$$cacheid 6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6169printf "%s\n" "$supported" >&6; } 6170 if test "$supported" = "yes" ; then 6171 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6172 found="yes" 6173 fi 6174 fi 6175 6176 6177 6178 6179 6180# This chunk adds additional warnings that could catch undesired effects. 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194xorg_testset_save_CFLAGS="$CFLAGS" 6195 6196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6200if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6201then : 6202 printf %s "(cached) " >&6 6203else $as_nop 6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205/* end confdefs.h. */ 6206int i; 6207_ACEOF 6208if ac_fn_c_try_compile "$LINENO" 6209then : 6210 xorg_cv_cc_flag_unknown_warning_option=yes 6211else $as_nop 6212 xorg_cv_cc_flag_unknown_warning_option=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6215fi 6216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220fi 6221 6222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6225 fi 6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6229if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6230then : 6231 printf %s "(cached) " >&6 6232else $as_nop 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234/* end confdefs.h. */ 6235int i; 6236_ACEOF 6237if ac_fn_c_try_compile "$LINENO" 6238then : 6239 xorg_cv_cc_flag_unused_command_line_argument=yes 6240else $as_nop 6241 xorg_cv_cc_flag_unused_command_line_argument=no 6242fi 6243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6244fi 6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6248 CFLAGS="$xorg_testset_save_CFLAGS" 6249fi 6250 6251found="no" 6252 6253 if test $found = "no" ; then 6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6256 fi 6257 6258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6260 fi 6261 6262 CFLAGS="$CFLAGS -Wunused" 6263 6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6265printf %s "checking if $CC supports -Wunused... " >&6; } 6266 cacheid=xorg_cv_cc_flag__Wunused 6267 if eval test \${$cacheid+y} 6268then : 6269 printf %s "(cached) " >&6 6270else $as_nop 6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272/* end confdefs.h. */ 6273int i; 6274int 6275main (void) 6276{ 6277 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282if ac_fn_c_try_link "$LINENO" 6283then : 6284 eval $cacheid=yes 6285else $as_nop 6286 eval $cacheid=no 6287fi 6288rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6289 conftest$ac_exeext conftest.$ac_ext 6290fi 6291 6292 6293 CFLAGS="$xorg_testset_save_CFLAGS" 6294 6295 eval supported=\$$cacheid 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6297printf "%s\n" "$supported" >&6; } 6298 if test "$supported" = "yes" ; then 6299 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6300 found="yes" 6301 fi 6302 fi 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318xorg_testset_save_CFLAGS="$CFLAGS" 6319 6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6325then : 6326 printf %s "(cached) " >&6 6327else $as_nop 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330int i; 6331_ACEOF 6332if ac_fn_c_try_compile "$LINENO" 6333then : 6334 xorg_cv_cc_flag_unknown_warning_option=yes 6335else $as_nop 6336 xorg_cv_cc_flag_unknown_warning_option=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6339fi 6340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344fi 6345 6346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 fi 6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6353if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6354then : 6355 printf %s "(cached) " >&6 6356else $as_nop 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359int i; 6360_ACEOF 6361if ac_fn_c_try_compile "$LINENO" 6362then : 6363 xorg_cv_cc_flag_unused_command_line_argument=yes 6364else $as_nop 6365 xorg_cv_cc_flag_unused_command_line_argument=no 6366fi 6367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6368fi 6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6372 CFLAGS="$xorg_testset_save_CFLAGS" 6373fi 6374 6375found="no" 6376 6377 if test $found = "no" ; then 6378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6380 fi 6381 6382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6384 fi 6385 6386 CFLAGS="$CFLAGS -Wuninitialized" 6387 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6389printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6390 cacheid=xorg_cv_cc_flag__Wuninitialized 6391 if eval test \${$cacheid+y} 6392then : 6393 printf %s "(cached) " >&6 6394else $as_nop 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396/* end confdefs.h. */ 6397int i; 6398int 6399main (void) 6400{ 6401 6402 ; 6403 return 0; 6404} 6405_ACEOF 6406if ac_fn_c_try_link "$LINENO" 6407then : 6408 eval $cacheid=yes 6409else $as_nop 6410 eval $cacheid=no 6411fi 6412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6413 conftest$ac_exeext conftest.$ac_ext 6414fi 6415 6416 6417 CFLAGS="$xorg_testset_save_CFLAGS" 6418 6419 eval supported=\$$cacheid 6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6421printf "%s\n" "$supported" >&6; } 6422 if test "$supported" = "yes" ; then 6423 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6424 found="yes" 6425 fi 6426 fi 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442xorg_testset_save_CFLAGS="$CFLAGS" 6443 6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6448if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6449then : 6450 printf %s "(cached) " >&6 6451else $as_nop 6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454int i; 6455_ACEOF 6456if ac_fn_c_try_compile "$LINENO" 6457then : 6458 xorg_cv_cc_flag_unknown_warning_option=yes 6459else $as_nop 6460 xorg_cv_cc_flag_unknown_warning_option=no 6461fi 6462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6463fi 6464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6467 CFLAGS="$xorg_testset_save_CFLAGS" 6468fi 6469 6470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6473 fi 6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6478then : 6479 printf %s "(cached) " >&6 6480else $as_nop 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484_ACEOF 6485if ac_fn_c_try_compile "$LINENO" 6486then : 6487 xorg_cv_cc_flag_unused_command_line_argument=yes 6488else $as_nop 6489 xorg_cv_cc_flag_unused_command_line_argument=no 6490fi 6491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6492fi 6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6496 CFLAGS="$xorg_testset_save_CFLAGS" 6497fi 6498 6499found="no" 6500 6501 if test $found = "no" ; then 6502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6504 fi 6505 6506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6508 fi 6509 6510 CFLAGS="$CFLAGS -Wshadow" 6511 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6513printf %s "checking if $CC supports -Wshadow... " >&6; } 6514 cacheid=xorg_cv_cc_flag__Wshadow 6515 if eval test \${$cacheid+y} 6516then : 6517 printf %s "(cached) " >&6 6518else $as_nop 6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6520/* end confdefs.h. */ 6521int i; 6522int 6523main (void) 6524{ 6525 6526 ; 6527 return 0; 6528} 6529_ACEOF 6530if ac_fn_c_try_link "$LINENO" 6531then : 6532 eval $cacheid=yes 6533else $as_nop 6534 eval $cacheid=no 6535fi 6536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6537 conftest$ac_exeext conftest.$ac_ext 6538fi 6539 6540 6541 CFLAGS="$xorg_testset_save_CFLAGS" 6542 6543 eval supported=\$$cacheid 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6545printf "%s\n" "$supported" >&6; } 6546 if test "$supported" = "yes" ; then 6547 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6548 found="yes" 6549 fi 6550 fi 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566xorg_testset_save_CFLAGS="$CFLAGS" 6567 6568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6573then : 6574 printf %s "(cached) " >&6 6575else $as_nop 6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6577/* end confdefs.h. */ 6578int i; 6579_ACEOF 6580if ac_fn_c_try_compile "$LINENO" 6581then : 6582 xorg_cv_cc_flag_unknown_warning_option=yes 6583else $as_nop 6584 xorg_cv_cc_flag_unknown_warning_option=no 6585fi 6586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6587fi 6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592fi 6593 6594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6597 fi 6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6601if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6602then : 6603 printf %s "(cached) " >&6 6604else $as_nop 6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607int i; 6608_ACEOF 6609if ac_fn_c_try_compile "$LINENO" 6610then : 6611 xorg_cv_cc_flag_unused_command_line_argument=yes 6612else $as_nop 6613 xorg_cv_cc_flag_unused_command_line_argument=no 6614fi 6615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6616fi 6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6620 CFLAGS="$xorg_testset_save_CFLAGS" 6621fi 6622 6623found="no" 6624 6625 if test $found = "no" ; then 6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 fi 6629 6630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6632 fi 6633 6634 CFLAGS="$CFLAGS -Wmissing-noreturn" 6635 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6637printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6638 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6639 if eval test \${$cacheid+y} 6640then : 6641 printf %s "(cached) " >&6 6642else $as_nop 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644/* end confdefs.h. */ 6645int i; 6646int 6647main (void) 6648{ 6649 6650 ; 6651 return 0; 6652} 6653_ACEOF 6654if ac_fn_c_try_link "$LINENO" 6655then : 6656 eval $cacheid=yes 6657else $as_nop 6658 eval $cacheid=no 6659fi 6660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6661 conftest$ac_exeext conftest.$ac_ext 6662fi 6663 6664 6665 CFLAGS="$xorg_testset_save_CFLAGS" 6666 6667 eval supported=\$$cacheid 6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6669printf "%s\n" "$supported" >&6; } 6670 if test "$supported" = "yes" ; then 6671 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6672 found="yes" 6673 fi 6674 fi 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690xorg_testset_save_CFLAGS="$CFLAGS" 6691 6692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6696if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6697then : 6698 printf %s "(cached) " >&6 6699else $as_nop 6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6701/* end confdefs.h. */ 6702int i; 6703_ACEOF 6704if ac_fn_c_try_compile "$LINENO" 6705then : 6706 xorg_cv_cc_flag_unknown_warning_option=yes 6707else $as_nop 6708 xorg_cv_cc_flag_unknown_warning_option=no 6709fi 6710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6711fi 6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6715 CFLAGS="$xorg_testset_save_CFLAGS" 6716fi 6717 6718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 fi 6722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6725if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6726then : 6727 printf %s "(cached) " >&6 6728else $as_nop 6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6730/* end confdefs.h. */ 6731int i; 6732_ACEOF 6733if ac_fn_c_try_compile "$LINENO" 6734then : 6735 xorg_cv_cc_flag_unused_command_line_argument=yes 6736else $as_nop 6737 xorg_cv_cc_flag_unused_command_line_argument=no 6738fi 6739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6740fi 6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6744 CFLAGS="$xorg_testset_save_CFLAGS" 6745fi 6746 6747found="no" 6748 6749 if test $found = "no" ; then 6750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6752 fi 6753 6754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6756 fi 6757 6758 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6759 6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6761printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6762 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6763 if eval test \${$cacheid+y} 6764then : 6765 printf %s "(cached) " >&6 6766else $as_nop 6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6768/* end confdefs.h. */ 6769int i; 6770int 6771main (void) 6772{ 6773 6774 ; 6775 return 0; 6776} 6777_ACEOF 6778if ac_fn_c_try_link "$LINENO" 6779then : 6780 eval $cacheid=yes 6781else $as_nop 6782 eval $cacheid=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6785 conftest$ac_exeext conftest.$ac_ext 6786fi 6787 6788 6789 CFLAGS="$xorg_testset_save_CFLAGS" 6790 6791 eval supported=\$$cacheid 6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6793printf "%s\n" "$supported" >&6; } 6794 if test "$supported" = "yes" ; then 6795 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6796 found="yes" 6797 fi 6798 fi 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814xorg_testset_save_CFLAGS="$CFLAGS" 6815 6816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6820if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6821then : 6822 printf %s "(cached) " >&6 6823else $as_nop 6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6825/* end confdefs.h. */ 6826int i; 6827_ACEOF 6828if ac_fn_c_try_compile "$LINENO" 6829then : 6830 xorg_cv_cc_flag_unknown_warning_option=yes 6831else $as_nop 6832 xorg_cv_cc_flag_unknown_warning_option=no 6833fi 6834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6835fi 6836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6839 CFLAGS="$xorg_testset_save_CFLAGS" 6840fi 6841 6842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6845 fi 6846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6850then : 6851 printf %s "(cached) " >&6 6852else $as_nop 6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6854/* end confdefs.h. */ 6855int i; 6856_ACEOF 6857if ac_fn_c_try_compile "$LINENO" 6858then : 6859 xorg_cv_cc_flag_unused_command_line_argument=yes 6860else $as_nop 6861 xorg_cv_cc_flag_unused_command_line_argument=no 6862fi 6863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6864fi 6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6868 CFLAGS="$xorg_testset_save_CFLAGS" 6869fi 6870 6871found="no" 6872 6873 if test $found = "no" ; then 6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6876 fi 6877 6878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6880 fi 6881 6882 CFLAGS="$CFLAGS -Wredundant-decls" 6883 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6885printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6886 cacheid=xorg_cv_cc_flag__Wredundant_decls 6887 if eval test \${$cacheid+y} 6888then : 6889 printf %s "(cached) " >&6 6890else $as_nop 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893int i; 6894int 6895main (void) 6896{ 6897 6898 ; 6899 return 0; 6900} 6901_ACEOF 6902if ac_fn_c_try_link "$LINENO" 6903then : 6904 eval $cacheid=yes 6905else $as_nop 6906 eval $cacheid=no 6907fi 6908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6909 conftest$ac_exeext conftest.$ac_ext 6910fi 6911 6912 6913 CFLAGS="$xorg_testset_save_CFLAGS" 6914 6915 eval supported=\$$cacheid 6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6917printf "%s\n" "$supported" >&6; } 6918 if test "$supported" = "yes" ; then 6919 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6920 found="yes" 6921 fi 6922 fi 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938xorg_testset_save_CFLAGS="$CFLAGS" 6939 6940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6945then : 6946 printf %s "(cached) " >&6 6947else $as_nop 6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6949/* end confdefs.h. */ 6950int i; 6951_ACEOF 6952if ac_fn_c_try_compile "$LINENO" 6953then : 6954 xorg_cv_cc_flag_unknown_warning_option=yes 6955else $as_nop 6956 xorg_cv_cc_flag_unknown_warning_option=no 6957fi 6958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6959fi 6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6963 CFLAGS="$xorg_testset_save_CFLAGS" 6964fi 6965 6966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6974then : 6975 printf %s "(cached) " >&6 6976else $as_nop 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978/* end confdefs.h. */ 6979int i; 6980_ACEOF 6981if ac_fn_c_try_compile "$LINENO" 6982then : 6983 xorg_cv_cc_flag_unused_command_line_argument=yes 6984else $as_nop 6985 xorg_cv_cc_flag_unused_command_line_argument=no 6986fi 6987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6988fi 6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6992 CFLAGS="$xorg_testset_save_CFLAGS" 6993fi 6994 6995found="no" 6996 6997 if test $found = "no" ; then 6998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7000 fi 7001 7002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7004 fi 7005 7006 CFLAGS="$CFLAGS -Wlogical-op" 7007 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7009printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7010 cacheid=xorg_cv_cc_flag__Wlogical_op 7011 if eval test \${$cacheid+y} 7012then : 7013 printf %s "(cached) " >&6 7014else $as_nop 7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7016/* end confdefs.h. */ 7017int i; 7018int 7019main (void) 7020{ 7021 7022 ; 7023 return 0; 7024} 7025_ACEOF 7026if ac_fn_c_try_link "$LINENO" 7027then : 7028 eval $cacheid=yes 7029else $as_nop 7030 eval $cacheid=no 7031fi 7032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7033 conftest$ac_exeext conftest.$ac_ext 7034fi 7035 7036 7037 CFLAGS="$xorg_testset_save_CFLAGS" 7038 7039 eval supported=\$$cacheid 7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7041printf "%s\n" "$supported" >&6; } 7042 if test "$supported" = "yes" ; then 7043 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7044 found="yes" 7045 fi 7046 fi 7047 7048 7049 7050# These are currently disabled because they are noisy. They will be enabled 7051# in the future once the codebase is sufficiently modernized to silence 7052# them. For now, I don't want them to drown out the other warnings. 7053# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7054# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7055# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7056 7057# Turn some warnings into errors, so we don't accidently get successful builds 7058# when there are problems that should be fixed. 7059 7060if test "x$SELECTIVE_WERROR" = "xyes" ; then 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074xorg_testset_save_CFLAGS="$CFLAGS" 7075 7076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7080if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7081then : 7082 printf %s "(cached) " >&6 7083else $as_nop 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086int i; 7087_ACEOF 7088if ac_fn_c_try_compile "$LINENO" 7089then : 7090 xorg_cv_cc_flag_unknown_warning_option=yes 7091else $as_nop 7092 xorg_cv_cc_flag_unknown_warning_option=no 7093fi 7094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7095fi 7096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7099 CFLAGS="$xorg_testset_save_CFLAGS" 7100fi 7101 7102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7105 fi 7106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7109if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7110then : 7111 printf %s "(cached) " >&6 7112else $as_nop 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114/* end confdefs.h. */ 7115int i; 7116_ACEOF 7117if ac_fn_c_try_compile "$LINENO" 7118then : 7119 xorg_cv_cc_flag_unused_command_line_argument=yes 7120else $as_nop 7121 xorg_cv_cc_flag_unused_command_line_argument=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7124fi 7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7128 CFLAGS="$xorg_testset_save_CFLAGS" 7129fi 7130 7131found="no" 7132 7133 if test $found = "no" ; then 7134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 fi 7137 7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7140 fi 7141 7142 CFLAGS="$CFLAGS -Werror=implicit" 7143 7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7145printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7146 cacheid=xorg_cv_cc_flag__Werror_implicit 7147 if eval test \${$cacheid+y} 7148then : 7149 printf %s "(cached) " >&6 7150else $as_nop 7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7152/* end confdefs.h. */ 7153int i; 7154int 7155main (void) 7156{ 7157 7158 ; 7159 return 0; 7160} 7161_ACEOF 7162if ac_fn_c_try_link "$LINENO" 7163then : 7164 eval $cacheid=yes 7165else $as_nop 7166 eval $cacheid=no 7167fi 7168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7169 conftest$ac_exeext conftest.$ac_ext 7170fi 7171 7172 7173 CFLAGS="$xorg_testset_save_CFLAGS" 7174 7175 eval supported=\$$cacheid 7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7177printf "%s\n" "$supported" >&6; } 7178 if test "$supported" = "yes" ; then 7179 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7180 found="yes" 7181 fi 7182 fi 7183 7184 if test $found = "no" ; then 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 fi 7188 7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7191 fi 7192 7193 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7194 7195 { 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 7196printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7197 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7198 if eval test \${$cacheid+y} 7199then : 7200 printf %s "(cached) " >&6 7201else $as_nop 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204int i; 7205int 7206main (void) 7207{ 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213if ac_fn_c_try_link "$LINENO" 7214then : 7215 eval $cacheid=yes 7216else $as_nop 7217 eval $cacheid=no 7218fi 7219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7220 conftest$ac_exeext conftest.$ac_ext 7221fi 7222 7223 7224 CFLAGS="$xorg_testset_save_CFLAGS" 7225 7226 eval supported=\$$cacheid 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7228printf "%s\n" "$supported" >&6; } 7229 if test "$supported" = "yes" ; then 7230 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7231 found="yes" 7232 fi 7233 fi 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249xorg_testset_save_CFLAGS="$CFLAGS" 7250 7251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7255if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7256then : 7257 printf %s "(cached) " >&6 7258else $as_nop 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261int i; 7262_ACEOF 7263if ac_fn_c_try_compile "$LINENO" 7264then : 7265 xorg_cv_cc_flag_unknown_warning_option=yes 7266else $as_nop 7267 xorg_cv_cc_flag_unknown_warning_option=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7270fi 7271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275fi 7276 7277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7280 fi 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7284if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7285then : 7286 printf %s "(cached) " >&6 7287else $as_nop 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290int i; 7291_ACEOF 7292if ac_fn_c_try_compile "$LINENO" 7293then : 7294 xorg_cv_cc_flag_unused_command_line_argument=yes 7295else $as_nop 7296 xorg_cv_cc_flag_unused_command_line_argument=no 7297fi 7298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7299fi 7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7303 CFLAGS="$xorg_testset_save_CFLAGS" 7304fi 7305 7306found="no" 7307 7308 if test $found = "no" ; then 7309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7311 fi 7312 7313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7315 fi 7316 7317 CFLAGS="$CFLAGS -Werror=nonnull" 7318 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7320printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7321 cacheid=xorg_cv_cc_flag__Werror_nonnull 7322 if eval test \${$cacheid+y} 7323then : 7324 printf %s "(cached) " >&6 7325else $as_nop 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327/* end confdefs.h. */ 7328int i; 7329int 7330main (void) 7331{ 7332 7333 ; 7334 return 0; 7335} 7336_ACEOF 7337if ac_fn_c_try_link "$LINENO" 7338then : 7339 eval $cacheid=yes 7340else $as_nop 7341 eval $cacheid=no 7342fi 7343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7344 conftest$ac_exeext conftest.$ac_ext 7345fi 7346 7347 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349 7350 eval supported=\$$cacheid 7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7352printf "%s\n" "$supported" >&6; } 7353 if test "$supported" = "yes" ; then 7354 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7355 found="yes" 7356 fi 7357 fi 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373xorg_testset_save_CFLAGS="$CFLAGS" 7374 7375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7379if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7380then : 7381 printf %s "(cached) " >&6 7382else $as_nop 7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7384/* end confdefs.h. */ 7385int i; 7386_ACEOF 7387if ac_fn_c_try_compile "$LINENO" 7388then : 7389 xorg_cv_cc_flag_unknown_warning_option=yes 7390else $as_nop 7391 xorg_cv_cc_flag_unknown_warning_option=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7394fi 7395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7398 CFLAGS="$xorg_testset_save_CFLAGS" 7399fi 7400 7401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7404 fi 7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7408if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7409then : 7410 printf %s "(cached) " >&6 7411else $as_nop 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413/* end confdefs.h. */ 7414int i; 7415_ACEOF 7416if ac_fn_c_try_compile "$LINENO" 7417then : 7418 xorg_cv_cc_flag_unused_command_line_argument=yes 7419else $as_nop 7420 xorg_cv_cc_flag_unused_command_line_argument=no 7421fi 7422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7423fi 7424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7427 CFLAGS="$xorg_testset_save_CFLAGS" 7428fi 7429 7430found="no" 7431 7432 if test $found = "no" ; then 7433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7435 fi 7436 7437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7439 fi 7440 7441 CFLAGS="$CFLAGS -Werror=init-self" 7442 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7444printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7445 cacheid=xorg_cv_cc_flag__Werror_init_self 7446 if eval test \${$cacheid+y} 7447then : 7448 printf %s "(cached) " >&6 7449else $as_nop 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453int 7454main (void) 7455{ 7456 7457 ; 7458 return 0; 7459} 7460_ACEOF 7461if ac_fn_c_try_link "$LINENO" 7462then : 7463 eval $cacheid=yes 7464else $as_nop 7465 eval $cacheid=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7468 conftest$ac_exeext conftest.$ac_ext 7469fi 7470 7471 7472 CFLAGS="$xorg_testset_save_CFLAGS" 7473 7474 eval supported=\$$cacheid 7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7476printf "%s\n" "$supported" >&6; } 7477 if test "$supported" = "yes" ; then 7478 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7479 found="yes" 7480 fi 7481 fi 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497xorg_testset_save_CFLAGS="$CFLAGS" 7498 7499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7503if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7504then : 7505 printf %s "(cached) " >&6 7506else $as_nop 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO" 7512then : 7513 xorg_cv_cc_flag_unknown_warning_option=yes 7514else $as_nop 7515 xorg_cv_cc_flag_unknown_warning_option=no 7516fi 7517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7518fi 7519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7522 CFLAGS="$xorg_testset_save_CFLAGS" 7523fi 7524 7525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7528 fi 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7533then : 7534 printf %s "(cached) " >&6 7535else $as_nop 7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7537/* end confdefs.h. */ 7538int i; 7539_ACEOF 7540if ac_fn_c_try_compile "$LINENO" 7541then : 7542 xorg_cv_cc_flag_unused_command_line_argument=yes 7543else $as_nop 7544 xorg_cv_cc_flag_unused_command_line_argument=no 7545fi 7546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7547fi 7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552fi 7553 7554found="no" 7555 7556 if test $found = "no" ; then 7557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7559 fi 7560 7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 fi 7564 7565 CFLAGS="$CFLAGS -Werror=main" 7566 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7568printf %s "checking if $CC supports -Werror=main... " >&6; } 7569 cacheid=xorg_cv_cc_flag__Werror_main 7570 if eval test \${$cacheid+y} 7571then : 7572 printf %s "(cached) " >&6 7573else $as_nop 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576int i; 7577int 7578main (void) 7579{ 7580 7581 ; 7582 return 0; 7583} 7584_ACEOF 7585if ac_fn_c_try_link "$LINENO" 7586then : 7587 eval $cacheid=yes 7588else $as_nop 7589 eval $cacheid=no 7590fi 7591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7592 conftest$ac_exeext conftest.$ac_ext 7593fi 7594 7595 7596 CFLAGS="$xorg_testset_save_CFLAGS" 7597 7598 eval supported=\$$cacheid 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7600printf "%s\n" "$supported" >&6; } 7601 if test "$supported" = "yes" ; then 7602 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7603 found="yes" 7604 fi 7605 fi 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621xorg_testset_save_CFLAGS="$CFLAGS" 7622 7623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7628then : 7629 printf %s "(cached) " >&6 7630else $as_nop 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633int i; 7634_ACEOF 7635if ac_fn_c_try_compile "$LINENO" 7636then : 7637 xorg_cv_cc_flag_unknown_warning_option=yes 7638else $as_nop 7639 xorg_cv_cc_flag_unknown_warning_option=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7642fi 7643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647fi 7648 7649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7652 fi 7653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7656if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7657then : 7658 printf %s "(cached) " >&6 7659else $as_nop 7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7661/* end confdefs.h. */ 7662int i; 7663_ACEOF 7664if ac_fn_c_try_compile "$LINENO" 7665then : 7666 xorg_cv_cc_flag_unused_command_line_argument=yes 7667else $as_nop 7668 xorg_cv_cc_flag_unused_command_line_argument=no 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7671fi 7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7675 CFLAGS="$xorg_testset_save_CFLAGS" 7676fi 7677 7678found="no" 7679 7680 if test $found = "no" ; then 7681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7683 fi 7684 7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7687 fi 7688 7689 CFLAGS="$CFLAGS -Werror=missing-braces" 7690 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7692printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7693 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7694 if eval test \${$cacheid+y} 7695then : 7696 printf %s "(cached) " >&6 7697else $as_nop 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699/* end confdefs.h. */ 7700int i; 7701int 7702main (void) 7703{ 7704 7705 ; 7706 return 0; 7707} 7708_ACEOF 7709if ac_fn_c_try_link "$LINENO" 7710then : 7711 eval $cacheid=yes 7712else $as_nop 7713 eval $cacheid=no 7714fi 7715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7716 conftest$ac_exeext conftest.$ac_ext 7717fi 7718 7719 7720 CFLAGS="$xorg_testset_save_CFLAGS" 7721 7722 eval supported=\$$cacheid 7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7724printf "%s\n" "$supported" >&6; } 7725 if test "$supported" = "yes" ; then 7726 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7727 found="yes" 7728 fi 7729 fi 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745xorg_testset_save_CFLAGS="$CFLAGS" 7746 7747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7751if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7752then : 7753 printf %s "(cached) " >&6 7754else $as_nop 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7756/* end confdefs.h. */ 7757int i; 7758_ACEOF 7759if ac_fn_c_try_compile "$LINENO" 7760then : 7761 xorg_cv_cc_flag_unknown_warning_option=yes 7762else $as_nop 7763 xorg_cv_cc_flag_unknown_warning_option=no 7764fi 7765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7766fi 7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7770 CFLAGS="$xorg_testset_save_CFLAGS" 7771fi 7772 7773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7776 fi 7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7780if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7781then : 7782 printf %s "(cached) " >&6 7783else $as_nop 7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7785/* end confdefs.h. */ 7786int i; 7787_ACEOF 7788if ac_fn_c_try_compile "$LINENO" 7789then : 7790 xorg_cv_cc_flag_unused_command_line_argument=yes 7791else $as_nop 7792 xorg_cv_cc_flag_unused_command_line_argument=no 7793fi 7794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7795fi 7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7799 CFLAGS="$xorg_testset_save_CFLAGS" 7800fi 7801 7802found="no" 7803 7804 if test $found = "no" ; then 7805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7807 fi 7808 7809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7811 fi 7812 7813 CFLAGS="$CFLAGS -Werror=sequence-point" 7814 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7816printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7817 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7818 if eval test \${$cacheid+y} 7819then : 7820 printf %s "(cached) " >&6 7821else $as_nop 7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7823/* end confdefs.h. */ 7824int i; 7825int 7826main (void) 7827{ 7828 7829 ; 7830 return 0; 7831} 7832_ACEOF 7833if ac_fn_c_try_link "$LINENO" 7834then : 7835 eval $cacheid=yes 7836else $as_nop 7837 eval $cacheid=no 7838fi 7839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7840 conftest$ac_exeext conftest.$ac_ext 7841fi 7842 7843 7844 CFLAGS="$xorg_testset_save_CFLAGS" 7845 7846 eval supported=\$$cacheid 7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7848printf "%s\n" "$supported" >&6; } 7849 if test "$supported" = "yes" ; then 7850 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7851 found="yes" 7852 fi 7853 fi 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869xorg_testset_save_CFLAGS="$CFLAGS" 7870 7871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7876then : 7877 printf %s "(cached) " >&6 7878else $as_nop 7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7880/* end confdefs.h. */ 7881int i; 7882_ACEOF 7883if ac_fn_c_try_compile "$LINENO" 7884then : 7885 xorg_cv_cc_flag_unknown_warning_option=yes 7886else $as_nop 7887 xorg_cv_cc_flag_unknown_warning_option=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7890fi 7891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895fi 7896 7897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7900 fi 7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7904if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7905then : 7906 printf %s "(cached) " >&6 7907else $as_nop 7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909/* end confdefs.h. */ 7910int i; 7911_ACEOF 7912if ac_fn_c_try_compile "$LINENO" 7913then : 7914 xorg_cv_cc_flag_unused_command_line_argument=yes 7915else $as_nop 7916 xorg_cv_cc_flag_unused_command_line_argument=no 7917fi 7918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7919fi 7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7923 CFLAGS="$xorg_testset_save_CFLAGS" 7924fi 7925 7926found="no" 7927 7928 if test $found = "no" ; then 7929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7931 fi 7932 7933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7935 fi 7936 7937 CFLAGS="$CFLAGS -Werror=return-type" 7938 7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7940printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7941 cacheid=xorg_cv_cc_flag__Werror_return_type 7942 if eval test \${$cacheid+y} 7943then : 7944 printf %s "(cached) " >&6 7945else $as_nop 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949int 7950main (void) 7951{ 7952 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957if ac_fn_c_try_link "$LINENO" 7958then : 7959 eval $cacheid=yes 7960else $as_nop 7961 eval $cacheid=no 7962fi 7963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7964 conftest$ac_exeext conftest.$ac_ext 7965fi 7966 7967 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7969 7970 eval supported=\$$cacheid 7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7972printf "%s\n" "$supported" >&6; } 7973 if test "$supported" = "yes" ; then 7974 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7975 found="yes" 7976 fi 7977 fi 7978 7979 if test $found = "no" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7986 fi 7987 7988 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7989 7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7991printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7992 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7993 if eval test \${$cacheid+y} 7994then : 7995 printf %s "(cached) " >&6 7996else $as_nop 7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998/* end confdefs.h. */ 7999int i; 8000int 8001main (void) 8002{ 8003 8004 ; 8005 return 0; 8006} 8007_ACEOF 8008if ac_fn_c_try_link "$LINENO" 8009then : 8010 eval $cacheid=yes 8011else $as_nop 8012 eval $cacheid=no 8013fi 8014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8015 conftest$ac_exeext conftest.$ac_ext 8016fi 8017 8018 8019 CFLAGS="$xorg_testset_save_CFLAGS" 8020 8021 eval supported=\$$cacheid 8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8023printf "%s\n" "$supported" >&6; } 8024 if test "$supported" = "yes" ; then 8025 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8026 found="yes" 8027 fi 8028 fi 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044xorg_testset_save_CFLAGS="$CFLAGS" 8045 8046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8050if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8051then : 8052 printf %s "(cached) " >&6 8053else $as_nop 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056int i; 8057_ACEOF 8058if ac_fn_c_try_compile "$LINENO" 8059then : 8060 xorg_cv_cc_flag_unknown_warning_option=yes 8061else $as_nop 8062 xorg_cv_cc_flag_unknown_warning_option=no 8063fi 8064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8065fi 8066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8069 CFLAGS="$xorg_testset_save_CFLAGS" 8070fi 8071 8072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 fi 8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8079if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8080then : 8081 printf %s "(cached) " >&6 8082else $as_nop 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086_ACEOF 8087if ac_fn_c_try_compile "$LINENO" 8088then : 8089 xorg_cv_cc_flag_unused_command_line_argument=yes 8090else $as_nop 8091 xorg_cv_cc_flag_unused_command_line_argument=no 8092fi 8093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8094fi 8095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8098 CFLAGS="$xorg_testset_save_CFLAGS" 8099fi 8100 8101found="no" 8102 8103 if test $found = "no" ; then 8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8106 fi 8107 8108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8110 fi 8111 8112 CFLAGS="$CFLAGS -Werror=trigraphs" 8113 8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8115printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8116 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8117 if eval test \${$cacheid+y} 8118then : 8119 printf %s "(cached) " >&6 8120else $as_nop 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8122/* end confdefs.h. */ 8123int i; 8124int 8125main (void) 8126{ 8127 8128 ; 8129 return 0; 8130} 8131_ACEOF 8132if ac_fn_c_try_link "$LINENO" 8133then : 8134 eval $cacheid=yes 8135else $as_nop 8136 eval $cacheid=no 8137fi 8138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8139 conftest$ac_exeext conftest.$ac_ext 8140fi 8141 8142 8143 CFLAGS="$xorg_testset_save_CFLAGS" 8144 8145 eval supported=\$$cacheid 8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8147printf "%s\n" "$supported" >&6; } 8148 if test "$supported" = "yes" ; then 8149 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8150 found="yes" 8151 fi 8152 fi 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168xorg_testset_save_CFLAGS="$CFLAGS" 8169 8170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8174if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8175then : 8176 printf %s "(cached) " >&6 8177else $as_nop 8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8179/* end confdefs.h. */ 8180int i; 8181_ACEOF 8182if ac_fn_c_try_compile "$LINENO" 8183then : 8184 xorg_cv_cc_flag_unknown_warning_option=yes 8185else $as_nop 8186 xorg_cv_cc_flag_unknown_warning_option=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8189fi 8190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194fi 8195 8196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 fi 8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8203if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8204then : 8205 printf %s "(cached) " >&6 8206else $as_nop 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208/* end confdefs.h. */ 8209int i; 8210_ACEOF 8211if ac_fn_c_try_compile "$LINENO" 8212then : 8213 xorg_cv_cc_flag_unused_command_line_argument=yes 8214else $as_nop 8215 xorg_cv_cc_flag_unused_command_line_argument=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8218fi 8219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8222 CFLAGS="$xorg_testset_save_CFLAGS" 8223fi 8224 8225found="no" 8226 8227 if test $found = "no" ; then 8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8230 fi 8231 8232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8234 fi 8235 8236 CFLAGS="$CFLAGS -Werror=array-bounds" 8237 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8239printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8240 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8241 if eval test \${$cacheid+y} 8242then : 8243 printf %s "(cached) " >&6 8244else $as_nop 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246/* end confdefs.h. */ 8247int i; 8248int 8249main (void) 8250{ 8251 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256if ac_fn_c_try_link "$LINENO" 8257then : 8258 eval $cacheid=yes 8259else $as_nop 8260 eval $cacheid=no 8261fi 8262rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8263 conftest$ac_exeext conftest.$ac_ext 8264fi 8265 8266 8267 CFLAGS="$xorg_testset_save_CFLAGS" 8268 8269 eval supported=\$$cacheid 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8271printf "%s\n" "$supported" >&6; } 8272 if test "$supported" = "yes" ; then 8273 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8274 found="yes" 8275 fi 8276 fi 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292xorg_testset_save_CFLAGS="$CFLAGS" 8293 8294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8298if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8299then : 8300 printf %s "(cached) " >&6 8301else $as_nop 8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8303/* end confdefs.h. */ 8304int i; 8305_ACEOF 8306if ac_fn_c_try_compile "$LINENO" 8307then : 8308 xorg_cv_cc_flag_unknown_warning_option=yes 8309else $as_nop 8310 xorg_cv_cc_flag_unknown_warning_option=no 8311fi 8312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8313fi 8314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318fi 8319 8320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 fi 8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8327if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8328then : 8329 printf %s "(cached) " >&6 8330else $as_nop 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO" 8336then : 8337 xorg_cv_cc_flag_unused_command_line_argument=yes 8338else $as_nop 8339 xorg_cv_cc_flag_unused_command_line_argument=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8342fi 8343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8344printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8346 CFLAGS="$xorg_testset_save_CFLAGS" 8347fi 8348 8349found="no" 8350 8351 if test $found = "no" ; then 8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8354 fi 8355 8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8358 fi 8359 8360 CFLAGS="$CFLAGS -Werror=write-strings" 8361 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8363printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8364 cacheid=xorg_cv_cc_flag__Werror_write_strings 8365 if eval test \${$cacheid+y} 8366then : 8367 printf %s "(cached) " >&6 8368else $as_nop 8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370/* end confdefs.h. */ 8371int i; 8372int 8373main (void) 8374{ 8375 8376 ; 8377 return 0; 8378} 8379_ACEOF 8380if ac_fn_c_try_link "$LINENO" 8381then : 8382 eval $cacheid=yes 8383else $as_nop 8384 eval $cacheid=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8387 conftest$ac_exeext conftest.$ac_ext 8388fi 8389 8390 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392 8393 eval supported=\$$cacheid 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8395printf "%s\n" "$supported" >&6; } 8396 if test "$supported" = "yes" ; then 8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8398 found="yes" 8399 fi 8400 fi 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416xorg_testset_save_CFLAGS="$CFLAGS" 8417 8418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8422if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8423then : 8424 printf %s "(cached) " >&6 8425else $as_nop 8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8427/* end confdefs.h. */ 8428int i; 8429_ACEOF 8430if ac_fn_c_try_compile "$LINENO" 8431then : 8432 xorg_cv_cc_flag_unknown_warning_option=yes 8433else $as_nop 8434 xorg_cv_cc_flag_unknown_warning_option=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8437fi 8438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8439printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442fi 8443 8444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8447 fi 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8450printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8451if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8452then : 8453 printf %s "(cached) " >&6 8454else $as_nop 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8456/* end confdefs.h. */ 8457int i; 8458_ACEOF 8459if ac_fn_c_try_compile "$LINENO" 8460then : 8461 xorg_cv_cc_flag_unused_command_line_argument=yes 8462else $as_nop 8463 xorg_cv_cc_flag_unused_command_line_argument=no 8464fi 8465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8466fi 8467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8468printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8470 CFLAGS="$xorg_testset_save_CFLAGS" 8471fi 8472 8473found="no" 8474 8475 if test $found = "no" ; then 8476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8478 fi 8479 8480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8482 fi 8483 8484 CFLAGS="$CFLAGS -Werror=address" 8485 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8487printf %s "checking if $CC supports -Werror=address... " >&6; } 8488 cacheid=xorg_cv_cc_flag__Werror_address 8489 if eval test \${$cacheid+y} 8490then : 8491 printf %s "(cached) " >&6 8492else $as_nop 8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8494/* end confdefs.h. */ 8495int i; 8496int 8497main (void) 8498{ 8499 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504if ac_fn_c_try_link "$LINENO" 8505then : 8506 eval $cacheid=yes 8507else $as_nop 8508 eval $cacheid=no 8509fi 8510rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8511 conftest$ac_exeext conftest.$ac_ext 8512fi 8513 8514 8515 CFLAGS="$xorg_testset_save_CFLAGS" 8516 8517 eval supported=\$$cacheid 8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8519printf "%s\n" "$supported" >&6; } 8520 if test "$supported" = "yes" ; then 8521 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8522 found="yes" 8523 fi 8524 fi 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540xorg_testset_save_CFLAGS="$CFLAGS" 8541 8542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8546if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8547then : 8548 printf %s "(cached) " >&6 8549else $as_nop 8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552int i; 8553_ACEOF 8554if ac_fn_c_try_compile "$LINENO" 8555then : 8556 xorg_cv_cc_flag_unknown_warning_option=yes 8557else $as_nop 8558 xorg_cv_cc_flag_unknown_warning_option=no 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8561fi 8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8565 CFLAGS="$xorg_testset_save_CFLAGS" 8566fi 8567 8568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8571 fi 8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8575if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8576then : 8577 printf %s "(cached) " >&6 8578else $as_nop 8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8580/* end confdefs.h. */ 8581int i; 8582_ACEOF 8583if ac_fn_c_try_compile "$LINENO" 8584then : 8585 xorg_cv_cc_flag_unused_command_line_argument=yes 8586else $as_nop 8587 xorg_cv_cc_flag_unused_command_line_argument=no 8588fi 8589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8590fi 8591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8594 CFLAGS="$xorg_testset_save_CFLAGS" 8595fi 8596 8597found="no" 8598 8599 if test $found = "no" ; then 8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 fi 8603 8604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8606 fi 8607 8608 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8609 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8611printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8612 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8613 if eval test \${$cacheid+y} 8614then : 8615 printf %s "(cached) " >&6 8616else $as_nop 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8618/* end confdefs.h. */ 8619int i; 8620int 8621main (void) 8622{ 8623 8624 ; 8625 return 0; 8626} 8627_ACEOF 8628if ac_fn_c_try_link "$LINENO" 8629then : 8630 eval $cacheid=yes 8631else $as_nop 8632 eval $cacheid=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8635 conftest$ac_exeext conftest.$ac_ext 8636fi 8637 8638 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640 8641 eval supported=\$$cacheid 8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8643printf "%s\n" "$supported" >&6; } 8644 if test "$supported" = "yes" ; then 8645 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8646 found="yes" 8647 fi 8648 fi 8649 8650 if test $found = "no" ; then 8651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8653 fi 8654 8655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8657 fi 8658 8659 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8660 8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8662printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8663 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8664 if eval test \${$cacheid+y} 8665then : 8666 printf %s "(cached) " >&6 8667else $as_nop 8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8669/* end confdefs.h. */ 8670int i; 8671int 8672main (void) 8673{ 8674 8675 ; 8676 return 0; 8677} 8678_ACEOF 8679if ac_fn_c_try_link "$LINENO" 8680then : 8681 eval $cacheid=yes 8682else $as_nop 8683 eval $cacheid=no 8684fi 8685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8686 conftest$ac_exeext conftest.$ac_ext 8687fi 8688 8689 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691 8692 eval supported=\$$cacheid 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8694printf "%s\n" "$supported" >&6; } 8695 if test "$supported" = "yes" ; then 8696 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8697 found="yes" 8698 fi 8699 fi 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715xorg_testset_save_CFLAGS="$CFLAGS" 8716 8717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8721if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8722then : 8723 printf %s "(cached) " >&6 8724else $as_nop 8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8726/* end confdefs.h. */ 8727int i; 8728_ACEOF 8729if ac_fn_c_try_compile "$LINENO" 8730then : 8731 xorg_cv_cc_flag_unknown_warning_option=yes 8732else $as_nop 8733 xorg_cv_cc_flag_unknown_warning_option=no 8734fi 8735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8736fi 8737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8740 CFLAGS="$xorg_testset_save_CFLAGS" 8741fi 8742 8743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 fi 8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8750if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8751then : 8752 printf %s "(cached) " >&6 8753else $as_nop 8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8755/* end confdefs.h. */ 8756int i; 8757_ACEOF 8758if ac_fn_c_try_compile "$LINENO" 8759then : 8760 xorg_cv_cc_flag_unused_command_line_argument=yes 8761else $as_nop 8762 xorg_cv_cc_flag_unused_command_line_argument=no 8763fi 8764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8765fi 8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770fi 8771 8772found="no" 8773 8774 if test $found = "no" ; then 8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 fi 8778 8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8781 fi 8782 8783 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8784 8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8786printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8787 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8788 if eval test \${$cacheid+y} 8789then : 8790 printf %s "(cached) " >&6 8791else $as_nop 8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8793/* end confdefs.h. */ 8794int i; 8795int 8796main (void) 8797{ 8798 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803if ac_fn_c_try_link "$LINENO" 8804then : 8805 eval $cacheid=yes 8806else $as_nop 8807 eval $cacheid=no 8808fi 8809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8810 conftest$ac_exeext conftest.$ac_ext 8811fi 8812 8813 8814 CFLAGS="$xorg_testset_save_CFLAGS" 8815 8816 eval supported=\$$cacheid 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8818printf "%s\n" "$supported" >&6; } 8819 if test "$supported" = "yes" ; then 8820 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8821 found="yes" 8822 fi 8823 fi 8824 8825 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8826else 8827{ 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 8828printf "%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;} 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842xorg_testset_save_CFLAGS="$CFLAGS" 8843 8844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8848if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8849then : 8850 printf %s "(cached) " >&6 8851else $as_nop 8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8853/* end confdefs.h. */ 8854int i; 8855_ACEOF 8856if ac_fn_c_try_compile "$LINENO" 8857then : 8858 xorg_cv_cc_flag_unknown_warning_option=yes 8859else $as_nop 8860 xorg_cv_cc_flag_unknown_warning_option=no 8861fi 8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8863fi 8864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8867 CFLAGS="$xorg_testset_save_CFLAGS" 8868fi 8869 8870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8873 fi 8874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8877if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8878then : 8879 printf %s "(cached) " >&6 8880else $as_nop 8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8882/* end confdefs.h. */ 8883int i; 8884_ACEOF 8885if ac_fn_c_try_compile "$LINENO" 8886then : 8887 xorg_cv_cc_flag_unused_command_line_argument=yes 8888else $as_nop 8889 xorg_cv_cc_flag_unused_command_line_argument=no 8890fi 8891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8892fi 8893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8896 CFLAGS="$xorg_testset_save_CFLAGS" 8897fi 8898 8899found="no" 8900 8901 if test $found = "no" ; then 8902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8904 fi 8905 8906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8908 fi 8909 8910 CFLAGS="$CFLAGS -Wimplicit" 8911 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8913printf %s "checking if $CC supports -Wimplicit... " >&6; } 8914 cacheid=xorg_cv_cc_flag__Wimplicit 8915 if eval test \${$cacheid+y} 8916then : 8917 printf %s "(cached) " >&6 8918else $as_nop 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921int i; 8922int 8923main (void) 8924{ 8925 8926 ; 8927 return 0; 8928} 8929_ACEOF 8930if ac_fn_c_try_link "$LINENO" 8931then : 8932 eval $cacheid=yes 8933else $as_nop 8934 eval $cacheid=no 8935fi 8936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8937 conftest$ac_exeext conftest.$ac_ext 8938fi 8939 8940 8941 CFLAGS="$xorg_testset_save_CFLAGS" 8942 8943 eval supported=\$$cacheid 8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8945printf "%s\n" "$supported" >&6; } 8946 if test "$supported" = "yes" ; then 8947 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8948 found="yes" 8949 fi 8950 fi 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966xorg_testset_save_CFLAGS="$CFLAGS" 8967 8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8973then : 8974 printf %s "(cached) " >&6 8975else $as_nop 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978int i; 8979_ACEOF 8980if ac_fn_c_try_compile "$LINENO" 8981then : 8982 xorg_cv_cc_flag_unknown_warning_option=yes 8983else $as_nop 8984 xorg_cv_cc_flag_unknown_warning_option=no 8985fi 8986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8987fi 8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8991 CFLAGS="$xorg_testset_save_CFLAGS" 8992fi 8993 8994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8997 fi 8998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9002then : 9003 printf %s "(cached) " >&6 9004else $as_nop 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006/* end confdefs.h. */ 9007int i; 9008_ACEOF 9009if ac_fn_c_try_compile "$LINENO" 9010then : 9011 xorg_cv_cc_flag_unused_command_line_argument=yes 9012else $as_nop 9013 xorg_cv_cc_flag_unused_command_line_argument=no 9014fi 9015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9016fi 9017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9020 CFLAGS="$xorg_testset_save_CFLAGS" 9021fi 9022 9023found="no" 9024 9025 if test $found = "no" ; then 9026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9028 fi 9029 9030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9032 fi 9033 9034 CFLAGS="$CFLAGS -Wnonnull" 9035 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9037printf %s "checking if $CC supports -Wnonnull... " >&6; } 9038 cacheid=xorg_cv_cc_flag__Wnonnull 9039 if eval test \${$cacheid+y} 9040then : 9041 printf %s "(cached) " >&6 9042else $as_nop 9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044/* end confdefs.h. */ 9045int i; 9046int 9047main (void) 9048{ 9049 9050 ; 9051 return 0; 9052} 9053_ACEOF 9054if ac_fn_c_try_link "$LINENO" 9055then : 9056 eval $cacheid=yes 9057else $as_nop 9058 eval $cacheid=no 9059fi 9060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9061 conftest$ac_exeext conftest.$ac_ext 9062fi 9063 9064 9065 CFLAGS="$xorg_testset_save_CFLAGS" 9066 9067 eval supported=\$$cacheid 9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9069printf "%s\n" "$supported" >&6; } 9070 if test "$supported" = "yes" ; then 9071 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9072 found="yes" 9073 fi 9074 fi 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090xorg_testset_save_CFLAGS="$CFLAGS" 9091 9092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9097then : 9098 printf %s "(cached) " >&6 9099else $as_nop 9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9101/* end confdefs.h. */ 9102int i; 9103_ACEOF 9104if ac_fn_c_try_compile "$LINENO" 9105then : 9106 xorg_cv_cc_flag_unknown_warning_option=yes 9107else $as_nop 9108 xorg_cv_cc_flag_unknown_warning_option=no 9109fi 9110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9111fi 9112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9115 CFLAGS="$xorg_testset_save_CFLAGS" 9116fi 9117 9118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9121 fi 9122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9126then : 9127 printf %s "(cached) " >&6 9128else $as_nop 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132_ACEOF 9133if ac_fn_c_try_compile "$LINENO" 9134then : 9135 xorg_cv_cc_flag_unused_command_line_argument=yes 9136else $as_nop 9137 xorg_cv_cc_flag_unused_command_line_argument=no 9138fi 9139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9140fi 9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145fi 9146 9147found="no" 9148 9149 if test $found = "no" ; then 9150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9152 fi 9153 9154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9156 fi 9157 9158 CFLAGS="$CFLAGS -Winit-self" 9159 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9161printf %s "checking if $CC supports -Winit-self... " >&6; } 9162 cacheid=xorg_cv_cc_flag__Winit_self 9163 if eval test \${$cacheid+y} 9164then : 9165 printf %s "(cached) " >&6 9166else $as_nop 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170int 9171main (void) 9172{ 9173 9174 ; 9175 return 0; 9176} 9177_ACEOF 9178if ac_fn_c_try_link "$LINENO" 9179then : 9180 eval $cacheid=yes 9181else $as_nop 9182 eval $cacheid=no 9183fi 9184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9185 conftest$ac_exeext conftest.$ac_ext 9186fi 9187 9188 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190 9191 eval supported=\$$cacheid 9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9193printf "%s\n" "$supported" >&6; } 9194 if test "$supported" = "yes" ; then 9195 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9196 found="yes" 9197 fi 9198 fi 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214xorg_testset_save_CFLAGS="$CFLAGS" 9215 9216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9221then : 9222 printf %s "(cached) " >&6 9223else $as_nop 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226int i; 9227_ACEOF 9228if ac_fn_c_try_compile "$LINENO" 9229then : 9230 xorg_cv_cc_flag_unknown_warning_option=yes 9231else $as_nop 9232 xorg_cv_cc_flag_unknown_warning_option=no 9233fi 9234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9235fi 9236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240fi 9241 9242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9245 fi 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9249if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9250then : 9251 printf %s "(cached) " >&6 9252else $as_nop 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255int i; 9256_ACEOF 9257if ac_fn_c_try_compile "$LINENO" 9258then : 9259 xorg_cv_cc_flag_unused_command_line_argument=yes 9260else $as_nop 9261 xorg_cv_cc_flag_unused_command_line_argument=no 9262fi 9263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9264fi 9265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9268 CFLAGS="$xorg_testset_save_CFLAGS" 9269fi 9270 9271found="no" 9272 9273 if test $found = "no" ; then 9274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9276 fi 9277 9278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9280 fi 9281 9282 CFLAGS="$CFLAGS -Wmain" 9283 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9285printf %s "checking if $CC supports -Wmain... " >&6; } 9286 cacheid=xorg_cv_cc_flag__Wmain 9287 if eval test \${$cacheid+y} 9288then : 9289 printf %s "(cached) " >&6 9290else $as_nop 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292/* end confdefs.h. */ 9293int i; 9294int 9295main (void) 9296{ 9297 9298 ; 9299 return 0; 9300} 9301_ACEOF 9302if ac_fn_c_try_link "$LINENO" 9303then : 9304 eval $cacheid=yes 9305else $as_nop 9306 eval $cacheid=no 9307fi 9308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9309 conftest$ac_exeext conftest.$ac_ext 9310fi 9311 9312 9313 CFLAGS="$xorg_testset_save_CFLAGS" 9314 9315 eval supported=\$$cacheid 9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9317printf "%s\n" "$supported" >&6; } 9318 if test "$supported" = "yes" ; then 9319 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9320 found="yes" 9321 fi 9322 fi 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338xorg_testset_save_CFLAGS="$CFLAGS" 9339 9340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9344if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9345then : 9346 printf %s "(cached) " >&6 9347else $as_nop 9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351_ACEOF 9352if ac_fn_c_try_compile "$LINENO" 9353then : 9354 xorg_cv_cc_flag_unknown_warning_option=yes 9355else $as_nop 9356 xorg_cv_cc_flag_unknown_warning_option=no 9357fi 9358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9359fi 9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9363 CFLAGS="$xorg_testset_save_CFLAGS" 9364fi 9365 9366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9369 fi 9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9373if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9374then : 9375 printf %s "(cached) " >&6 9376else $as_nop 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378/* end confdefs.h. */ 9379int i; 9380_ACEOF 9381if ac_fn_c_try_compile "$LINENO" 9382then : 9383 xorg_cv_cc_flag_unused_command_line_argument=yes 9384else $as_nop 9385 xorg_cv_cc_flag_unused_command_line_argument=no 9386fi 9387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9388fi 9389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393fi 9394 9395found="no" 9396 9397 if test $found = "no" ; then 9398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9400 fi 9401 9402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9404 fi 9405 9406 CFLAGS="$CFLAGS -Wmissing-braces" 9407 9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9409printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9410 cacheid=xorg_cv_cc_flag__Wmissing_braces 9411 if eval test \${$cacheid+y} 9412then : 9413 printf %s "(cached) " >&6 9414else $as_nop 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417int i; 9418int 9419main (void) 9420{ 9421 9422 ; 9423 return 0; 9424} 9425_ACEOF 9426if ac_fn_c_try_link "$LINENO" 9427then : 9428 eval $cacheid=yes 9429else $as_nop 9430 eval $cacheid=no 9431fi 9432rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9433 conftest$ac_exeext conftest.$ac_ext 9434fi 9435 9436 9437 CFLAGS="$xorg_testset_save_CFLAGS" 9438 9439 eval supported=\$$cacheid 9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9441printf "%s\n" "$supported" >&6; } 9442 if test "$supported" = "yes" ; then 9443 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9444 found="yes" 9445 fi 9446 fi 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462xorg_testset_save_CFLAGS="$CFLAGS" 9463 9464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9469then : 9470 printf %s "(cached) " >&6 9471else $as_nop 9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474int i; 9475_ACEOF 9476if ac_fn_c_try_compile "$LINENO" 9477then : 9478 xorg_cv_cc_flag_unknown_warning_option=yes 9479else $as_nop 9480 xorg_cv_cc_flag_unknown_warning_option=no 9481fi 9482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9483fi 9484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9487 CFLAGS="$xorg_testset_save_CFLAGS" 9488fi 9489 9490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9493 fi 9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9497if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9498then : 9499 printf %s "(cached) " >&6 9500else $as_nop 9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503int i; 9504_ACEOF 9505if ac_fn_c_try_compile "$LINENO" 9506then : 9507 xorg_cv_cc_flag_unused_command_line_argument=yes 9508else $as_nop 9509 xorg_cv_cc_flag_unused_command_line_argument=no 9510fi 9511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9512fi 9513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9516 CFLAGS="$xorg_testset_save_CFLAGS" 9517fi 9518 9519found="no" 9520 9521 if test $found = "no" ; then 9522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 fi 9525 9526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9528 fi 9529 9530 CFLAGS="$CFLAGS -Wsequence-point" 9531 9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9533printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9534 cacheid=xorg_cv_cc_flag__Wsequence_point 9535 if eval test \${$cacheid+y} 9536then : 9537 printf %s "(cached) " >&6 9538else $as_nop 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540/* end confdefs.h. */ 9541int i; 9542int 9543main (void) 9544{ 9545 9546 ; 9547 return 0; 9548} 9549_ACEOF 9550if ac_fn_c_try_link "$LINENO" 9551then : 9552 eval $cacheid=yes 9553else $as_nop 9554 eval $cacheid=no 9555fi 9556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9557 conftest$ac_exeext conftest.$ac_ext 9558fi 9559 9560 9561 CFLAGS="$xorg_testset_save_CFLAGS" 9562 9563 eval supported=\$$cacheid 9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9565printf "%s\n" "$supported" >&6; } 9566 if test "$supported" = "yes" ; then 9567 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9568 found="yes" 9569 fi 9570 fi 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586xorg_testset_save_CFLAGS="$CFLAGS" 9587 9588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9592if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9593then : 9594 printf %s "(cached) " >&6 9595else $as_nop 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597/* end confdefs.h. */ 9598int i; 9599_ACEOF 9600if ac_fn_c_try_compile "$LINENO" 9601then : 9602 xorg_cv_cc_flag_unknown_warning_option=yes 9603else $as_nop 9604 xorg_cv_cc_flag_unknown_warning_option=no 9605fi 9606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9607fi 9608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612fi 9613 9614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9617 fi 9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9621if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9622then : 9623 printf %s "(cached) " >&6 9624else $as_nop 9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9626/* end confdefs.h. */ 9627int i; 9628_ACEOF 9629if ac_fn_c_try_compile "$LINENO" 9630then : 9631 xorg_cv_cc_flag_unused_command_line_argument=yes 9632else $as_nop 9633 xorg_cv_cc_flag_unused_command_line_argument=no 9634fi 9635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9636fi 9637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9640 CFLAGS="$xorg_testset_save_CFLAGS" 9641fi 9642 9643found="no" 9644 9645 if test $found = "no" ; then 9646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9648 fi 9649 9650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9652 fi 9653 9654 CFLAGS="$CFLAGS -Wreturn-type" 9655 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9657printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9658 cacheid=xorg_cv_cc_flag__Wreturn_type 9659 if eval test \${$cacheid+y} 9660then : 9661 printf %s "(cached) " >&6 9662else $as_nop 9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664/* end confdefs.h. */ 9665int i; 9666int 9667main (void) 9668{ 9669 9670 ; 9671 return 0; 9672} 9673_ACEOF 9674if ac_fn_c_try_link "$LINENO" 9675then : 9676 eval $cacheid=yes 9677else $as_nop 9678 eval $cacheid=no 9679fi 9680rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9681 conftest$ac_exeext conftest.$ac_ext 9682fi 9683 9684 9685 CFLAGS="$xorg_testset_save_CFLAGS" 9686 9687 eval supported=\$$cacheid 9688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9689printf "%s\n" "$supported" >&6; } 9690 if test "$supported" = "yes" ; then 9691 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9692 found="yes" 9693 fi 9694 fi 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710xorg_testset_save_CFLAGS="$CFLAGS" 9711 9712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9716if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9717then : 9718 printf %s "(cached) " >&6 9719else $as_nop 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722int i; 9723_ACEOF 9724if ac_fn_c_try_compile "$LINENO" 9725then : 9726 xorg_cv_cc_flag_unknown_warning_option=yes 9727else $as_nop 9728 xorg_cv_cc_flag_unknown_warning_option=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9731fi 9732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736fi 9737 9738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9741 fi 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9745if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9746then : 9747 printf %s "(cached) " >&6 9748else $as_nop 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751int i; 9752_ACEOF 9753if ac_fn_c_try_compile "$LINENO" 9754then : 9755 xorg_cv_cc_flag_unused_command_line_argument=yes 9756else $as_nop 9757 xorg_cv_cc_flag_unused_command_line_argument=no 9758fi 9759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9760fi 9761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9764 CFLAGS="$xorg_testset_save_CFLAGS" 9765fi 9766 9767found="no" 9768 9769 if test $found = "no" ; then 9770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9772 fi 9773 9774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9776 fi 9777 9778 CFLAGS="$CFLAGS -Wtrigraphs" 9779 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9781printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9782 cacheid=xorg_cv_cc_flag__Wtrigraphs 9783 if eval test \${$cacheid+y} 9784then : 9785 printf %s "(cached) " >&6 9786else $as_nop 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789int i; 9790int 9791main (void) 9792{ 9793 9794 ; 9795 return 0; 9796} 9797_ACEOF 9798if ac_fn_c_try_link "$LINENO" 9799then : 9800 eval $cacheid=yes 9801else $as_nop 9802 eval $cacheid=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9805 conftest$ac_exeext conftest.$ac_ext 9806fi 9807 9808 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 9811 eval supported=\$$cacheid 9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9813printf "%s\n" "$supported" >&6; } 9814 if test "$supported" = "yes" ; then 9815 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9816 found="yes" 9817 fi 9818 fi 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834xorg_testset_save_CFLAGS="$CFLAGS" 9835 9836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9840if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9841then : 9842 printf %s "(cached) " >&6 9843else $as_nop 9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9845/* end confdefs.h. */ 9846int i; 9847_ACEOF 9848if ac_fn_c_try_compile "$LINENO" 9849then : 9850 xorg_cv_cc_flag_unknown_warning_option=yes 9851else $as_nop 9852 xorg_cv_cc_flag_unknown_warning_option=no 9853fi 9854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9855fi 9856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9859 CFLAGS="$xorg_testset_save_CFLAGS" 9860fi 9861 9862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9865 fi 9866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9869if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9870then : 9871 printf %s "(cached) " >&6 9872else $as_nop 9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874/* end confdefs.h. */ 9875int i; 9876_ACEOF 9877if ac_fn_c_try_compile "$LINENO" 9878then : 9879 xorg_cv_cc_flag_unused_command_line_argument=yes 9880else $as_nop 9881 xorg_cv_cc_flag_unused_command_line_argument=no 9882fi 9883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9884fi 9885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9888 CFLAGS="$xorg_testset_save_CFLAGS" 9889fi 9890 9891found="no" 9892 9893 if test $found = "no" ; then 9894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9896 fi 9897 9898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9900 fi 9901 9902 CFLAGS="$CFLAGS -Warray-bounds" 9903 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9905printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9906 cacheid=xorg_cv_cc_flag__Warray_bounds 9907 if eval test \${$cacheid+y} 9908then : 9909 printf %s "(cached) " >&6 9910else $as_nop 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913int i; 9914int 9915main (void) 9916{ 9917 9918 ; 9919 return 0; 9920} 9921_ACEOF 9922if ac_fn_c_try_link "$LINENO" 9923then : 9924 eval $cacheid=yes 9925else $as_nop 9926 eval $cacheid=no 9927fi 9928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9929 conftest$ac_exeext conftest.$ac_ext 9930fi 9931 9932 9933 CFLAGS="$xorg_testset_save_CFLAGS" 9934 9935 eval supported=\$$cacheid 9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9937printf "%s\n" "$supported" >&6; } 9938 if test "$supported" = "yes" ; then 9939 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9940 found="yes" 9941 fi 9942 fi 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958xorg_testset_save_CFLAGS="$CFLAGS" 9959 9960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9964if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9965then : 9966 printf %s "(cached) " >&6 9967else $as_nop 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970int i; 9971_ACEOF 9972if ac_fn_c_try_compile "$LINENO" 9973then : 9974 xorg_cv_cc_flag_unknown_warning_option=yes 9975else $as_nop 9976 xorg_cv_cc_flag_unknown_warning_option=no 9977fi 9978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9979fi 9980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9983 CFLAGS="$xorg_testset_save_CFLAGS" 9984fi 9985 9986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989 fi 9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9994then : 9995 printf %s "(cached) " >&6 9996else $as_nop 9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9998/* end confdefs.h. */ 9999int i; 10000_ACEOF 10001if ac_fn_c_try_compile "$LINENO" 10002then : 10003 xorg_cv_cc_flag_unused_command_line_argument=yes 10004else $as_nop 10005 xorg_cv_cc_flag_unused_command_line_argument=no 10006fi 10007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10008fi 10009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10012 CFLAGS="$xorg_testset_save_CFLAGS" 10013fi 10014 10015found="no" 10016 10017 if test $found = "no" ; then 10018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10020 fi 10021 10022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10024 fi 10025 10026 CFLAGS="$CFLAGS -Wwrite-strings" 10027 10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10029printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10030 cacheid=xorg_cv_cc_flag__Wwrite_strings 10031 if eval test \${$cacheid+y} 10032then : 10033 printf %s "(cached) " >&6 10034else $as_nop 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037int i; 10038int 10039main (void) 10040{ 10041 10042 ; 10043 return 0; 10044} 10045_ACEOF 10046if ac_fn_c_try_link "$LINENO" 10047then : 10048 eval $cacheid=yes 10049else $as_nop 10050 eval $cacheid=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10053 conftest$ac_exeext conftest.$ac_ext 10054fi 10055 10056 10057 CFLAGS="$xorg_testset_save_CFLAGS" 10058 10059 eval supported=\$$cacheid 10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10061printf "%s\n" "$supported" >&6; } 10062 if test "$supported" = "yes" ; then 10063 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10064 found="yes" 10065 fi 10066 fi 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082xorg_testset_save_CFLAGS="$CFLAGS" 10083 10084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10088if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10089then : 10090 printf %s "(cached) " >&6 10091else $as_nop 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094int i; 10095_ACEOF 10096if ac_fn_c_try_compile "$LINENO" 10097then : 10098 xorg_cv_cc_flag_unknown_warning_option=yes 10099else $as_nop 10100 xorg_cv_cc_flag_unknown_warning_option=no 10101fi 10102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10103fi 10104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108fi 10109 10110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113 fi 10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10117if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10118then : 10119 printf %s "(cached) " >&6 10120else $as_nop 10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122/* end confdefs.h. */ 10123int i; 10124_ACEOF 10125if ac_fn_c_try_compile "$LINENO" 10126then : 10127 xorg_cv_cc_flag_unused_command_line_argument=yes 10128else $as_nop 10129 xorg_cv_cc_flag_unused_command_line_argument=no 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10132fi 10133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10136 CFLAGS="$xorg_testset_save_CFLAGS" 10137fi 10138 10139found="no" 10140 10141 if test $found = "no" ; then 10142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10144 fi 10145 10146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10148 fi 10149 10150 CFLAGS="$CFLAGS -Waddress" 10151 10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10153printf %s "checking if $CC supports -Waddress... " >&6; } 10154 cacheid=xorg_cv_cc_flag__Waddress 10155 if eval test \${$cacheid+y} 10156then : 10157 printf %s "(cached) " >&6 10158else $as_nop 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161int i; 10162int 10163main (void) 10164{ 10165 10166 ; 10167 return 0; 10168} 10169_ACEOF 10170if ac_fn_c_try_link "$LINENO" 10171then : 10172 eval $cacheid=yes 10173else $as_nop 10174 eval $cacheid=no 10175fi 10176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10177 conftest$ac_exeext conftest.$ac_ext 10178fi 10179 10180 10181 CFLAGS="$xorg_testset_save_CFLAGS" 10182 10183 eval supported=\$$cacheid 10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10185printf "%s\n" "$supported" >&6; } 10186 if test "$supported" = "yes" ; then 10187 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10188 found="yes" 10189 fi 10190 fi 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206xorg_testset_save_CFLAGS="$CFLAGS" 10207 10208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10212if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10213then : 10214 printf %s "(cached) " >&6 10215else $as_nop 10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10217/* end confdefs.h. */ 10218int i; 10219_ACEOF 10220if ac_fn_c_try_compile "$LINENO" 10221then : 10222 xorg_cv_cc_flag_unknown_warning_option=yes 10223else $as_nop 10224 xorg_cv_cc_flag_unknown_warning_option=no 10225fi 10226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10227fi 10228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10231 CFLAGS="$xorg_testset_save_CFLAGS" 10232fi 10233 10234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10237 fi 10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10241if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10242then : 10243 printf %s "(cached) " >&6 10244else $as_nop 10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10246/* end confdefs.h. */ 10247int i; 10248_ACEOF 10249if ac_fn_c_try_compile "$LINENO" 10250then : 10251 xorg_cv_cc_flag_unused_command_line_argument=yes 10252else $as_nop 10253 xorg_cv_cc_flag_unused_command_line_argument=no 10254fi 10255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10256fi 10257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10260 CFLAGS="$xorg_testset_save_CFLAGS" 10261fi 10262 10263found="no" 10264 10265 if test $found = "no" ; then 10266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10268 fi 10269 10270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10272 fi 10273 10274 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10275 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10277printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10278 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10279 if eval test \${$cacheid+y} 10280then : 10281 printf %s "(cached) " >&6 10282else $as_nop 10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284/* end confdefs.h. */ 10285int i; 10286int 10287main (void) 10288{ 10289 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294if ac_fn_c_try_link "$LINENO" 10295then : 10296 eval $cacheid=yes 10297else $as_nop 10298 eval $cacheid=no 10299fi 10300rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10301 conftest$ac_exeext conftest.$ac_ext 10302fi 10303 10304 10305 CFLAGS="$xorg_testset_save_CFLAGS" 10306 10307 eval supported=\$$cacheid 10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10309printf "%s\n" "$supported" >&6; } 10310 if test "$supported" = "yes" ; then 10311 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10312 found="yes" 10313 fi 10314 fi 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330xorg_testset_save_CFLAGS="$CFLAGS" 10331 10332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10336if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10337then : 10338 printf %s "(cached) " >&6 10339else $as_nop 10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10341/* end confdefs.h. */ 10342int i; 10343_ACEOF 10344if ac_fn_c_try_compile "$LINENO" 10345then : 10346 xorg_cv_cc_flag_unknown_warning_option=yes 10347else $as_nop 10348 xorg_cv_cc_flag_unknown_warning_option=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10351fi 10352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356fi 10357 10358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10361 fi 10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10365if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10366then : 10367 printf %s "(cached) " >&6 10368else $as_nop 10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371int i; 10372_ACEOF 10373if ac_fn_c_try_compile "$LINENO" 10374then : 10375 xorg_cv_cc_flag_unused_command_line_argument=yes 10376else $as_nop 10377 xorg_cv_cc_flag_unused_command_line_argument=no 10378fi 10379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10380fi 10381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10384 CFLAGS="$xorg_testset_save_CFLAGS" 10385fi 10386 10387found="no" 10388 10389 if test $found = "no" ; then 10390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10392 fi 10393 10394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10396 fi 10397 10398 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10399 10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10401printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10402 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10403 if eval test \${$cacheid+y} 10404then : 10405 printf %s "(cached) " >&6 10406else $as_nop 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409int i; 10410int 10411main (void) 10412{ 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418if ac_fn_c_try_link "$LINENO" 10419then : 10420 eval $cacheid=yes 10421else $as_nop 10422 eval $cacheid=no 10423fi 10424rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10425 conftest$ac_exeext conftest.$ac_ext 10426fi 10427 10428 10429 CFLAGS="$xorg_testset_save_CFLAGS" 10430 10431 eval supported=\$$cacheid 10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10433printf "%s\n" "$supported" >&6; } 10434 if test "$supported" = "yes" ; then 10435 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10436 found="yes" 10437 fi 10438 fi 10439 10440 10441fi 10442 10443 10444 10445 10446 10447 10448 10449 CWARNFLAGS="$BASE_CFLAGS" 10450 if test "x$GCC" = xyes ; then 10451 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10452 fi 10453 10454 10455 10456 10457 10458 10459 10460 10461# Check whether --enable-strict-compilation was given. 10462if test ${enable_strict_compilation+y} 10463then : 10464 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10465else $as_nop 10466 STRICT_COMPILE=no 10467fi 10468 10469 10470 10471 10472 10473 10474STRICT_CFLAGS="" 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488xorg_testset_save_CFLAGS="$CFLAGS" 10489 10490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10495then : 10496 printf %s "(cached) " >&6 10497else $as_nop 10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501_ACEOF 10502if ac_fn_c_try_compile "$LINENO" 10503then : 10504 xorg_cv_cc_flag_unknown_warning_option=yes 10505else $as_nop 10506 xorg_cv_cc_flag_unknown_warning_option=no 10507fi 10508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10509fi 10510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10511printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10513 CFLAGS="$xorg_testset_save_CFLAGS" 10514fi 10515 10516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10519 fi 10520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10522printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10523if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10524then : 10525 printf %s "(cached) " >&6 10526else $as_nop 10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10528/* end confdefs.h. */ 10529int i; 10530_ACEOF 10531if ac_fn_c_try_compile "$LINENO" 10532then : 10533 xorg_cv_cc_flag_unused_command_line_argument=yes 10534else $as_nop 10535 xorg_cv_cc_flag_unused_command_line_argument=no 10536fi 10537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10538fi 10539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10542 CFLAGS="$xorg_testset_save_CFLAGS" 10543fi 10544 10545found="no" 10546 10547 if test $found = "no" ; then 10548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10550 fi 10551 10552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10554 fi 10555 10556 CFLAGS="$CFLAGS -pedantic" 10557 10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10559printf %s "checking if $CC supports -pedantic... " >&6; } 10560 cacheid=xorg_cv_cc_flag__pedantic 10561 if eval test \${$cacheid+y} 10562then : 10563 printf %s "(cached) " >&6 10564else $as_nop 10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10566/* end confdefs.h. */ 10567int i; 10568int 10569main (void) 10570{ 10571 10572 ; 10573 return 0; 10574} 10575_ACEOF 10576if ac_fn_c_try_link "$LINENO" 10577then : 10578 eval $cacheid=yes 10579else $as_nop 10580 eval $cacheid=no 10581fi 10582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10583 conftest$ac_exeext conftest.$ac_ext 10584fi 10585 10586 10587 CFLAGS="$xorg_testset_save_CFLAGS" 10588 10589 eval supported=\$$cacheid 10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10591printf "%s\n" "$supported" >&6; } 10592 if test "$supported" = "yes" ; then 10593 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10594 found="yes" 10595 fi 10596 fi 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612xorg_testset_save_CFLAGS="$CFLAGS" 10613 10614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10619then : 10620 printf %s "(cached) " >&6 10621else $as_nop 10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10623/* end confdefs.h. */ 10624int i; 10625_ACEOF 10626if ac_fn_c_try_compile "$LINENO" 10627then : 10628 xorg_cv_cc_flag_unknown_warning_option=yes 10629else $as_nop 10630 xorg_cv_cc_flag_unknown_warning_option=no 10631fi 10632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10633fi 10634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10637 CFLAGS="$xorg_testset_save_CFLAGS" 10638fi 10639 10640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10643 fi 10644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10647if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10648then : 10649 printf %s "(cached) " >&6 10650else $as_nop 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652/* end confdefs.h. */ 10653int i; 10654_ACEOF 10655if ac_fn_c_try_compile "$LINENO" 10656then : 10657 xorg_cv_cc_flag_unused_command_line_argument=yes 10658else $as_nop 10659 xorg_cv_cc_flag_unused_command_line_argument=no 10660fi 10661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10662fi 10663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10666 CFLAGS="$xorg_testset_save_CFLAGS" 10667fi 10668 10669found="no" 10670 10671 if test $found = "no" ; then 10672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10674 fi 10675 10676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10678 fi 10679 10680 CFLAGS="$CFLAGS -Werror" 10681 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10683printf %s "checking if $CC supports -Werror... " >&6; } 10684 cacheid=xorg_cv_cc_flag__Werror 10685 if eval test \${$cacheid+y} 10686then : 10687 printf %s "(cached) " >&6 10688else $as_nop 10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10690/* end confdefs.h. */ 10691int i; 10692int 10693main (void) 10694{ 10695 10696 ; 10697 return 0; 10698} 10699_ACEOF 10700if ac_fn_c_try_link "$LINENO" 10701then : 10702 eval $cacheid=yes 10703else $as_nop 10704 eval $cacheid=no 10705fi 10706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10707 conftest$ac_exeext conftest.$ac_ext 10708fi 10709 10710 10711 CFLAGS="$xorg_testset_save_CFLAGS" 10712 10713 eval supported=\$$cacheid 10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10715printf "%s\n" "$supported" >&6; } 10716 if test "$supported" = "yes" ; then 10717 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10718 found="yes" 10719 fi 10720 fi 10721 10722 if test $found = "no" ; then 10723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10725 fi 10726 10727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10729 fi 10730 10731 CFLAGS="$CFLAGS -errwarn" 10732 10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10734printf %s "checking if $CC supports -errwarn... " >&6; } 10735 cacheid=xorg_cv_cc_flag__errwarn 10736 if eval test \${$cacheid+y} 10737then : 10738 printf %s "(cached) " >&6 10739else $as_nop 10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10741/* end confdefs.h. */ 10742int i; 10743int 10744main (void) 10745{ 10746 10747 ; 10748 return 0; 10749} 10750_ACEOF 10751if ac_fn_c_try_link "$LINENO" 10752then : 10753 eval $cacheid=yes 10754else $as_nop 10755 eval $cacheid=no 10756fi 10757rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10758 conftest$ac_exeext conftest.$ac_ext 10759fi 10760 10761 10762 CFLAGS="$xorg_testset_save_CFLAGS" 10763 10764 eval supported=\$$cacheid 10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10766printf "%s\n" "$supported" >&6; } 10767 if test "$supported" = "yes" ; then 10768 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10769 found="yes" 10770 fi 10771 fi 10772 10773 10774 10775# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10776# activate it with -Werror, so we add it here explicitly. 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790xorg_testset_save_CFLAGS="$CFLAGS" 10791 10792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10796if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10797then : 10798 printf %s "(cached) " >&6 10799else $as_nop 10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10801/* end confdefs.h. */ 10802int i; 10803_ACEOF 10804if ac_fn_c_try_compile "$LINENO" 10805then : 10806 xorg_cv_cc_flag_unknown_warning_option=yes 10807else $as_nop 10808 xorg_cv_cc_flag_unknown_warning_option=no 10809fi 10810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10811fi 10812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10815 CFLAGS="$xorg_testset_save_CFLAGS" 10816fi 10817 10818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10821 fi 10822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10825if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10826then : 10827 printf %s "(cached) " >&6 10828else $as_nop 10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10830/* end confdefs.h. */ 10831int i; 10832_ACEOF 10833if ac_fn_c_try_compile "$LINENO" 10834then : 10835 xorg_cv_cc_flag_unused_command_line_argument=yes 10836else $as_nop 10837 xorg_cv_cc_flag_unused_command_line_argument=no 10838fi 10839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10840fi 10841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10844 CFLAGS="$xorg_testset_save_CFLAGS" 10845fi 10846 10847found="no" 10848 10849 if test $found = "no" ; then 10850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10852 fi 10853 10854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10856 fi 10857 10858 CFLAGS="$CFLAGS -Werror=attributes" 10859 10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10861printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10862 cacheid=xorg_cv_cc_flag__Werror_attributes 10863 if eval test \${$cacheid+y} 10864then : 10865 printf %s "(cached) " >&6 10866else $as_nop 10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10868/* end confdefs.h. */ 10869int i; 10870int 10871main (void) 10872{ 10873 10874 ; 10875 return 0; 10876} 10877_ACEOF 10878if ac_fn_c_try_link "$LINENO" 10879then : 10880 eval $cacheid=yes 10881else $as_nop 10882 eval $cacheid=no 10883fi 10884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10885 conftest$ac_exeext conftest.$ac_ext 10886fi 10887 10888 10889 CFLAGS="$xorg_testset_save_CFLAGS" 10890 10891 eval supported=\$$cacheid 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10893printf "%s\n" "$supported" >&6; } 10894 if test "$supported" = "yes" ; then 10895 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10896 found="yes" 10897 fi 10898 fi 10899 10900 10901 10902if test "x$STRICT_COMPILE" = "xyes"; then 10903 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10904 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10905fi 10906 10907 10908 10909 10910 10911 10912cat >>confdefs.h <<_ACEOF 10913#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10914_ACEOF 10915 10916 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10917 if test "x$PVM" = "x"; then 10918 PVM="0" 10919 fi 10920 10921printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10922 10923 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10924 if test "x$PVP" = "x"; then 10925 PVP="0" 10926 fi 10927 10928printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10929 10930 10931 10932CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10933mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10934|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10935touch \$(top_srcdir)/ChangeLog; \ 10936echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10937 10938 10939 10940 10941macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10942INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10943mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10944|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10945touch \$(top_srcdir)/INSTALL; \ 10946echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10947 10948 10949 10950 10951 10952 10953case $host_os in 10954 solaris*) 10955 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10956 # check for a man page file found in later versions that use 10957 # traditional section numbers instead 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10959printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10960if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10961then : 10962 printf %s "(cached) " >&6 10963else $as_nop 10964 test "$cross_compiling" = yes && 10965 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10966if test -r "/usr/share/man/man7/attributes.7"; then 10967 ac_cv_file__usr_share_man_man7_attributes_7=yes 10968else 10969 ac_cv_file__usr_share_man_man7_attributes_7=no 10970fi 10971fi 10972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10973printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10974if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10975then : 10976 SYSV_MAN_SECTIONS=false 10977else $as_nop 10978 SYSV_MAN_SECTIONS=true 10979fi 10980 10981 ;; 10982 *) SYSV_MAN_SECTIONS=false ;; 10983esac 10984 10985if test x$APP_MAN_SUFFIX = x ; then 10986 APP_MAN_SUFFIX=1 10987fi 10988if test x$APP_MAN_DIR = x ; then 10989 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10990fi 10991 10992if test x$LIB_MAN_SUFFIX = x ; then 10993 LIB_MAN_SUFFIX=3 10994fi 10995if test x$LIB_MAN_DIR = x ; then 10996 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10997fi 10998 10999if test x$FILE_MAN_SUFFIX = x ; then 11000 case $SYSV_MAN_SECTIONS in 11001 true) FILE_MAN_SUFFIX=4 ;; 11002 *) FILE_MAN_SUFFIX=5 ;; 11003 esac 11004fi 11005if test x$FILE_MAN_DIR = x ; then 11006 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11007fi 11008 11009if test x$MISC_MAN_SUFFIX = x ; then 11010 case $SYSV_MAN_SECTIONS in 11011 true) MISC_MAN_SUFFIX=5 ;; 11012 *) MISC_MAN_SUFFIX=7 ;; 11013 esac 11014fi 11015if test x$MISC_MAN_DIR = x ; then 11016 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11017fi 11018 11019if test x$DRIVER_MAN_SUFFIX = x ; then 11020 case $SYSV_MAN_SECTIONS in 11021 true) DRIVER_MAN_SUFFIX=7 ;; 11022 *) DRIVER_MAN_SUFFIX=4 ;; 11023 esac 11024fi 11025if test x$DRIVER_MAN_DIR = x ; then 11026 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11027fi 11028 11029if test x$ADMIN_MAN_SUFFIX = x ; then 11030 case $SYSV_MAN_SECTIONS in 11031 true) ADMIN_MAN_SUFFIX=1m ;; 11032 *) ADMIN_MAN_SUFFIX=8 ;; 11033 esac 11034fi 11035if test x$ADMIN_MAN_DIR = x ; then 11036 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11037fi 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053XORG_MAN_PAGE="X Version 11" 11054 11055MAN_SUBSTS="\ 11056 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11057 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11058 -e 's|__xservername__|Xorg|g' \ 11059 -e 's|__xconfigfile__|xorg.conf|g' \ 11060 -e 's|__projectroot__|\$(prefix)|g' \ 11061 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11062 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11063 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11064 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11065 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11066 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11067 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11068 11069 11070 11071# Check whether --enable-silent-rules was given. 11072if test ${enable_silent_rules+y} 11073then : 11074 enableval=$enable_silent_rules; 11075fi 11076 11077case $enable_silent_rules in # ((( 11078 yes) AM_DEFAULT_VERBOSITY=0;; 11079 no) AM_DEFAULT_VERBOSITY=1;; 11080 *) AM_DEFAULT_VERBOSITY=0;; 11081esac 11082am_make=${MAKE-make} 11083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11084printf %s "checking whether $am_make supports nested variables... " >&6; } 11085if test ${am_cv_make_support_nested_variables+y} 11086then : 11087 printf %s "(cached) " >&6 11088else $as_nop 11089 if printf "%s\n" 'TRUE=$(BAR$(V)) 11090BAR0=false 11091BAR1=true 11092V=1 11093am__doit: 11094 @$(TRUE) 11095.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11096 am_cv_make_support_nested_variables=yes 11097else 11098 am_cv_make_support_nested_variables=no 11099fi 11100fi 11101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11102printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11103if test $am_cv_make_support_nested_variables = yes; then 11104 AM_V='$(V)' 11105 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11106else 11107 AM_V=$AM_DEFAULT_VERBOSITY 11108 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11109fi 11110AM_BACKSLASH='\' 11111 11112 11113 11114# Base set of required pkg-config packages 11115XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11" 11116 11117# Ensure pkg-config is initialized, since first call to macros is conditional 11118 11119 11120 11121 11122 11123 11124 11125if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11126 if test -n "$ac_tool_prefix"; then 11127 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11128set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11130printf %s "checking for $ac_word... " >&6; } 11131if test ${ac_cv_path_PKG_CONFIG+y} 11132then : 11133 printf %s "(cached) " >&6 11134else $as_nop 11135 case $PKG_CONFIG in 11136 [\\/]* | ?:[\\/]*) 11137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11138 ;; 11139 *) 11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11141for as_dir in $PATH 11142do 11143 IFS=$as_save_IFS 11144 case $as_dir in #((( 11145 '') as_dir=./ ;; 11146 */) ;; 11147 *) as_dir=$as_dir/ ;; 11148 esac 11149 for ac_exec_ext in '' $ac_executable_extensions; do 11150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11151 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11153 break 2 11154 fi 11155done 11156 done 11157IFS=$as_save_IFS 11158 11159 ;; 11160esac 11161fi 11162PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11163if test -n "$PKG_CONFIG"; then 11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11165printf "%s\n" "$PKG_CONFIG" >&6; } 11166else 11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11168printf "%s\n" "no" >&6; } 11169fi 11170 11171 11172fi 11173if test -z "$ac_cv_path_PKG_CONFIG"; then 11174 ac_pt_PKG_CONFIG=$PKG_CONFIG 11175 # Extract the first word of "pkg-config", so it can be a program name with args. 11176set dummy pkg-config; ac_word=$2 11177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11178printf %s "checking for $ac_word... " >&6; } 11179if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 11180then : 11181 printf %s "(cached) " >&6 11182else $as_nop 11183 case $ac_pt_PKG_CONFIG in 11184 [\\/]* | ?:[\\/]*) 11185 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11186 ;; 11187 *) 11188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11189for as_dir in $PATH 11190do 11191 IFS=$as_save_IFS 11192 case $as_dir in #((( 11193 '') as_dir=./ ;; 11194 */) ;; 11195 *) as_dir=$as_dir/ ;; 11196 esac 11197 for ac_exec_ext in '' $ac_executable_extensions; do 11198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11201 break 2 11202 fi 11203done 11204 done 11205IFS=$as_save_IFS 11206 11207 ;; 11208esac 11209fi 11210ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11211if test -n "$ac_pt_PKG_CONFIG"; then 11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11213printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 11214else 11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11216printf "%s\n" "no" >&6; } 11217fi 11218 11219 if test "x$ac_pt_PKG_CONFIG" = x; then 11220 PKG_CONFIG="" 11221 else 11222 case $cross_compiling:$ac_tool_warned in 11223yes:) 11224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11225printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11226ac_tool_warned=yes ;; 11227esac 11228 PKG_CONFIG=$ac_pt_PKG_CONFIG 11229 fi 11230else 11231 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11232fi 11233 11234fi 11235if test -n "$PKG_CONFIG"; then 11236 _pkg_min_version=0.9.0 11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11238printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11239 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11241printf "%s\n" "yes" >&6; } 11242 else 11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11244printf "%s\n" "no" >&6; } 11245 PKG_CONFIG="" 11246 fi 11247fi 11248 11249# Use render & xft2 to draw logo? 11250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use render & xft2 to draw logo" >&5 11251printf %s "checking whether to use render & xft2 to draw logo... " >&6; } 11252 11253# Check whether --with-render was given. 11254if test ${with_render+y} 11255then : 11256 withval=$with_render; USE_RENDER="$withval" 11257else $as_nop 11258 USE_RENDER="try" 11259fi 11260 11261 11262if test "x$USE_RENDER" = "xtry" ; then 11263 if test -n "$PKG_CONFIG" && \ 11264 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5 11265 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5 11266 ac_status=$? 11267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11268 test $ac_status = 0; }; then 11269 USE_RENDER="yes" 11270else 11271 USE_RENDER="no" 11272fi 11273fi 11274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_RENDER" >&5 11275printf "%s\n" "$USE_RENDER" >&6; } 11276 11277if test "x$USE_RENDER" = "xyes" ; then 11278 XLOGO_DEPS="xft xrender $XLOGO_DEPS" 11279 11280 11281printf "%s\n" "#define XRENDER 1" >>confdefs.h 11282 11283fi 11284 if test "x$USE_RENDER" = "xyes"; then 11285 USE_RENDER_TRUE= 11286 USE_RENDER_FALSE='#' 11287else 11288 USE_RENDER_TRUE='#' 11289 USE_RENDER_FALSE= 11290fi 11291 11292 11293# Use XKB to ring the bell? 11294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use XkbStdBell" >&5 11295printf %s "checking whether to use XkbStdBell... " >&6; } 11296 11297# Check whether --with-xkb was given. 11298if test ${with_xkb+y} 11299then : 11300 withval=$with_xkb; USE_XKB="$withval" 11301else $as_nop 11302 USE_XKB="try" 11303fi 11304 11305 11306if test "x$USE_XKB" = "xtry" ; then 11307 if test -n "$PKG_CONFIG" && \ 11308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5 11309 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5 11310 ac_status=$? 11311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11312 test $ac_status = 0; }; then 11313 USE_XKB="yes" 11314else 11315 USE_XKB="no" 11316fi 11317fi 11318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_XKB" >&5 11319printf "%s\n" "$USE_XKB" >&6; } 11320 11321if test "x$USE_XKB" = "xyes" ; then 11322 XLOGO_DEPS="xkbfile $XLOGO_DEPS" 11323 11324 11325printf "%s\n" "#define XKB 1" >>confdefs.h 11326 11327fi 11328 11329 11330pkg_failed=no 11331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5 11332printf %s "checking for XLOGO... " >&6; } 11333 11334if test -n "$XLOGO_CFLAGS"; then 11335 pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS" 11336 elif test -n "$PKG_CONFIG"; then 11337 if test -n "$PKG_CONFIG" && \ 11338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5 11339 ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5 11340 ac_status=$? 11341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11342 test $ac_status = 0; }; then 11343 pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null` 11344 test "x$?" != "x0" && pkg_failed=yes 11345else 11346 pkg_failed=yes 11347fi 11348 else 11349 pkg_failed=untried 11350fi 11351if test -n "$XLOGO_LIBS"; then 11352 pkg_cv_XLOGO_LIBS="$XLOGO_LIBS" 11353 elif test -n "$PKG_CONFIG"; then 11354 if test -n "$PKG_CONFIG" && \ 11355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5 11356 ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5 11357 ac_status=$? 11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11359 test $ac_status = 0; }; then 11360 pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null` 11361 test "x$?" != "x0" && pkg_failed=yes 11362else 11363 pkg_failed=yes 11364fi 11365 else 11366 pkg_failed=untried 11367fi 11368 11369 11370 11371if test $pkg_failed = yes; then 11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11373printf "%s\n" "no" >&6; } 11374 11375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11376 _pkg_short_errors_supported=yes 11377else 11378 _pkg_short_errors_supported=no 11379fi 11380 if test $_pkg_short_errors_supported = yes; then 11381 XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` 11382 else 11383 XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` 11384 fi 11385 # Put the nasty error message in config.log where it belongs 11386 echo "$XLOGO_PKG_ERRORS" >&5 11387 11388 as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met: 11389 11390$XLOGO_PKG_ERRORS 11391 11392Consider adjusting the PKG_CONFIG_PATH environment variable if you 11393installed software in a non-standard prefix. 11394 11395Alternatively, you may set the environment variables XLOGO_CFLAGS 11396and XLOGO_LIBS to avoid the need to call pkg-config. 11397See the pkg-config man page for more details." "$LINENO" 5 11398elif test $pkg_failed = untried; then 11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11400printf "%s\n" "no" >&6; } 11401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11402printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11403as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11404is in your PATH or set the PKG_CONFIG environment variable to the full 11405path to pkg-config. 11406 11407Alternatively, you may set the environment variables XLOGO_CFLAGS 11408and XLOGO_LIBS to avoid the need to call pkg-config. 11409See the pkg-config man page for more details. 11410 11411To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11412See \`config.log' for more details" "$LINENO" 5; } 11413else 11414 XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS 11415 XLOGO_LIBS=$pkg_cv_XLOGO_LIBS 11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11417printf "%s\n" "yes" >&6; } 11418 11419fi 11420 11421 11422pkg_failed=no 11423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11424printf %s "checking for APPDEFS... " >&6; } 11425 11426if test -n "$APPDEFS_CFLAGS"; then 11427 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11428 elif test -n "$PKG_CONFIG"; then 11429 if test -n "$PKG_CONFIG" && \ 11430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11431 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11432 ac_status=$? 11433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11434 test $ac_status = 0; }; then 11435 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11436 test "x$?" != "x0" && pkg_failed=yes 11437else 11438 pkg_failed=yes 11439fi 11440 else 11441 pkg_failed=untried 11442fi 11443if test -n "$APPDEFS_LIBS"; then 11444 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11445 elif test -n "$PKG_CONFIG"; then 11446 if test -n "$PKG_CONFIG" && \ 11447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11448 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11449 ac_status=$? 11450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11451 test $ac_status = 0; }; then 11452 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11453 test "x$?" != "x0" && pkg_failed=yes 11454else 11455 pkg_failed=yes 11456fi 11457 else 11458 pkg_failed=untried 11459fi 11460 11461 11462 11463if test $pkg_failed = yes; then 11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11465printf "%s\n" "no" >&6; } 11466 11467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11468 _pkg_short_errors_supported=yes 11469else 11470 _pkg_short_errors_supported=no 11471fi 11472 if test $_pkg_short_errors_supported = yes; then 11473 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11474 else 11475 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11476 fi 11477 # Put the nasty error message in config.log where it belongs 11478 echo "$APPDEFS_PKG_ERRORS" >&5 11479 11480 as_fn_error $? "Package requirements (xt) were not met: 11481 11482$APPDEFS_PKG_ERRORS 11483 11484Consider adjusting the PKG_CONFIG_PATH environment variable if you 11485installed software in a non-standard prefix. 11486 11487Alternatively, you may set the environment variables APPDEFS_CFLAGS 11488and APPDEFS_LIBS to avoid the need to call pkg-config. 11489See the pkg-config man page for more details." "$LINENO" 5 11490elif test $pkg_failed = untried; then 11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11492printf "%s\n" "no" >&6; } 11493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11494printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11495as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11496is in your PATH or set the PKG_CONFIG environment variable to the full 11497path to pkg-config. 11498 11499Alternatively, you may set the environment variables APPDEFS_CFLAGS 11500and APPDEFS_LIBS to avoid the need to call pkg-config. 11501See the pkg-config man page for more details. 11502 11503To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11504See \`config.log' for more details" "$LINENO" 5; } 11505else 11506 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11507 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11509printf "%s\n" "yes" >&6; } 11510 11511fi 11512xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11513 11514# Check whether --with-appdefaultdir was given. 11515if test ${with_appdefaultdir+y} 11516then : 11517 withval=$with_appdefaultdir; appdefaultdir="$withval" 11518else $as_nop 11519 appdefaultdir="${xt_appdefaultdir}" 11520fi 11521 11522 11523 11524ac_config_files="$ac_config_files Makefile man/Makefile" 11525 11526cat >confcache <<\_ACEOF 11527# This file is a shell script that caches the results of configure 11528# tests run on this system so they can be shared between configure 11529# scripts and configure runs, see configure's option --config-cache. 11530# It is not useful on other systems. If it contains results you don't 11531# want to keep, you may remove or edit it. 11532# 11533# config.status only pays attention to the cache file if you give it 11534# the --recheck option to rerun configure. 11535# 11536# `ac_cv_env_foo' variables (set or unset) will be overridden when 11537# loading this file, other *unset* `ac_cv_foo' will be assigned the 11538# following values. 11539 11540_ACEOF 11541 11542# The following way of writing the cache mishandles newlines in values, 11543# but we know of no workaround that is simple, portable, and efficient. 11544# So, we kill variables containing newlines. 11545# Ultrix sh set writes to stderr and can't be redirected directly, 11546# and sets the high bit in the cache file unless we assign to the vars. 11547( 11548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11549 eval ac_val=\$$ac_var 11550 case $ac_val in #( 11551 *${as_nl}*) 11552 case $ac_var in #( 11553 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11554printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11555 esac 11556 case $ac_var in #( 11557 _ | IFS | as_nl) ;; #( 11558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11559 *) { eval $ac_var=; unset $ac_var;} ;; 11560 esac ;; 11561 esac 11562 done 11563 11564 (set) 2>&1 | 11565 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11566 *${as_nl}ac_space=\ *) 11567 # `set' does not quote correctly, so add quotes: double-quote 11568 # substitution turns \\\\ into \\, and sed turns \\ into \. 11569 sed -n \ 11570 "s/'/'\\\\''/g; 11571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11572 ;; #( 11573 *) 11574 # `set' quotes correctly as required by POSIX, so do not add quotes. 11575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11576 ;; 11577 esac | 11578 sort 11579) | 11580 sed ' 11581 /^ac_cv_env_/b end 11582 t clear 11583 :clear 11584 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11585 t end 11586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11587 :end' >>confcache 11588if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11589 if test -w "$cache_file"; then 11590 if test "x$cache_file" != "x/dev/null"; then 11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11592printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11593 if test ! -f "$cache_file" || test -h "$cache_file"; then 11594 cat confcache >"$cache_file" 11595 else 11596 case $cache_file in #( 11597 */* | ?:*) 11598 mv -f confcache "$cache_file"$$ && 11599 mv -f "$cache_file"$$ "$cache_file" ;; #( 11600 *) 11601 mv -f confcache "$cache_file" ;; 11602 esac 11603 fi 11604 fi 11605 else 11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11607printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11608 fi 11609fi 11610rm -f confcache 11611 11612test "x$prefix" = xNONE && prefix=$ac_default_prefix 11613# Let make expand exec_prefix. 11614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11615 11616DEFS=-DHAVE_CONFIG_H 11617 11618ac_libobjs= 11619ac_ltlibobjs= 11620U= 11621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11622 # 1. Remove the extension, and $U if already installed. 11623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11624 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11626 # will be set to the directory where LIBOBJS objects are built. 11627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11629done 11630LIBOBJS=$ac_libobjs 11631 11632LTLIBOBJS=$ac_ltlibobjs 11633 11634 11635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11636printf %s "checking that generated files are newer than configure... " >&6; } 11637 if test -n "$am_sleep_pid"; then 11638 # Hide warnings about reused PIDs. 11639 wait $am_sleep_pid 2>/dev/null 11640 fi 11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11642printf "%s\n" "done" >&6; } 11643 if test -n "$EXEEXT"; then 11644 am__EXEEXT_TRUE= 11645 am__EXEEXT_FALSE='#' 11646else 11647 am__EXEEXT_TRUE='#' 11648 am__EXEEXT_FALSE= 11649fi 11650 11651if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11652 as_fn_error $? "conditional \"AMDEP\" was never defined. 11653Usually this means the macro was only invoked conditionally." "$LINENO" 5 11654fi 11655if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11656 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11657Usually this means the macro was only invoked conditionally." "$LINENO" 5 11658fi 11659if test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then 11660 as_fn_error $? "conditional \"USE_RENDER\" was never defined. 11661Usually this means the macro was only invoked conditionally." "$LINENO" 5 11662fi 11663 11664: "${CONFIG_STATUS=./config.status}" 11665ac_write_fail=0 11666ac_clean_files_save=$ac_clean_files 11667ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11669printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11670as_write_fail=0 11671cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11672#! $SHELL 11673# Generated by $as_me. 11674# Run this file to recreate the current configuration. 11675# Compiler output produced by configure, useful for debugging 11676# configure, is in config.log if it exists. 11677 11678debug=false 11679ac_cs_recheck=false 11680ac_cs_silent=false 11681 11682SHELL=\${CONFIG_SHELL-$SHELL} 11683export SHELL 11684_ASEOF 11685cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11686## -------------------- ## 11687## M4sh Initialization. ## 11688## -------------------- ## 11689 11690# Be more Bourne compatible 11691DUALCASE=1; export DUALCASE # for MKS sh 11692as_nop=: 11693if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11694then : 11695 emulate sh 11696 NULLCMD=: 11697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11698 # is contrary to our usage. Disable this feature. 11699 alias -g '${1+"$@"}'='"$@"' 11700 setopt NO_GLOB_SUBST 11701else $as_nop 11702 case `(set -o) 2>/dev/null` in #( 11703 *posix*) : 11704 set -o posix ;; #( 11705 *) : 11706 ;; 11707esac 11708fi 11709 11710 11711 11712# Reset variables that may have inherited troublesome values from 11713# the environment. 11714 11715# IFS needs to be set, to space, tab, and newline, in precisely that order. 11716# (If _AS_PATH_WALK were called with IFS unset, it would have the 11717# side effect of setting IFS to empty, thus disabling word splitting.) 11718# Quoting is to prevent editors from complaining about space-tab. 11719as_nl=' 11720' 11721export as_nl 11722IFS=" "" $as_nl" 11723 11724PS1='$ ' 11725PS2='> ' 11726PS4='+ ' 11727 11728# Ensure predictable behavior from utilities with locale-dependent output. 11729LC_ALL=C 11730export LC_ALL 11731LANGUAGE=C 11732export LANGUAGE 11733 11734# We cannot yet rely on "unset" to work, but we need these variables 11735# to be unset--not just set to an empty or harmless value--now, to 11736# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11737# also avoids known problems related to "unset" and subshell syntax 11738# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11739for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11740do eval test \${$as_var+y} \ 11741 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11742done 11743 11744# Ensure that fds 0, 1, and 2 are open. 11745if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11746if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11747if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11748 11749# The user is always right. 11750if ${PATH_SEPARATOR+false} :; then 11751 PATH_SEPARATOR=: 11752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11754 PATH_SEPARATOR=';' 11755 } 11756fi 11757 11758 11759# Find who we are. Look in the path if we contain no directory separator. 11760as_myself= 11761case $0 in #(( 11762 *[\\/]* ) as_myself=$0 ;; 11763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11764for as_dir in $PATH 11765do 11766 IFS=$as_save_IFS 11767 case $as_dir in #((( 11768 '') as_dir=./ ;; 11769 */) ;; 11770 *) as_dir=$as_dir/ ;; 11771 esac 11772 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11773 done 11774IFS=$as_save_IFS 11775 11776 ;; 11777esac 11778# We did not find ourselves, most probably we were run as `sh COMMAND' 11779# in which case we are not to be found in the path. 11780if test "x$as_myself" = x; then 11781 as_myself=$0 11782fi 11783if test ! -f "$as_myself"; then 11784 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11785 exit 1 11786fi 11787 11788 11789 11790# as_fn_error STATUS ERROR [LINENO LOG_FD] 11791# ---------------------------------------- 11792# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11793# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11794# script with STATUS, using 1 if that was 0. 11795as_fn_error () 11796{ 11797 as_status=$1; test $as_status -eq 0 && as_status=1 11798 if test "$4"; then 11799 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11801 fi 11802 printf "%s\n" "$as_me: error: $2" >&2 11803 as_fn_exit $as_status 11804} # as_fn_error 11805 11806 11807 11808# as_fn_set_status STATUS 11809# ----------------------- 11810# Set $? to STATUS, without forking. 11811as_fn_set_status () 11812{ 11813 return $1 11814} # as_fn_set_status 11815 11816# as_fn_exit STATUS 11817# ----------------- 11818# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11819as_fn_exit () 11820{ 11821 set +e 11822 as_fn_set_status $1 11823 exit $1 11824} # as_fn_exit 11825 11826# as_fn_unset VAR 11827# --------------- 11828# Portably unset VAR. 11829as_fn_unset () 11830{ 11831 { eval $1=; unset $1;} 11832} 11833as_unset=as_fn_unset 11834 11835# as_fn_append VAR VALUE 11836# ---------------------- 11837# Append the text in VALUE to the end of the definition contained in VAR. Take 11838# advantage of any shell optimizations that allow amortized linear growth over 11839# repeated appends, instead of the typical quadratic growth present in naive 11840# implementations. 11841if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11842then : 11843 eval 'as_fn_append () 11844 { 11845 eval $1+=\$2 11846 }' 11847else $as_nop 11848 as_fn_append () 11849 { 11850 eval $1=\$$1\$2 11851 } 11852fi # as_fn_append 11853 11854# as_fn_arith ARG... 11855# ------------------ 11856# Perform arithmetic evaluation on the ARGs, and store the result in the 11857# global $as_val. Take advantage of shells that can avoid forks. The arguments 11858# must be portable across $(()) and expr. 11859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11860then : 11861 eval 'as_fn_arith () 11862 { 11863 as_val=$(( $* )) 11864 }' 11865else $as_nop 11866 as_fn_arith () 11867 { 11868 as_val=`expr "$@" || test $? -eq 1` 11869 } 11870fi # as_fn_arith 11871 11872 11873if expr a : '\(a\)' >/dev/null 2>&1 && 11874 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11875 as_expr=expr 11876else 11877 as_expr=false 11878fi 11879 11880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11881 as_basename=basename 11882else 11883 as_basename=false 11884fi 11885 11886if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11887 as_dirname=dirname 11888else 11889 as_dirname=false 11890fi 11891 11892as_me=`$as_basename -- "$0" || 11893$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11894 X"$0" : 'X\(//\)$' \| \ 11895 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11896printf "%s\n" X/"$0" | 11897 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11898 s//\1/ 11899 q 11900 } 11901 /^X\/\(\/\/\)$/{ 11902 s//\1/ 11903 q 11904 } 11905 /^X\/\(\/\).*/{ 11906 s//\1/ 11907 q 11908 } 11909 s/.*/./; q'` 11910 11911# Avoid depending upon Character Ranges. 11912as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11913as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11914as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11915as_cr_digits='0123456789' 11916as_cr_alnum=$as_cr_Letters$as_cr_digits 11917 11918 11919# Determine whether it's possible to make 'echo' print without a newline. 11920# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11921# for compatibility with existing Makefiles. 11922ECHO_C= ECHO_N= ECHO_T= 11923case `echo -n x` in #((((( 11924-n*) 11925 case `echo 'xy\c'` in 11926 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11927 xy) ECHO_C='\c';; 11928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11929 ECHO_T=' ';; 11930 esac;; 11931*) 11932 ECHO_N='-n';; 11933esac 11934 11935# For backward compatibility with old third-party macros, we provide 11936# the shell variables $as_echo and $as_echo_n. New code should use 11937# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11938as_echo='printf %s\n' 11939as_echo_n='printf %s' 11940 11941rm -f conf$$ conf$$.exe conf$$.file 11942if test -d conf$$.dir; then 11943 rm -f conf$$.dir/conf$$.file 11944else 11945 rm -f conf$$.dir 11946 mkdir conf$$.dir 2>/dev/null 11947fi 11948if (echo >conf$$.file) 2>/dev/null; then 11949 if ln -s conf$$.file conf$$ 2>/dev/null; then 11950 as_ln_s='ln -s' 11951 # ... but there are two gotchas: 11952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11954 # In both cases, we have to default to `cp -pR'. 11955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11956 as_ln_s='cp -pR' 11957 elif ln conf$$.file conf$$ 2>/dev/null; then 11958 as_ln_s=ln 11959 else 11960 as_ln_s='cp -pR' 11961 fi 11962else 11963 as_ln_s='cp -pR' 11964fi 11965rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11966rmdir conf$$.dir 2>/dev/null 11967 11968 11969# as_fn_mkdir_p 11970# ------------- 11971# Create "$as_dir" as a directory, including parents if necessary. 11972as_fn_mkdir_p () 11973{ 11974 11975 case $as_dir in #( 11976 -*) as_dir=./$as_dir;; 11977 esac 11978 test -d "$as_dir" || eval $as_mkdir_p || { 11979 as_dirs= 11980 while :; do 11981 case $as_dir in #( 11982 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11983 *) as_qdir=$as_dir;; 11984 esac 11985 as_dirs="'$as_qdir' $as_dirs" 11986 as_dir=`$as_dirname -- "$as_dir" || 11987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11988 X"$as_dir" : 'X\(//\)[^/]' \| \ 11989 X"$as_dir" : 'X\(//\)$' \| \ 11990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11991printf "%s\n" X"$as_dir" | 11992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11993 s//\1/ 11994 q 11995 } 11996 /^X\(\/\/\)[^/].*/{ 11997 s//\1/ 11998 q 11999 } 12000 /^X\(\/\/\)$/{ 12001 s//\1/ 12002 q 12003 } 12004 /^X\(\/\).*/{ 12005 s//\1/ 12006 q 12007 } 12008 s/.*/./; q'` 12009 test -d "$as_dir" && break 12010 done 12011 test -z "$as_dirs" || eval "mkdir $as_dirs" 12012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12013 12014 12015} # as_fn_mkdir_p 12016if mkdir -p . 2>/dev/null; then 12017 as_mkdir_p='mkdir -p "$as_dir"' 12018else 12019 test -d ./-p && rmdir ./-p 12020 as_mkdir_p=false 12021fi 12022 12023 12024# as_fn_executable_p FILE 12025# ----------------------- 12026# Test if FILE is an executable regular file. 12027as_fn_executable_p () 12028{ 12029 test -f "$1" && test -x "$1" 12030} # as_fn_executable_p 12031as_test_x='test -x' 12032as_executable_p=as_fn_executable_p 12033 12034# Sed expression to map a string onto a valid CPP name. 12035as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12036 12037# Sed expression to map a string onto a valid variable name. 12038as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12039 12040 12041exec 6>&1 12042## ----------------------------------- ## 12043## Main body of $CONFIG_STATUS script. ## 12044## ----------------------------------- ## 12045_ASEOF 12046test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12047 12048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12049# Save the log message, to keep $0 and so on meaningful, and to 12050# report actual input values of CONFIG_FILES etc. instead of their 12051# values after options handling. 12052ac_log=" 12053This file was extended by xlogo $as_me 1.0.6, which was 12054generated by GNU Autoconf 2.71. Invocation command line was 12055 12056 CONFIG_FILES = $CONFIG_FILES 12057 CONFIG_HEADERS = $CONFIG_HEADERS 12058 CONFIG_LINKS = $CONFIG_LINKS 12059 CONFIG_COMMANDS = $CONFIG_COMMANDS 12060 $ $0 $@ 12061 12062on `(hostname || uname -n) 2>/dev/null | sed 1q` 12063" 12064 12065_ACEOF 12066 12067case $ac_config_files in *" 12068"*) set x $ac_config_files; shift; ac_config_files=$*;; 12069esac 12070 12071case $ac_config_headers in *" 12072"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12073esac 12074 12075 12076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12077# Files that config.status was made for. 12078config_files="$ac_config_files" 12079config_headers="$ac_config_headers" 12080config_commands="$ac_config_commands" 12081 12082_ACEOF 12083 12084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12085ac_cs_usage="\ 12086\`$as_me' instantiates files and other configuration actions 12087from templates according to the current configuration. Unless the files 12088and actions are specified as TAGs, all are instantiated by default. 12089 12090Usage: $0 [OPTION]... [TAG]... 12091 12092 -h, --help print this help, then exit 12093 -V, --version print version number and configuration settings, then exit 12094 --config print configuration, then exit 12095 -q, --quiet, --silent 12096 do not print progress messages 12097 -d, --debug don't remove temporary files 12098 --recheck update $as_me by reconfiguring in the same conditions 12099 --file=FILE[:TEMPLATE] 12100 instantiate the configuration file FILE 12101 --header=FILE[:TEMPLATE] 12102 instantiate the configuration header FILE 12103 12104Configuration files: 12105$config_files 12106 12107Configuration headers: 12108$config_headers 12109 12110Configuration commands: 12111$config_commands 12112 12113Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>." 12114 12115_ACEOF 12116ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12117ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12119ac_cs_config='$ac_cs_config_escaped' 12120ac_cs_version="\\ 12121xlogo config.status 1.0.6 12122configured by $0, generated by GNU Autoconf 2.71, 12123 with options \\"\$ac_cs_config\\" 12124 12125Copyright (C) 2021 Free Software Foundation, Inc. 12126This config.status script is free software; the Free Software Foundation 12127gives unlimited permission to copy, distribute and modify it." 12128 12129ac_pwd='$ac_pwd' 12130srcdir='$srcdir' 12131INSTALL='$INSTALL' 12132MKDIR_P='$MKDIR_P' 12133AWK='$AWK' 12134test -n "\$AWK" || AWK=awk 12135_ACEOF 12136 12137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12138# The default lists apply if the user does not specify any file. 12139ac_need_defaults=: 12140while test $# != 0 12141do 12142 case $1 in 12143 --*=?*) 12144 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12146 ac_shift=: 12147 ;; 12148 --*=) 12149 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12150 ac_optarg= 12151 ac_shift=: 12152 ;; 12153 *) 12154 ac_option=$1 12155 ac_optarg=$2 12156 ac_shift=shift 12157 ;; 12158 esac 12159 12160 case $ac_option in 12161 # Handling of the options. 12162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12163 ac_cs_recheck=: ;; 12164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12165 printf "%s\n" "$ac_cs_version"; exit ;; 12166 --config | --confi | --conf | --con | --co | --c ) 12167 printf "%s\n" "$ac_cs_config"; exit ;; 12168 --debug | --debu | --deb | --de | --d | -d ) 12169 debug=: ;; 12170 --file | --fil | --fi | --f ) 12171 $ac_shift 12172 case $ac_optarg in 12173 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12174 '') as_fn_error $? "missing file argument" ;; 12175 esac 12176 as_fn_append CONFIG_FILES " '$ac_optarg'" 12177 ac_need_defaults=false;; 12178 --header | --heade | --head | --hea ) 12179 $ac_shift 12180 case $ac_optarg in 12181 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12182 esac 12183 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12184 ac_need_defaults=false;; 12185 --he | --h) 12186 # Conflict between --help and --header 12187 as_fn_error $? "ambiguous option: \`$1' 12188Try \`$0 --help' for more information.";; 12189 --help | --hel | -h ) 12190 printf "%s\n" "$ac_cs_usage"; exit ;; 12191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12192 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12193 ac_cs_silent=: ;; 12194 12195 # This is an error. 12196 -*) as_fn_error $? "unrecognized option: \`$1' 12197Try \`$0 --help' for more information." ;; 12198 12199 *) as_fn_append ac_config_targets " $1" 12200 ac_need_defaults=false ;; 12201 12202 esac 12203 shift 12204done 12205 12206ac_configure_extra_args= 12207 12208if $ac_cs_silent; then 12209 exec 6>/dev/null 12210 ac_configure_extra_args="$ac_configure_extra_args --silent" 12211fi 12212 12213_ACEOF 12214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12215if \$ac_cs_recheck; then 12216 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12217 shift 12218 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12219 CONFIG_SHELL='$SHELL' 12220 export CONFIG_SHELL 12221 exec "\$@" 12222fi 12223 12224_ACEOF 12225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12226exec 5>>config.log 12227{ 12228 echo 12229 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12230## Running $as_me. ## 12231_ASBOX 12232 printf "%s\n" "$ac_log" 12233} >&5 12234 12235_ACEOF 12236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12237# 12238# INIT-COMMANDS 12239# 12240AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12241 12242_ACEOF 12243 12244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12245 12246# Handling of arguments. 12247for ac_config_target in $ac_config_targets 12248do 12249 case $ac_config_target in 12250 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12251 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12253 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12254 12255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12256 esac 12257done 12258 12259 12260# If the user did not use the arguments to specify the items to instantiate, 12261# then the envvar interface is used. Set only those that are not. 12262# We use the long form for the default assignment because of an extremely 12263# bizarre bug on SunOS 4.1.3. 12264if $ac_need_defaults; then 12265 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12266 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12267 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12268fi 12269 12270# Have a temporary directory for convenience. Make it in the build tree 12271# simply because there is no reason against having it here, and in addition, 12272# creating and moving files from /tmp can sometimes cause problems. 12273# Hook for its removal unless debugging. 12274# Note that there is a small window in which the directory will not be cleaned: 12275# after its creation but before its name has been assigned to `$tmp'. 12276$debug || 12277{ 12278 tmp= ac_tmp= 12279 trap 'exit_status=$? 12280 : "${ac_tmp:=$tmp}" 12281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12282' 0 12283 trap 'as_fn_exit 1' 1 2 13 15 12284} 12285# Create a (secure) tmp directory for tmp files. 12286 12287{ 12288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12289 test -d "$tmp" 12290} || 12291{ 12292 tmp=./conf$$-$RANDOM 12293 (umask 077 && mkdir "$tmp") 12294} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12295ac_tmp=$tmp 12296 12297# Set up the scripts for CONFIG_FILES section. 12298# No need to generate them if there are no CONFIG_FILES. 12299# This happens for instance with `./config.status config.h'. 12300if test -n "$CONFIG_FILES"; then 12301 12302 12303ac_cr=`echo X | tr X '\015'` 12304# On cygwin, bash can eat \r inside `` if the user requested igncr. 12305# But we know of no other shell where ac_cr would be empty at this 12306# point, so we can use a bashism as a fallback. 12307if test "x$ac_cr" = x; then 12308 eval ac_cr=\$\'\\r\' 12309fi 12310ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12311if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12312 ac_cs_awk_cr='\\r' 12313else 12314 ac_cs_awk_cr=$ac_cr 12315fi 12316 12317echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12318_ACEOF 12319 12320 12321{ 12322 echo "cat >conf$$subs.awk <<_ACEOF" && 12323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12324 echo "_ACEOF" 12325} >conf$$subs.sh || 12326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12327ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12328ac_delim='%!_!# ' 12329for ac_last_try in false false false false false :; do 12330 . ./conf$$subs.sh || 12331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12332 12333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12334 if test $ac_delim_n = $ac_delim_num; then 12335 break 12336 elif $ac_last_try; then 12337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12338 else 12339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12340 fi 12341done 12342rm -f conf$$subs.sh 12343 12344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12345cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12346_ACEOF 12347sed -n ' 12348h 12349s/^/S["/; s/!.*/"]=/ 12350p 12351g 12352s/^[^!]*!// 12353:repl 12354t repl 12355s/'"$ac_delim"'$// 12356t delim 12357:nl 12358h 12359s/\(.\{148\}\)..*/\1/ 12360t more1 12361s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12362p 12363n 12364b repl 12365:more1 12366s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12367p 12368g 12369s/.\{148\}// 12370t nl 12371:delim 12372h 12373s/\(.\{148\}\)..*/\1/ 12374t more2 12375s/["\\]/\\&/g; s/^/"/; s/$/"/ 12376p 12377b 12378:more2 12379s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12380p 12381g 12382s/.\{148\}// 12383t delim 12384' <conf$$subs.awk | sed ' 12385/^[^""]/{ 12386 N 12387 s/\n// 12388} 12389' >>$CONFIG_STATUS || ac_write_fail=1 12390rm -f conf$$subs.awk 12391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12392_ACAWK 12393cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12394 for (key in S) S_is_set[key] = 1 12395 FS = "" 12396 12397} 12398{ 12399 line = $ 0 12400 nfields = split(line, field, "@") 12401 substed = 0 12402 len = length(field[1]) 12403 for (i = 2; i < nfields; i++) { 12404 key = field[i] 12405 keylen = length(key) 12406 if (S_is_set[key]) { 12407 value = S[key] 12408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12409 len += length(value) + length(field[++i]) 12410 substed = 1 12411 } else 12412 len += 1 + keylen 12413 } 12414 12415 print line 12416} 12417 12418_ACAWK 12419_ACEOF 12420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12421if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12423else 12424 cat 12425fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12427_ACEOF 12428 12429# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12430# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12431# trailing colons and then remove the whole line if VPATH becomes empty 12432# (actually we leave an empty line to preserve line numbers). 12433if test "x$srcdir" = x.; then 12434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12435h 12436s/// 12437s/^/:/ 12438s/[ ]*$/:/ 12439s/:\$(srcdir):/:/g 12440s/:\${srcdir}:/:/g 12441s/:@srcdir@:/:/g 12442s/^:*// 12443s/:*$// 12444x 12445s/\(=[ ]*\).*/\1/ 12446G 12447s/\n// 12448s/^[^=]*=[ ]*$// 12449}' 12450fi 12451 12452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12453fi # test -n "$CONFIG_FILES" 12454 12455# Set up the scripts for CONFIG_HEADERS section. 12456# No need to generate them if there are no CONFIG_HEADERS. 12457# This happens for instance with `./config.status Makefile'. 12458if test -n "$CONFIG_HEADERS"; then 12459cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12460BEGIN { 12461_ACEOF 12462 12463# Transform confdefs.h into an awk script `defines.awk', embedded as 12464# here-document in config.status, that substitutes the proper values into 12465# config.h.in to produce config.h. 12466 12467# Create a delimiter string that does not exist in confdefs.h, to ease 12468# handling of long lines. 12469ac_delim='%!_!# ' 12470for ac_last_try in false false :; do 12471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12472 if test -z "$ac_tt"; then 12473 break 12474 elif $ac_last_try; then 12475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12476 else 12477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12478 fi 12479done 12480 12481# For the awk script, D is an array of macro values keyed by name, 12482# likewise P contains macro parameters if any. Preserve backslash 12483# newline sequences. 12484 12485ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12486sed -n ' 12487s/.\{148\}/&'"$ac_delim"'/g 12488t rset 12489:rset 12490s/^[ ]*#[ ]*define[ ][ ]*/ / 12491t def 12492d 12493:def 12494s/\\$// 12495t bsnl 12496s/["\\]/\\&/g 12497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12498D["\1"]=" \3"/p 12499s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12500d 12501:bsnl 12502s/["\\]/\\&/g 12503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12504D["\1"]=" \3\\\\\\n"\\/p 12505t cont 12506s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12507t cont 12508d 12509:cont 12510n 12511s/.\{148\}/&'"$ac_delim"'/g 12512t clear 12513:clear 12514s/\\$// 12515t bsnlc 12516s/["\\]/\\&/g; s/^/"/; s/$/"/p 12517d 12518:bsnlc 12519s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12520b cont 12521' <confdefs.h | sed ' 12522s/'"$ac_delim"'/"\\\ 12523"/g' >>$CONFIG_STATUS || ac_write_fail=1 12524 12525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12526 for (key in D) D_is_set[key] = 1 12527 FS = "" 12528} 12529/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12530 line = \$ 0 12531 split(line, arg, " ") 12532 if (arg[1] == "#") { 12533 defundef = arg[2] 12534 mac1 = arg[3] 12535 } else { 12536 defundef = substr(arg[1], 2) 12537 mac1 = arg[2] 12538 } 12539 split(mac1, mac2, "(") #) 12540 macro = mac2[1] 12541 prefix = substr(line, 1, index(line, defundef) - 1) 12542 if (D_is_set[macro]) { 12543 # Preserve the white space surrounding the "#". 12544 print prefix "define", macro P[macro] D[macro] 12545 next 12546 } else { 12547 # Replace #undef with comments. This is necessary, for example, 12548 # in the case of _POSIX_SOURCE, which is predefined and required 12549 # on some systems where configure will not decide to define it. 12550 if (defundef == "undef") { 12551 print "/*", prefix defundef, macro, "*/" 12552 next 12553 } 12554 } 12555} 12556{ print } 12557_ACAWK 12558_ACEOF 12559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12561fi # test -n "$CONFIG_HEADERS" 12562 12563 12564eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12565shift 12566for ac_tag 12567do 12568 case $ac_tag in 12569 :[FHLC]) ac_mode=$ac_tag; continue;; 12570 esac 12571 case $ac_mode$ac_tag in 12572 :[FHL]*:*);; 12573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12574 :[FH]-) ac_tag=-:-;; 12575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12576 esac 12577 ac_save_IFS=$IFS 12578 IFS=: 12579 set x $ac_tag 12580 IFS=$ac_save_IFS 12581 shift 12582 ac_file=$1 12583 shift 12584 12585 case $ac_mode in 12586 :L) ac_source=$1;; 12587 :[FH]) 12588 ac_file_inputs= 12589 for ac_f 12590 do 12591 case $ac_f in 12592 -) ac_f="$ac_tmp/stdin";; 12593 *) # Look for the file first in the build tree, then in the source tree 12594 # (if the path is not absolute). The absolute path cannot be DOS-style, 12595 # because $ac_f cannot contain `:'. 12596 test -f "$ac_f" || 12597 case $ac_f in 12598 [\\/$]*) false;; 12599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12600 esac || 12601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12602 esac 12603 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12604 as_fn_append ac_file_inputs " '$ac_f'" 12605 done 12606 12607 # Let's still pretend it is `configure' which instantiates (i.e., don't 12608 # use $as_me), people would be surprised to read: 12609 # /* config.h. Generated by config.status. */ 12610 configure_input='Generated from '` 12611 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12612 `' by configure.' 12613 if test x"$ac_file" != x-; then 12614 configure_input="$ac_file. $configure_input" 12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12616printf "%s\n" "$as_me: creating $ac_file" >&6;} 12617 fi 12618 # Neutralize special characters interpreted by sed in replacement strings. 12619 case $configure_input in #( 12620 *\&* | *\|* | *\\* ) 12621 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12622 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12623 *) ac_sed_conf_input=$configure_input;; 12624 esac 12625 12626 case $ac_tag in 12627 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12629 esac 12630 ;; 12631 esac 12632 12633 ac_dir=`$as_dirname -- "$ac_file" || 12634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12635 X"$ac_file" : 'X\(//\)[^/]' \| \ 12636 X"$ac_file" : 'X\(//\)$' \| \ 12637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12638printf "%s\n" X"$ac_file" | 12639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12640 s//\1/ 12641 q 12642 } 12643 /^X\(\/\/\)[^/].*/{ 12644 s//\1/ 12645 q 12646 } 12647 /^X\(\/\/\)$/{ 12648 s//\1/ 12649 q 12650 } 12651 /^X\(\/\).*/{ 12652 s//\1/ 12653 q 12654 } 12655 s/.*/./; q'` 12656 as_dir="$ac_dir"; as_fn_mkdir_p 12657 ac_builddir=. 12658 12659case "$ac_dir" in 12660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12661*) 12662 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12663 # A ".." for each directory in $ac_dir_suffix. 12664 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12665 case $ac_top_builddir_sub in 12666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12668 esac ;; 12669esac 12670ac_abs_top_builddir=$ac_pwd 12671ac_abs_builddir=$ac_pwd$ac_dir_suffix 12672# for backward compatibility: 12673ac_top_builddir=$ac_top_build_prefix 12674 12675case $srcdir in 12676 .) # We are building in place. 12677 ac_srcdir=. 12678 ac_top_srcdir=$ac_top_builddir_sub 12679 ac_abs_top_srcdir=$ac_pwd ;; 12680 [\\/]* | ?:[\\/]* ) # Absolute name. 12681 ac_srcdir=$srcdir$ac_dir_suffix; 12682 ac_top_srcdir=$srcdir 12683 ac_abs_top_srcdir=$srcdir ;; 12684 *) # Relative name. 12685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12686 ac_top_srcdir=$ac_top_build_prefix$srcdir 12687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12688esac 12689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12690 12691 12692 case $ac_mode in 12693 :F) 12694 # 12695 # CONFIG_FILE 12696 # 12697 12698 case $INSTALL in 12699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12701 esac 12702 ac_MKDIR_P=$MKDIR_P 12703 case $MKDIR_P in 12704 [\\/$]* | ?:[\\/]* ) ;; 12705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12706 esac 12707_ACEOF 12708 12709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12710# If the template does not know about datarootdir, expand it. 12711# FIXME: This hack should be removed a few years after 2.60. 12712ac_datarootdir_hack=; ac_datarootdir_seen= 12713ac_sed_dataroot=' 12714/datarootdir/ { 12715 p 12716 q 12717} 12718/@datadir@/p 12719/@docdir@/p 12720/@infodir@/p 12721/@localedir@/p 12722/@mandir@/p' 12723case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12724*datarootdir*) ac_datarootdir_seen=yes;; 12725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12727printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12728_ACEOF 12729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12730 ac_datarootdir_hack=' 12731 s&@datadir@&$datadir&g 12732 s&@docdir@&$docdir&g 12733 s&@infodir@&$infodir&g 12734 s&@localedir@&$localedir&g 12735 s&@mandir@&$mandir&g 12736 s&\\\${datarootdir}&$datarootdir&g' ;; 12737esac 12738_ACEOF 12739 12740# Neutralize VPATH when `$srcdir' = `.'. 12741# Shell code in configure.ac might set extrasub. 12742# FIXME: do we really want to maintain this feature? 12743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12744ac_sed_extra="$ac_vpsub 12745$extrasub 12746_ACEOF 12747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12748:t 12749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12750s|@configure_input@|$ac_sed_conf_input|;t t 12751s&@top_builddir@&$ac_top_builddir_sub&;t t 12752s&@top_build_prefix@&$ac_top_build_prefix&;t t 12753s&@srcdir@&$ac_srcdir&;t t 12754s&@abs_srcdir@&$ac_abs_srcdir&;t t 12755s&@top_srcdir@&$ac_top_srcdir&;t t 12756s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12757s&@builddir@&$ac_builddir&;t t 12758s&@abs_builddir@&$ac_abs_builddir&;t t 12759s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12760s&@INSTALL@&$ac_INSTALL&;t t 12761s&@MKDIR_P@&$ac_MKDIR_P&;t t 12762$ac_datarootdir_hack 12763" 12764eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12766 12767test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12770 "$ac_tmp/out"`; test -z "$ac_out"; } && 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12772which seems to be undefined. Please make sure it is defined" >&5 12773printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12774which seems to be undefined. Please make sure it is defined" >&2;} 12775 12776 rm -f "$ac_tmp/stdin" 12777 case $ac_file in 12778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12780 esac \ 12781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12782 ;; 12783 :H) 12784 # 12785 # CONFIG_HEADER 12786 # 12787 if test x"$ac_file" != x-; then 12788 { 12789 printf "%s\n" "/* $configure_input */" >&1 \ 12790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12791 } >"$ac_tmp/config.h" \ 12792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12795printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12796 else 12797 rm -f "$ac_file" 12798 mv "$ac_tmp/config.h" "$ac_file" \ 12799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12800 fi 12801 else 12802 printf "%s\n" "/* $configure_input */" >&1 \ 12803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12804 || as_fn_error $? "could not create -" "$LINENO" 5 12805 fi 12806# Compute "$ac_file"'s index in $config_headers. 12807_am_arg="$ac_file" 12808_am_stamp_count=1 12809for _am_header in $config_headers :; do 12810 case $_am_header in 12811 $_am_arg | $_am_arg:* ) 12812 break ;; 12813 * ) 12814 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12815 esac 12816done 12817echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12818$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12819 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12820 X"$_am_arg" : 'X\(//\)$' \| \ 12821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12822printf "%s\n" X"$_am_arg" | 12823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12824 s//\1/ 12825 q 12826 } 12827 /^X\(\/\/\)[^/].*/{ 12828 s//\1/ 12829 q 12830 } 12831 /^X\(\/\/\)$/{ 12832 s//\1/ 12833 q 12834 } 12835 /^X\(\/\).*/{ 12836 s//\1/ 12837 q 12838 } 12839 s/.*/./; q'`/stamp-h$_am_stamp_count 12840 ;; 12841 12842 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12843printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12844 ;; 12845 esac 12846 12847 12848 case $ac_file$ac_mode in 12849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12850 # Older Autoconf quotes --file arguments for eval, but not when files 12851 # are listed without --file. Let's play safe and only enable the eval 12852 # if we detect the quoting. 12853 # TODO: see whether this extra hack can be removed once we start 12854 # requiring Autoconf 2.70 or later. 12855 case $CONFIG_FILES in #( 12856 *\'*) : 12857 eval set x "$CONFIG_FILES" ;; #( 12858 *) : 12859 set x $CONFIG_FILES ;; #( 12860 *) : 12861 ;; 12862esac 12863 shift 12864 # Used to flag and report bootstrapping failures. 12865 am_rc=0 12866 for am_mf 12867 do 12868 # Strip MF so we end up with the name of the file. 12869 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12870 # Check whether this is an Automake generated Makefile which includes 12871 # dependency-tracking related rules and includes. 12872 # Grep'ing the whole file directly is not great: AIX grep has a line 12873 # limit of 2048, but all sed's we know have understand at least 4000. 12874 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12875 || continue 12876 am_dirpart=`$as_dirname -- "$am_mf" || 12877$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12878 X"$am_mf" : 'X\(//\)[^/]' \| \ 12879 X"$am_mf" : 'X\(//\)$' \| \ 12880 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12881printf "%s\n" X"$am_mf" | 12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12883 s//\1/ 12884 q 12885 } 12886 /^X\(\/\/\)[^/].*/{ 12887 s//\1/ 12888 q 12889 } 12890 /^X\(\/\/\)$/{ 12891 s//\1/ 12892 q 12893 } 12894 /^X\(\/\).*/{ 12895 s//\1/ 12896 q 12897 } 12898 s/.*/./; q'` 12899 am_filepart=`$as_basename -- "$am_mf" || 12900$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12901 X"$am_mf" : 'X\(//\)$' \| \ 12902 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12903printf "%s\n" X/"$am_mf" | 12904 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12905 s//\1/ 12906 q 12907 } 12908 /^X\/\(\/\/\)$/{ 12909 s//\1/ 12910 q 12911 } 12912 /^X\/\(\/\).*/{ 12913 s//\1/ 12914 q 12915 } 12916 s/.*/./; q'` 12917 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12918 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12919 | $MAKE -f - am--depfiles" >&5 12920 (cd "$am_dirpart" \ 12921 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12922 | $MAKE -f - am--depfiles) >&5 2>&5 12923 ac_status=$? 12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12925 (exit $ac_status); } || am_rc=$? 12926 done 12927 if test $am_rc -ne 0; then 12928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12929printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12930as_fn_error $? "Something went wrong bootstrapping makefile fragments 12931 for automatic dependency tracking. If GNU make was not used, consider 12932 re-running the configure script with MAKE=\"gmake\" (or whatever is 12933 necessary). You can also try re-running configure with the 12934 '--disable-dependency-tracking' option to at least be able to build 12935 the package (albeit without support for automatic dependency tracking). 12936See \`config.log' for more details" "$LINENO" 5; } 12937 fi 12938 { am_dirpart=; unset am_dirpart;} 12939 { am_filepart=; unset am_filepart;} 12940 { am_mf=; unset am_mf;} 12941 { am_rc=; unset am_rc;} 12942 rm -f conftest-deps.mk 12943} 12944 ;; 12945 12946 esac 12947done # for ac_tag 12948 12949 12950as_fn_exit 0 12951_ACEOF 12952ac_clean_files=$ac_clean_files_save 12953 12954test $ac_write_fail = 0 || 12955 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12956 12957 12958# configure is writing to config.log, and then calls config.status. 12959# config.status does its own redirection, appending to config.log. 12960# Unfortunately, on DOS this fails, as config.log is still kept open 12961# by configure, so config.status won't be able to write to it; its 12962# output is simply discarded. So we exec the FD to /dev/null, 12963# effectively closing config.log, so it can be properly (re)opened and 12964# appended to by config.status. When coming back to configure, we 12965# need to make the FD available again. 12966if test "$no_create" != yes; then 12967 ac_cs_success=: 12968 ac_config_status_args= 12969 test "$silent" = yes && 12970 ac_config_status_args="$ac_config_status_args --quiet" 12971 exec 5>/dev/null 12972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12973 exec 5>>config.log 12974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12975 # would make configure fail if this is the last instruction. 12976 $ac_cs_success || as_fn_exit 1 12977fi 12978if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12980printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12981fi 12982 12983 12984