configure revision a67f45c3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xkbevd 1.1.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/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/xkbevd/-/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='xkbevd' 614PACKAGE_TARNAME='xkbevd' 615PACKAGE_VERSION='1.1.5' 616PACKAGE_STRING='xkbevd 1.1.5' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbevd/-/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 657XKBEVD_LIBS 658XKBEVD_CFLAGS 659YACC_INST 660YFLAGS 661YACC 662MAN_SUBSTS 663XORG_MAN_PAGE 664ADMIN_MAN_DIR 665DRIVER_MAN_DIR 666MISC_MAN_DIR 667FILE_MAN_DIR 668LIB_MAN_DIR 669APP_MAN_DIR 670ADMIN_MAN_SUFFIX 671DRIVER_MAN_SUFFIX 672MISC_MAN_SUFFIX 673FILE_MAN_SUFFIX 674LIB_MAN_SUFFIX 675APP_MAN_SUFFIX 676SED 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685INSTALL_CMD 686PKG_CONFIG_LIBDIR 687PKG_CONFIG_PATH 688PKG_CONFIG 689CHANGELOG_CMD 690STRICT_CFLAGS 691CWARNFLAGS 692BASE_CFLAGS 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__include 701DEPDIR 702OBJEXT 703EXEEXT 704ac_ct_CC 705CPPFLAGS 706LDFLAGS 707CFLAGS 708CC 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711AM_DEFAULT_V 712AM_V 713CSCOPE 714ETAGS 715CTAGS 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758runstatedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL 778am__quote' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_silent_rules 783enable_dependency_tracking 784enable_selective_werror 785enable_strict_compilation 786' 787 ac_precious_vars='build_alias 788host_alias 789target_alias 790CC 791CFLAGS 792LDFLAGS 793LIBS 794CPPFLAGS 795PKG_CONFIG 796PKG_CONFIG_PATH 797PKG_CONFIG_LIBDIR 798YACC 799YFLAGS 800XKBEVD_CFLAGS 801XKBEVD_LIBS' 802 803 804# Initialize some variables set by options. 805ac_init_help= 806ac_init_version=false 807ac_unrecognized_opts= 808ac_unrecognized_sep= 809# The variables have the same names as the options, with 810# dashes changed to underlines. 811cache_file=/dev/null 812exec_prefix=NONE 813no_create= 814no_recursion= 815prefix=NONE 816program_prefix=NONE 817program_suffix=NONE 818program_transform_name=s,x,x, 819silent= 820site= 821srcdir= 822verbose= 823x_includes=NONE 824x_libraries=NONE 825 826# Installation directory options. 827# These are left unexpanded so users can "make install exec_prefix=/foo" 828# and all the variables that are supposed to be based on exec_prefix 829# by default will actually change. 830# Use braces instead of parens because sh, perl, etc. also accept them. 831# (The list follows the same order as the GNU Coding Standards.) 832bindir='${exec_prefix}/bin' 833sbindir='${exec_prefix}/sbin' 834libexecdir='${exec_prefix}/libexec' 835datarootdir='${prefix}/share' 836datadir='${datarootdir}' 837sysconfdir='${prefix}/etc' 838sharedstatedir='${prefix}/com' 839localstatedir='${prefix}/var' 840runstatedir='${localstatedir}/run' 841includedir='${prefix}/include' 842oldincludedir='/usr/include' 843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844infodir='${datarootdir}/info' 845htmldir='${docdir}' 846dvidir='${docdir}' 847pdfdir='${docdir}' 848psdir='${docdir}' 849libdir='${exec_prefix}/lib' 850localedir='${datarootdir}/locale' 851mandir='${datarootdir}/man' 852 853ac_prev= 854ac_dashdash= 855for ac_option 856do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: \`$ac_useropt'" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: \`$ac_useropt'" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1092 | --runstate | --runstat | --runsta | --runst | --runs \ 1093 | --run | --ru | --r) 1094 ac_prev=runstatedir ;; 1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1097 | --run=* | --ru=* | --r=*) 1098 runstatedir=$ac_optarg ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: \`$ac_useropt'" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: \`$ac_useropt'" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1196Try \`$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir runstatedir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: `$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293printf "%s\n" X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350\`configure' configures xkbevd 1.1.5 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print \`checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for \`--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, \`make install' will install all the files in 1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1379for instance \`--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbevd] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404_ACEOF 1405 1406 cat <<\_ACEOF 1407 1408Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416_ACEOF 1417fi 1418 1419if test -n "$ac_init_help"; then 1420 case $ac_init_help in 1421 short | recursive ) echo "Configuration of xkbevd 1.1.5:";; 1422 esac 1423 cat <<\_ACEOF 1424 1425Optional Features: 1426 --disable-option-checking ignore unrecognized --enable/--with options 1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1429 --enable-silent-rules less verbose build output (undo: "make V=1") 1430 --disable-silent-rules verbose build output (undo: "make V=0") 1431 --enable-dependency-tracking 1432 do not reject slow dependency extractors 1433 --disable-dependency-tracking 1434 speeds up one-time build 1435 --disable-selective-werror 1436 Turn off selective compiler errors. (default: 1437 enabled) 1438 --enable-strict-compilation 1439 Enable all warnings from compiler and make them 1440 errors (default: disabled) 1441 1442Some influential environment variables: 1443 CC C compiler command 1444 CFLAGS C compiler flags 1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1446 nonstandard directory <lib dir> 1447 LIBS libraries to pass to the linker, e.g. -l<library> 1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1449 you have headers in a nonstandard directory <include dir> 1450 PKG_CONFIG path to pkg-config utility 1451 PKG_CONFIG_PATH 1452 directories to add to pkg-config's search path 1453 PKG_CONFIG_LIBDIR 1454 path overriding pkg-config's built-in search path 1455 YACC The `Yet Another Compiler Compiler' implementation to use. 1456 Defaults to the first program found out of: `bison -y', `byacc', 1457 `yacc'. 1458 YFLAGS The list of arguments that will be passed by default to $YACC. 1459 This script will default YFLAGS to the empty string to avoid a 1460 default value of `-d' given by some make applications. 1461 XKBEVD_CFLAGS 1462 C compiler flags for XKBEVD, overriding pkg-config 1463 XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config 1464 1465Use these variables to override the choices made by `configure' or to help 1466it to find libraries and programs with nonstandard names/locations. 1467 1468Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>. 1469_ACEOF 1470ac_status=$? 1471fi 1472 1473if test "$ac_init_help" = "recursive"; then 1474 # If there are subdirs, report their specific --help. 1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1476 test -d "$ac_dir" || 1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1478 continue 1479 ac_builddir=. 1480 1481case "$ac_dir" in 1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483*) 1484 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491esac 1492ac_abs_top_builddir=$ac_pwd 1493ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494# for backward compatibility: 1495ac_top_builddir=$ac_top_build_prefix 1496 1497case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510esac 1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for configure.gnu first; this name is used for a wrapper for 1515 # Metaconfig's "Configure" on case-insensitive file systems. 1516 if test -f "$ac_srcdir/configure.gnu"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1519 elif test -f "$ac_srcdir/configure"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure" --help=recursive 1522 else 1523 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1524 fi || ac_status=$? 1525 cd "$ac_pwd" || { ac_status=$?; break; } 1526 done 1527fi 1528 1529test -n "$ac_init_help" && exit $ac_status 1530if $ac_init_version; then 1531 cat <<\_ACEOF 1532xkbevd configure 1.1.5 1533generated by GNU Autoconf 2.71 1534 1535Copyright (C) 2021 Free Software Foundation, Inc. 1536This configure script is free software; the Free Software Foundation 1537gives unlimited permission to copy, distribute and modify it. 1538_ACEOF 1539 exit 1540fi 1541 1542## ------------------------ ## 1543## Autoconf initialization. ## 1544## ------------------------ ## 1545 1546# ac_fn_c_try_compile LINENO 1547# -------------------------- 1548# Try to compile conftest.$ac_ext, and return whether this succeeded. 1549ac_fn_c_try_compile () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext conftest.beam 1553 if { { ac_try="$ac_compile" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559printf "%s\n" "$ac_try_echo"; } >&5 1560 (eval "$ac_compile") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest.$ac_objext 1572then : 1573 ac_retval=0 1574else $as_nop 1575 printf "%s\n" "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_compile 1584 1585# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1586# ------------------------------------------------------------------ 1587# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1588# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1589ac_fn_check_decl () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 as_decl_name=`echo $2|sed 's/ *(.*//'` 1593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1594printf %s "checking whether $as_decl_name is declared... " >&6; } 1595if eval test \${$3+y} 1596then : 1597 printf %s "(cached) " >&6 1598else $as_nop 1599 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1600 eval ac_save_FLAGS=\$$6 1601 as_fn_append $6 " $5" 1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1603/* end confdefs.h. */ 1604$4 1605int 1606main (void) 1607{ 1608#ifndef $as_decl_name 1609#ifdef __cplusplus 1610 (void) $as_decl_use; 1611#else 1612 (void) $as_decl_name; 1613#endif 1614#endif 1615 1616 ; 1617 return 0; 1618} 1619_ACEOF 1620if ac_fn_c_try_compile "$LINENO" 1621then : 1622 eval "$3=yes" 1623else $as_nop 1624 eval "$3=no" 1625fi 1626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1627 eval $6=\$ac_save_FLAGS 1628 1629fi 1630eval ac_res=\$$3 1631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1632printf "%s\n" "$ac_res" >&6; } 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 1635} # ac_fn_check_decl 1636 1637# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1638# ------------------------------------------------------- 1639# Tests whether HEADER exists and can be compiled using the include files in 1640# INCLUDES, setting the cache variable VAR accordingly. 1641ac_fn_c_check_header_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1645printf %s "checking for $2... " >&6; } 1646if eval test \${$3+y} 1647then : 1648 printf %s "(cached) " >&6 1649else $as_nop 1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1651/* end confdefs.h. */ 1652$4 1653#include <$2> 1654_ACEOF 1655if ac_fn_c_try_compile "$LINENO" 1656then : 1657 eval "$3=yes" 1658else $as_nop 1659 eval "$3=no" 1660fi 1661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1662fi 1663eval ac_res=\$$3 1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1665printf "%s\n" "$ac_res" >&6; } 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 1668} # ac_fn_c_check_header_compile 1669 1670# ac_fn_c_try_link LINENO 1671# ----------------------- 1672# Try to link conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_link () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1677 if { { ac_try="$ac_link" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683printf "%s\n" "$ac_try_echo"; } >&5 1684 (eval "$ac_link") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest$ac_exeext && { 1696 test "$cross_compiling" = yes || 1697 test -x conftest$ac_exeext 1698 } 1699then : 1700 ac_retval=0 1701else $as_nop 1702 printf "%s\n" "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1709 # interfere with the next link command; also delete a directory that is 1710 # left behind by Apple's compiler. We do this before executing the actions. 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_link 1716 1717# ac_fn_c_check_func LINENO FUNC VAR 1718# ---------------------------------- 1719# Tests whether FUNC exists, setting the cache variable VAR accordingly 1720ac_fn_c_check_func () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724printf %s "checking for $2... " >&6; } 1725if eval test \${$3+y} 1726then : 1727 printf %s "(cached) " >&6 1728else $as_nop 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733#define $2 innocuous_$2 1734 1735/* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (); below. */ 1737 1738#include <limits.h> 1739#undef $2 1740 1741/* Override any GCC internal prototype to avoid an error. 1742 Use char because int might match the return type of a GCC 1743 builtin and then its argument prototype would still apply. */ 1744#ifdef __cplusplus 1745extern "C" 1746#endif 1747char $2 (); 1748/* The GNU C library defines this for functions which it implements 1749 to always fail with ENOSYS. Some functions are actually named 1750 something starting with __ and the normal name is an alias. */ 1751#if defined __stub_$2 || defined __stub___$2 1752choke me 1753#endif 1754 1755int 1756main (void) 1757{ 1758return $2 (); 1759 ; 1760 return 0; 1761} 1762_ACEOF 1763if ac_fn_c_try_link "$LINENO" 1764then : 1765 eval "$3=yes" 1766else $as_nop 1767 eval "$3=no" 1768fi 1769rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1770 conftest$ac_exeext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774printf "%s\n" "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_func 1778ac_configure_args_raw= 1779for ac_arg 1780do 1781 case $ac_arg in 1782 *\'*) 1783 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784 esac 1785 as_fn_append ac_configure_args_raw " '$ac_arg'" 1786done 1787 1788case $ac_configure_args_raw in 1789 *$as_nl*) 1790 ac_safe_unquote= ;; 1791 *) 1792 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1793 ac_unsafe_a="$ac_unsafe_z#~" 1794 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1795 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1796esac 1797 1798cat >config.log <<_ACEOF 1799This file contains any messages produced by compilers while 1800running configure, to aid debugging if configure makes a mistake. 1801 1802It was created by xkbevd $as_me 1.1.5, which was 1803generated by GNU Autoconf 2.71. Invocation command line was 1804 1805 $ $0$ac_configure_args_raw 1806 1807_ACEOF 1808exec 5>>config.log 1809{ 1810cat <<_ASUNAME 1811## --------- ## 1812## Platform. ## 1813## --------- ## 1814 1815hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1816uname -m = `(uname -m) 2>/dev/null || echo unknown` 1817uname -r = `(uname -r) 2>/dev/null || echo unknown` 1818uname -s = `(uname -s) 2>/dev/null || echo unknown` 1819uname -v = `(uname -v) 2>/dev/null || echo unknown` 1820 1821/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1822/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1823 1824/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1825/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1826/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1827/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1828/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1829/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1830/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1831 1832_ASUNAME 1833 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 case $as_dir in #((( 1839 '') as_dir=./ ;; 1840 */) ;; 1841 *) as_dir=$as_dir/ ;; 1842 esac 1843 printf "%s\n" "PATH: $as_dir" 1844 done 1845IFS=$as_save_IFS 1846 1847} >&5 1848 1849cat >&5 <<_ACEOF 1850 1851 1852## ----------- ## 1853## Core tests. ## 1854## ----------- ## 1855 1856_ACEOF 1857 1858 1859# Keep a trace of the command line. 1860# Strip out --no-create and --no-recursion so they do not pile up. 1861# Strip out --silent because we don't want to record it for future runs. 1862# Also quote any args containing shell meta-characters. 1863# Make two passes to allow for proper duplicate-argument suppression. 1864ac_configure_args= 1865ac_configure_args0= 1866ac_configure_args1= 1867ac_must_keep_next=false 1868for ac_pass in 1 2 1869do 1870 for ac_arg 1871 do 1872 case $ac_arg in 1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1875 | -silent | --silent | --silen | --sile | --sil) 1876 continue ;; 1877 *\'*) 1878 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1879 esac 1880 case $ac_pass in 1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1882 2) 1883 as_fn_append ac_configure_args1 " '$ac_arg'" 1884 if test $ac_must_keep_next = true; then 1885 ac_must_keep_next=false # Got value, back to normal. 1886 else 1887 case $ac_arg in 1888 *=* | --config-cache | -C | -disable-* | --disable-* \ 1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1891 | -with-* | --with-* | -without-* | --without-* | --x) 1892 case "$ac_configure_args0 " in 1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1894 esac 1895 ;; 1896 -* ) ac_must_keep_next=true ;; 1897 esac 1898 fi 1899 as_fn_append ac_configure_args " '$ac_arg'" 1900 ;; 1901 esac 1902 done 1903done 1904{ ac_configure_args0=; unset ac_configure_args0;} 1905{ ac_configure_args1=; unset ac_configure_args1;} 1906 1907# When interrupted or exit'd, cleanup temporary files, and complete 1908# config.log. We remove comments because anyway the quotes in there 1909# would cause problems or look ugly. 1910# WARNING: Use '\'' to represent an apostrophe within the trap. 1911# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1912trap 'exit_status=$? 1913 # Sanitize IFS. 1914 IFS=" "" $as_nl" 1915 # Save into config.log some information that might help in debugging. 1916 { 1917 echo 1918 1919 printf "%s\n" "## ---------------- ## 1920## Cache variables. ## 1921## ---------------- ##" 1922 echo 1923 # The following way of writing the cache mishandles newlines in values, 1924( 1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in #( 1928 *${as_nl}*) 1929 case $ac_var in #( 1930 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1932 esac 1933 case $ac_var in #( 1934 _ | IFS | as_nl) ;; #( 1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1936 *) { eval $ac_var=; unset $ac_var;} ;; 1937 esac ;; 1938 esac 1939 done 1940 (set) 2>&1 | 1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1942 *${as_nl}ac_space=\ *) 1943 sed -n \ 1944 "s/'\''/'\''\\\\'\'''\''/g; 1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1946 ;; #( 1947 *) 1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1949 ;; 1950 esac | 1951 sort 1952) 1953 echo 1954 1955 printf "%s\n" "## ----------------- ## 1956## Output variables. ## 1957## ----------------- ##" 1958 echo 1959 for ac_var in $ac_subst_vars 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 printf "%s\n" "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 1969 if test -n "$ac_subst_files"; then 1970 printf "%s\n" "## ------------------- ## 1971## File substitutions. ## 1972## ------------------- ##" 1973 echo 1974 for ac_var in $ac_subst_files 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 printf "%s\n" "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 fi 1984 1985 if test -s confdefs.h; then 1986 printf "%s\n" "## ----------- ## 1987## confdefs.h. ## 1988## ----------- ##" 1989 echo 1990 cat confdefs.h 1991 echo 1992 fi 1993 test "$ac_signal" != 0 && 1994 printf "%s\n" "$as_me: caught signal $ac_signal" 1995 printf "%s\n" "$as_me: exit $exit_status" 1996 } >&5 1997 rm -f core *.core core.conftest.* && 1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1999 exit $exit_status 2000' 0 2001for ac_signal in 1 2 13 15; do 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2003done 2004ac_signal=0 2005 2006# confdefs.h avoids OS command line length limits that DEFS can exceed. 2007rm -f -r conftest* confdefs.h 2008 2009printf "%s\n" "/* confdefs.h */" > confdefs.h 2010 2011# Predefined preprocessor variables. 2012 2013printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2014 2015printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2016 2017printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2018 2019printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2020 2021printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2022 2023printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2024 2025 2026# Let the site file select an alternate cache file if it wants to. 2027# Prefer an explicitly selected file to automatically selected ones. 2028if test -n "$CONFIG_SITE"; then 2029 ac_site_files="$CONFIG_SITE" 2030elif test "x$prefix" != xNONE; then 2031 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2032else 2033 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2034fi 2035 2036for ac_site_file in $ac_site_files 2037do 2038 case $ac_site_file in #( 2039 */*) : 2040 ;; #( 2041 *) : 2042 ac_site_file=./$ac_site_file ;; 2043esac 2044 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2046printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2047 sed 's/^/| /' "$ac_site_file" >&5 2048 . "$ac_site_file" \ 2049 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2050printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2051as_fn_error $? "failed to load site script $ac_site_file 2052See \`config.log' for more details" "$LINENO" 5; } 2053 fi 2054done 2055 2056if test -r "$cache_file"; then 2057 # Some versions of bash will fail to source /dev/null (special files 2058 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2059 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2061printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2062 case $cache_file in 2063 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2064 *) . "./$cache_file";; 2065 esac 2066 fi 2067else 2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2069printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2070 >$cache_file 2071fi 2072 2073# Test code for whether the C compiler supports C89 (global declarations) 2074ac_c_conftest_c89_globals=' 2075/* Does the compiler advertise C89 conformance? 2076 Do not test the value of __STDC__, because some compilers set it to 0 2077 while being otherwise adequately conformant. */ 2078#if !defined __STDC__ 2079# error "Compiler does not advertise C89 conformance" 2080#endif 2081 2082#include <stddef.h> 2083#include <stdarg.h> 2084struct stat; 2085/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2086struct buf { int x; }; 2087struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2088static char *e (p, i) 2089 char **p; 2090 int i; 2091{ 2092 return p[i]; 2093} 2094static char *f (char * (*g) (char **, int), char **p, ...) 2095{ 2096 char *s; 2097 va_list v; 2098 va_start (v,p); 2099 s = g (p, va_arg (v,int)); 2100 va_end (v); 2101 return s; 2102} 2103 2104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2105 function prototypes and stuff, but not \xHH hex character constants. 2106 These do not provoke an error unfortunately, instead are silently treated 2107 as an "x". The following induces an error, until -std is added to get 2108 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2109 array size at least. It is necessary to write \x00 == 0 to get something 2110 that is true only with -std. */ 2111int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2112 2113/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2114 inside strings and character constants. */ 2115#define FOO(x) '\''x'\'' 2116int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2117 2118int test (int i, double x); 2119struct s1 {int (*f) (int a);}; 2120struct s2 {int (*f) (double a);}; 2121int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2122 int, int);' 2123 2124# Test code for whether the C compiler supports C89 (body of main). 2125ac_c_conftest_c89_main=' 2126ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2127' 2128 2129# Test code for whether the C compiler supports C99 (global declarations) 2130ac_c_conftest_c99_globals=' 2131// Does the compiler advertise C99 conformance? 2132#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2133# error "Compiler does not advertise C99 conformance" 2134#endif 2135 2136#include <stdbool.h> 2137extern int puts (const char *); 2138extern int printf (const char *, ...); 2139extern int dprintf (int, const char *, ...); 2140extern void *malloc (size_t); 2141 2142// Check varargs macros. These examples are taken from C99 6.10.3.5. 2143// dprintf is used instead of fprintf to avoid needing to declare 2144// FILE and stderr. 2145#define debug(...) dprintf (2, __VA_ARGS__) 2146#define showlist(...) puts (#__VA_ARGS__) 2147#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2148static void 2149test_varargs_macros (void) 2150{ 2151 int x = 1234; 2152 int y = 5678; 2153 debug ("Flag"); 2154 debug ("X = %d\n", x); 2155 showlist (The first, second, and third items.); 2156 report (x>y, "x is %d but y is %d", x, y); 2157} 2158 2159// Check long long types. 2160#define BIG64 18446744073709551615ull 2161#define BIG32 4294967295ul 2162#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2163#if !BIG_OK 2164 #error "your preprocessor is broken" 2165#endif 2166#if BIG_OK 2167#else 2168 #error "your preprocessor is broken" 2169#endif 2170static long long int bignum = -9223372036854775807LL; 2171static unsigned long long int ubignum = BIG64; 2172 2173struct incomplete_array 2174{ 2175 int datasize; 2176 double data[]; 2177}; 2178 2179struct named_init { 2180 int number; 2181 const wchar_t *name; 2182 double average; 2183}; 2184 2185typedef const char *ccp; 2186 2187static inline int 2188test_restrict (ccp restrict text) 2189{ 2190 // See if C++-style comments work. 2191 // Iterate through items via the restricted pointer. 2192 // Also check for declarations in for loops. 2193 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2194 continue; 2195 return 0; 2196} 2197 2198// Check varargs and va_copy. 2199static bool 2200test_varargs (const char *format, ...) 2201{ 2202 va_list args; 2203 va_start (args, format); 2204 va_list args_copy; 2205 va_copy (args_copy, args); 2206 2207 const char *str = ""; 2208 int number = 0; 2209 float fnumber = 0; 2210 2211 while (*format) 2212 { 2213 switch (*format++) 2214 { 2215 case '\''s'\'': // string 2216 str = va_arg (args_copy, const char *); 2217 break; 2218 case '\''d'\'': // int 2219 number = va_arg (args_copy, int); 2220 break; 2221 case '\''f'\'': // float 2222 fnumber = va_arg (args_copy, double); 2223 break; 2224 default: 2225 break; 2226 } 2227 } 2228 va_end (args_copy); 2229 va_end (args); 2230 2231 return *str && number && fnumber; 2232} 2233' 2234 2235# Test code for whether the C compiler supports C99 (body of main). 2236ac_c_conftest_c99_main=' 2237 // Check bool. 2238 _Bool success = false; 2239 success |= (argc != 0); 2240 2241 // Check restrict. 2242 if (test_restrict ("String literal") == 0) 2243 success = true; 2244 char *restrict newvar = "Another string"; 2245 2246 // Check varargs. 2247 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2248 test_varargs_macros (); 2249 2250 // Check flexible array members. 2251 struct incomplete_array *ia = 2252 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2253 ia->datasize = 10; 2254 for (int i = 0; i < ia->datasize; ++i) 2255 ia->data[i] = i * 1.234; 2256 2257 // Check named initializers. 2258 struct named_init ni = { 2259 .number = 34, 2260 .name = L"Test wide string", 2261 .average = 543.34343, 2262 }; 2263 2264 ni.number = 58; 2265 2266 int dynamic_array[ni.number]; 2267 dynamic_array[0] = argv[0][0]; 2268 dynamic_array[ni.number - 1] = 543; 2269 2270 // work around unused variable warnings 2271 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2272 || dynamic_array[ni.number - 1] != 543); 2273' 2274 2275# Test code for whether the C compiler supports C11 (global declarations) 2276ac_c_conftest_c11_globals=' 2277// Does the compiler advertise C11 conformance? 2278#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2279# error "Compiler does not advertise C11 conformance" 2280#endif 2281 2282// Check _Alignas. 2283char _Alignas (double) aligned_as_double; 2284char _Alignas (0) no_special_alignment; 2285extern char aligned_as_int; 2286char _Alignas (0) _Alignas (int) aligned_as_int; 2287 2288// Check _Alignof. 2289enum 2290{ 2291 int_alignment = _Alignof (int), 2292 int_array_alignment = _Alignof (int[100]), 2293 char_alignment = _Alignof (char) 2294}; 2295_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2296 2297// Check _Noreturn. 2298int _Noreturn does_not_return (void) { for (;;) continue; } 2299 2300// Check _Static_assert. 2301struct test_static_assert 2302{ 2303 int x; 2304 _Static_assert (sizeof (int) <= sizeof (long int), 2305 "_Static_assert does not work in struct"); 2306 long int y; 2307}; 2308 2309// Check UTF-8 literals. 2310#define u8 syntax error! 2311char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2312 2313// Check duplicate typedefs. 2314typedef long *long_ptr; 2315typedef long int *long_ptr; 2316typedef long_ptr long_ptr; 2317 2318// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2319struct anonymous 2320{ 2321 union { 2322 struct { int i; int j; }; 2323 struct { int k; long int l; } w; 2324 }; 2325 int m; 2326} v1; 2327' 2328 2329# Test code for whether the C compiler supports C11 (body of main). 2330ac_c_conftest_c11_main=' 2331 _Static_assert ((offsetof (struct anonymous, i) 2332 == offsetof (struct anonymous, w.k)), 2333 "Anonymous union alignment botch"); 2334 v1.i = 2; 2335 v1.w.k = 5; 2336 ok |= v1.i != 5; 2337' 2338 2339# Test code for whether the C compiler supports C11 (complete). 2340ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2341${ac_c_conftest_c99_globals} 2342${ac_c_conftest_c11_globals} 2343 2344int 2345main (int argc, char **argv) 2346{ 2347 int ok = 0; 2348 ${ac_c_conftest_c89_main} 2349 ${ac_c_conftest_c99_main} 2350 ${ac_c_conftest_c11_main} 2351 return ok; 2352} 2353" 2354 2355# Test code for whether the C compiler supports C99 (complete). 2356ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2357${ac_c_conftest_c99_globals} 2358 2359int 2360main (int argc, char **argv) 2361{ 2362 int ok = 0; 2363 ${ac_c_conftest_c89_main} 2364 ${ac_c_conftest_c99_main} 2365 return ok; 2366} 2367" 2368 2369# Test code for whether the C compiler supports C89 (complete). 2370ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2371 2372int 2373main (int argc, char **argv) 2374{ 2375 int ok = 0; 2376 ${ac_c_conftest_c89_main} 2377 return ok; 2378} 2379" 2380 2381as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2382as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2383as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2384as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2385as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2386as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2387as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2388as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2389as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2390 2391# Auxiliary files required by this configure script. 2392ac_aux_files="config.guess config.sub compile missing install-sh" 2393 2394# Locations in which to look for auxiliary files. 2395ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2396 2397# Search for a directory containing all of the required auxiliary files, 2398# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2399# If we don't find one directory that contains all the files we need, 2400# we report the set of missing files from the *first* directory in 2401# $ac_aux_dir_candidates and give up. 2402ac_missing_aux_files="" 2403ac_first_candidate=: 2404printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406as_found=false 2407for as_dir in $ac_aux_dir_candidates 2408do 2409 IFS=$as_save_IFS 2410 case $as_dir in #((( 2411 '') as_dir=./ ;; 2412 */) ;; 2413 *) as_dir=$as_dir/ ;; 2414 esac 2415 as_found=: 2416 2417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2418 ac_aux_dir_found=yes 2419 ac_install_sh= 2420 for ac_aux in $ac_aux_files 2421 do 2422 # As a special case, if "install-sh" is required, that requirement 2423 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2424 # and $ac_install_sh is set appropriately for whichever one is found. 2425 if test x"$ac_aux" = x"install-sh" 2426 then 2427 if test -f "${as_dir}install-sh"; then 2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2429 ac_install_sh="${as_dir}install-sh -c" 2430 elif test -f "${as_dir}install.sh"; then 2431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2432 ac_install_sh="${as_dir}install.sh -c" 2433 elif test -f "${as_dir}shtool"; then 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2435 ac_install_sh="${as_dir}shtool install -c" 2436 else 2437 ac_aux_dir_found=no 2438 if $ac_first_candidate; then 2439 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2440 else 2441 break 2442 fi 2443 fi 2444 else 2445 if test -f "${as_dir}${ac_aux}"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2447 else 2448 ac_aux_dir_found=no 2449 if $ac_first_candidate; then 2450 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2451 else 2452 break 2453 fi 2454 fi 2455 fi 2456 done 2457 if test "$ac_aux_dir_found" = yes; then 2458 ac_aux_dir="$as_dir" 2459 break 2460 fi 2461 ac_first_candidate=false 2462 2463 as_found=false 2464done 2465IFS=$as_save_IFS 2466if $as_found 2467then : 2468 2469else $as_nop 2470 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2471fi 2472 2473 2474# These three variables are undocumented and unsupported, 2475# and are intended to be withdrawn in a future Autoconf release. 2476# They can cause serious problems if a builder's source tree is in a directory 2477# whose full name contains unusual characters. 2478if test -f "${ac_aux_dir}config.guess"; then 2479 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2480fi 2481if test -f "${ac_aux_dir}config.sub"; then 2482 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2483fi 2484if test -f "$ac_aux_dir/configure"; then 2485 ac_configure="$SHELL ${ac_aux_dir}configure" 2486fi 2487 2488# Check that the precious variables saved in the cache have kept the same 2489# value. 2490ac_cache_corrupted=false 2491for ac_var in $ac_precious_vars; do 2492 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2493 eval ac_new_set=\$ac_env_${ac_var}_set 2494 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2495 eval ac_new_val=\$ac_env_${ac_var}_value 2496 case $ac_old_set,$ac_new_set in 2497 set,) 2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2499printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2500 ac_cache_corrupted=: ;; 2501 ,set) 2502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2503printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2504 ac_cache_corrupted=: ;; 2505 ,);; 2506 *) 2507 if test "x$ac_old_val" != "x$ac_new_val"; then 2508 # differences in whitespace do not lead to failure. 2509 ac_old_val_w=`echo x $ac_old_val` 2510 ac_new_val_w=`echo x $ac_new_val` 2511 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2513printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2514 ac_cache_corrupted=: 2515 else 2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2517printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2518 eval $ac_var=\$ac_old_val 2519 fi 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2521printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2523printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2524 fi;; 2525 esac 2526 # Pass precious variables to config.status. 2527 if test "$ac_new_set" = set; then 2528 case $ac_new_val in 2529 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2530 *) ac_arg=$ac_var=$ac_new_val ;; 2531 esac 2532 case " $ac_configure_args " in 2533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2534 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2535 esac 2536 fi 2537done 2538if $ac_cache_corrupted; then 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2542printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2543 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2544 and start over" "$LINENO" 5 2545fi 2546## -------------------- ## 2547## Main body of script. ## 2548## -------------------- ## 2549 2550ac_ext=c 2551ac_cpp='$CPP $CPPFLAGS' 2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2554ac_compiler_gnu=$ac_cv_c_compiler_gnu 2555 2556 2557 2558ac_config_headers="$ac_config_headers config.h" 2559 2560 2561# Initialize Automake 2562am__api_version='1.16' 2563 2564 2565 2566 # Find a good install program. We prefer a C program (faster), 2567# so one script is as good as another. But avoid the broken or 2568# incompatible versions: 2569# SysV /etc/install, /usr/sbin/install 2570# SunOS /usr/etc/install 2571# IRIX /sbin/install 2572# AIX /bin/install 2573# AmigaOS /C/install, which installs bootblocks on floppy discs 2574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2575# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2577# OS/2's system install, which has a completely different semantic 2578# ./install, which can be erroneously created by make from ./install.sh. 2579# Reject install programs that cannot install multiple files. 2580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2581printf %s "checking for a BSD-compatible install... " >&6; } 2582if test -z "$INSTALL"; then 2583if test ${ac_cv_path_install+y} 2584then : 2585 printf %s "(cached) " >&6 2586else $as_nop 2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 case $as_dir in #((( 2592 '') as_dir=./ ;; 2593 */) ;; 2594 *) as_dir=$as_dir/ ;; 2595 esac 2596 # Account for fact that we put trailing slashes in our PATH walk. 2597case $as_dir in #(( 2598 ./ | /[cC]/* | \ 2599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2600 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2601 /usr/ucb/* ) ;; 2602 *) 2603 # OSF1 and SCO ODT 3.0 have their own names for install. 2604 # Don't use installbsd from OSF since it installs stuff as root 2605 # by default. 2606 for ac_prog in ginstall scoinst install; do 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2609 if test $ac_prog = install && 2610 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2611 # AIX install. It has an incompatible calling convention. 2612 : 2613 elif test $ac_prog = install && 2614 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2615 # program-specific install script used by HP pwplus--don't use. 2616 : 2617 else 2618 rm -rf conftest.one conftest.two conftest.dir 2619 echo one > conftest.one 2620 echo two > conftest.two 2621 mkdir conftest.dir 2622 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2623 test -s conftest.one && test -s conftest.two && 2624 test -s conftest.dir/conftest.one && 2625 test -s conftest.dir/conftest.two 2626 then 2627 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2628 break 3 2629 fi 2630 fi 2631 fi 2632 done 2633 done 2634 ;; 2635esac 2636 2637 done 2638IFS=$as_save_IFS 2639 2640rm -rf conftest.one conftest.two conftest.dir 2641 2642fi 2643 if test ${ac_cv_path_install+y}; then 2644 INSTALL=$ac_cv_path_install 2645 else 2646 # As a last resort, use the slow shell script. Don't cache a 2647 # value for INSTALL within a source directory, because that will 2648 # break other packages using the cache if that directory is 2649 # removed, or if the value is a relative name. 2650 INSTALL=$ac_install_sh 2651 fi 2652fi 2653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2654printf "%s\n" "$INSTALL" >&6; } 2655 2656# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2657# It thinks the first close brace ends the variable substitution. 2658test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2659 2660test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2661 2662test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2663 2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2665printf %s "checking whether build environment is sane... " >&6; } 2666# Reject unsafe characters in $srcdir or the absolute working directory 2667# name. Accept space and tab only in the latter. 2668am_lf=' 2669' 2670case `pwd` in 2671 *[\\\"\#\$\&\'\`$am_lf]*) 2672 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2673esac 2674case $srcdir in 2675 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2676 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2677esac 2678 2679# Do 'set' in a subshell so we don't clobber the current shell's 2680# arguments. Must try -L first in case configure is actually a 2681# symlink; some systems play weird games with the mod time of symlinks 2682# (eg FreeBSD returns the mod time of the symlink's containing 2683# directory). 2684if ( 2685 am_has_slept=no 2686 for am_try in 1 2; do 2687 echo "timestamp, slept: $am_has_slept" > conftest.file 2688 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2689 if test "$*" = "X"; then 2690 # -L didn't work. 2691 set X `ls -t "$srcdir/configure" conftest.file` 2692 fi 2693 if test "$*" != "X $srcdir/configure conftest.file" \ 2694 && test "$*" != "X conftest.file $srcdir/configure"; then 2695 2696 # If neither matched, then we have a broken ls. This can happen 2697 # if, for instance, CONFIG_SHELL is bash and it inherits a 2698 # broken ls alias from the environment. This has actually 2699 # happened. Such a system could not be considered "sane". 2700 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2701 alias in your environment" "$LINENO" 5 2702 fi 2703 if test "$2" = conftest.file || test $am_try -eq 2; then 2704 break 2705 fi 2706 # Just in case. 2707 sleep 1 2708 am_has_slept=yes 2709 done 2710 test "$2" = conftest.file 2711 ) 2712then 2713 # Ok. 2714 : 2715else 2716 as_fn_error $? "newly created file is older than distributed files! 2717Check your system clock" "$LINENO" 5 2718fi 2719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2720printf "%s\n" "yes" >&6; } 2721# If we didn't sleep, we still need to ensure time stamps of config.status and 2722# generated files are strictly newer. 2723am_sleep_pid= 2724if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2725 ( sleep 1 ) & 2726 am_sleep_pid=$! 2727fi 2728 2729rm -f conftest.file 2730 2731test "$program_prefix" != NONE && 2732 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2733# Use a double $ so make ignores it. 2734test "$program_suffix" != NONE && 2735 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2736# Double any \ or $. 2737# By default was `s,x,x', remove it if useless. 2738ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2739program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2740 2741 2742# Expand $ac_aux_dir to an absolute path. 2743am_aux_dir=`cd "$ac_aux_dir" && pwd` 2744 2745 2746 if test x"${MISSING+set}" != xset; then 2747 MISSING="\${SHELL} '$am_aux_dir/missing'" 2748fi 2749# Use eval to expand $SHELL 2750if eval "$MISSING --is-lightweight"; then 2751 am_missing_run="$MISSING " 2752else 2753 am_missing_run= 2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2755printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2756fi 2757 2758if test x"${install_sh+set}" != xset; then 2759 case $am_aux_dir in 2760 *\ * | *\ *) 2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2762 *) 2763 install_sh="\${SHELL} $am_aux_dir/install-sh" 2764 esac 2765fi 2766 2767# Installed binaries are usually stripped using 'strip' when the user 2768# run "make install-strip". However 'strip' might not be the right 2769# tool to use in cross-compilation environments, therefore Automake 2770# will honor the 'STRIP' environment variable to overrule this program. 2771if test "$cross_compiling" != no; then 2772 if test -n "$ac_tool_prefix"; then 2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2774set dummy ${ac_tool_prefix}strip; ac_word=$2 2775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776printf %s "checking for $ac_word... " >&6; } 2777if test ${ac_cv_prog_STRIP+y} 2778then : 2779 printf %s "(cached) " >&6 2780else $as_nop 2781 if test -n "$STRIP"; then 2782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2783else 2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2785for as_dir in $PATH 2786do 2787 IFS=$as_save_IFS 2788 case $as_dir in #((( 2789 '') as_dir=./ ;; 2790 */) ;; 2791 *) as_dir=$as_dir/ ;; 2792 esac 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2795 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2797 break 2 2798 fi 2799done 2800 done 2801IFS=$as_save_IFS 2802 2803fi 2804fi 2805STRIP=$ac_cv_prog_STRIP 2806if test -n "$STRIP"; then 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2808printf "%s\n" "$STRIP" >&6; } 2809else 2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2811printf "%s\n" "no" >&6; } 2812fi 2813 2814 2815fi 2816if test -z "$ac_cv_prog_STRIP"; then 2817 ac_ct_STRIP=$STRIP 2818 # Extract the first word of "strip", so it can be a program name with args. 2819set dummy strip; ac_word=$2 2820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2821printf %s "checking for $ac_word... " >&6; } 2822if test ${ac_cv_prog_ac_ct_STRIP+y} 2823then : 2824 printf %s "(cached) " >&6 2825else $as_nop 2826 if test -n "$ac_ct_STRIP"; then 2827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2828else 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830for as_dir in $PATH 2831do 2832 IFS=$as_save_IFS 2833 case $as_dir in #((( 2834 '') as_dir=./ ;; 2835 */) ;; 2836 *) as_dir=$as_dir/ ;; 2837 esac 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2840 ac_cv_prog_ac_ct_STRIP="strip" 2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2842 break 2 2843 fi 2844done 2845 done 2846IFS=$as_save_IFS 2847 2848fi 2849fi 2850ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2851if test -n "$ac_ct_STRIP"; then 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2853printf "%s\n" "$ac_ct_STRIP" >&6; } 2854else 2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856printf "%s\n" "no" >&6; } 2857fi 2858 2859 if test "x$ac_ct_STRIP" = x; then 2860 STRIP=":" 2861 else 2862 case $cross_compiling:$ac_tool_warned in 2863yes:) 2864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2865printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2866ac_tool_warned=yes ;; 2867esac 2868 STRIP=$ac_ct_STRIP 2869 fi 2870else 2871 STRIP="$ac_cv_prog_STRIP" 2872fi 2873 2874fi 2875INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2876 2877 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2879printf %s "checking for a race-free mkdir -p... " >&6; } 2880if test -z "$MKDIR_P"; then 2881 if test ${ac_cv_path_mkdir+y} 2882then : 2883 printf %s "(cached) " >&6 2884else $as_nop 2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2887do 2888 IFS=$as_save_IFS 2889 case $as_dir in #((( 2890 '') as_dir=./ ;; 2891 */) ;; 2892 *) as_dir=$as_dir/ ;; 2893 esac 2894 for ac_prog in mkdir gmkdir; do 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2897 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2898 'mkdir ('*'coreutils) '* | \ 2899 'BusyBox '* | \ 2900 'mkdir (fileutils) '4.1*) 2901 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2902 break 3;; 2903 esac 2904 done 2905 done 2906 done 2907IFS=$as_save_IFS 2908 2909fi 2910 2911 test -d ./--version && rmdir ./--version 2912 if test ${ac_cv_path_mkdir+y}; then 2913 MKDIR_P="$ac_cv_path_mkdir -p" 2914 else 2915 # As a last resort, use the slow shell script. Don't cache a 2916 # value for MKDIR_P within a source directory, because that will 2917 # break other packages using the cache if that directory is 2918 # removed, or if the value is a relative name. 2919 MKDIR_P="$ac_install_sh -d" 2920 fi 2921fi 2922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2923printf "%s\n" "$MKDIR_P" >&6; } 2924 2925for ac_prog in gawk mawk nawk awk 2926do 2927 # Extract the first word of "$ac_prog", so it can be a program name with args. 2928set dummy $ac_prog; ac_word=$2 2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930printf %s "checking for $ac_word... " >&6; } 2931if test ${ac_cv_prog_AWK+y} 2932then : 2933 printf %s "(cached) " >&6 2934else $as_nop 2935 if test -n "$AWK"; then 2936 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 case $as_dir in #((( 2943 '') as_dir=./ ;; 2944 */) ;; 2945 *) as_dir=$as_dir/ ;; 2946 esac 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2949 ac_cv_prog_AWK="$ac_prog" 2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958fi 2959AWK=$ac_cv_prog_AWK 2960if test -n "$AWK"; then 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2962printf "%s\n" "$AWK" >&6; } 2963else 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965printf "%s\n" "no" >&6; } 2966fi 2967 2968 2969 test -n "$AWK" && break 2970done 2971 2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2973printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2974set x ${MAKE-make} 2975ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2976if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2977then : 2978 printf %s "(cached) " >&6 2979else $as_nop 2980 cat >conftest.make <<\_ACEOF 2981SHELL = /bin/sh 2982all: 2983 @echo '@@@%%%=$(MAKE)=@@@%%%' 2984_ACEOF 2985# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2986case `${MAKE-make} -f conftest.make 2>/dev/null` in 2987 *@@@%%%=?*=@@@%%%*) 2988 eval ac_cv_prog_make_${ac_make}_set=yes;; 2989 *) 2990 eval ac_cv_prog_make_${ac_make}_set=no;; 2991esac 2992rm -f conftest.make 2993fi 2994if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2996printf "%s\n" "yes" >&6; } 2997 SET_MAKE= 2998else 2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000printf "%s\n" "no" >&6; } 3001 SET_MAKE="MAKE=${MAKE-make}" 3002fi 3003 3004rm -rf .tst 2>/dev/null 3005mkdir .tst 2>/dev/null 3006if test -d .tst; then 3007 am__leading_dot=. 3008else 3009 am__leading_dot=_ 3010fi 3011rmdir .tst 2>/dev/null 3012 3013# Check whether --enable-silent-rules was given. 3014if test ${enable_silent_rules+y} 3015then : 3016 enableval=$enable_silent_rules; 3017fi 3018 3019case $enable_silent_rules in # ((( 3020 yes) AM_DEFAULT_VERBOSITY=0;; 3021 no) AM_DEFAULT_VERBOSITY=1;; 3022 *) AM_DEFAULT_VERBOSITY=1;; 3023esac 3024am_make=${MAKE-make} 3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3026printf %s "checking whether $am_make supports nested variables... " >&6; } 3027if test ${am_cv_make_support_nested_variables+y} 3028then : 3029 printf %s "(cached) " >&6 3030else $as_nop 3031 if printf "%s\n" 'TRUE=$(BAR$(V)) 3032BAR0=false 3033BAR1=true 3034V=1 3035am__doit: 3036 @$(TRUE) 3037.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3038 am_cv_make_support_nested_variables=yes 3039else 3040 am_cv_make_support_nested_variables=no 3041fi 3042fi 3043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3044printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3045if test $am_cv_make_support_nested_variables = yes; then 3046 AM_V='$(V)' 3047 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3048else 3049 AM_V=$AM_DEFAULT_VERBOSITY 3050 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3051fi 3052AM_BACKSLASH='\' 3053 3054if test "`cd $srcdir && pwd`" != "`pwd`"; then 3055 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3056 # is not polluted with repeated "-I." 3057 am__isrc=' -I$(srcdir)' 3058 # test to see if srcdir already configured 3059 if test -f $srcdir/config.status; then 3060 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3061 fi 3062fi 3063 3064# test whether we have cygpath 3065if test -z "$CYGPATH_W"; then 3066 if (cygpath --version) >/dev/null 2>/dev/null; then 3067 CYGPATH_W='cygpath -w' 3068 else 3069 CYGPATH_W=echo 3070 fi 3071fi 3072 3073 3074# Define the identity of the package. 3075 PACKAGE='xkbevd' 3076 VERSION='1.1.5' 3077 3078 3079printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3080 3081 3082printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3083 3084# Some tools Automake needs. 3085 3086ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3087 3088 3089AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3090 3091 3092AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3093 3094 3095AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3096 3097 3098MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3099 3100# For better backward compatibility. To be removed once Automake 1.9.x 3101# dies out for good. For more background, see: 3102# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3103# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3104mkdir_p='$(MKDIR_P)' 3105 3106# We need awk for the "check" target (and possibly the TAP driver). The 3107# system "awk" is bad on some platforms. 3108# Always define AMTAR for backward compatibility. Yes, it's still used 3109# in the wild :-( We should find a proper way to deprecate it ... 3110AMTAR='$${TAR-tar}' 3111 3112 3113# We'll loop over all known methods to create a tar archive until one works. 3114_am_tools='gnutar pax cpio none' 3115 3116am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3117 3118 3119 3120 3121 3122# Variables for tags utilities; see am/tags.am 3123if test -z "$CTAGS"; then 3124 CTAGS=ctags 3125fi 3126 3127if test -z "$ETAGS"; then 3128 ETAGS=etags 3129fi 3130 3131if test -z "$CSCOPE"; then 3132 CSCOPE=cscope 3133fi 3134 3135 3136 3137# POSIX will say in a future version that running "rm -f" with no argument 3138# is OK; and we want to be able to make that assumption in our Makefile 3139# recipes. So use an aggressive probe to check that the usage we want is 3140# actually supported "in the wild" to an acceptable degree. 3141# See automake bug#10828. 3142# To make any issue more visible, cause the running configure to be aborted 3143# by default if the 'rm' program in use doesn't match our expectations; the 3144# user can still override this though. 3145if rm -f && rm -fr && rm -rf; then : OK; else 3146 cat >&2 <<'END' 3147Oops! 3148 3149Your 'rm' program seems unable to run without file operands specified 3150on the command line, even when the '-f' option is present. This is contrary 3151to the behaviour of most rm programs out there, and not conforming with 3152the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3153 3154Please tell bug-automake@gnu.org about your system, including the value 3155of your $PATH and any error possibly output before this message. This 3156can help us improve future automake versions. 3157 3158END 3159 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3160 echo 'Configuration will proceed anyway, since you have set the' >&2 3161 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3162 echo >&2 3163 else 3164 cat >&2 <<'END' 3165Aborting the configuration process, to ensure you take notice of the issue. 3166 3167You can download and install GNU coreutils to get an 'rm' implementation 3168that behaves properly: <https://www.gnu.org/software/coreutils/>. 3169 3170If you want to complete the configuration process using your problematic 3171'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3172to "yes", and re-run configure. 3173 3174END 3175 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3176 fi 3177fi 3178 3179 3180# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201DEPDIR="${am__leading_dot}deps" 3202 3203ac_config_commands="$ac_config_commands depfiles" 3204 3205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3206printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3207cat > confinc.mk << 'END' 3208am__doit: 3209 @echo this is the am__doit target >confinc.out 3210.PHONY: am__doit 3211END 3212am__include="#" 3213am__quote= 3214# BSD make does it like this. 3215echo '.include "confinc.mk" # ignored' > confmf.BSD 3216# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3217echo 'include confinc.mk # ignored' > confmf.GNU 3218_am_result=no 3219for s in GNU BSD; do 3220 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3221 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3222 ac_status=$? 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); } 3225 case $?:`cat confinc.out 2>/dev/null` in #( 3226 '0:this is the am__doit target') : 3227 case $s in #( 3228 BSD) : 3229 am__include='.include' am__quote='"' ;; #( 3230 *) : 3231 am__include='include' am__quote='' ;; 3232esac ;; #( 3233 *) : 3234 ;; 3235esac 3236 if test "$am__include" != "#"; then 3237 _am_result="yes ($s style)" 3238 break 3239 fi 3240done 3241rm -f confinc.* confmf.* 3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3243printf "%s\n" "${_am_result}" >&6; } 3244 3245# Check whether --enable-dependency-tracking was given. 3246if test ${enable_dependency_tracking+y} 3247then : 3248 enableval=$enable_dependency_tracking; 3249fi 3250 3251if test "x$enable_dependency_tracking" != xno; then 3252 am_depcomp="$ac_aux_dir/depcomp" 3253 AMDEPBACKSLASH='\' 3254 am__nodep='_no' 3255fi 3256 if test "x$enable_dependency_tracking" != xno; then 3257 AMDEP_TRUE= 3258 AMDEP_FALSE='#' 3259else 3260 AMDEP_TRUE='#' 3261 AMDEP_FALSE= 3262fi 3263 3264 3265ac_ext=c 3266ac_cpp='$CPP $CPPFLAGS' 3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3269ac_compiler_gnu=$ac_cv_c_compiler_gnu 3270if test -n "$ac_tool_prefix"; then 3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3272set dummy ${ac_tool_prefix}gcc; ac_word=$2 3273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274printf %s "checking for $ac_word... " >&6; } 3275if test ${ac_cv_prog_CC+y} 3276then : 3277 printf %s "(cached) " >&6 3278else $as_nop 3279 if test -n "$CC"; then 3280 ac_cv_prog_CC="$CC" # Let the user override the test. 3281else 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 case $as_dir in #((( 3287 '') as_dir=./ ;; 3288 */) ;; 3289 *) as_dir=$as_dir/ ;; 3290 esac 3291 for ac_exec_ext in '' $ac_executable_extensions; do 3292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3293 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3295 break 2 3296 fi 3297done 3298 done 3299IFS=$as_save_IFS 3300 3301fi 3302fi 3303CC=$ac_cv_prog_CC 3304if test -n "$CC"; then 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3306printf "%s\n" "$CC" >&6; } 3307else 3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309printf "%s\n" "no" >&6; } 3310fi 3311 3312 3313fi 3314if test -z "$ac_cv_prog_CC"; then 3315 ac_ct_CC=$CC 3316 # Extract the first word of "gcc", so it can be a program name with args. 3317set dummy gcc; ac_word=$2 3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3319printf %s "checking for $ac_word... " >&6; } 3320if test ${ac_cv_prog_ac_ct_CC+y} 3321then : 3322 printf %s "(cached) " >&6 3323else $as_nop 3324 if test -n "$ac_ct_CC"; then 3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3326else 3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3328for as_dir in $PATH 3329do 3330 IFS=$as_save_IFS 3331 case $as_dir in #((( 3332 '') as_dir=./ ;; 3333 */) ;; 3334 *) as_dir=$as_dir/ ;; 3335 esac 3336 for ac_exec_ext in '' $ac_executable_extensions; do 3337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3338 ac_cv_prog_ac_ct_CC="gcc" 3339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3340 break 2 3341 fi 3342done 3343 done 3344IFS=$as_save_IFS 3345 3346fi 3347fi 3348ac_ct_CC=$ac_cv_prog_ac_ct_CC 3349if test -n "$ac_ct_CC"; then 3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3351printf "%s\n" "$ac_ct_CC" >&6; } 3352else 3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354printf "%s\n" "no" >&6; } 3355fi 3356 3357 if test "x$ac_ct_CC" = x; then 3358 CC="" 3359 else 3360 case $cross_compiling:$ac_tool_warned in 3361yes:) 3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3363printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3364ac_tool_warned=yes ;; 3365esac 3366 CC=$ac_ct_CC 3367 fi 3368else 3369 CC="$ac_cv_prog_CC" 3370fi 3371 3372if test -z "$CC"; then 3373 if test -n "$ac_tool_prefix"; then 3374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3375set dummy ${ac_tool_prefix}cc; ac_word=$2 3376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3377printf %s "checking for $ac_word... " >&6; } 3378if test ${ac_cv_prog_CC+y} 3379then : 3380 printf %s "(cached) " >&6 3381else $as_nop 3382 if test -n "$CC"; then 3383 ac_cv_prog_CC="$CC" # Let the user override the test. 3384else 3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386for as_dir in $PATH 3387do 3388 IFS=$as_save_IFS 3389 case $as_dir in #((( 3390 '') as_dir=./ ;; 3391 */) ;; 3392 *) as_dir=$as_dir/ ;; 3393 esac 3394 for ac_exec_ext in '' $ac_executable_extensions; do 3395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3396 ac_cv_prog_CC="${ac_tool_prefix}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 3404fi 3405fi 3406CC=$ac_cv_prog_CC 3407if test -n "$CC"; then 3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3409printf "%s\n" "$CC" >&6; } 3410else 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412printf "%s\n" "no" >&6; } 3413fi 3414 3415 3416 fi 3417fi 3418if test -z "$CC"; then 3419 # Extract the first word of "cc", so it can be a program name with args. 3420set dummy cc; ac_word=$2 3421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3422printf %s "checking for $ac_word... " >&6; } 3423if test ${ac_cv_prog_CC+y} 3424then : 3425 printf %s "(cached) " >&6 3426else $as_nop 3427 if test -n "$CC"; then 3428 ac_cv_prog_CC="$CC" # Let the user override the test. 3429else 3430 ac_prog_rejected=no 3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3432for as_dir in $PATH 3433do 3434 IFS=$as_save_IFS 3435 case $as_dir in #((( 3436 '') as_dir=./ ;; 3437 */) ;; 3438 *) as_dir=$as_dir/ ;; 3439 esac 3440 for ac_exec_ext in '' $ac_executable_extensions; do 3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3442 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3443 ac_prog_rejected=yes 3444 continue 3445 fi 3446 ac_cv_prog_CC="cc" 3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3448 break 2 3449 fi 3450done 3451 done 3452IFS=$as_save_IFS 3453 3454if test $ac_prog_rejected = yes; then 3455 # We found a bogon in the path, so make sure we never use it. 3456 set dummy $ac_cv_prog_CC 3457 shift 3458 if test $# != 0; then 3459 # We chose a different compiler from the bogus one. 3460 # However, it has the same basename, so the bogon will be chosen 3461 # first if we set CC to just the basename; use the full file name. 3462 shift 3463 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3464 fi 3465fi 3466fi 3467fi 3468CC=$ac_cv_prog_CC 3469if test -n "$CC"; then 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3471printf "%s\n" "$CC" >&6; } 3472else 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3474printf "%s\n" "no" >&6; } 3475fi 3476 3477 3478fi 3479if test -z "$CC"; then 3480 if test -n "$ac_tool_prefix"; then 3481 for ac_prog in cl.exe 3482 do 3483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3484set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486printf %s "checking for $ac_word... " >&6; } 3487if test ${ac_cv_prog_CC+y} 3488then : 3489 printf %s "(cached) " >&6 3490else $as_nop 3491 if test -n "$CC"; then 3492 ac_cv_prog_CC="$CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 case $as_dir in #((( 3499 '') as_dir=./ ;; 3500 */) ;; 3501 *) as_dir=$as_dir/ ;; 3502 esac 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509done 3510 done 3511IFS=$as_save_IFS 3512 3513fi 3514fi 3515CC=$ac_cv_prog_CC 3516if test -n "$CC"; then 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3518printf "%s\n" "$CC" >&6; } 3519else 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521printf "%s\n" "no" >&6; } 3522fi 3523 3524 3525 test -n "$CC" && break 3526 done 3527fi 3528if test -z "$CC"; then 3529 ac_ct_CC=$CC 3530 for ac_prog in cl.exe 3531do 3532 # Extract the first word of "$ac_prog", so it can be a program name with args. 3533set dummy $ac_prog; ac_word=$2 3534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535printf %s "checking for $ac_word... " >&6; } 3536if test ${ac_cv_prog_ac_ct_CC+y} 3537then : 3538 printf %s "(cached) " >&6 3539else $as_nop 3540 if test -n "$ac_ct_CC"; then 3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3542else 3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3544for as_dir in $PATH 3545do 3546 IFS=$as_save_IFS 3547 case $as_dir in #((( 3548 '') as_dir=./ ;; 3549 */) ;; 3550 *) as_dir=$as_dir/ ;; 3551 esac 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3554 ac_cv_prog_ac_ct_CC="$ac_prog" 3555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562fi 3563fi 3564ac_ct_CC=$ac_cv_prog_ac_ct_CC 3565if test -n "$ac_ct_CC"; then 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3567printf "%s\n" "$ac_ct_CC" >&6; } 3568else 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570printf "%s\n" "no" >&6; } 3571fi 3572 3573 3574 test -n "$ac_ct_CC" && break 3575done 3576 3577 if test "x$ac_ct_CC" = x; then 3578 CC="" 3579 else 3580 case $cross_compiling:$ac_tool_warned in 3581yes:) 3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3583printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3584ac_tool_warned=yes ;; 3585esac 3586 CC=$ac_ct_CC 3587 fi 3588fi 3589 3590fi 3591if test -z "$CC"; then 3592 if test -n "$ac_tool_prefix"; then 3593 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3594set dummy ${ac_tool_prefix}clang; ac_word=$2 3595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3596printf %s "checking for $ac_word... " >&6; } 3597if test ${ac_cv_prog_CC+y} 3598then : 3599 printf %s "(cached) " >&6 3600else $as_nop 3601 if test -n "$CC"; then 3602 ac_cv_prog_CC="$CC" # Let the user override the test. 3603else 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3605for as_dir in $PATH 3606do 3607 IFS=$as_save_IFS 3608 case $as_dir in #((( 3609 '') as_dir=./ ;; 3610 */) ;; 3611 *) as_dir=$as_dir/ ;; 3612 esac 3613 for ac_exec_ext in '' $ac_executable_extensions; do 3614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3615 ac_cv_prog_CC="${ac_tool_prefix}clang" 3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619done 3620 done 3621IFS=$as_save_IFS 3622 3623fi 3624fi 3625CC=$ac_cv_prog_CC 3626if test -n "$CC"; then 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3628printf "%s\n" "$CC" >&6; } 3629else 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631printf "%s\n" "no" >&6; } 3632fi 3633 3634 3635fi 3636if test -z "$ac_cv_prog_CC"; then 3637 ac_ct_CC=$CC 3638 # Extract the first word of "clang", so it can be a program name with args. 3639set dummy clang; ac_word=$2 3640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3641printf %s "checking for $ac_word... " >&6; } 3642if test ${ac_cv_prog_ac_ct_CC+y} 3643then : 3644 printf %s "(cached) " >&6 3645else $as_nop 3646 if test -n "$ac_ct_CC"; then 3647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3648else 3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH 3651do 3652 IFS=$as_save_IFS 3653 case $as_dir in #((( 3654 '') as_dir=./ ;; 3655 */) ;; 3656 *) as_dir=$as_dir/ ;; 3657 esac 3658 for ac_exec_ext in '' $ac_executable_extensions; do 3659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3660 ac_cv_prog_ac_ct_CC="clang" 3661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3662 break 2 3663 fi 3664done 3665 done 3666IFS=$as_save_IFS 3667 3668fi 3669fi 3670ac_ct_CC=$ac_cv_prog_ac_ct_CC 3671if test -n "$ac_ct_CC"; then 3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3673printf "%s\n" "$ac_ct_CC" >&6; } 3674else 3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3676printf "%s\n" "no" >&6; } 3677fi 3678 3679 if test "x$ac_ct_CC" = x; then 3680 CC="" 3681 else 3682 case $cross_compiling:$ac_tool_warned in 3683yes:) 3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3685printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3686ac_tool_warned=yes ;; 3687esac 3688 CC=$ac_ct_CC 3689 fi 3690else 3691 CC="$ac_cv_prog_CC" 3692fi 3693 3694fi 3695 3696 3697test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3698printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3699as_fn_error $? "no acceptable C compiler found in \$PATH 3700See \`config.log' for more details" "$LINENO" 5; } 3701 3702# Provide some information about the compiler. 3703printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3704set X $ac_compile 3705ac_compiler=$2 3706for ac_option in --version -v -V -qversion -version; do 3707 { { ac_try="$ac_compiler $ac_option >&5" 3708case "(($ac_try" in 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3710 *) ac_try_echo=$ac_try;; 3711esac 3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3713printf "%s\n" "$ac_try_echo"; } >&5 3714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3715 ac_status=$? 3716 if test -s conftest.err; then 3717 sed '10a\ 3718... rest of stderr output deleted ... 3719 10q' conftest.err >conftest.er1 3720 cat conftest.er1 >&5 3721 fi 3722 rm -f conftest.er1 conftest.err 3723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3724 test $ac_status = 0; } 3725done 3726 3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main (void) 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738ac_clean_files_save=$ac_clean_files 3739ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3740# Try to create an executable without -o first, disregard a.out. 3741# It will help us diagnose broken compilers, and finding out an intuition 3742# of exeext. 3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3744printf %s "checking whether the C compiler works... " >&6; } 3745ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3746 3747# The possible output files: 3748ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3749 3750ac_rmfiles= 3751for ac_file in $ac_files 3752do 3753 case $ac_file in 3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3755 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3756 esac 3757done 3758rm -f $ac_rmfiles 3759 3760if { { ac_try="$ac_link_default" 3761case "(($ac_try" in 3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3763 *) ac_try_echo=$ac_try;; 3764esac 3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3766printf "%s\n" "$ac_try_echo"; } >&5 3767 (eval "$ac_link_default") 2>&5 3768 ac_status=$? 3769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3770 test $ac_status = 0; } 3771then : 3772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3773# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3774# in a Makefile. We should not override ac_cv_exeext if it was cached, 3775# so that the user can short-circuit this test for compilers unknown to 3776# Autoconf. 3777for ac_file in $ac_files '' 3778do 3779 test -f "$ac_file" || continue 3780 case $ac_file in 3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3782 ;; 3783 [ab].out ) 3784 # We found the default executable, but exeext='' is most 3785 # certainly right. 3786 break;; 3787 *.* ) 3788 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3789 then :; else 3790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3791 fi 3792 # We set ac_cv_exeext here because the later test for it is not 3793 # safe: cross compilers may not add the suffix if given an `-o' 3794 # argument, so we may need to know it at that point already. 3795 # Even if this section looks crufty: it has the advantage of 3796 # actually working. 3797 break;; 3798 * ) 3799 break;; 3800 esac 3801done 3802test "$ac_cv_exeext" = no && ac_cv_exeext= 3803 3804else $as_nop 3805 ac_file='' 3806fi 3807if test -z "$ac_file" 3808then : 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3810printf "%s\n" "no" >&6; } 3811printf "%s\n" "$as_me: failed program was:" >&5 3812sed 's/^/| /' conftest.$ac_ext >&5 3813 3814{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3815printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3816as_fn_error 77 "C compiler cannot create executables 3817See \`config.log' for more details" "$LINENO" 5; } 3818else $as_nop 3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3820printf "%s\n" "yes" >&6; } 3821fi 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3823printf %s "checking for C compiler default output file name... " >&6; } 3824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3825printf "%s\n" "$ac_file" >&6; } 3826ac_exeext=$ac_cv_exeext 3827 3828rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3829ac_clean_files=$ac_clean_files_save 3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3831printf %s "checking for suffix of executables... " >&6; } 3832if { { ac_try="$ac_link" 3833case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838printf "%s\n" "$ac_try_echo"; } >&5 3839 (eval "$ac_link") 2>&5 3840 ac_status=$? 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843then : 3844 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3845# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3846# work properly (i.e., refer to `conftest.exe'), while it won't with 3847# `rm'. 3848for ac_file in conftest.exe conftest conftest.*; do 3849 test -f "$ac_file" || continue 3850 case $ac_file in 3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3853 break;; 3854 * ) break;; 3855 esac 3856done 3857else $as_nop 3858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3859printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3860as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3861See \`config.log' for more details" "$LINENO" 5; } 3862fi 3863rm -f conftest conftest$ac_cv_exeext 3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3865printf "%s\n" "$ac_cv_exeext" >&6; } 3866 3867rm -f conftest.$ac_ext 3868EXEEXT=$ac_cv_exeext 3869ac_exeext=$EXEEXT 3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872#include <stdio.h> 3873int 3874main (void) 3875{ 3876FILE *f = fopen ("conftest.out", "w"); 3877 return ferror (f) || fclose (f) != 0; 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883ac_clean_files="$ac_clean_files conftest.out" 3884# Check that the compiler produces executables we can run. If not, either 3885# the compiler is broken, or we cross compile. 3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3887printf %s "checking whether we are cross compiling... " >&6; } 3888if test "$cross_compiling" != yes; then 3889 { { ac_try="$ac_link" 3890case "(($ac_try" in 3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3892 *) ac_try_echo=$ac_try;; 3893esac 3894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3895printf "%s\n" "$ac_try_echo"; } >&5 3896 (eval "$ac_link") 2>&5 3897 ac_status=$? 3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3899 test $ac_status = 0; } 3900 if { ac_try='./conftest$ac_cv_exeext' 3901 { { case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906printf "%s\n" "$ac_try_echo"; } >&5 3907 (eval "$ac_try") 2>&5 3908 ac_status=$? 3909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; }; }; then 3911 cross_compiling=no 3912 else 3913 if test "$cross_compiling" = maybe; then 3914 cross_compiling=yes 3915 else 3916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3917printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3918as_fn_error 77 "cannot run C compiled programs. 3919If you meant to cross compile, use \`--host'. 3920See \`config.log' for more details" "$LINENO" 5; } 3921 fi 3922 fi 3923fi 3924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3925printf "%s\n" "$cross_compiling" >&6; } 3926 3927rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3928ac_clean_files=$ac_clean_files_save 3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3930printf %s "checking for suffix of object files... " >&6; } 3931if test ${ac_cv_objext+y} 3932then : 3933 printf %s "(cached) " >&6 3934else $as_nop 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937 3938int 3939main (void) 3940{ 3941 3942 ; 3943 return 0; 3944} 3945_ACEOF 3946rm -f conftest.o conftest.obj 3947if { { ac_try="$ac_compile" 3948case "(($ac_try" in 3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3950 *) ac_try_echo=$ac_try;; 3951esac 3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3953printf "%s\n" "$ac_try_echo"; } >&5 3954 (eval "$ac_compile") 2>&5 3955 ac_status=$? 3956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3957 test $ac_status = 0; } 3958then : 3959 for ac_file in conftest.o conftest.obj conftest.*; do 3960 test -f "$ac_file" || continue; 3961 case $ac_file in 3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3964 break;; 3965 esac 3966done 3967else $as_nop 3968 printf "%s\n" "$as_me: failed program was:" >&5 3969sed 's/^/| /' conftest.$ac_ext >&5 3970 3971{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3972printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3973as_fn_error $? "cannot compute suffix of object files: cannot compile 3974See \`config.log' for more details" "$LINENO" 5; } 3975fi 3976rm -f conftest.$ac_cv_objext conftest.$ac_ext 3977fi 3978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3979printf "%s\n" "$ac_cv_objext" >&6; } 3980OBJEXT=$ac_cv_objext 3981ac_objext=$OBJEXT 3982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3983printf %s "checking whether the compiler supports GNU C... " >&6; } 3984if test ${ac_cv_c_compiler_gnu+y} 3985then : 3986 printf %s "(cached) " >&6 3987else $as_nop 3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3989/* end confdefs.h. */ 3990 3991int 3992main (void) 3993{ 3994#ifndef __GNUC__ 3995 choke me 3996#endif 3997 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002if ac_fn_c_try_compile "$LINENO" 4003then : 4004 ac_compiler_gnu=yes 4005else $as_nop 4006 ac_compiler_gnu=no 4007fi 4008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4009ac_cv_c_compiler_gnu=$ac_compiler_gnu 4010 4011fi 4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4013printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4014ac_compiler_gnu=$ac_cv_c_compiler_gnu 4015 4016if test $ac_compiler_gnu = yes; then 4017 GCC=yes 4018else 4019 GCC= 4020fi 4021ac_test_CFLAGS=${CFLAGS+y} 4022ac_save_CFLAGS=$CFLAGS 4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4024printf %s "checking whether $CC accepts -g... " >&6; } 4025if test ${ac_cv_prog_cc_g+y} 4026then : 4027 printf %s "(cached) " >&6 4028else $as_nop 4029 ac_save_c_werror_flag=$ac_c_werror_flag 4030 ac_c_werror_flag=yes 4031 ac_cv_prog_cc_g=no 4032 CFLAGS="-g" 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main (void) 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044if ac_fn_c_try_compile "$LINENO" 4045then : 4046 ac_cv_prog_cc_g=yes 4047else $as_nop 4048 CFLAGS="" 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051 4052int 4053main (void) 4054{ 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060if ac_fn_c_try_compile "$LINENO" 4061then : 4062 4063else $as_nop 4064 ac_c_werror_flag=$ac_save_c_werror_flag 4065 CFLAGS="-g" 4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4067/* end confdefs.h. */ 4068 4069int 4070main (void) 4071{ 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077if ac_fn_c_try_compile "$LINENO" 4078then : 4079 ac_cv_prog_cc_g=yes 4080fi 4081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4082fi 4083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4084fi 4085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4086 ac_c_werror_flag=$ac_save_c_werror_flag 4087fi 4088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4089printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4090if test $ac_test_CFLAGS; then 4091 CFLAGS=$ac_save_CFLAGS 4092elif test $ac_cv_prog_cc_g = yes; then 4093 if test "$GCC" = yes; then 4094 CFLAGS="-g -O2" 4095 else 4096 CFLAGS="-g" 4097 fi 4098else 4099 if test "$GCC" = yes; then 4100 CFLAGS="-O2" 4101 else 4102 CFLAGS= 4103 fi 4104fi 4105ac_prog_cc_stdc=no 4106if test x$ac_prog_cc_stdc = xno 4107then : 4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4109printf %s "checking for $CC option to enable C11 features... " >&6; } 4110if test ${ac_cv_prog_cc_c11+y} 4111then : 4112 printf %s "(cached) " >&6 4113else $as_nop 4114 ac_cv_prog_cc_c11=no 4115ac_save_CC=$CC 4116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117/* end confdefs.h. */ 4118$ac_c_conftest_c11_program 4119_ACEOF 4120for ac_arg in '' -std=gnu11 4121do 4122 CC="$ac_save_CC $ac_arg" 4123 if ac_fn_c_try_compile "$LINENO" 4124then : 4125 ac_cv_prog_cc_c11=$ac_arg 4126fi 4127rm -f core conftest.err conftest.$ac_objext conftest.beam 4128 test "x$ac_cv_prog_cc_c11" != "xno" && break 4129done 4130rm -f conftest.$ac_ext 4131CC=$ac_save_CC 4132fi 4133 4134if test "x$ac_cv_prog_cc_c11" = xno 4135then : 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4137printf "%s\n" "unsupported" >&6; } 4138else $as_nop 4139 if test "x$ac_cv_prog_cc_c11" = x 4140then : 4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4142printf "%s\n" "none needed" >&6; } 4143else $as_nop 4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4145printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4146 CC="$CC $ac_cv_prog_cc_c11" 4147fi 4148 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4149 ac_prog_cc_stdc=c11 4150fi 4151fi 4152if test x$ac_prog_cc_stdc = xno 4153then : 4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4155printf %s "checking for $CC option to enable C99 features... " >&6; } 4156if test ${ac_cv_prog_cc_c99+y} 4157then : 4158 printf %s "(cached) " >&6 4159else $as_nop 4160 ac_cv_prog_cc_c99=no 4161ac_save_CC=$CC 4162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164$ac_c_conftest_c99_program 4165_ACEOF 4166for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4167do 4168 CC="$ac_save_CC $ac_arg" 4169 if ac_fn_c_try_compile "$LINENO" 4170then : 4171 ac_cv_prog_cc_c99=$ac_arg 4172fi 4173rm -f core conftest.err conftest.$ac_objext conftest.beam 4174 test "x$ac_cv_prog_cc_c99" != "xno" && break 4175done 4176rm -f conftest.$ac_ext 4177CC=$ac_save_CC 4178fi 4179 4180if test "x$ac_cv_prog_cc_c99" = xno 4181then : 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4183printf "%s\n" "unsupported" >&6; } 4184else $as_nop 4185 if test "x$ac_cv_prog_cc_c99" = x 4186then : 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4188printf "%s\n" "none needed" >&6; } 4189else $as_nop 4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4191printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4192 CC="$CC $ac_cv_prog_cc_c99" 4193fi 4194 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4195 ac_prog_cc_stdc=c99 4196fi 4197fi 4198if test x$ac_prog_cc_stdc = xno 4199then : 4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4201printf %s "checking for $CC option to enable C89 features... " >&6; } 4202if test ${ac_cv_prog_cc_c89+y} 4203then : 4204 printf %s "(cached) " >&6 4205else $as_nop 4206 ac_cv_prog_cc_c89=no 4207ac_save_CC=$CC 4208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210$ac_c_conftest_c89_program 4211_ACEOF 4212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4213do 4214 CC="$ac_save_CC $ac_arg" 4215 if ac_fn_c_try_compile "$LINENO" 4216then : 4217 ac_cv_prog_cc_c89=$ac_arg 4218fi 4219rm -f core conftest.err conftest.$ac_objext conftest.beam 4220 test "x$ac_cv_prog_cc_c89" != "xno" && break 4221done 4222rm -f conftest.$ac_ext 4223CC=$ac_save_CC 4224fi 4225 4226if test "x$ac_cv_prog_cc_c89" = xno 4227then : 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4229printf "%s\n" "unsupported" >&6; } 4230else $as_nop 4231 if test "x$ac_cv_prog_cc_c89" = x 4232then : 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4234printf "%s\n" "none needed" >&6; } 4235else $as_nop 4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4237printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4238 CC="$CC $ac_cv_prog_cc_c89" 4239fi 4240 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4241 ac_prog_cc_stdc=c89 4242fi 4243fi 4244 4245ac_ext=c 4246ac_cpp='$CPP $CPPFLAGS' 4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4249ac_compiler_gnu=$ac_cv_c_compiler_gnu 4250 4251 4252 ac_ext=c 4253ac_cpp='$CPP $CPPFLAGS' 4254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4256ac_compiler_gnu=$ac_cv_c_compiler_gnu 4257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4258printf %s "checking whether $CC understands -c and -o together... " >&6; } 4259if test ${am_cv_prog_cc_c_o+y} 4260then : 4261 printf %s "(cached) " >&6 4262else $as_nop 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265 4266int 4267main (void) 4268{ 4269 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274 # Make sure it works both with $CC and with simple cc. 4275 # Following AC_PROG_CC_C_O, we do the test twice because some 4276 # compilers refuse to overwrite an existing .o file with -o, 4277 # though they will create one. 4278 am_cv_prog_cc_c_o=yes 4279 for am_i in 1 2; do 4280 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4281 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4282 ac_status=$? 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); } \ 4285 && test -f conftest2.$ac_objext; then 4286 : OK 4287 else 4288 am_cv_prog_cc_c_o=no 4289 break 4290 fi 4291 done 4292 rm -f core conftest* 4293 unset am_i 4294fi 4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4296printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4297if test "$am_cv_prog_cc_c_o" != yes; then 4298 # Losing compiler, so override with the script. 4299 # FIXME: It is wrong to rewrite CC. 4300 # But if we don't then we get into trouble of one sort or another. 4301 # A longer-term fix would be to have automake use am__CC in this case, 4302 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4303 CC="$am_aux_dir/compile $CC" 4304fi 4305ac_ext=c 4306ac_cpp='$CPP $CPPFLAGS' 4307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4309ac_compiler_gnu=$ac_cv_c_compiler_gnu 4310 4311 4312depcc="$CC" am_compiler_list= 4313 4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4315printf %s "checking dependency style of $depcc... " >&6; } 4316if test ${am_cv_CC_dependencies_compiler_type+y} 4317then : 4318 printf %s "(cached) " >&6 4319else $as_nop 4320 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4321 # We make a subdir and do the tests there. Otherwise we can end up 4322 # making bogus files that we don't know about and never remove. For 4323 # instance it was reported that on HP-UX the gcc test will end up 4324 # making a dummy file named 'D' -- because '-MD' means "put the output 4325 # in D". 4326 rm -rf conftest.dir 4327 mkdir conftest.dir 4328 # Copy depcomp to subdir because otherwise we won't find it if we're 4329 # using a relative directory. 4330 cp "$am_depcomp" conftest.dir 4331 cd conftest.dir 4332 # We will build objects and dependencies in a subdirectory because 4333 # it helps to detect inapplicable dependency modes. For instance 4334 # both Tru64's cc and ICC support -MD to output dependencies as a 4335 # side effect of compilation, but ICC will put the dependencies in 4336 # the current directory while Tru64 will put them in the object 4337 # directory. 4338 mkdir sub 4339 4340 am_cv_CC_dependencies_compiler_type=none 4341 if test "$am_compiler_list" = ""; then 4342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4343 fi 4344 am__universal=false 4345 case " $depcc " in #( 4346 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4347 esac 4348 4349 for depmode in $am_compiler_list; do 4350 # Setup a source with many dependencies, because some compilers 4351 # like to wrap large dependency lists on column 80 (with \), and 4352 # we should not choose a depcomp mode which is confused by this. 4353 # 4354 # We need to recreate these files for each test, as the compiler may 4355 # overwrite some of them when testing with obscure command lines. 4356 # This happens at least with the AIX C compiler. 4357 : > sub/conftest.c 4358 for i in 1 2 3 4 5 6; do 4359 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4360 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4361 # Solaris 10 /bin/sh. 4362 echo '/* dummy */' > sub/conftst$i.h 4363 done 4364 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4365 4366 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4367 # mode. It turns out that the SunPro C++ compiler does not properly 4368 # handle '-M -o', and we need to detect this. Also, some Intel 4369 # versions had trouble with output in subdirs. 4370 am__obj=sub/conftest.${OBJEXT-o} 4371 am__minus_obj="-o $am__obj" 4372 case $depmode in 4373 gcc) 4374 # This depmode causes a compiler race in universal mode. 4375 test "$am__universal" = false || continue 4376 ;; 4377 nosideeffect) 4378 # After this tag, mechanisms are not by side-effect, so they'll 4379 # only be used when explicitly requested. 4380 if test "x$enable_dependency_tracking" = xyes; then 4381 continue 4382 else 4383 break 4384 fi 4385 ;; 4386 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4387 # This compiler won't grok '-c -o', but also, the minuso test has 4388 # not run yet. These depmodes are late enough in the game, and 4389 # so weak that their functioning should not be impacted. 4390 am__obj=conftest.${OBJEXT-o} 4391 am__minus_obj= 4392 ;; 4393 none) break ;; 4394 esac 4395 if depmode=$depmode \ 4396 source=sub/conftest.c object=$am__obj \ 4397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4398 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4399 >/dev/null 2>conftest.err && 4400 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4402 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4404 # icc doesn't choke on unknown options, it will just issue warnings 4405 # or remarks (even with -Werror). So we grep stderr for any message 4406 # that says an option was ignored or not supported. 4407 # When given -MP, icc 7.0 and 7.1 complain thusly: 4408 # icc: Command line warning: ignoring option '-M'; no argument required 4409 # The diagnosis changed in icc 8.0: 4410 # icc: Command line remark: option '-MP' not supported 4411 if (grep 'ignoring option' conftest.err || 4412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4413 am_cv_CC_dependencies_compiler_type=$depmode 4414 break 4415 fi 4416 fi 4417 done 4418 4419 cd .. 4420 rm -rf conftest.dir 4421else 4422 am_cv_CC_dependencies_compiler_type=none 4423fi 4424 4425fi 4426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4427printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4428CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4429 4430 if 4431 test "x$enable_dependency_tracking" != xno \ 4432 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4433 am__fastdepCC_TRUE= 4434 am__fastdepCC_FALSE='#' 4435else 4436 am__fastdepCC_TRUE='#' 4437 am__fastdepCC_FALSE= 4438fi 4439 4440 4441 4442 4443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4444printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4445if test ${ac_cv_c_undeclared_builtin_options+y} 4446then : 4447 printf %s "(cached) " >&6 4448else $as_nop 4449 ac_save_CFLAGS=$CFLAGS 4450 ac_cv_c_undeclared_builtin_options='cannot detect' 4451 for ac_arg in '' -fno-builtin; do 4452 CFLAGS="$ac_save_CFLAGS $ac_arg" 4453 # This test program should *not* compile successfully. 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456 4457int 4458main (void) 4459{ 4460(void) strchr; 4461 ; 4462 return 0; 4463} 4464_ACEOF 4465if ac_fn_c_try_compile "$LINENO" 4466then : 4467 4468else $as_nop 4469 # This test program should compile successfully. 4470 # No library function is consistently available on 4471 # freestanding implementations, so test against a dummy 4472 # declaration. Include always-available headers on the 4473 # off chance that they somehow elicit warnings. 4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475/* end confdefs.h. */ 4476#include <float.h> 4477#include <limits.h> 4478#include <stdarg.h> 4479#include <stddef.h> 4480extern void ac_decl (int, char *); 4481 4482int 4483main (void) 4484{ 4485(void) ac_decl (0, (char *) 0); 4486 (void) ac_decl; 4487 4488 ; 4489 return 0; 4490} 4491_ACEOF 4492if ac_fn_c_try_compile "$LINENO" 4493then : 4494 if test x"$ac_arg" = x 4495then : 4496 ac_cv_c_undeclared_builtin_options='none needed' 4497else $as_nop 4498 ac_cv_c_undeclared_builtin_options=$ac_arg 4499fi 4500 break 4501fi 4502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4503fi 4504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4505 done 4506 CFLAGS=$ac_save_CFLAGS 4507 4508fi 4509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4510printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4511 case $ac_cv_c_undeclared_builtin_options in #( 4512 'cannot detect') : 4513 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4515as_fn_error $? "cannot make $CC report undeclared builtins 4516See \`config.log' for more details" "$LINENO" 5; } ;; #( 4517 'none needed') : 4518 ac_c_undeclared_builtin_options='' ;; #( 4519 *) : 4520 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4521esac 4522 4523ac_header= ac_cache= 4524for ac_item in $ac_header_c_list 4525do 4526 if test $ac_cache; then 4527 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4528 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4529 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4530 fi 4531 ac_header= ac_cache= 4532 elif test $ac_header; then 4533 ac_cache=$ac_item 4534 else 4535 ac_header=$ac_item 4536 fi 4537done 4538 4539 4540 4541 4542 4543 4544 4545 4546if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4547then : 4548 4549printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4550 4551fi 4552 4553 4554 4555 4556ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4557if test "x$ac_cv_have_decl___clang__" = xyes 4558then : 4559 CLANGCC="yes" 4560else $as_nop 4561 CLANGCC="no" 4562fi 4563ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4564if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4565then : 4566 INTELCC="yes" 4567else $as_nop 4568 INTELCC="no" 4569fi 4570ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4571if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4572then : 4573 SUNCC="yes" 4574else $as_nop 4575 SUNCC="no" 4576fi 4577 4578 4579 4580 4581 4582 4583 4584 4585if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4586 if test -n "$ac_tool_prefix"; then 4587 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4588set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4590printf %s "checking for $ac_word... " >&6; } 4591if test ${ac_cv_path_PKG_CONFIG+y} 4592then : 4593 printf %s "(cached) " >&6 4594else $as_nop 4595 case $PKG_CONFIG in 4596 [\\/]* | ?:[\\/]*) 4597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4598 ;; 4599 *) 4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 case $as_dir in #((( 4605 '') as_dir=./ ;; 4606 */) ;; 4607 *) as_dir=$as_dir/ ;; 4608 esac 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4611 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4613 break 2 4614 fi 4615done 4616 done 4617IFS=$as_save_IFS 4618 4619 ;; 4620esac 4621fi 4622PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4623if test -n "$PKG_CONFIG"; then 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4625printf "%s\n" "$PKG_CONFIG" >&6; } 4626else 4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628printf "%s\n" "no" >&6; } 4629fi 4630 4631 4632fi 4633if test -z "$ac_cv_path_PKG_CONFIG"; then 4634 ac_pt_PKG_CONFIG=$PKG_CONFIG 4635 # Extract the first word of "pkg-config", so it can be a program name with args. 4636set dummy pkg-config; ac_word=$2 4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4638printf %s "checking for $ac_word... " >&6; } 4639if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4640then : 4641 printf %s "(cached) " >&6 4642else $as_nop 4643 case $ac_pt_PKG_CONFIG in 4644 [\\/]* | ?:[\\/]*) 4645 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4646 ;; 4647 *) 4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4649for as_dir in $PATH 4650do 4651 IFS=$as_save_IFS 4652 case $as_dir in #((( 4653 '') as_dir=./ ;; 4654 */) ;; 4655 *) as_dir=$as_dir/ ;; 4656 esac 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4659 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4661 break 2 4662 fi 4663done 4664 done 4665IFS=$as_save_IFS 4666 4667 ;; 4668esac 4669fi 4670ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4671if test -n "$ac_pt_PKG_CONFIG"; then 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4673printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4674else 4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676printf "%s\n" "no" >&6; } 4677fi 4678 4679 if test "x$ac_pt_PKG_CONFIG" = x; then 4680 PKG_CONFIG="" 4681 else 4682 case $cross_compiling:$ac_tool_warned in 4683yes:) 4684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4685printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4686ac_tool_warned=yes ;; 4687esac 4688 PKG_CONFIG=$ac_pt_PKG_CONFIG 4689 fi 4690else 4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4692fi 4693 4694fi 4695if test -n "$PKG_CONFIG"; then 4696 _pkg_min_version=0.9.0 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4698printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4701printf "%s\n" "yes" >&6; } 4702 else 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4704printf "%s\n" "no" >&6; } 4705 PKG_CONFIG="" 4706 fi 4707fi 4708 4709 4710 # Make sure we can run config.sub. 4711$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4712 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4713 4714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4715printf %s "checking build system type... " >&6; } 4716if test ${ac_cv_build+y} 4717then : 4718 printf %s "(cached) " >&6 4719else $as_nop 4720 ac_build_alias=$build_alias 4721test "x$ac_build_alias" = x && 4722 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4723test "x$ac_build_alias" = x && 4724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4725ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4726 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4727 4728fi 4729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4730printf "%s\n" "$ac_cv_build" >&6; } 4731case $ac_cv_build in 4732*-*-*) ;; 4733*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4734esac 4735build=$ac_cv_build 4736ac_save_IFS=$IFS; IFS='-' 4737set x $ac_cv_build 4738shift 4739build_cpu=$1 4740build_vendor=$2 4741shift; shift 4742# Remember, the first character of IFS is used to create $*, 4743# except with old shells: 4744build_os=$* 4745IFS=$ac_save_IFS 4746case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4747 4748 4749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4750printf %s "checking host system type... " >&6; } 4751if test ${ac_cv_host+y} 4752then : 4753 printf %s "(cached) " >&6 4754else $as_nop 4755 if test "x$host_alias" = x; then 4756 ac_cv_host=$ac_cv_build 4757else 4758 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4759 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4760fi 4761 4762fi 4763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4764printf "%s\n" "$ac_cv_host" >&6; } 4765case $ac_cv_host in 4766*-*-*) ;; 4767*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4768esac 4769host=$ac_cv_host 4770ac_save_IFS=$IFS; IFS='-' 4771set x $ac_cv_host 4772shift 4773host_cpu=$1 4774host_vendor=$2 4775shift; shift 4776# Remember, the first character of IFS is used to create $*, 4777# except with old shells: 4778host_os=$* 4779IFS=$ac_save_IFS 4780case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4781 4782 4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4784printf %s "checking for a sed that does not truncate output... " >&6; } 4785if test ${ac_cv_path_SED+y} 4786then : 4787 printf %s "(cached) " >&6 4788else $as_nop 4789 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4790 for ac_i in 1 2 3 4 5 6 7; do 4791 ac_script="$ac_script$as_nl$ac_script" 4792 done 4793 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4794 { ac_script=; unset ac_script;} 4795 if test -z "$SED"; then 4796 ac_path_SED_found=false 4797 # Loop through the user's path and test for each of PROGNAME-LIST 4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799for as_dir in $PATH 4800do 4801 IFS=$as_save_IFS 4802 case $as_dir in #((( 4803 '') as_dir=./ ;; 4804 */) ;; 4805 *) as_dir=$as_dir/ ;; 4806 esac 4807 for ac_prog in sed gsed 4808 do 4809 for ac_exec_ext in '' $ac_executable_extensions; do 4810 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4811 as_fn_executable_p "$ac_path_SED" || continue 4812# Check for GNU ac_path_SED and select it if it is found. 4813 # Check for GNU $ac_path_SED 4814case `"$ac_path_SED" --version 2>&1` in 4815*GNU*) 4816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4817*) 4818 ac_count=0 4819 printf %s 0123456789 >"conftest.in" 4820 while : 4821 do 4822 cat "conftest.in" "conftest.in" >"conftest.tmp" 4823 mv "conftest.tmp" "conftest.in" 4824 cp "conftest.in" "conftest.nl" 4825 printf "%s\n" '' >> "conftest.nl" 4826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4828 as_fn_arith $ac_count + 1 && ac_count=$as_val 4829 if test $ac_count -gt ${ac_path_SED_max-0}; then 4830 # Best one so far, save it but keep looking for a better one 4831 ac_cv_path_SED="$ac_path_SED" 4832 ac_path_SED_max=$ac_count 4833 fi 4834 # 10*(2^10) chars as input seems more than enough 4835 test $ac_count -gt 10 && break 4836 done 4837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4838esac 4839 4840 $ac_path_SED_found && break 3 4841 done 4842 done 4843 done 4844IFS=$as_save_IFS 4845 if test -z "$ac_cv_path_SED"; then 4846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4847 fi 4848else 4849 ac_cv_path_SED=$SED 4850fi 4851 4852fi 4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4854printf "%s\n" "$ac_cv_path_SED" >&6; } 4855 SED="$ac_cv_path_SED" 4856 rm -f conftest.sed 4857 4858 4859 4860 4861 4862 4863# Check whether --enable-selective-werror was given. 4864if test ${enable_selective_werror+y} 4865then : 4866 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4867else $as_nop 4868 SELECTIVE_WERROR=yes 4869fi 4870 4871 4872 4873 4874 4875# -v is too short to test reliably with XORG_TESTSET_CFLAG 4876if test "x$SUNCC" = "xyes"; then 4877 BASE_CFLAGS="-v" 4878else 4879 BASE_CFLAGS="" 4880fi 4881 4882# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896xorg_testset_save_CFLAGS="$CFLAGS" 4897 4898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4903then : 4904 printf %s "(cached) " >&6 4905else $as_nop 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908int i; 4909_ACEOF 4910if ac_fn_c_try_compile "$LINENO" 4911then : 4912 xorg_cv_cc_flag_unknown_warning_option=yes 4913else $as_nop 4914 xorg_cv_cc_flag_unknown_warning_option=no 4915fi 4916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4917fi 4918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4921 CFLAGS="$xorg_testset_save_CFLAGS" 4922fi 4923 4924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4927 fi 4928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4932then : 4933 printf %s "(cached) " >&6 4934else $as_nop 4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937int i; 4938_ACEOF 4939if ac_fn_c_try_compile "$LINENO" 4940then : 4941 xorg_cv_cc_flag_unused_command_line_argument=yes 4942else $as_nop 4943 xorg_cv_cc_flag_unused_command_line_argument=no 4944fi 4945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4946fi 4947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4950 CFLAGS="$xorg_testset_save_CFLAGS" 4951fi 4952 4953found="no" 4954 4955 if test $found = "no" ; then 4956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4958 fi 4959 4960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4962 fi 4963 4964 CFLAGS="$CFLAGS -Wall" 4965 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4967printf %s "checking if $CC supports -Wall... " >&6; } 4968 cacheid=xorg_cv_cc_flag__Wall 4969 if eval test \${$cacheid+y} 4970then : 4971 printf %s "(cached) " >&6 4972else $as_nop 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974/* end confdefs.h. */ 4975int i; 4976int 4977main (void) 4978{ 4979 4980 ; 4981 return 0; 4982} 4983_ACEOF 4984if ac_fn_c_try_link "$LINENO" 4985then : 4986 eval $cacheid=yes 4987else $as_nop 4988 eval $cacheid=no 4989fi 4990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4991 conftest$ac_exeext conftest.$ac_ext 4992fi 4993 4994 4995 CFLAGS="$xorg_testset_save_CFLAGS" 4996 4997 eval supported=\$$cacheid 4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4999printf "%s\n" "$supported" >&6; } 5000 if test "$supported" = "yes" ; then 5001 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5002 found="yes" 5003 fi 5004 fi 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020xorg_testset_save_CFLAGS="$CFLAGS" 5021 5022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5026if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5027then : 5028 printf %s "(cached) " >&6 5029else $as_nop 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032int i; 5033_ACEOF 5034if ac_fn_c_try_compile "$LINENO" 5035then : 5036 xorg_cv_cc_flag_unknown_warning_option=yes 5037else $as_nop 5038 xorg_cv_cc_flag_unknown_warning_option=no 5039fi 5040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5041fi 5042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5045 CFLAGS="$xorg_testset_save_CFLAGS" 5046fi 5047 5048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5051 fi 5052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5055if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5056then : 5057 printf %s "(cached) " >&6 5058else $as_nop 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061int i; 5062_ACEOF 5063if ac_fn_c_try_compile "$LINENO" 5064then : 5065 xorg_cv_cc_flag_unused_command_line_argument=yes 5066else $as_nop 5067 xorg_cv_cc_flag_unused_command_line_argument=no 5068fi 5069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5070fi 5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5074 CFLAGS="$xorg_testset_save_CFLAGS" 5075fi 5076 5077found="no" 5078 5079 if test $found = "no" ; then 5080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5082 fi 5083 5084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5086 fi 5087 5088 CFLAGS="$CFLAGS -Wpointer-arith" 5089 5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5091printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5092 cacheid=xorg_cv_cc_flag__Wpointer_arith 5093 if eval test \${$cacheid+y} 5094then : 5095 printf %s "(cached) " >&6 5096else $as_nop 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099int i; 5100int 5101main (void) 5102{ 5103 5104 ; 5105 return 0; 5106} 5107_ACEOF 5108if ac_fn_c_try_link "$LINENO" 5109then : 5110 eval $cacheid=yes 5111else $as_nop 5112 eval $cacheid=no 5113fi 5114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5115 conftest$ac_exeext conftest.$ac_ext 5116fi 5117 5118 5119 CFLAGS="$xorg_testset_save_CFLAGS" 5120 5121 eval supported=\$$cacheid 5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5123printf "%s\n" "$supported" >&6; } 5124 if test "$supported" = "yes" ; then 5125 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5126 found="yes" 5127 fi 5128 fi 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144xorg_testset_save_CFLAGS="$CFLAGS" 5145 5146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5150if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5151then : 5152 printf %s "(cached) " >&6 5153else $as_nop 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156int i; 5157_ACEOF 5158if ac_fn_c_try_compile "$LINENO" 5159then : 5160 xorg_cv_cc_flag_unknown_warning_option=yes 5161else $as_nop 5162 xorg_cv_cc_flag_unknown_warning_option=no 5163fi 5164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5165fi 5166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5169 CFLAGS="$xorg_testset_save_CFLAGS" 5170fi 5171 5172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5175 fi 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5180then : 5181 printf %s "(cached) " >&6 5182else $as_nop 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5184/* end confdefs.h. */ 5185int i; 5186_ACEOF 5187if ac_fn_c_try_compile "$LINENO" 5188then : 5189 xorg_cv_cc_flag_unused_command_line_argument=yes 5190else $as_nop 5191 xorg_cv_cc_flag_unused_command_line_argument=no 5192fi 5193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5194fi 5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5198 CFLAGS="$xorg_testset_save_CFLAGS" 5199fi 5200 5201found="no" 5202 5203 if test $found = "no" ; then 5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5206 fi 5207 5208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5210 fi 5211 5212 CFLAGS="$CFLAGS -Wmissing-declarations" 5213 5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5215printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5216 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5217 if eval test \${$cacheid+y} 5218then : 5219 printf %s "(cached) " >&6 5220else $as_nop 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223int i; 5224int 5225main (void) 5226{ 5227 5228 ; 5229 return 0; 5230} 5231_ACEOF 5232if ac_fn_c_try_link "$LINENO" 5233then : 5234 eval $cacheid=yes 5235else $as_nop 5236 eval $cacheid=no 5237fi 5238rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5239 conftest$ac_exeext conftest.$ac_ext 5240fi 5241 5242 5243 CFLAGS="$xorg_testset_save_CFLAGS" 5244 5245 eval supported=\$$cacheid 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5247printf "%s\n" "$supported" >&6; } 5248 if test "$supported" = "yes" ; then 5249 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5250 found="yes" 5251 fi 5252 fi 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268xorg_testset_save_CFLAGS="$CFLAGS" 5269 5270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5274if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5275then : 5276 printf %s "(cached) " >&6 5277else $as_nop 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280int i; 5281_ACEOF 5282if ac_fn_c_try_compile "$LINENO" 5283then : 5284 xorg_cv_cc_flag_unknown_warning_option=yes 5285else $as_nop 5286 xorg_cv_cc_flag_unknown_warning_option=no 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5289fi 5290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5293 CFLAGS="$xorg_testset_save_CFLAGS" 5294fi 5295 5296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5299 fi 5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5303if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5304then : 5305 printf %s "(cached) " >&6 5306else $as_nop 5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5308/* end confdefs.h. */ 5309int i; 5310_ACEOF 5311if ac_fn_c_try_compile "$LINENO" 5312then : 5313 xorg_cv_cc_flag_unused_command_line_argument=yes 5314else $as_nop 5315 xorg_cv_cc_flag_unused_command_line_argument=no 5316fi 5317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5318fi 5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5322 CFLAGS="$xorg_testset_save_CFLAGS" 5323fi 5324 5325found="no" 5326 5327 if test $found = "no" ; then 5328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5330 fi 5331 5332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5334 fi 5335 5336 CFLAGS="$CFLAGS -Wformat=2" 5337 5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5339printf %s "checking if $CC supports -Wformat=2... " >&6; } 5340 cacheid=xorg_cv_cc_flag__Wformat_2 5341 if eval test \${$cacheid+y} 5342then : 5343 printf %s "(cached) " >&6 5344else $as_nop 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346/* end confdefs.h. */ 5347int i; 5348int 5349main (void) 5350{ 5351 5352 ; 5353 return 0; 5354} 5355_ACEOF 5356if ac_fn_c_try_link "$LINENO" 5357then : 5358 eval $cacheid=yes 5359else $as_nop 5360 eval $cacheid=no 5361fi 5362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5363 conftest$ac_exeext conftest.$ac_ext 5364fi 5365 5366 5367 CFLAGS="$xorg_testset_save_CFLAGS" 5368 5369 eval supported=\$$cacheid 5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5371printf "%s\n" "$supported" >&6; } 5372 if test "$supported" = "yes" ; then 5373 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5374 found="yes" 5375 fi 5376 fi 5377 5378 if test $found = "no" ; then 5379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5381 fi 5382 5383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5385 fi 5386 5387 CFLAGS="$CFLAGS -Wformat" 5388 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5390printf %s "checking if $CC supports -Wformat... " >&6; } 5391 cacheid=xorg_cv_cc_flag__Wformat 5392 if eval test \${$cacheid+y} 5393then : 5394 printf %s "(cached) " >&6 5395else $as_nop 5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5397/* end confdefs.h. */ 5398int i; 5399int 5400main (void) 5401{ 5402 5403 ; 5404 return 0; 5405} 5406_ACEOF 5407if ac_fn_c_try_link "$LINENO" 5408then : 5409 eval $cacheid=yes 5410else $as_nop 5411 eval $cacheid=no 5412fi 5413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5414 conftest$ac_exeext conftest.$ac_ext 5415fi 5416 5417 5418 CFLAGS="$xorg_testset_save_CFLAGS" 5419 5420 eval supported=\$$cacheid 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5422printf "%s\n" "$supported" >&6; } 5423 if test "$supported" = "yes" ; then 5424 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5425 found="yes" 5426 fi 5427 fi 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445xorg_testset_save_CFLAGS="$CFLAGS" 5446 5447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5450printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5451if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5452then : 5453 printf %s "(cached) " >&6 5454else $as_nop 5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457int i; 5458_ACEOF 5459if ac_fn_c_try_compile "$LINENO" 5460then : 5461 xorg_cv_cc_flag_unknown_warning_option=yes 5462else $as_nop 5463 xorg_cv_cc_flag_unknown_warning_option=no 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5466fi 5467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 fi 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5480if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5481then : 5482 printf %s "(cached) " >&6 5483else $as_nop 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487_ACEOF 5488if ac_fn_c_try_compile "$LINENO" 5489then : 5490 xorg_cv_cc_flag_unused_command_line_argument=yes 5491else $as_nop 5492 xorg_cv_cc_flag_unused_command_line_argument=no 5493fi 5494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5495fi 5496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5497printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5499 CFLAGS="$xorg_testset_save_CFLAGS" 5500fi 5501 5502found="no" 5503 5504 if test $found = "no" ; then 5505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5507 fi 5508 5509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5511 fi 5512 5513 CFLAGS="$CFLAGS -Wstrict-prototypes" 5514 5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5516printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5517 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5518 if eval test \${$cacheid+y} 5519then : 5520 printf %s "(cached) " >&6 5521else $as_nop 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524int i; 5525int 5526main (void) 5527{ 5528 5529 ; 5530 return 0; 5531} 5532_ACEOF 5533if ac_fn_c_try_link "$LINENO" 5534then : 5535 eval $cacheid=yes 5536else $as_nop 5537 eval $cacheid=no 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5540 conftest$ac_exeext conftest.$ac_ext 5541fi 5542 5543 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545 5546 eval supported=\$$cacheid 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5548printf "%s\n" "$supported" >&6; } 5549 if test "$supported" = "yes" ; then 5550 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5551 found="yes" 5552 fi 5553 fi 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569xorg_testset_save_CFLAGS="$CFLAGS" 5570 5571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5576then : 5577 printf %s "(cached) " >&6 5578else $as_nop 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580/* end confdefs.h. */ 5581int i; 5582_ACEOF 5583if ac_fn_c_try_compile "$LINENO" 5584then : 5585 xorg_cv_cc_flag_unknown_warning_option=yes 5586else $as_nop 5587 xorg_cv_cc_flag_unknown_warning_option=no 5588fi 5589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5590fi 5591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5594 CFLAGS="$xorg_testset_save_CFLAGS" 5595fi 5596 5597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5600 fi 5601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5605then : 5606 printf %s "(cached) " >&6 5607else $as_nop 5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609/* end confdefs.h. */ 5610int i; 5611_ACEOF 5612if ac_fn_c_try_compile "$LINENO" 5613then : 5614 xorg_cv_cc_flag_unused_command_line_argument=yes 5615else $as_nop 5616 xorg_cv_cc_flag_unused_command_line_argument=no 5617fi 5618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5619fi 5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624fi 5625 5626found="no" 5627 5628 if test $found = "no" ; then 5629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5631 fi 5632 5633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5635 fi 5636 5637 CFLAGS="$CFLAGS -Wmissing-prototypes" 5638 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5640printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5641 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5642 if eval test \${$cacheid+y} 5643then : 5644 printf %s "(cached) " >&6 5645else $as_nop 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648int i; 5649int 5650main (void) 5651{ 5652 5653 ; 5654 return 0; 5655} 5656_ACEOF 5657if ac_fn_c_try_link "$LINENO" 5658then : 5659 eval $cacheid=yes 5660else $as_nop 5661 eval $cacheid=no 5662fi 5663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5664 conftest$ac_exeext conftest.$ac_ext 5665fi 5666 5667 5668 CFLAGS="$xorg_testset_save_CFLAGS" 5669 5670 eval supported=\$$cacheid 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5672printf "%s\n" "$supported" >&6; } 5673 if test "$supported" = "yes" ; then 5674 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5675 found="yes" 5676 fi 5677 fi 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693xorg_testset_save_CFLAGS="$CFLAGS" 5694 5695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5700then : 5701 printf %s "(cached) " >&6 5702else $as_nop 5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5704/* end confdefs.h. */ 5705int i; 5706_ACEOF 5707if ac_fn_c_try_compile "$LINENO" 5708then : 5709 xorg_cv_cc_flag_unknown_warning_option=yes 5710else $as_nop 5711 xorg_cv_cc_flag_unknown_warning_option=no 5712fi 5713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5714fi 5715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5718 CFLAGS="$xorg_testset_save_CFLAGS" 5719fi 5720 5721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 fi 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5729then : 5730 printf %s "(cached) " >&6 5731else $as_nop 5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734int i; 5735_ACEOF 5736if ac_fn_c_try_compile "$LINENO" 5737then : 5738 xorg_cv_cc_flag_unused_command_line_argument=yes 5739else $as_nop 5740 xorg_cv_cc_flag_unused_command_line_argument=no 5741fi 5742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5743fi 5744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748fi 5749 5750found="no" 5751 5752 if test $found = "no" ; then 5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5755 fi 5756 5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5759 fi 5760 5761 CFLAGS="$CFLAGS -Wnested-externs" 5762 5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5764printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5765 cacheid=xorg_cv_cc_flag__Wnested_externs 5766 if eval test \${$cacheid+y} 5767then : 5768 printf %s "(cached) " >&6 5769else $as_nop 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771/* end confdefs.h. */ 5772int i; 5773int 5774main (void) 5775{ 5776 5777 ; 5778 return 0; 5779} 5780_ACEOF 5781if ac_fn_c_try_link "$LINENO" 5782then : 5783 eval $cacheid=yes 5784else $as_nop 5785 eval $cacheid=no 5786fi 5787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5788 conftest$ac_exeext conftest.$ac_ext 5789fi 5790 5791 5792 CFLAGS="$xorg_testset_save_CFLAGS" 5793 5794 eval supported=\$$cacheid 5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5796printf "%s\n" "$supported" >&6; } 5797 if test "$supported" = "yes" ; then 5798 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5799 found="yes" 5800 fi 5801 fi 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817xorg_testset_save_CFLAGS="$CFLAGS" 5818 5819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5823if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5824then : 5825 printf %s "(cached) " >&6 5826else $as_nop 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829int i; 5830_ACEOF 5831if ac_fn_c_try_compile "$LINENO" 5832then : 5833 xorg_cv_cc_flag_unknown_warning_option=yes 5834else $as_nop 5835 xorg_cv_cc_flag_unknown_warning_option=no 5836fi 5837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5838fi 5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5842 CFLAGS="$xorg_testset_save_CFLAGS" 5843fi 5844 5845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5848 fi 5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5853then : 5854 printf %s "(cached) " >&6 5855else $as_nop 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858int i; 5859_ACEOF 5860if ac_fn_c_try_compile "$LINENO" 5861then : 5862 xorg_cv_cc_flag_unused_command_line_argument=yes 5863else $as_nop 5864 xorg_cv_cc_flag_unused_command_line_argument=no 5865fi 5866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5867fi 5868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5871 CFLAGS="$xorg_testset_save_CFLAGS" 5872fi 5873 5874found="no" 5875 5876 if test $found = "no" ; then 5877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5879 fi 5880 5881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5883 fi 5884 5885 CFLAGS="$CFLAGS -Wbad-function-cast" 5886 5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5888printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5889 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5890 if eval test \${$cacheid+y} 5891then : 5892 printf %s "(cached) " >&6 5893else $as_nop 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895/* end confdefs.h. */ 5896int i; 5897int 5898main (void) 5899{ 5900 5901 ; 5902 return 0; 5903} 5904_ACEOF 5905if ac_fn_c_try_link "$LINENO" 5906then : 5907 eval $cacheid=yes 5908else $as_nop 5909 eval $cacheid=no 5910fi 5911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5912 conftest$ac_exeext conftest.$ac_ext 5913fi 5914 5915 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917 5918 eval supported=\$$cacheid 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5920printf "%s\n" "$supported" >&6; } 5921 if test "$supported" = "yes" ; then 5922 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5923 found="yes" 5924 fi 5925 fi 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941xorg_testset_save_CFLAGS="$CFLAGS" 5942 5943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5947if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5948then : 5949 printf %s "(cached) " >&6 5950else $as_nop 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953int i; 5954_ACEOF 5955if ac_fn_c_try_compile "$LINENO" 5956then : 5957 xorg_cv_cc_flag_unknown_warning_option=yes 5958else $as_nop 5959 xorg_cv_cc_flag_unknown_warning_option=no 5960fi 5961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5962fi 5963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5966 CFLAGS="$xorg_testset_save_CFLAGS" 5967fi 5968 5969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 fi 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5976if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5977then : 5978 printf %s "(cached) " >&6 5979else $as_nop 5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981/* end confdefs.h. */ 5982int i; 5983_ACEOF 5984if ac_fn_c_try_compile "$LINENO" 5985then : 5986 xorg_cv_cc_flag_unused_command_line_argument=yes 5987else $as_nop 5988 xorg_cv_cc_flag_unused_command_line_argument=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5991fi 5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996fi 5997 5998found="no" 5999 6000 if test $found = "no" ; then 6001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6003 fi 6004 6005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 fi 6008 6009 CFLAGS="$CFLAGS -Wold-style-definition" 6010 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6012printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6013 cacheid=xorg_cv_cc_flag__Wold_style_definition 6014 if eval test \${$cacheid+y} 6015then : 6016 printf %s "(cached) " >&6 6017else $as_nop 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6019/* end confdefs.h. */ 6020int i; 6021int 6022main (void) 6023{ 6024 6025 ; 6026 return 0; 6027} 6028_ACEOF 6029if ac_fn_c_try_link "$LINENO" 6030then : 6031 eval $cacheid=yes 6032else $as_nop 6033 eval $cacheid=no 6034fi 6035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6036 conftest$ac_exeext conftest.$ac_ext 6037fi 6038 6039 6040 CFLAGS="$xorg_testset_save_CFLAGS" 6041 6042 eval supported=\$$cacheid 6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6044printf "%s\n" "$supported" >&6; } 6045 if test "$supported" = "yes" ; then 6046 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6047 found="yes" 6048 fi 6049 fi 6050 6051 if test $found = "no" ; then 6052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6054 fi 6055 6056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6058 fi 6059 6060 CFLAGS="$CFLAGS -fd" 6061 6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6063printf %s "checking if $CC supports -fd... " >&6; } 6064 cacheid=xorg_cv_cc_flag__fd 6065 if eval test \${$cacheid+y} 6066then : 6067 printf %s "(cached) " >&6 6068else $as_nop 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071int i; 6072int 6073main (void) 6074{ 6075 6076 ; 6077 return 0; 6078} 6079_ACEOF 6080if ac_fn_c_try_link "$LINENO" 6081then : 6082 eval $cacheid=yes 6083else $as_nop 6084 eval $cacheid=no 6085fi 6086rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6087 conftest$ac_exeext conftest.$ac_ext 6088fi 6089 6090 6091 CFLAGS="$xorg_testset_save_CFLAGS" 6092 6093 eval supported=\$$cacheid 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6095printf "%s\n" "$supported" >&6; } 6096 if test "$supported" = "yes" ; then 6097 BASE_CFLAGS="$BASE_CFLAGS -fd" 6098 found="yes" 6099 fi 6100 fi 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116xorg_testset_save_CFLAGS="$CFLAGS" 6117 6118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6122if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6123then : 6124 printf %s "(cached) " >&6 6125else $as_nop 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129_ACEOF 6130if ac_fn_c_try_compile "$LINENO" 6131then : 6132 xorg_cv_cc_flag_unknown_warning_option=yes 6133else $as_nop 6134 xorg_cv_cc_flag_unknown_warning_option=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6137fi 6138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6139printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6141 CFLAGS="$xorg_testset_save_CFLAGS" 6142fi 6143 6144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6147 fi 6148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6150printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6151if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6152then : 6153 printf %s "(cached) " >&6 6154else $as_nop 6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156/* end confdefs.h. */ 6157int i; 6158_ACEOF 6159if ac_fn_c_try_compile "$LINENO" 6160then : 6161 xorg_cv_cc_flag_unused_command_line_argument=yes 6162else $as_nop 6163 xorg_cv_cc_flag_unused_command_line_argument=no 6164fi 6165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6166fi 6167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6168printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6170 CFLAGS="$xorg_testset_save_CFLAGS" 6171fi 6172 6173found="no" 6174 6175 if test $found = "no" ; then 6176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6178 fi 6179 6180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6182 fi 6183 6184 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6185 6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6187printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6188 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6189 if eval test \${$cacheid+y} 6190then : 6191 printf %s "(cached) " >&6 6192else $as_nop 6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6194/* end confdefs.h. */ 6195int i; 6196int 6197main (void) 6198{ 6199 6200 ; 6201 return 0; 6202} 6203_ACEOF 6204if ac_fn_c_try_link "$LINENO" 6205then : 6206 eval $cacheid=yes 6207else $as_nop 6208 eval $cacheid=no 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6211 conftest$ac_exeext conftest.$ac_ext 6212fi 6213 6214 6215 CFLAGS="$xorg_testset_save_CFLAGS" 6216 6217 eval supported=\$$cacheid 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6219printf "%s\n" "$supported" >&6; } 6220 if test "$supported" = "yes" ; then 6221 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6222 found="yes" 6223 fi 6224 fi 6225 6226 6227 6228 6229 6230# This chunk adds additional warnings that could catch undesired effects. 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244xorg_testset_save_CFLAGS="$CFLAGS" 6245 6246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6250if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6251then : 6252 printf %s "(cached) " >&6 6253else $as_nop 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256int i; 6257_ACEOF 6258if ac_fn_c_try_compile "$LINENO" 6259then : 6260 xorg_cv_cc_flag_unknown_warning_option=yes 6261else $as_nop 6262 xorg_cv_cc_flag_unknown_warning_option=no 6263fi 6264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6265fi 6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270fi 6271 6272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6275 fi 6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6279if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6280then : 6281 printf %s "(cached) " >&6 6282else $as_nop 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285int i; 6286_ACEOF 6287if ac_fn_c_try_compile "$LINENO" 6288then : 6289 xorg_cv_cc_flag_unused_command_line_argument=yes 6290else $as_nop 6291 xorg_cv_cc_flag_unused_command_line_argument=no 6292fi 6293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6294fi 6295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299fi 6300 6301found="no" 6302 6303 if test $found = "no" ; then 6304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6306 fi 6307 6308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6310 fi 6311 6312 CFLAGS="$CFLAGS -Wunused" 6313 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6315printf %s "checking if $CC supports -Wunused... " >&6; } 6316 cacheid=xorg_cv_cc_flag__Wunused 6317 if eval test \${$cacheid+y} 6318then : 6319 printf %s "(cached) " >&6 6320else $as_nop 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323int i; 6324int 6325main (void) 6326{ 6327 6328 ; 6329 return 0; 6330} 6331_ACEOF 6332if ac_fn_c_try_link "$LINENO" 6333then : 6334 eval $cacheid=yes 6335else $as_nop 6336 eval $cacheid=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6339 conftest$ac_exeext conftest.$ac_ext 6340fi 6341 6342 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344 6345 eval supported=\$$cacheid 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6347printf "%s\n" "$supported" >&6; } 6348 if test "$supported" = "yes" ; then 6349 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6350 found="yes" 6351 fi 6352 fi 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368xorg_testset_save_CFLAGS="$CFLAGS" 6369 6370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6374if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6375then : 6376 printf %s "(cached) " >&6 6377else $as_nop 6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380int i; 6381_ACEOF 6382if ac_fn_c_try_compile "$LINENO" 6383then : 6384 xorg_cv_cc_flag_unknown_warning_option=yes 6385else $as_nop 6386 xorg_cv_cc_flag_unknown_warning_option=no 6387fi 6388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6389fi 6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6393 CFLAGS="$xorg_testset_save_CFLAGS" 6394fi 6395 6396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6399 fi 6400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6403if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6404then : 6405 printf %s "(cached) " >&6 6406else $as_nop 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409int i; 6410_ACEOF 6411if ac_fn_c_try_compile "$LINENO" 6412then : 6413 xorg_cv_cc_flag_unused_command_line_argument=yes 6414else $as_nop 6415 xorg_cv_cc_flag_unused_command_line_argument=no 6416fi 6417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6418fi 6419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6422 CFLAGS="$xorg_testset_save_CFLAGS" 6423fi 6424 6425found="no" 6426 6427 if test $found = "no" ; then 6428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6430 fi 6431 6432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6434 fi 6435 6436 CFLAGS="$CFLAGS -Wuninitialized" 6437 6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6439printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6440 cacheid=xorg_cv_cc_flag__Wuninitialized 6441 if eval test \${$cacheid+y} 6442then : 6443 printf %s "(cached) " >&6 6444else $as_nop 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446/* end confdefs.h. */ 6447int i; 6448int 6449main (void) 6450{ 6451 6452 ; 6453 return 0; 6454} 6455_ACEOF 6456if ac_fn_c_try_link "$LINENO" 6457then : 6458 eval $cacheid=yes 6459else $as_nop 6460 eval $cacheid=no 6461fi 6462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6463 conftest$ac_exeext conftest.$ac_ext 6464fi 6465 6466 6467 CFLAGS="$xorg_testset_save_CFLAGS" 6468 6469 eval supported=\$$cacheid 6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6471printf "%s\n" "$supported" >&6; } 6472 if test "$supported" = "yes" ; then 6473 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6474 found="yes" 6475 fi 6476 fi 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492xorg_testset_save_CFLAGS="$CFLAGS" 6493 6494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6498if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6499then : 6500 printf %s "(cached) " >&6 6501else $as_nop 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505_ACEOF 6506if ac_fn_c_try_compile "$LINENO" 6507then : 6508 xorg_cv_cc_flag_unknown_warning_option=yes 6509else $as_nop 6510 xorg_cv_cc_flag_unknown_warning_option=no 6511fi 6512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6513fi 6514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6517 CFLAGS="$xorg_testset_save_CFLAGS" 6518fi 6519 6520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6527if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6528then : 6529 printf %s "(cached) " >&6 6530else $as_nop 6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533int i; 6534_ACEOF 6535if ac_fn_c_try_compile "$LINENO" 6536then : 6537 xorg_cv_cc_flag_unused_command_line_argument=yes 6538else $as_nop 6539 xorg_cv_cc_flag_unused_command_line_argument=no 6540fi 6541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6542fi 6543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547fi 6548 6549found="no" 6550 6551 if test $found = "no" ; then 6552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6554 fi 6555 6556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558 fi 6559 6560 CFLAGS="$CFLAGS -Wshadow" 6561 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6563printf %s "checking if $CC supports -Wshadow... " >&6; } 6564 cacheid=xorg_cv_cc_flag__Wshadow 6565 if eval test \${$cacheid+y} 6566then : 6567 printf %s "(cached) " >&6 6568else $as_nop 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570/* end confdefs.h. */ 6571int i; 6572int 6573main (void) 6574{ 6575 6576 ; 6577 return 0; 6578} 6579_ACEOF 6580if ac_fn_c_try_link "$LINENO" 6581then : 6582 eval $cacheid=yes 6583else $as_nop 6584 eval $cacheid=no 6585fi 6586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6587 conftest$ac_exeext conftest.$ac_ext 6588fi 6589 6590 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592 6593 eval supported=\$$cacheid 6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6595printf "%s\n" "$supported" >&6; } 6596 if test "$supported" = "yes" ; then 6597 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6598 found="yes" 6599 fi 6600 fi 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616xorg_testset_save_CFLAGS="$CFLAGS" 6617 6618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6622if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6623then : 6624 printf %s "(cached) " >&6 6625else $as_nop 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628int i; 6629_ACEOF 6630if ac_fn_c_try_compile "$LINENO" 6631then : 6632 xorg_cv_cc_flag_unknown_warning_option=yes 6633else $as_nop 6634 xorg_cv_cc_flag_unknown_warning_option=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6637fi 6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642fi 6643 6644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6647 fi 6648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6651if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6652then : 6653 printf %s "(cached) " >&6 6654else $as_nop 6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656/* end confdefs.h. */ 6657int i; 6658_ACEOF 6659if ac_fn_c_try_compile "$LINENO" 6660then : 6661 xorg_cv_cc_flag_unused_command_line_argument=yes 6662else $as_nop 6663 xorg_cv_cc_flag_unused_command_line_argument=no 6664fi 6665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6666fi 6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6670 CFLAGS="$xorg_testset_save_CFLAGS" 6671fi 6672 6673found="no" 6674 6675 if test $found = "no" ; then 6676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6678 fi 6679 6680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6682 fi 6683 6684 CFLAGS="$CFLAGS -Wmissing-noreturn" 6685 6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6687printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6688 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6689 if eval test \${$cacheid+y} 6690then : 6691 printf %s "(cached) " >&6 6692else $as_nop 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695int i; 6696int 6697main (void) 6698{ 6699 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704if ac_fn_c_try_link "$LINENO" 6705then : 6706 eval $cacheid=yes 6707else $as_nop 6708 eval $cacheid=no 6709fi 6710rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6711 conftest$ac_exeext conftest.$ac_ext 6712fi 6713 6714 6715 CFLAGS="$xorg_testset_save_CFLAGS" 6716 6717 eval supported=\$$cacheid 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6719printf "%s\n" "$supported" >&6; } 6720 if test "$supported" = "yes" ; then 6721 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6722 found="yes" 6723 fi 6724 fi 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740xorg_testset_save_CFLAGS="$CFLAGS" 6741 6742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6746if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6747then : 6748 printf %s "(cached) " >&6 6749else $as_nop 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752int i; 6753_ACEOF 6754if ac_fn_c_try_compile "$LINENO" 6755then : 6756 xorg_cv_cc_flag_unknown_warning_option=yes 6757else $as_nop 6758 xorg_cv_cc_flag_unknown_warning_option=no 6759fi 6760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6761fi 6762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6765 CFLAGS="$xorg_testset_save_CFLAGS" 6766fi 6767 6768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6771 fi 6772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6775if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6776then : 6777 printf %s "(cached) " >&6 6778else $as_nop 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781int i; 6782_ACEOF 6783if ac_fn_c_try_compile "$LINENO" 6784then : 6785 xorg_cv_cc_flag_unused_command_line_argument=yes 6786else $as_nop 6787 xorg_cv_cc_flag_unused_command_line_argument=no 6788fi 6789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6790fi 6791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6794 CFLAGS="$xorg_testset_save_CFLAGS" 6795fi 6796 6797found="no" 6798 6799 if test $found = "no" ; then 6800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6802 fi 6803 6804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6806 fi 6807 6808 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6809 6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6811printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6812 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6813 if eval test \${$cacheid+y} 6814then : 6815 printf %s "(cached) " >&6 6816else $as_nop 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819int i; 6820int 6821main (void) 6822{ 6823 6824 ; 6825 return 0; 6826} 6827_ACEOF 6828if ac_fn_c_try_link "$LINENO" 6829then : 6830 eval $cacheid=yes 6831else $as_nop 6832 eval $cacheid=no 6833fi 6834rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6835 conftest$ac_exeext conftest.$ac_ext 6836fi 6837 6838 6839 CFLAGS="$xorg_testset_save_CFLAGS" 6840 6841 eval supported=\$$cacheid 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6843printf "%s\n" "$supported" >&6; } 6844 if test "$supported" = "yes" ; then 6845 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6846 found="yes" 6847 fi 6848 fi 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864xorg_testset_save_CFLAGS="$CFLAGS" 6865 6866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6870if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6871then : 6872 printf %s "(cached) " >&6 6873else $as_nop 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876int i; 6877_ACEOF 6878if ac_fn_c_try_compile "$LINENO" 6879then : 6880 xorg_cv_cc_flag_unknown_warning_option=yes 6881else $as_nop 6882 xorg_cv_cc_flag_unknown_warning_option=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6885fi 6886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6889 CFLAGS="$xorg_testset_save_CFLAGS" 6890fi 6891 6892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6895 fi 6896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6899if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6900then : 6901 printf %s "(cached) " >&6 6902else $as_nop 6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6904/* end confdefs.h. */ 6905int i; 6906_ACEOF 6907if ac_fn_c_try_compile "$LINENO" 6908then : 6909 xorg_cv_cc_flag_unused_command_line_argument=yes 6910else $as_nop 6911 xorg_cv_cc_flag_unused_command_line_argument=no 6912fi 6913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6914fi 6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6918 CFLAGS="$xorg_testset_save_CFLAGS" 6919fi 6920 6921found="no" 6922 6923 if test $found = "no" ; then 6924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926 fi 6927 6928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6930 fi 6931 6932 CFLAGS="$CFLAGS -Wredundant-decls" 6933 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6935printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6936 cacheid=xorg_cv_cc_flag__Wredundant_decls 6937 if eval test \${$cacheid+y} 6938then : 6939 printf %s "(cached) " >&6 6940else $as_nop 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942/* end confdefs.h. */ 6943int i; 6944int 6945main (void) 6946{ 6947 6948 ; 6949 return 0; 6950} 6951_ACEOF 6952if ac_fn_c_try_link "$LINENO" 6953then : 6954 eval $cacheid=yes 6955else $as_nop 6956 eval $cacheid=no 6957fi 6958rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6959 conftest$ac_exeext conftest.$ac_ext 6960fi 6961 6962 6963 CFLAGS="$xorg_testset_save_CFLAGS" 6964 6965 eval supported=\$$cacheid 6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6967printf "%s\n" "$supported" >&6; } 6968 if test "$supported" = "yes" ; then 6969 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6970 found="yes" 6971 fi 6972 fi 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988xorg_testset_save_CFLAGS="$CFLAGS" 6989 6990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6994if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6995then : 6996 printf %s "(cached) " >&6 6997else $as_nop 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000int i; 7001_ACEOF 7002if ac_fn_c_try_compile "$LINENO" 7003then : 7004 xorg_cv_cc_flag_unknown_warning_option=yes 7005else $as_nop 7006 xorg_cv_cc_flag_unknown_warning_option=no 7007fi 7008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7009fi 7010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7013 CFLAGS="$xorg_testset_save_CFLAGS" 7014fi 7015 7016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7019 fi 7020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7023if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7024then : 7025 printf %s "(cached) " >&6 7026else $as_nop 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028/* end confdefs.h. */ 7029int i; 7030_ACEOF 7031if ac_fn_c_try_compile "$LINENO" 7032then : 7033 xorg_cv_cc_flag_unused_command_line_argument=yes 7034else $as_nop 7035 xorg_cv_cc_flag_unused_command_line_argument=no 7036fi 7037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7038fi 7039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7042 CFLAGS="$xorg_testset_save_CFLAGS" 7043fi 7044 7045found="no" 7046 7047 if test $found = "no" ; then 7048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7050 fi 7051 7052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7054 fi 7055 7056 CFLAGS="$CFLAGS -Wlogical-op" 7057 7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7059printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7060 cacheid=xorg_cv_cc_flag__Wlogical_op 7061 if eval test \${$cacheid+y} 7062then : 7063 printf %s "(cached) " >&6 7064else $as_nop 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067int i; 7068int 7069main (void) 7070{ 7071 7072 ; 7073 return 0; 7074} 7075_ACEOF 7076if ac_fn_c_try_link "$LINENO" 7077then : 7078 eval $cacheid=yes 7079else $as_nop 7080 eval $cacheid=no 7081fi 7082rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7083 conftest$ac_exeext conftest.$ac_ext 7084fi 7085 7086 7087 CFLAGS="$xorg_testset_save_CFLAGS" 7088 7089 eval supported=\$$cacheid 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7091printf "%s\n" "$supported" >&6; } 7092 if test "$supported" = "yes" ; then 7093 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7094 found="yes" 7095 fi 7096 fi 7097 7098 7099 7100# These are currently disabled because they are noisy. They will be enabled 7101# in the future once the codebase is sufficiently modernized to silence 7102# them. For now, I don't want them to drown out the other warnings. 7103# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7104# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7105# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7106 7107# Turn some warnings into errors, so we don't accidently get successful builds 7108# when there are problems that should be fixed. 7109 7110if test "x$SELECTIVE_WERROR" = "xyes" ; then 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124xorg_testset_save_CFLAGS="$CFLAGS" 7125 7126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7130if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7131then : 7132 printf %s "(cached) " >&6 7133else $as_nop 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136int i; 7137_ACEOF 7138if ac_fn_c_try_compile "$LINENO" 7139then : 7140 xorg_cv_cc_flag_unknown_warning_option=yes 7141else $as_nop 7142 xorg_cv_cc_flag_unknown_warning_option=no 7143fi 7144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7145fi 7146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7149 CFLAGS="$xorg_testset_save_CFLAGS" 7150fi 7151 7152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7155 fi 7156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7159if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7160then : 7161 printf %s "(cached) " >&6 7162else $as_nop 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7164/* end confdefs.h. */ 7165int i; 7166_ACEOF 7167if ac_fn_c_try_compile "$LINENO" 7168then : 7169 xorg_cv_cc_flag_unused_command_line_argument=yes 7170else $as_nop 7171 xorg_cv_cc_flag_unused_command_line_argument=no 7172fi 7173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7174fi 7175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7178 CFLAGS="$xorg_testset_save_CFLAGS" 7179fi 7180 7181found="no" 7182 7183 if test $found = "no" ; then 7184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7186 fi 7187 7188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7190 fi 7191 7192 CFLAGS="$CFLAGS -Werror=implicit" 7193 7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7195printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7196 cacheid=xorg_cv_cc_flag__Werror_implicit 7197 if eval test \${$cacheid+y} 7198then : 7199 printf %s "(cached) " >&6 7200else $as_nop 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203int i; 7204int 7205main (void) 7206{ 7207 7208 ; 7209 return 0; 7210} 7211_ACEOF 7212if ac_fn_c_try_link "$LINENO" 7213then : 7214 eval $cacheid=yes 7215else $as_nop 7216 eval $cacheid=no 7217fi 7218rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7219 conftest$ac_exeext conftest.$ac_ext 7220fi 7221 7222 7223 CFLAGS="$xorg_testset_save_CFLAGS" 7224 7225 eval supported=\$$cacheid 7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7227printf "%s\n" "$supported" >&6; } 7228 if test "$supported" = "yes" ; then 7229 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7230 found="yes" 7231 fi 7232 fi 7233 7234 if test $found = "no" ; then 7235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7237 fi 7238 7239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7241 fi 7242 7243 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7244 7245 { 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 7246printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7247 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7248 if eval test \${$cacheid+y} 7249then : 7250 printf %s "(cached) " >&6 7251else $as_nop 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254int i; 7255int 7256main (void) 7257{ 7258 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263if ac_fn_c_try_link "$LINENO" 7264then : 7265 eval $cacheid=yes 7266else $as_nop 7267 eval $cacheid=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7270 conftest$ac_exeext conftest.$ac_ext 7271fi 7272 7273 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275 7276 eval supported=\$$cacheid 7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7278printf "%s\n" "$supported" >&6; } 7279 if test "$supported" = "yes" ; then 7280 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7281 found="yes" 7282 fi 7283 fi 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299xorg_testset_save_CFLAGS="$CFLAGS" 7300 7301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7305if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7306then : 7307 printf %s "(cached) " >&6 7308else $as_nop 7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310/* end confdefs.h. */ 7311int i; 7312_ACEOF 7313if ac_fn_c_try_compile "$LINENO" 7314then : 7315 xorg_cv_cc_flag_unknown_warning_option=yes 7316else $as_nop 7317 xorg_cv_cc_flag_unknown_warning_option=no 7318fi 7319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7320fi 7321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7324 CFLAGS="$xorg_testset_save_CFLAGS" 7325fi 7326 7327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7330 fi 7331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7334if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7335then : 7336 printf %s "(cached) " >&6 7337else $as_nop 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340int i; 7341_ACEOF 7342if ac_fn_c_try_compile "$LINENO" 7343then : 7344 xorg_cv_cc_flag_unused_command_line_argument=yes 7345else $as_nop 7346 xorg_cv_cc_flag_unused_command_line_argument=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7349fi 7350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354fi 7355 7356found="no" 7357 7358 if test $found = "no" ; then 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 fi 7362 7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7365 fi 7366 7367 CFLAGS="$CFLAGS -Werror=nonnull" 7368 7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7370printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7371 cacheid=xorg_cv_cc_flag__Werror_nonnull 7372 if eval test \${$cacheid+y} 7373then : 7374 printf %s "(cached) " >&6 7375else $as_nop 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378int i; 7379int 7380main (void) 7381{ 7382 7383 ; 7384 return 0; 7385} 7386_ACEOF 7387if ac_fn_c_try_link "$LINENO" 7388then : 7389 eval $cacheid=yes 7390else $as_nop 7391 eval $cacheid=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7394 conftest$ac_exeext conftest.$ac_ext 7395fi 7396 7397 7398 CFLAGS="$xorg_testset_save_CFLAGS" 7399 7400 eval supported=\$$cacheid 7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7402printf "%s\n" "$supported" >&6; } 7403 if test "$supported" = "yes" ; then 7404 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7405 found="yes" 7406 fi 7407 fi 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423xorg_testset_save_CFLAGS="$CFLAGS" 7424 7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7429if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7430then : 7431 printf %s "(cached) " >&6 7432else $as_nop 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435int i; 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO" 7438then : 7439 xorg_cv_cc_flag_unknown_warning_option=yes 7440else $as_nop 7441 xorg_cv_cc_flag_unknown_warning_option=no 7442fi 7443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7444fi 7445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7448 CFLAGS="$xorg_testset_save_CFLAGS" 7449fi 7450 7451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7454 fi 7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7458if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7459then : 7460 printf %s "(cached) " >&6 7461else $as_nop 7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7463/* end confdefs.h. */ 7464int i; 7465_ACEOF 7466if ac_fn_c_try_compile "$LINENO" 7467then : 7468 xorg_cv_cc_flag_unused_command_line_argument=yes 7469else $as_nop 7470 xorg_cv_cc_flag_unused_command_line_argument=no 7471fi 7472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7473fi 7474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7477 CFLAGS="$xorg_testset_save_CFLAGS" 7478fi 7479 7480found="no" 7481 7482 if test $found = "no" ; then 7483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7485 fi 7486 7487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7489 fi 7490 7491 CFLAGS="$CFLAGS -Werror=init-self" 7492 7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7494printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7495 cacheid=xorg_cv_cc_flag__Werror_init_self 7496 if eval test \${$cacheid+y} 7497then : 7498 printf %s "(cached) " >&6 7499else $as_nop 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502int i; 7503int 7504main (void) 7505{ 7506 7507 ; 7508 return 0; 7509} 7510_ACEOF 7511if ac_fn_c_try_link "$LINENO" 7512then : 7513 eval $cacheid=yes 7514else $as_nop 7515 eval $cacheid=no 7516fi 7517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7518 conftest$ac_exeext conftest.$ac_ext 7519fi 7520 7521 7522 CFLAGS="$xorg_testset_save_CFLAGS" 7523 7524 eval supported=\$$cacheid 7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7526printf "%s\n" "$supported" >&6; } 7527 if test "$supported" = "yes" ; then 7528 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7529 found="yes" 7530 fi 7531 fi 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547xorg_testset_save_CFLAGS="$CFLAGS" 7548 7549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7553if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7554then : 7555 printf %s "(cached) " >&6 7556else $as_nop 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559int i; 7560_ACEOF 7561if ac_fn_c_try_compile "$LINENO" 7562then : 7563 xorg_cv_cc_flag_unknown_warning_option=yes 7564else $as_nop 7565 xorg_cv_cc_flag_unknown_warning_option=no 7566fi 7567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7568fi 7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7572 CFLAGS="$xorg_testset_save_CFLAGS" 7573fi 7574 7575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7578 fi 7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7583then : 7584 printf %s "(cached) " >&6 7585else $as_nop 7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7587/* end confdefs.h. */ 7588int i; 7589_ACEOF 7590if ac_fn_c_try_compile "$LINENO" 7591then : 7592 xorg_cv_cc_flag_unused_command_line_argument=yes 7593else $as_nop 7594 xorg_cv_cc_flag_unused_command_line_argument=no 7595fi 7596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7597fi 7598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7601 CFLAGS="$xorg_testset_save_CFLAGS" 7602fi 7603 7604found="no" 7605 7606 if test $found = "no" ; then 7607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7609 fi 7610 7611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7613 fi 7614 7615 CFLAGS="$CFLAGS -Werror=main" 7616 7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7618printf %s "checking if $CC supports -Werror=main... " >&6; } 7619 cacheid=xorg_cv_cc_flag__Werror_main 7620 if eval test \${$cacheid+y} 7621then : 7622 printf %s "(cached) " >&6 7623else $as_nop 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625/* end confdefs.h. */ 7626int i; 7627int 7628main (void) 7629{ 7630 7631 ; 7632 return 0; 7633} 7634_ACEOF 7635if ac_fn_c_try_link "$LINENO" 7636then : 7637 eval $cacheid=yes 7638else $as_nop 7639 eval $cacheid=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7642 conftest$ac_exeext conftest.$ac_ext 7643fi 7644 7645 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647 7648 eval supported=\$$cacheid 7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7650printf "%s\n" "$supported" >&6; } 7651 if test "$supported" = "yes" ; then 7652 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7653 found="yes" 7654 fi 7655 fi 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671xorg_testset_save_CFLAGS="$CFLAGS" 7672 7673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7677if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7678then : 7679 printf %s "(cached) " >&6 7680else $as_nop 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683int i; 7684_ACEOF 7685if ac_fn_c_try_compile "$LINENO" 7686then : 7687 xorg_cv_cc_flag_unknown_warning_option=yes 7688else $as_nop 7689 xorg_cv_cc_flag_unknown_warning_option=no 7690fi 7691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7692fi 7693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697fi 7698 7699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 fi 7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7707then : 7708 printf %s "(cached) " >&6 7709else $as_nop 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712int i; 7713_ACEOF 7714if ac_fn_c_try_compile "$LINENO" 7715then : 7716 xorg_cv_cc_flag_unused_command_line_argument=yes 7717else $as_nop 7718 xorg_cv_cc_flag_unused_command_line_argument=no 7719fi 7720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7721fi 7722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7725 CFLAGS="$xorg_testset_save_CFLAGS" 7726fi 7727 7728found="no" 7729 7730 if test $found = "no" ; then 7731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7733 fi 7734 7735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7737 fi 7738 7739 CFLAGS="$CFLAGS -Werror=missing-braces" 7740 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7742printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7743 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7744 if eval test \${$cacheid+y} 7745then : 7746 printf %s "(cached) " >&6 7747else $as_nop 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750int i; 7751int 7752main (void) 7753{ 7754 7755 ; 7756 return 0; 7757} 7758_ACEOF 7759if ac_fn_c_try_link "$LINENO" 7760then : 7761 eval $cacheid=yes 7762else $as_nop 7763 eval $cacheid=no 7764fi 7765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7766 conftest$ac_exeext conftest.$ac_ext 7767fi 7768 7769 7770 CFLAGS="$xorg_testset_save_CFLAGS" 7771 7772 eval supported=\$$cacheid 7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7774printf "%s\n" "$supported" >&6; } 7775 if test "$supported" = "yes" ; then 7776 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7777 found="yes" 7778 fi 7779 fi 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795xorg_testset_save_CFLAGS="$CFLAGS" 7796 7797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7802then : 7803 printf %s "(cached) " >&6 7804else $as_nop 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806/* end confdefs.h. */ 7807int i; 7808_ACEOF 7809if ac_fn_c_try_compile "$LINENO" 7810then : 7811 xorg_cv_cc_flag_unknown_warning_option=yes 7812else $as_nop 7813 xorg_cv_cc_flag_unknown_warning_option=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7816fi 7817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 fi 7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7831then : 7832 printf %s "(cached) " >&6 7833else $as_nop 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837_ACEOF 7838if ac_fn_c_try_compile "$LINENO" 7839then : 7840 xorg_cv_cc_flag_unused_command_line_argument=yes 7841else $as_nop 7842 xorg_cv_cc_flag_unused_command_line_argument=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7845fi 7846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850fi 7851 7852found="no" 7853 7854 if test $found = "no" ; then 7855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7857 fi 7858 7859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7861 fi 7862 7863 CFLAGS="$CFLAGS -Werror=sequence-point" 7864 7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7866printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7867 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7868 if eval test \${$cacheid+y} 7869then : 7870 printf %s "(cached) " >&6 7871else $as_nop 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874int i; 7875int 7876main (void) 7877{ 7878 7879 ; 7880 return 0; 7881} 7882_ACEOF 7883if ac_fn_c_try_link "$LINENO" 7884then : 7885 eval $cacheid=yes 7886else $as_nop 7887 eval $cacheid=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7890 conftest$ac_exeext conftest.$ac_ext 7891fi 7892 7893 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895 7896 eval supported=\$$cacheid 7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7898printf "%s\n" "$supported" >&6; } 7899 if test "$supported" = "yes" ; then 7900 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7901 found="yes" 7902 fi 7903 fi 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919xorg_testset_save_CFLAGS="$CFLAGS" 7920 7921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7925if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7926then : 7927 printf %s "(cached) " >&6 7928else $as_nop 7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7930/* end confdefs.h. */ 7931int i; 7932_ACEOF 7933if ac_fn_c_try_compile "$LINENO" 7934then : 7935 xorg_cv_cc_flag_unknown_warning_option=yes 7936else $as_nop 7937 xorg_cv_cc_flag_unknown_warning_option=no 7938fi 7939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7940fi 7941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7944 CFLAGS="$xorg_testset_save_CFLAGS" 7945fi 7946 7947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7950 fi 7951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7954if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7955then : 7956 printf %s "(cached) " >&6 7957else $as_nop 7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7959/* end confdefs.h. */ 7960int i; 7961_ACEOF 7962if ac_fn_c_try_compile "$LINENO" 7963then : 7964 xorg_cv_cc_flag_unused_command_line_argument=yes 7965else $as_nop 7966 xorg_cv_cc_flag_unused_command_line_argument=no 7967fi 7968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7969fi 7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7973 CFLAGS="$xorg_testset_save_CFLAGS" 7974fi 7975 7976found="no" 7977 7978 if test $found = "no" ; then 7979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7981 fi 7982 7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7985 fi 7986 7987 CFLAGS="$CFLAGS -Werror=return-type" 7988 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7990printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7991 cacheid=xorg_cv_cc_flag__Werror_return_type 7992 if eval test \${$cacheid+y} 7993then : 7994 printf %s "(cached) " >&6 7995else $as_nop 7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7997/* end confdefs.h. */ 7998int i; 7999int 8000main (void) 8001{ 8002 8003 ; 8004 return 0; 8005} 8006_ACEOF 8007if ac_fn_c_try_link "$LINENO" 8008then : 8009 eval $cacheid=yes 8010else $as_nop 8011 eval $cacheid=no 8012fi 8013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8014 conftest$ac_exeext conftest.$ac_ext 8015fi 8016 8017 8018 CFLAGS="$xorg_testset_save_CFLAGS" 8019 8020 eval supported=\$$cacheid 8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8022printf "%s\n" "$supported" >&6; } 8023 if test "$supported" = "yes" ; then 8024 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8025 found="yes" 8026 fi 8027 fi 8028 8029 if test $found = "no" ; then 8030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 fi 8033 8034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8036 fi 8037 8038 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8039 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8041printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8042 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8043 if eval test \${$cacheid+y} 8044then : 8045 printf %s "(cached) " >&6 8046else $as_nop 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049int i; 8050int 8051main (void) 8052{ 8053 8054 ; 8055 return 0; 8056} 8057_ACEOF 8058if ac_fn_c_try_link "$LINENO" 8059then : 8060 eval $cacheid=yes 8061else $as_nop 8062 eval $cacheid=no 8063fi 8064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8065 conftest$ac_exeext conftest.$ac_ext 8066fi 8067 8068 8069 CFLAGS="$xorg_testset_save_CFLAGS" 8070 8071 eval supported=\$$cacheid 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8073printf "%s\n" "$supported" >&6; } 8074 if test "$supported" = "yes" ; then 8075 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8076 found="yes" 8077 fi 8078 fi 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094xorg_testset_save_CFLAGS="$CFLAGS" 8095 8096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8100if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8101then : 8102 printf %s "(cached) " >&6 8103else $as_nop 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107_ACEOF 8108if ac_fn_c_try_compile "$LINENO" 8109then : 8110 xorg_cv_cc_flag_unknown_warning_option=yes 8111else $as_nop 8112 xorg_cv_cc_flag_unknown_warning_option=no 8113fi 8114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8115fi 8116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8119 CFLAGS="$xorg_testset_save_CFLAGS" 8120fi 8121 8122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8125 fi 8126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8130then : 8131 printf %s "(cached) " >&6 8132else $as_nop 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136_ACEOF 8137if ac_fn_c_try_compile "$LINENO" 8138then : 8139 xorg_cv_cc_flag_unused_command_line_argument=yes 8140else $as_nop 8141 xorg_cv_cc_flag_unused_command_line_argument=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8144fi 8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149fi 8150 8151found="no" 8152 8153 if test $found = "no" ; then 8154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8156 fi 8157 8158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8160 fi 8161 8162 CFLAGS="$CFLAGS -Werror=trigraphs" 8163 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8165printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8166 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8167 if eval test \${$cacheid+y} 8168then : 8169 printf %s "(cached) " >&6 8170else $as_nop 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174int 8175main (void) 8176{ 8177 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182if ac_fn_c_try_link "$LINENO" 8183then : 8184 eval $cacheid=yes 8185else $as_nop 8186 eval $cacheid=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8189 conftest$ac_exeext conftest.$ac_ext 8190fi 8191 8192 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194 8195 eval supported=\$$cacheid 8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8197printf "%s\n" "$supported" >&6; } 8198 if test "$supported" = "yes" ; then 8199 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8200 found="yes" 8201 fi 8202 fi 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218xorg_testset_save_CFLAGS="$CFLAGS" 8219 8220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8225then : 8226 printf %s "(cached) " >&6 8227else $as_nop 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO" 8233then : 8234 xorg_cv_cc_flag_unknown_warning_option=yes 8235else $as_nop 8236 xorg_cv_cc_flag_unknown_warning_option=no 8237fi 8238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8239fi 8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244fi 8245 8246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8249 fi 8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8254then : 8255 printf %s "(cached) " >&6 8256else $as_nop 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259int i; 8260_ACEOF 8261if ac_fn_c_try_compile "$LINENO" 8262then : 8263 xorg_cv_cc_flag_unused_command_line_argument=yes 8264else $as_nop 8265 xorg_cv_cc_flag_unused_command_line_argument=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8268fi 8269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273fi 8274 8275found="no" 8276 8277 if test $found = "no" ; then 8278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8280 fi 8281 8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 fi 8285 8286 CFLAGS="$CFLAGS -Werror=array-bounds" 8287 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8289printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8290 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8291 if eval test \${$cacheid+y} 8292then : 8293 printf %s "(cached) " >&6 8294else $as_nop 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298int 8299main (void) 8300{ 8301 8302 ; 8303 return 0; 8304} 8305_ACEOF 8306if ac_fn_c_try_link "$LINENO" 8307then : 8308 eval $cacheid=yes 8309else $as_nop 8310 eval $cacheid=no 8311fi 8312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8313 conftest$ac_exeext conftest.$ac_ext 8314fi 8315 8316 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318 8319 eval supported=\$$cacheid 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8321printf "%s\n" "$supported" >&6; } 8322 if test "$supported" = "yes" ; then 8323 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8324 found="yes" 8325 fi 8326 fi 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342xorg_testset_save_CFLAGS="$CFLAGS" 8343 8344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8348if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8349then : 8350 printf %s "(cached) " >&6 8351else $as_nop 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353/* end confdefs.h. */ 8354int i; 8355_ACEOF 8356if ac_fn_c_try_compile "$LINENO" 8357then : 8358 xorg_cv_cc_flag_unknown_warning_option=yes 8359else $as_nop 8360 xorg_cv_cc_flag_unknown_warning_option=no 8361fi 8362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8363fi 8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8367 CFLAGS="$xorg_testset_save_CFLAGS" 8368fi 8369 8370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8373 fi 8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8378then : 8379 printf %s "(cached) " >&6 8380else $as_nop 8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382/* end confdefs.h. */ 8383int i; 8384_ACEOF 8385if ac_fn_c_try_compile "$LINENO" 8386then : 8387 xorg_cv_cc_flag_unused_command_line_argument=yes 8388else $as_nop 8389 xorg_cv_cc_flag_unused_command_line_argument=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8392fi 8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397fi 8398 8399found="no" 8400 8401 if test $found = "no" ; then 8402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 fi 8405 8406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 fi 8409 8410 CFLAGS="$CFLAGS -Werror=write-strings" 8411 8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8413printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8414 cacheid=xorg_cv_cc_flag__Werror_write_strings 8415 if eval test \${$cacheid+y} 8416then : 8417 printf %s "(cached) " >&6 8418else $as_nop 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422int 8423main (void) 8424{ 8425 8426 ; 8427 return 0; 8428} 8429_ACEOF 8430if ac_fn_c_try_link "$LINENO" 8431then : 8432 eval $cacheid=yes 8433else $as_nop 8434 eval $cacheid=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8437 conftest$ac_exeext conftest.$ac_ext 8438fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=\$$cacheid 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445printf "%s\n" "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8448 found="yes" 8449 fi 8450 fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466xorg_testset_save_CFLAGS="$CFLAGS" 8467 8468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8473then : 8474 printf %s "(cached) " >&6 8475else $as_nop 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479_ACEOF 8480if ac_fn_c_try_compile "$LINENO" 8481then : 8482 xorg_cv_cc_flag_unknown_warning_option=yes 8483else $as_nop 8484 xorg_cv_cc_flag_unknown_warning_option=no 8485fi 8486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8487fi 8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8491 CFLAGS="$xorg_testset_save_CFLAGS" 8492fi 8493 8494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8497 fi 8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8502then : 8503 printf %s "(cached) " >&6 8504else $as_nop 8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8506/* end confdefs.h. */ 8507int i; 8508_ACEOF 8509if ac_fn_c_try_compile "$LINENO" 8510then : 8511 xorg_cv_cc_flag_unused_command_line_argument=yes 8512else $as_nop 8513 xorg_cv_cc_flag_unused_command_line_argument=no 8514fi 8515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8516fi 8517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8520 CFLAGS="$xorg_testset_save_CFLAGS" 8521fi 8522 8523found="no" 8524 8525 if test $found = "no" ; then 8526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8528 fi 8529 8530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8532 fi 8533 8534 CFLAGS="$CFLAGS -Werror=address" 8535 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8537printf %s "checking if $CC supports -Werror=address... " >&6; } 8538 cacheid=xorg_cv_cc_flag__Werror_address 8539 if eval test \${$cacheid+y} 8540then : 8541 printf %s "(cached) " >&6 8542else $as_nop 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546int 8547main (void) 8548{ 8549 8550 ; 8551 return 0; 8552} 8553_ACEOF 8554if ac_fn_c_try_link "$LINENO" 8555then : 8556 eval $cacheid=yes 8557else $as_nop 8558 eval $cacheid=no 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8561 conftest$ac_exeext conftest.$ac_ext 8562fi 8563 8564 8565 CFLAGS="$xorg_testset_save_CFLAGS" 8566 8567 eval supported=\$$cacheid 8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8569printf "%s\n" "$supported" >&6; } 8570 if test "$supported" = "yes" ; then 8571 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8572 found="yes" 8573 fi 8574 fi 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590xorg_testset_save_CFLAGS="$CFLAGS" 8591 8592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8596if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8597then : 8598 printf %s "(cached) " >&6 8599else $as_nop 8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8601/* end confdefs.h. */ 8602int i; 8603_ACEOF 8604if ac_fn_c_try_compile "$LINENO" 8605then : 8606 xorg_cv_cc_flag_unknown_warning_option=yes 8607else $as_nop 8608 xorg_cv_cc_flag_unknown_warning_option=no 8609fi 8610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8611fi 8612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8615 CFLAGS="$xorg_testset_save_CFLAGS" 8616fi 8617 8618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8621 fi 8622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8626then : 8627 printf %s "(cached) " >&6 8628else $as_nop 8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8630/* end confdefs.h. */ 8631int i; 8632_ACEOF 8633if ac_fn_c_try_compile "$LINENO" 8634then : 8635 xorg_cv_cc_flag_unused_command_line_argument=yes 8636else $as_nop 8637 xorg_cv_cc_flag_unused_command_line_argument=no 8638fi 8639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8640fi 8641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645fi 8646 8647found="no" 8648 8649 if test $found = "no" ; then 8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 fi 8653 8654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8656 fi 8657 8658 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8659 8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8661printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8662 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8663 if eval test \${$cacheid+y} 8664then : 8665 printf %s "(cached) " >&6 8666else $as_nop 8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668/* end confdefs.h. */ 8669int i; 8670int 8671main (void) 8672{ 8673 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678if ac_fn_c_try_link "$LINENO" 8679then : 8680 eval $cacheid=yes 8681else $as_nop 8682 eval $cacheid=no 8683fi 8684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8685 conftest$ac_exeext conftest.$ac_ext 8686fi 8687 8688 8689 CFLAGS="$xorg_testset_save_CFLAGS" 8690 8691 eval supported=\$$cacheid 8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8693printf "%s\n" "$supported" >&6; } 8694 if test "$supported" = "yes" ; then 8695 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8696 found="yes" 8697 fi 8698 fi 8699 8700 if test $found = "no" ; then 8701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8703 fi 8704 8705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8707 fi 8708 8709 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8710 8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8712printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8713 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8714 if eval test \${$cacheid+y} 8715then : 8716 printf %s "(cached) " >&6 8717else $as_nop 8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8719/* end confdefs.h. */ 8720int i; 8721int 8722main (void) 8723{ 8724 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729if ac_fn_c_try_link "$LINENO" 8730then : 8731 eval $cacheid=yes 8732else $as_nop 8733 eval $cacheid=no 8734fi 8735rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8736 conftest$ac_exeext conftest.$ac_ext 8737fi 8738 8739 8740 CFLAGS="$xorg_testset_save_CFLAGS" 8741 8742 eval supported=\$$cacheid 8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8744printf "%s\n" "$supported" >&6; } 8745 if test "$supported" = "yes" ; then 8746 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8747 found="yes" 8748 fi 8749 fi 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765xorg_testset_save_CFLAGS="$CFLAGS" 8766 8767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8771if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8772then : 8773 printf %s "(cached) " >&6 8774else $as_nop 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778_ACEOF 8779if ac_fn_c_try_compile "$LINENO" 8780then : 8781 xorg_cv_cc_flag_unknown_warning_option=yes 8782else $as_nop 8783 xorg_cv_cc_flag_unknown_warning_option=no 8784fi 8785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8786fi 8787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8788printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8790 CFLAGS="$xorg_testset_save_CFLAGS" 8791fi 8792 8793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8796 fi 8797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8799printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8800if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8801then : 8802 printf %s "(cached) " >&6 8803else $as_nop 8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8805/* end confdefs.h. */ 8806int i; 8807_ACEOF 8808if ac_fn_c_try_compile "$LINENO" 8809then : 8810 xorg_cv_cc_flag_unused_command_line_argument=yes 8811else $as_nop 8812 xorg_cv_cc_flag_unused_command_line_argument=no 8813fi 8814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8815fi 8816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8817printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8819 CFLAGS="$xorg_testset_save_CFLAGS" 8820fi 8821 8822found="no" 8823 8824 if test $found = "no" ; then 8825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8827 fi 8828 8829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8831 fi 8832 8833 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8834 8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8836printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8837 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8838 if eval test \${$cacheid+y} 8839then : 8840 printf %s "(cached) " >&6 8841else $as_nop 8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8843/* end confdefs.h. */ 8844int i; 8845int 8846main (void) 8847{ 8848 8849 ; 8850 return 0; 8851} 8852_ACEOF 8853if ac_fn_c_try_link "$LINENO" 8854then : 8855 eval $cacheid=yes 8856else $as_nop 8857 eval $cacheid=no 8858fi 8859rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8860 conftest$ac_exeext conftest.$ac_ext 8861fi 8862 8863 8864 CFLAGS="$xorg_testset_save_CFLAGS" 8865 8866 eval supported=\$$cacheid 8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8868printf "%s\n" "$supported" >&6; } 8869 if test "$supported" = "yes" ; then 8870 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8871 found="yes" 8872 fi 8873 fi 8874 8875 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8876else 8877{ 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 8878printf "%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;} 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892xorg_testset_save_CFLAGS="$CFLAGS" 8893 8894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8898if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8899then : 8900 printf %s "(cached) " >&6 8901else $as_nop 8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903/* end confdefs.h. */ 8904int i; 8905_ACEOF 8906if ac_fn_c_try_compile "$LINENO" 8907then : 8908 xorg_cv_cc_flag_unknown_warning_option=yes 8909else $as_nop 8910 xorg_cv_cc_flag_unknown_warning_option=no 8911fi 8912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8913fi 8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918fi 8919 8920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8923 fi 8924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8927if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8928then : 8929 printf %s "(cached) " >&6 8930else $as_nop 8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8932/* end confdefs.h. */ 8933int i; 8934_ACEOF 8935if ac_fn_c_try_compile "$LINENO" 8936then : 8937 xorg_cv_cc_flag_unused_command_line_argument=yes 8938else $as_nop 8939 xorg_cv_cc_flag_unused_command_line_argument=no 8940fi 8941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8942fi 8943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8946 CFLAGS="$xorg_testset_save_CFLAGS" 8947fi 8948 8949found="no" 8950 8951 if test $found = "no" ; then 8952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8954 fi 8955 8956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8958 fi 8959 8960 CFLAGS="$CFLAGS -Wimplicit" 8961 8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8963printf %s "checking if $CC supports -Wimplicit... " >&6; } 8964 cacheid=xorg_cv_cc_flag__Wimplicit 8965 if eval test \${$cacheid+y} 8966then : 8967 printf %s "(cached) " >&6 8968else $as_nop 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971int i; 8972int 8973main (void) 8974{ 8975 8976 ; 8977 return 0; 8978} 8979_ACEOF 8980if ac_fn_c_try_link "$LINENO" 8981then : 8982 eval $cacheid=yes 8983else $as_nop 8984 eval $cacheid=no 8985fi 8986rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8987 conftest$ac_exeext conftest.$ac_ext 8988fi 8989 8990 8991 CFLAGS="$xorg_testset_save_CFLAGS" 8992 8993 eval supported=\$$cacheid 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8995printf "%s\n" "$supported" >&6; } 8996 if test "$supported" = "yes" ; then 8997 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8998 found="yes" 8999 fi 9000 fi 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016xorg_testset_save_CFLAGS="$CFLAGS" 9017 9018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9022if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9023then : 9024 printf %s "(cached) " >&6 9025else $as_nop 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028int i; 9029_ACEOF 9030if ac_fn_c_try_compile "$LINENO" 9031then : 9032 xorg_cv_cc_flag_unknown_warning_option=yes 9033else $as_nop 9034 xorg_cv_cc_flag_unknown_warning_option=no 9035fi 9036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9037fi 9038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9041 CFLAGS="$xorg_testset_save_CFLAGS" 9042fi 9043 9044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9047 fi 9048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9051if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9052then : 9053 printf %s "(cached) " >&6 9054else $as_nop 9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9056/* end confdefs.h. */ 9057int i; 9058_ACEOF 9059if ac_fn_c_try_compile "$LINENO" 9060then : 9061 xorg_cv_cc_flag_unused_command_line_argument=yes 9062else $as_nop 9063 xorg_cv_cc_flag_unused_command_line_argument=no 9064fi 9065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9066fi 9067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9070 CFLAGS="$xorg_testset_save_CFLAGS" 9071fi 9072 9073found="no" 9074 9075 if test $found = "no" ; then 9076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9078 fi 9079 9080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082 fi 9083 9084 CFLAGS="$CFLAGS -Wnonnull" 9085 9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9087printf %s "checking if $CC supports -Wnonnull... " >&6; } 9088 cacheid=xorg_cv_cc_flag__Wnonnull 9089 if eval test \${$cacheid+y} 9090then : 9091 printf %s "(cached) " >&6 9092else $as_nop 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095int i; 9096int 9097main (void) 9098{ 9099 9100 ; 9101 return 0; 9102} 9103_ACEOF 9104if ac_fn_c_try_link "$LINENO" 9105then : 9106 eval $cacheid=yes 9107else $as_nop 9108 eval $cacheid=no 9109fi 9110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9111 conftest$ac_exeext conftest.$ac_ext 9112fi 9113 9114 9115 CFLAGS="$xorg_testset_save_CFLAGS" 9116 9117 eval supported=\$$cacheid 9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9119printf "%s\n" "$supported" >&6; } 9120 if test "$supported" = "yes" ; then 9121 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9122 found="yes" 9123 fi 9124 fi 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140xorg_testset_save_CFLAGS="$CFLAGS" 9141 9142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9146if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151/* end confdefs.h. */ 9152int i; 9153_ACEOF 9154if ac_fn_c_try_compile "$LINENO" 9155then : 9156 xorg_cv_cc_flag_unknown_warning_option=yes 9157else $as_nop 9158 xorg_cv_cc_flag_unknown_warning_option=no 9159fi 9160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9161fi 9162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9165 CFLAGS="$xorg_testset_save_CFLAGS" 9166fi 9167 9168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 fi 9172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9175if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9176then : 9177 printf %s "(cached) " >&6 9178else $as_nop 9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180/* end confdefs.h. */ 9181int i; 9182_ACEOF 9183if ac_fn_c_try_compile "$LINENO" 9184then : 9185 xorg_cv_cc_flag_unused_command_line_argument=yes 9186else $as_nop 9187 xorg_cv_cc_flag_unused_command_line_argument=no 9188fi 9189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9190fi 9191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9194 CFLAGS="$xorg_testset_save_CFLAGS" 9195fi 9196 9197found="no" 9198 9199 if test $found = "no" ; then 9200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9202 fi 9203 9204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9206 fi 9207 9208 CFLAGS="$CFLAGS -Winit-self" 9209 9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9211printf %s "checking if $CC supports -Winit-self... " >&6; } 9212 cacheid=xorg_cv_cc_flag__Winit_self 9213 if eval test \${$cacheid+y} 9214then : 9215 printf %s "(cached) " >&6 9216else $as_nop 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220int 9221main (void) 9222{ 9223 9224 ; 9225 return 0; 9226} 9227_ACEOF 9228if ac_fn_c_try_link "$LINENO" 9229then : 9230 eval $cacheid=yes 9231else $as_nop 9232 eval $cacheid=no 9233fi 9234rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9235 conftest$ac_exeext conftest.$ac_ext 9236fi 9237 9238 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240 9241 eval supported=\$$cacheid 9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9243printf "%s\n" "$supported" >&6; } 9244 if test "$supported" = "yes" ; then 9245 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9246 found="yes" 9247 fi 9248 fi 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264xorg_testset_save_CFLAGS="$CFLAGS" 9265 9266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9270if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9271then : 9272 printf %s "(cached) " >&6 9273else $as_nop 9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9275/* end confdefs.h. */ 9276int i; 9277_ACEOF 9278if ac_fn_c_try_compile "$LINENO" 9279then : 9280 xorg_cv_cc_flag_unknown_warning_option=yes 9281else $as_nop 9282 xorg_cv_cc_flag_unknown_warning_option=no 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9285fi 9286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290fi 9291 9292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9295 fi 9296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9300then : 9301 printf %s "(cached) " >&6 9302else $as_nop 9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9304/* end confdefs.h. */ 9305int i; 9306_ACEOF 9307if ac_fn_c_try_compile "$LINENO" 9308then : 9309 xorg_cv_cc_flag_unused_command_line_argument=yes 9310else $as_nop 9311 xorg_cv_cc_flag_unused_command_line_argument=no 9312fi 9313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9314fi 9315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9318 CFLAGS="$xorg_testset_save_CFLAGS" 9319fi 9320 9321found="no" 9322 9323 if test $found = "no" ; then 9324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9326 fi 9327 9328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9330 fi 9331 9332 CFLAGS="$CFLAGS -Wmain" 9333 9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9335printf %s "checking if $CC supports -Wmain... " >&6; } 9336 cacheid=xorg_cv_cc_flag__Wmain 9337 if eval test \${$cacheid+y} 9338then : 9339 printf %s "(cached) " >&6 9340else $as_nop 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343int i; 9344int 9345main (void) 9346{ 9347 9348 ; 9349 return 0; 9350} 9351_ACEOF 9352if ac_fn_c_try_link "$LINENO" 9353then : 9354 eval $cacheid=yes 9355else $as_nop 9356 eval $cacheid=no 9357fi 9358rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9359 conftest$ac_exeext conftest.$ac_ext 9360fi 9361 9362 9363 CFLAGS="$xorg_testset_save_CFLAGS" 9364 9365 eval supported=\$$cacheid 9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9367printf "%s\n" "$supported" >&6; } 9368 if test "$supported" = "yes" ; then 9369 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9370 found="yes" 9371 fi 9372 fi 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388xorg_testset_save_CFLAGS="$CFLAGS" 9389 9390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9394if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9395then : 9396 printf %s "(cached) " >&6 9397else $as_nop 9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9399/* end confdefs.h. */ 9400int i; 9401_ACEOF 9402if ac_fn_c_try_compile "$LINENO" 9403then : 9404 xorg_cv_cc_flag_unknown_warning_option=yes 9405else $as_nop 9406 xorg_cv_cc_flag_unknown_warning_option=no 9407fi 9408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9409fi 9410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9413 CFLAGS="$xorg_testset_save_CFLAGS" 9414fi 9415 9416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9419 fi 9420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9423if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9424then : 9425 printf %s "(cached) " >&6 9426else $as_nop 9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428/* end confdefs.h. */ 9429int i; 9430_ACEOF 9431if ac_fn_c_try_compile "$LINENO" 9432then : 9433 xorg_cv_cc_flag_unused_command_line_argument=yes 9434else $as_nop 9435 xorg_cv_cc_flag_unused_command_line_argument=no 9436fi 9437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9438fi 9439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9442 CFLAGS="$xorg_testset_save_CFLAGS" 9443fi 9444 9445found="no" 9446 9447 if test $found = "no" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454 fi 9455 9456 CFLAGS="$CFLAGS -Wmissing-braces" 9457 9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9459printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9460 cacheid=xorg_cv_cc_flag__Wmissing_braces 9461 if eval test \${$cacheid+y} 9462then : 9463 printf %s "(cached) " >&6 9464else $as_nop 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467int i; 9468int 9469main (void) 9470{ 9471 9472 ; 9473 return 0; 9474} 9475_ACEOF 9476if ac_fn_c_try_link "$LINENO" 9477then : 9478 eval $cacheid=yes 9479else $as_nop 9480 eval $cacheid=no 9481fi 9482rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9483 conftest$ac_exeext conftest.$ac_ext 9484fi 9485 9486 9487 CFLAGS="$xorg_testset_save_CFLAGS" 9488 9489 eval supported=\$$cacheid 9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9491printf "%s\n" "$supported" >&6; } 9492 if test "$supported" = "yes" ; then 9493 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9494 found="yes" 9495 fi 9496 fi 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512xorg_testset_save_CFLAGS="$CFLAGS" 9513 9514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9518if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9519then : 9520 printf %s "(cached) " >&6 9521else $as_nop 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524int i; 9525_ACEOF 9526if ac_fn_c_try_compile "$LINENO" 9527then : 9528 xorg_cv_cc_flag_unknown_warning_option=yes 9529else $as_nop 9530 xorg_cv_cc_flag_unknown_warning_option=no 9531fi 9532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9533fi 9534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9537 CFLAGS="$xorg_testset_save_CFLAGS" 9538fi 9539 9540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 fi 9544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9547if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9548then : 9549 printf %s "(cached) " >&6 9550else $as_nop 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553int i; 9554_ACEOF 9555if ac_fn_c_try_compile "$LINENO" 9556then : 9557 xorg_cv_cc_flag_unused_command_line_argument=yes 9558else $as_nop 9559 xorg_cv_cc_flag_unused_command_line_argument=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9562fi 9563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9566 CFLAGS="$xorg_testset_save_CFLAGS" 9567fi 9568 9569found="no" 9570 9571 if test $found = "no" ; then 9572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9574 fi 9575 9576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9578 fi 9579 9580 CFLAGS="$CFLAGS -Wsequence-point" 9581 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9583printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9584 cacheid=xorg_cv_cc_flag__Wsequence_point 9585 if eval test \${$cacheid+y} 9586then : 9587 printf %s "(cached) " >&6 9588else $as_nop 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592int 9593main (void) 9594{ 9595 9596 ; 9597 return 0; 9598} 9599_ACEOF 9600if ac_fn_c_try_link "$LINENO" 9601then : 9602 eval $cacheid=yes 9603else $as_nop 9604 eval $cacheid=no 9605fi 9606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9607 conftest$ac_exeext conftest.$ac_ext 9608fi 9609 9610 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612 9613 eval supported=\$$cacheid 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9615printf "%s\n" "$supported" >&6; } 9616 if test "$supported" = "yes" ; then 9617 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9618 found="yes" 9619 fi 9620 fi 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636xorg_testset_save_CFLAGS="$CFLAGS" 9637 9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9642if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9643then : 9644 printf %s "(cached) " >&6 9645else $as_nop 9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9647/* end confdefs.h. */ 9648int i; 9649_ACEOF 9650if ac_fn_c_try_compile "$LINENO" 9651then : 9652 xorg_cv_cc_flag_unknown_warning_option=yes 9653else $as_nop 9654 xorg_cv_cc_flag_unknown_warning_option=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9657fi 9658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662fi 9663 9664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9667 fi 9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9671if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9672then : 9673 printf %s "(cached) " >&6 9674else $as_nop 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9676/* end confdefs.h. */ 9677int i; 9678_ACEOF 9679if ac_fn_c_try_compile "$LINENO" 9680then : 9681 xorg_cv_cc_flag_unused_command_line_argument=yes 9682else $as_nop 9683 xorg_cv_cc_flag_unused_command_line_argument=no 9684fi 9685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9686fi 9687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9690 CFLAGS="$xorg_testset_save_CFLAGS" 9691fi 9692 9693found="no" 9694 9695 if test $found = "no" ; then 9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9698 fi 9699 9700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9702 fi 9703 9704 CFLAGS="$CFLAGS -Wreturn-type" 9705 9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9707printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9708 cacheid=xorg_cv_cc_flag__Wreturn_type 9709 if eval test \${$cacheid+y} 9710then : 9711 printf %s "(cached) " >&6 9712else $as_nop 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715int i; 9716int 9717main (void) 9718{ 9719 9720 ; 9721 return 0; 9722} 9723_ACEOF 9724if ac_fn_c_try_link "$LINENO" 9725then : 9726 eval $cacheid=yes 9727else $as_nop 9728 eval $cacheid=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9731 conftest$ac_exeext conftest.$ac_ext 9732fi 9733 9734 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736 9737 eval supported=\$$cacheid 9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9739printf "%s\n" "$supported" >&6; } 9740 if test "$supported" = "yes" ; then 9741 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9742 found="yes" 9743 fi 9744 fi 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760xorg_testset_save_CFLAGS="$CFLAGS" 9761 9762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9766if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9767then : 9768 printf %s "(cached) " >&6 9769else $as_nop 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772int i; 9773_ACEOF 9774if ac_fn_c_try_compile "$LINENO" 9775then : 9776 xorg_cv_cc_flag_unknown_warning_option=yes 9777else $as_nop 9778 xorg_cv_cc_flag_unknown_warning_option=no 9779fi 9780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9781fi 9782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9785 CFLAGS="$xorg_testset_save_CFLAGS" 9786fi 9787 9788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 fi 9792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9795if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9796then : 9797 printf %s "(cached) " >&6 9798else $as_nop 9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9800/* end confdefs.h. */ 9801int i; 9802_ACEOF 9803if ac_fn_c_try_compile "$LINENO" 9804then : 9805 xorg_cv_cc_flag_unused_command_line_argument=yes 9806else $as_nop 9807 xorg_cv_cc_flag_unused_command_line_argument=no 9808fi 9809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9810fi 9811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815fi 9816 9817found="no" 9818 9819 if test $found = "no" ; then 9820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9822 fi 9823 9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826 fi 9827 9828 CFLAGS="$CFLAGS -Wtrigraphs" 9829 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9831printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9832 cacheid=xorg_cv_cc_flag__Wtrigraphs 9833 if eval test \${$cacheid+y} 9834then : 9835 printf %s "(cached) " >&6 9836else $as_nop 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840int 9841main (void) 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848if ac_fn_c_try_link "$LINENO" 9849then : 9850 eval $cacheid=yes 9851else $as_nop 9852 eval $cacheid=no 9853fi 9854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9855 conftest$ac_exeext conftest.$ac_ext 9856fi 9857 9858 9859 CFLAGS="$xorg_testset_save_CFLAGS" 9860 9861 eval supported=\$$cacheid 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9863printf "%s\n" "$supported" >&6; } 9864 if test "$supported" = "yes" ; then 9865 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9866 found="yes" 9867 fi 9868 fi 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884xorg_testset_save_CFLAGS="$CFLAGS" 9885 9886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9890if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9891then : 9892 printf %s "(cached) " >&6 9893else $as_nop 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895/* end confdefs.h. */ 9896int i; 9897_ACEOF 9898if ac_fn_c_try_compile "$LINENO" 9899then : 9900 xorg_cv_cc_flag_unknown_warning_option=yes 9901else $as_nop 9902 xorg_cv_cc_flag_unknown_warning_option=no 9903fi 9904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9905fi 9906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910fi 9911 9912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9915 fi 9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9919if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9920then : 9921 printf %s "(cached) " >&6 9922else $as_nop 9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9924/* end confdefs.h. */ 9925int i; 9926_ACEOF 9927if ac_fn_c_try_compile "$LINENO" 9928then : 9929 xorg_cv_cc_flag_unused_command_line_argument=yes 9930else $as_nop 9931 xorg_cv_cc_flag_unused_command_line_argument=no 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9934fi 9935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9938 CFLAGS="$xorg_testset_save_CFLAGS" 9939fi 9940 9941found="no" 9942 9943 if test $found = "no" ; then 9944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 fi 9947 9948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9950 fi 9951 9952 CFLAGS="$CFLAGS -Warray-bounds" 9953 9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9955printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9956 cacheid=xorg_cv_cc_flag__Warray_bounds 9957 if eval test \${$cacheid+y} 9958then : 9959 printf %s "(cached) " >&6 9960else $as_nop 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int i; 9964int 9965main (void) 9966{ 9967 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_link "$LINENO" 9973then : 9974 eval $cacheid=yes 9975else $as_nop 9976 eval $cacheid=no 9977fi 9978rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9979 conftest$ac_exeext conftest.$ac_ext 9980fi 9981 9982 9983 CFLAGS="$xorg_testset_save_CFLAGS" 9984 9985 eval supported=\$$cacheid 9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9987printf "%s\n" "$supported" >&6; } 9988 if test "$supported" = "yes" ; then 9989 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9990 found="yes" 9991 fi 9992 fi 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008xorg_testset_save_CFLAGS="$CFLAGS" 10009 10010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10014if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10015then : 10016 printf %s "(cached) " >&6 10017else $as_nop 10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020int i; 10021_ACEOF 10022if ac_fn_c_try_compile "$LINENO" 10023then : 10024 xorg_cv_cc_flag_unknown_warning_option=yes 10025else $as_nop 10026 xorg_cv_cc_flag_unknown_warning_option=no 10027fi 10028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10029fi 10030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10033 CFLAGS="$xorg_testset_save_CFLAGS" 10034fi 10035 10036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10039 fi 10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10043if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10044then : 10045 printf %s "(cached) " >&6 10046else $as_nop 10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10048/* end confdefs.h. */ 10049int i; 10050_ACEOF 10051if ac_fn_c_try_compile "$LINENO" 10052then : 10053 xorg_cv_cc_flag_unused_command_line_argument=yes 10054else $as_nop 10055 xorg_cv_cc_flag_unused_command_line_argument=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10058fi 10059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063fi 10064 10065found="no" 10066 10067 if test $found = "no" ; then 10068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10070 fi 10071 10072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10074 fi 10075 10076 CFLAGS="$CFLAGS -Wwrite-strings" 10077 10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10079printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10080 cacheid=xorg_cv_cc_flag__Wwrite_strings 10081 if eval test \${$cacheid+y} 10082then : 10083 printf %s "(cached) " >&6 10084else $as_nop 10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10086/* end confdefs.h. */ 10087int i; 10088int 10089main (void) 10090{ 10091 10092 ; 10093 return 0; 10094} 10095_ACEOF 10096if ac_fn_c_try_link "$LINENO" 10097then : 10098 eval $cacheid=yes 10099else $as_nop 10100 eval $cacheid=no 10101fi 10102rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10103 conftest$ac_exeext conftest.$ac_ext 10104fi 10105 10106 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108 10109 eval supported=\$$cacheid 10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10111printf "%s\n" "$supported" >&6; } 10112 if test "$supported" = "yes" ; then 10113 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10114 found="yes" 10115 fi 10116 fi 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132xorg_testset_save_CFLAGS="$CFLAGS" 10133 10134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10138if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10139then : 10140 printf %s "(cached) " >&6 10141else $as_nop 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144int i; 10145_ACEOF 10146if ac_fn_c_try_compile "$LINENO" 10147then : 10148 xorg_cv_cc_flag_unknown_warning_option=yes 10149else $as_nop 10150 xorg_cv_cc_flag_unknown_warning_option=no 10151fi 10152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10153fi 10154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10157 CFLAGS="$xorg_testset_save_CFLAGS" 10158fi 10159 10160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10163 fi 10164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10167if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10168then : 10169 printf %s "(cached) " >&6 10170else $as_nop 10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10172/* end confdefs.h. */ 10173int i; 10174_ACEOF 10175if ac_fn_c_try_compile "$LINENO" 10176then : 10177 xorg_cv_cc_flag_unused_command_line_argument=yes 10178else $as_nop 10179 xorg_cv_cc_flag_unused_command_line_argument=no 10180fi 10181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10182fi 10183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10186 CFLAGS="$xorg_testset_save_CFLAGS" 10187fi 10188 10189found="no" 10190 10191 if test $found = "no" ; then 10192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10194 fi 10195 10196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10198 fi 10199 10200 CFLAGS="$CFLAGS -Waddress" 10201 10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10203printf %s "checking if $CC supports -Waddress... " >&6; } 10204 cacheid=xorg_cv_cc_flag__Waddress 10205 if eval test \${$cacheid+y} 10206then : 10207 printf %s "(cached) " >&6 10208else $as_nop 10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210/* end confdefs.h. */ 10211int i; 10212int 10213main (void) 10214{ 10215 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220if ac_fn_c_try_link "$LINENO" 10221then : 10222 eval $cacheid=yes 10223else $as_nop 10224 eval $cacheid=no 10225fi 10226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10227 conftest$ac_exeext conftest.$ac_ext 10228fi 10229 10230 10231 CFLAGS="$xorg_testset_save_CFLAGS" 10232 10233 eval supported=\$$cacheid 10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10235printf "%s\n" "$supported" >&6; } 10236 if test "$supported" = "yes" ; then 10237 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10238 found="yes" 10239 fi 10240 fi 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256xorg_testset_save_CFLAGS="$CFLAGS" 10257 10258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10262if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10263then : 10264 printf %s "(cached) " >&6 10265else $as_nop 10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10267/* end confdefs.h. */ 10268int i; 10269_ACEOF 10270if ac_fn_c_try_compile "$LINENO" 10271then : 10272 xorg_cv_cc_flag_unknown_warning_option=yes 10273else $as_nop 10274 xorg_cv_cc_flag_unknown_warning_option=no 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10277fi 10278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10281 CFLAGS="$xorg_testset_save_CFLAGS" 10282fi 10283 10284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 fi 10288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10292then : 10293 printf %s "(cached) " >&6 10294else $as_nop 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297int i; 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO" 10300then : 10301 xorg_cv_cc_flag_unused_command_line_argument=yes 10302else $as_nop 10303 xorg_cv_cc_flag_unused_command_line_argument=no 10304fi 10305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10306fi 10307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10310 CFLAGS="$xorg_testset_save_CFLAGS" 10311fi 10312 10313found="no" 10314 10315 if test $found = "no" ; then 10316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10318 fi 10319 10320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322 fi 10323 10324 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10325 10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10327printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10328 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10329 if eval test \${$cacheid+y} 10330then : 10331 printf %s "(cached) " >&6 10332else $as_nop 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336int 10337main (void) 10338{ 10339 10340 ; 10341 return 0; 10342} 10343_ACEOF 10344if ac_fn_c_try_link "$LINENO" 10345then : 10346 eval $cacheid=yes 10347else $as_nop 10348 eval $cacheid=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10351 conftest$ac_exeext conftest.$ac_ext 10352fi 10353 10354 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356 10357 eval supported=\$$cacheid 10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10359printf "%s\n" "$supported" >&6; } 10360 if test "$supported" = "yes" ; then 10361 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10362 found="yes" 10363 fi 10364 fi 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380xorg_testset_save_CFLAGS="$CFLAGS" 10381 10382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10386if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10387then : 10388 printf %s "(cached) " >&6 10389else $as_nop 10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10391/* end confdefs.h. */ 10392int i; 10393_ACEOF 10394if ac_fn_c_try_compile "$LINENO" 10395then : 10396 xorg_cv_cc_flag_unknown_warning_option=yes 10397else $as_nop 10398 xorg_cv_cc_flag_unknown_warning_option=no 10399fi 10400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10401fi 10402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10403printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406fi 10407 10408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10414printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10415if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10416then : 10417 printf %s "(cached) " >&6 10418else $as_nop 10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420/* end confdefs.h. */ 10421int i; 10422_ACEOF 10423if ac_fn_c_try_compile "$LINENO" 10424then : 10425 xorg_cv_cc_flag_unused_command_line_argument=yes 10426else $as_nop 10427 xorg_cv_cc_flag_unused_command_line_argument=no 10428fi 10429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10430fi 10431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10434 CFLAGS="$xorg_testset_save_CFLAGS" 10435fi 10436 10437found="no" 10438 10439 if test $found = "no" ; then 10440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10442 fi 10443 10444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10446 fi 10447 10448 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10449 10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10451printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10452 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10453 if eval test \${$cacheid+y} 10454then : 10455 printf %s "(cached) " >&6 10456else $as_nop 10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10458/* end confdefs.h. */ 10459int i; 10460int 10461main (void) 10462{ 10463 10464 ; 10465 return 0; 10466} 10467_ACEOF 10468if ac_fn_c_try_link "$LINENO" 10469then : 10470 eval $cacheid=yes 10471else $as_nop 10472 eval $cacheid=no 10473fi 10474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10475 conftest$ac_exeext conftest.$ac_ext 10476fi 10477 10478 10479 CFLAGS="$xorg_testset_save_CFLAGS" 10480 10481 eval supported=\$$cacheid 10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10483printf "%s\n" "$supported" >&6; } 10484 if test "$supported" = "yes" ; then 10485 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10486 found="yes" 10487 fi 10488 fi 10489 10490 10491fi 10492 10493 10494 10495 10496 10497 10498 10499 CWARNFLAGS="$BASE_CFLAGS" 10500 if test "x$GCC" = xyes ; then 10501 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10502 fi 10503 10504 10505 10506 10507 10508 10509 10510 10511# Check whether --enable-strict-compilation was given. 10512if test ${enable_strict_compilation+y} 10513then : 10514 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10515else $as_nop 10516 STRICT_COMPILE=no 10517fi 10518 10519 10520 10521 10522 10523 10524STRICT_CFLAGS="" 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538xorg_testset_save_CFLAGS="$CFLAGS" 10539 10540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10544if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10545then : 10546 printf %s "(cached) " >&6 10547else $as_nop 10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550int i; 10551_ACEOF 10552if ac_fn_c_try_compile "$LINENO" 10553then : 10554 xorg_cv_cc_flag_unknown_warning_option=yes 10555else $as_nop 10556 xorg_cv_cc_flag_unknown_warning_option=no 10557fi 10558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10559fi 10560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10563 CFLAGS="$xorg_testset_save_CFLAGS" 10564fi 10565 10566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10569 fi 10570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10573if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10574then : 10575 printf %s "(cached) " >&6 10576else $as_nop 10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10578/* end confdefs.h. */ 10579int i; 10580_ACEOF 10581if ac_fn_c_try_compile "$LINENO" 10582then : 10583 xorg_cv_cc_flag_unused_command_line_argument=yes 10584else $as_nop 10585 xorg_cv_cc_flag_unused_command_line_argument=no 10586fi 10587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10588fi 10589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10592 CFLAGS="$xorg_testset_save_CFLAGS" 10593fi 10594 10595found="no" 10596 10597 if test $found = "no" ; then 10598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10600 fi 10601 10602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10604 fi 10605 10606 CFLAGS="$CFLAGS -pedantic" 10607 10608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10609printf %s "checking if $CC supports -pedantic... " >&6; } 10610 cacheid=xorg_cv_cc_flag__pedantic 10611 if eval test \${$cacheid+y} 10612then : 10613 printf %s "(cached) " >&6 10614else $as_nop 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617int i; 10618int 10619main (void) 10620{ 10621 10622 ; 10623 return 0; 10624} 10625_ACEOF 10626if ac_fn_c_try_link "$LINENO" 10627then : 10628 eval $cacheid=yes 10629else $as_nop 10630 eval $cacheid=no 10631fi 10632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10633 conftest$ac_exeext conftest.$ac_ext 10634fi 10635 10636 10637 CFLAGS="$xorg_testset_save_CFLAGS" 10638 10639 eval supported=\$$cacheid 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10641printf "%s\n" "$supported" >&6; } 10642 if test "$supported" = "yes" ; then 10643 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10644 found="yes" 10645 fi 10646 fi 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662xorg_testset_save_CFLAGS="$CFLAGS" 10663 10664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10669then : 10670 printf %s "(cached) " >&6 10671else $as_nop 10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10673/* end confdefs.h. */ 10674int i; 10675_ACEOF 10676if ac_fn_c_try_compile "$LINENO" 10677then : 10678 xorg_cv_cc_flag_unknown_warning_option=yes 10679else $as_nop 10680 xorg_cv_cc_flag_unknown_warning_option=no 10681fi 10682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10683fi 10684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10687 CFLAGS="$xorg_testset_save_CFLAGS" 10688fi 10689 10690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10693 fi 10694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10697if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10698then : 10699 printf %s "(cached) " >&6 10700else $as_nop 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703int i; 10704_ACEOF 10705if ac_fn_c_try_compile "$LINENO" 10706then : 10707 xorg_cv_cc_flag_unused_command_line_argument=yes 10708else $as_nop 10709 xorg_cv_cc_flag_unused_command_line_argument=no 10710fi 10711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10712fi 10713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10716 CFLAGS="$xorg_testset_save_CFLAGS" 10717fi 10718 10719found="no" 10720 10721 if test $found = "no" ; then 10722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10724 fi 10725 10726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10728 fi 10729 10730 CFLAGS="$CFLAGS -Werror" 10731 10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10733printf %s "checking if $CC supports -Werror... " >&6; } 10734 cacheid=xorg_cv_cc_flag__Werror 10735 if eval test \${$cacheid+y} 10736then : 10737 printf %s "(cached) " >&6 10738else $as_nop 10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740/* end confdefs.h. */ 10741int i; 10742int 10743main (void) 10744{ 10745 10746 ; 10747 return 0; 10748} 10749_ACEOF 10750if ac_fn_c_try_link "$LINENO" 10751then : 10752 eval $cacheid=yes 10753else $as_nop 10754 eval $cacheid=no 10755fi 10756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10757 conftest$ac_exeext conftest.$ac_ext 10758fi 10759 10760 10761 CFLAGS="$xorg_testset_save_CFLAGS" 10762 10763 eval supported=\$$cacheid 10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10765printf "%s\n" "$supported" >&6; } 10766 if test "$supported" = "yes" ; then 10767 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10768 found="yes" 10769 fi 10770 fi 10771 10772 if test $found = "no" ; then 10773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10775 fi 10776 10777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10779 fi 10780 10781 CFLAGS="$CFLAGS -errwarn" 10782 10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10784printf %s "checking if $CC supports -errwarn... " >&6; } 10785 cacheid=xorg_cv_cc_flag__errwarn 10786 if eval test \${$cacheid+y} 10787then : 10788 printf %s "(cached) " >&6 10789else $as_nop 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791/* end confdefs.h. */ 10792int i; 10793int 10794main (void) 10795{ 10796 10797 ; 10798 return 0; 10799} 10800_ACEOF 10801if ac_fn_c_try_link "$LINENO" 10802then : 10803 eval $cacheid=yes 10804else $as_nop 10805 eval $cacheid=no 10806fi 10807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10808 conftest$ac_exeext conftest.$ac_ext 10809fi 10810 10811 10812 CFLAGS="$xorg_testset_save_CFLAGS" 10813 10814 eval supported=\$$cacheid 10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10816printf "%s\n" "$supported" >&6; } 10817 if test "$supported" = "yes" ; then 10818 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10819 found="yes" 10820 fi 10821 fi 10822 10823 10824 10825# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10826# activate it with -Werror, so we add it here explicitly. 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840xorg_testset_save_CFLAGS="$CFLAGS" 10841 10842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10846if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10847then : 10848 printf %s "(cached) " >&6 10849else $as_nop 10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852int i; 10853_ACEOF 10854if ac_fn_c_try_compile "$LINENO" 10855then : 10856 xorg_cv_cc_flag_unknown_warning_option=yes 10857else $as_nop 10858 xorg_cv_cc_flag_unknown_warning_option=no 10859fi 10860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10861fi 10862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10865 CFLAGS="$xorg_testset_save_CFLAGS" 10866fi 10867 10868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10871 fi 10872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10876then : 10877 printf %s "(cached) " >&6 10878else $as_nop 10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10880/* end confdefs.h. */ 10881int i; 10882_ACEOF 10883if ac_fn_c_try_compile "$LINENO" 10884then : 10885 xorg_cv_cc_flag_unused_command_line_argument=yes 10886else $as_nop 10887 xorg_cv_cc_flag_unused_command_line_argument=no 10888fi 10889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10890fi 10891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10894 CFLAGS="$xorg_testset_save_CFLAGS" 10895fi 10896 10897found="no" 10898 10899 if test $found = "no" ; then 10900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10902 fi 10903 10904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10906 fi 10907 10908 CFLAGS="$CFLAGS -Werror=attributes" 10909 10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10911printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10912 cacheid=xorg_cv_cc_flag__Werror_attributes 10913 if eval test \${$cacheid+y} 10914then : 10915 printf %s "(cached) " >&6 10916else $as_nop 10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918/* end confdefs.h. */ 10919int i; 10920int 10921main (void) 10922{ 10923 10924 ; 10925 return 0; 10926} 10927_ACEOF 10928if ac_fn_c_try_link "$LINENO" 10929then : 10930 eval $cacheid=yes 10931else $as_nop 10932 eval $cacheid=no 10933fi 10934rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10935 conftest$ac_exeext conftest.$ac_ext 10936fi 10937 10938 10939 CFLAGS="$xorg_testset_save_CFLAGS" 10940 10941 eval supported=\$$cacheid 10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10943printf "%s\n" "$supported" >&6; } 10944 if test "$supported" = "yes" ; then 10945 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10946 found="yes" 10947 fi 10948 fi 10949 10950 10951 10952if test "x$STRICT_COMPILE" = "xyes"; then 10953 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10954 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10955fi 10956 10957 10958 10959 10960 10961 10962cat >>confdefs.h <<_ACEOF 10963#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10964_ACEOF 10965 10966 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10967 if test "x$PVM" = "x"; then 10968 PVM="0" 10969 fi 10970 10971printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10972 10973 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10974 if test "x$PVP" = "x"; then 10975 PVP="0" 10976 fi 10977 10978printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10979 10980 10981 10982CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10983mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10984|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10985touch \$(top_srcdir)/ChangeLog; \ 10986echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10987 10988 10989 10990 10991macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10992INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10993mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10994|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10995touch \$(top_srcdir)/INSTALL; \ 10996echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10997 10998 10999 11000 11001 11002 11003case $host_os in 11004 solaris*) 11005 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11006 # check for a man page file found in later versions that use 11007 # traditional section numbers instead 11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11009printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11010if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11011then : 11012 printf %s "(cached) " >&6 11013else $as_nop 11014 test "$cross_compiling" = yes && 11015 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11016if test -r "/usr/share/man/man7/attributes.7"; then 11017 ac_cv_file__usr_share_man_man7_attributes_7=yes 11018else 11019 ac_cv_file__usr_share_man_man7_attributes_7=no 11020fi 11021fi 11022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11023printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11024if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11025then : 11026 SYSV_MAN_SECTIONS=false 11027else $as_nop 11028 SYSV_MAN_SECTIONS=true 11029fi 11030 11031 ;; 11032 *) SYSV_MAN_SECTIONS=false ;; 11033esac 11034 11035if test x$APP_MAN_SUFFIX = x ; then 11036 APP_MAN_SUFFIX=1 11037fi 11038if test x$APP_MAN_DIR = x ; then 11039 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11040fi 11041 11042if test x$LIB_MAN_SUFFIX = x ; then 11043 LIB_MAN_SUFFIX=3 11044fi 11045if test x$LIB_MAN_DIR = x ; then 11046 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11047fi 11048 11049if test x$FILE_MAN_SUFFIX = x ; then 11050 case $SYSV_MAN_SECTIONS in 11051 true) FILE_MAN_SUFFIX=4 ;; 11052 *) FILE_MAN_SUFFIX=5 ;; 11053 esac 11054fi 11055if test x$FILE_MAN_DIR = x ; then 11056 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11057fi 11058 11059if test x$MISC_MAN_SUFFIX = x ; then 11060 case $SYSV_MAN_SECTIONS in 11061 true) MISC_MAN_SUFFIX=5 ;; 11062 *) MISC_MAN_SUFFIX=7 ;; 11063 esac 11064fi 11065if test x$MISC_MAN_DIR = x ; then 11066 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11067fi 11068 11069if test x$DRIVER_MAN_SUFFIX = x ; then 11070 case $SYSV_MAN_SECTIONS in 11071 true) DRIVER_MAN_SUFFIX=7 ;; 11072 *) DRIVER_MAN_SUFFIX=4 ;; 11073 esac 11074fi 11075if test x$DRIVER_MAN_DIR = x ; then 11076 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11077fi 11078 11079if test x$ADMIN_MAN_SUFFIX = x ; then 11080 case $SYSV_MAN_SECTIONS in 11081 true) ADMIN_MAN_SUFFIX=1m ;; 11082 *) ADMIN_MAN_SUFFIX=8 ;; 11083 esac 11084fi 11085if test x$ADMIN_MAN_DIR = x ; then 11086 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11087fi 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103XORG_MAN_PAGE="X Version 11" 11104 11105MAN_SUBSTS="\ 11106 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11107 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11108 -e 's|__xservername__|Xorg|g' \ 11109 -e 's|__xconfigfile__|xorg.conf|g' \ 11110 -e 's|__projectroot__|\$(prefix)|g' \ 11111 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11112 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11113 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11114 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11115 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11116 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11117 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11118 11119 11120 11121# Check whether --enable-silent-rules was given. 11122if test ${enable_silent_rules+y} 11123then : 11124 enableval=$enable_silent_rules; 11125fi 11126 11127case $enable_silent_rules in # ((( 11128 yes) AM_DEFAULT_VERBOSITY=0;; 11129 no) AM_DEFAULT_VERBOSITY=1;; 11130 *) AM_DEFAULT_VERBOSITY=0;; 11131esac 11132am_make=${MAKE-make} 11133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11134printf %s "checking whether $am_make supports nested variables... " >&6; } 11135if test ${am_cv_make_support_nested_variables+y} 11136then : 11137 printf %s "(cached) " >&6 11138else $as_nop 11139 if printf "%s\n" 'TRUE=$(BAR$(V)) 11140BAR0=false 11141BAR1=true 11142V=1 11143am__doit: 11144 @$(TRUE) 11145.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11146 am_cv_make_support_nested_variables=yes 11147else 11148 am_cv_make_support_nested_variables=no 11149fi 11150fi 11151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11152printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11153if test $am_cv_make_support_nested_variables = yes; then 11154 AM_V='$(V)' 11155 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11156else 11157 AM_V=$AM_DEFAULT_VERBOSITY 11158 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11159fi 11160AM_BACKSLASH='\' 11161 11162 11163 11164for ac_prog in 'bison -y' byacc 11165do 11166 # Extract the first word of "$ac_prog", so it can be a program name with args. 11167set dummy $ac_prog; ac_word=$2 11168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11169printf %s "checking for $ac_word... " >&6; } 11170if test ${ac_cv_prog_YACC+y} 11171then : 11172 printf %s "(cached) " >&6 11173else $as_nop 11174 if test -n "$YACC"; then 11175 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11176else 11177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11178for as_dir in $PATH 11179do 11180 IFS=$as_save_IFS 11181 case $as_dir in #((( 11182 '') as_dir=./ ;; 11183 */) ;; 11184 *) as_dir=$as_dir/ ;; 11185 esac 11186 for ac_exec_ext in '' $ac_executable_extensions; do 11187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11188 ac_cv_prog_YACC="$ac_prog" 11189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11190 break 2 11191 fi 11192done 11193 done 11194IFS=$as_save_IFS 11195 11196fi 11197fi 11198YACC=$ac_cv_prog_YACC 11199if test -n "$YACC"; then 11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11201printf "%s\n" "$YACC" >&6; } 11202else 11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11204printf "%s\n" "no" >&6; } 11205fi 11206 11207 11208 test -n "$YACC" && break 11209done 11210test -n "$YACC" || YACC="yacc" 11211 11212# Extract the first word of "$YACC", so it can be a program name with args. 11213set dummy $YACC; ac_word=$2 11214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11215printf %s "checking for $ac_word... " >&6; } 11216if test ${ac_cv_path_YACC_INST+y} 11217then : 11218 printf %s "(cached) " >&6 11219else $as_nop 11220 case $YACC_INST in 11221 [\\/]* | ?:[\\/]*) 11222 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 11223 ;; 11224 *) 11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11226for as_dir in $PATH 11227do 11228 IFS=$as_save_IFS 11229 case $as_dir in #((( 11230 '') as_dir=./ ;; 11231 */) ;; 11232 *) as_dir=$as_dir/ ;; 11233 esac 11234 for ac_exec_ext in '' $ac_executable_extensions; do 11235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11236 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext" 11237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11238 break 2 11239 fi 11240done 11241 done 11242IFS=$as_save_IFS 11243 11244 ;; 11245esac 11246fi 11247YACC_INST=$ac_cv_path_YACC_INST 11248if test -n "$YACC_INST"; then 11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 11250printf "%s\n" "$YACC_INST" >&6; } 11251else 11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11253printf "%s\n" "no" >&6; } 11254fi 11255 11256 11257if test ! -f "cfgparse.c"; then 11258 if test -z "$YACC_INST"; then 11259 as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5 11260 fi 11261fi 11262 11263ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11264if test "x$ac_cv_func_strcasecmp" = xyes 11265then : 11266 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 11267 11268fi 11269 11270 11271# Checks for pkg-config packages 11272 11273pkg_failed=no 11274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5 11275printf %s "checking for XKBEVD... " >&6; } 11276 11277if test -n "$XKBEVD_CFLAGS"; then 11278 pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS" 11279 elif test -n "$PKG_CONFIG"; then 11280 if test -n "$PKG_CONFIG" && \ 11281 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5 11282 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5 11283 ac_status=$? 11284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11285 test $ac_status = 0; }; then 11286 pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null` 11287 test "x$?" != "x0" && pkg_failed=yes 11288else 11289 pkg_failed=yes 11290fi 11291 else 11292 pkg_failed=untried 11293fi 11294if test -n "$XKBEVD_LIBS"; then 11295 pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS" 11296 elif test -n "$PKG_CONFIG"; then 11297 if test -n "$PKG_CONFIG" && \ 11298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5 11299 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5 11300 ac_status=$? 11301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11302 test $ac_status = 0; }; then 11303 pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null` 11304 test "x$?" != "x0" && pkg_failed=yes 11305else 11306 pkg_failed=yes 11307fi 11308 else 11309 pkg_failed=untried 11310fi 11311 11312 11313 11314if test $pkg_failed = yes; then 11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11316printf "%s\n" "no" >&6; } 11317 11318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11319 _pkg_short_errors_supported=yes 11320else 11321 _pkg_short_errors_supported=no 11322fi 11323 if test $_pkg_short_errors_supported = yes; then 11324 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11" 2>&1` 11325 else 11326 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11" 2>&1` 11327 fi 11328 # Put the nasty error message in config.log where it belongs 11329 echo "$XKBEVD_PKG_ERRORS" >&5 11330 11331 as_fn_error $? "Package requirements (xkbfile x11) were not met: 11332 11333$XKBEVD_PKG_ERRORS 11334 11335Consider adjusting the PKG_CONFIG_PATH environment variable if you 11336installed software in a non-standard prefix. 11337 11338Alternatively, you may set the environment variables XKBEVD_CFLAGS 11339and XKBEVD_LIBS to avoid the need to call pkg-config. 11340See the pkg-config man page for more details." "$LINENO" 5 11341elif test $pkg_failed = untried; then 11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11343printf "%s\n" "no" >&6; } 11344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11345printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11346as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11347is in your PATH or set the PKG_CONFIG environment variable to the full 11348path to pkg-config. 11349 11350Alternatively, you may set the environment variables XKBEVD_CFLAGS 11351and XKBEVD_LIBS to avoid the need to call pkg-config. 11352See the pkg-config man page for more details. 11353 11354To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11355See \`config.log' for more details" "$LINENO" 5; } 11356else 11357 XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS 11358 XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS 11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11360printf "%s\n" "yes" >&6; } 11361 11362fi 11363 11364ac_config_files="$ac_config_files Makefile man/Makefile" 11365 11366cat >confcache <<\_ACEOF 11367# This file is a shell script that caches the results of configure 11368# tests run on this system so they can be shared between configure 11369# scripts and configure runs, see configure's option --config-cache. 11370# It is not useful on other systems. If it contains results you don't 11371# want to keep, you may remove or edit it. 11372# 11373# config.status only pays attention to the cache file if you give it 11374# the --recheck option to rerun configure. 11375# 11376# `ac_cv_env_foo' variables (set or unset) will be overridden when 11377# loading this file, other *unset* `ac_cv_foo' will be assigned the 11378# following values. 11379 11380_ACEOF 11381 11382# The following way of writing the cache mishandles newlines in values, 11383# but we know of no workaround that is simple, portable, and efficient. 11384# So, we kill variables containing newlines. 11385# Ultrix sh set writes to stderr and can't be redirected directly, 11386# and sets the high bit in the cache file unless we assign to the vars. 11387( 11388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11389 eval ac_val=\$$ac_var 11390 case $ac_val in #( 11391 *${as_nl}*) 11392 case $ac_var in #( 11393 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11394printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11395 esac 11396 case $ac_var in #( 11397 _ | IFS | as_nl) ;; #( 11398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11399 *) { eval $ac_var=; unset $ac_var;} ;; 11400 esac ;; 11401 esac 11402 done 11403 11404 (set) 2>&1 | 11405 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11406 *${as_nl}ac_space=\ *) 11407 # `set' does not quote correctly, so add quotes: double-quote 11408 # substitution turns \\\\ into \\, and sed turns \\ into \. 11409 sed -n \ 11410 "s/'/'\\\\''/g; 11411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11412 ;; #( 11413 *) 11414 # `set' quotes correctly as required by POSIX, so do not add quotes. 11415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11416 ;; 11417 esac | 11418 sort 11419) | 11420 sed ' 11421 /^ac_cv_env_/b end 11422 t clear 11423 :clear 11424 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11425 t end 11426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11427 :end' >>confcache 11428if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11429 if test -w "$cache_file"; then 11430 if test "x$cache_file" != "x/dev/null"; then 11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11432printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11433 if test ! -f "$cache_file" || test -h "$cache_file"; then 11434 cat confcache >"$cache_file" 11435 else 11436 case $cache_file in #( 11437 */* | ?:*) 11438 mv -f confcache "$cache_file"$$ && 11439 mv -f "$cache_file"$$ "$cache_file" ;; #( 11440 *) 11441 mv -f confcache "$cache_file" ;; 11442 esac 11443 fi 11444 fi 11445 else 11446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11447printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11448 fi 11449fi 11450rm -f confcache 11451 11452test "x$prefix" = xNONE && prefix=$ac_default_prefix 11453# Let make expand exec_prefix. 11454test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11455 11456DEFS=-DHAVE_CONFIG_H 11457 11458ac_libobjs= 11459ac_ltlibobjs= 11460U= 11461for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11462 # 1. Remove the extension, and $U if already installed. 11463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11464 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11466 # will be set to the directory where LIBOBJS objects are built. 11467 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11468 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11469done 11470LIBOBJS=$ac_libobjs 11471 11472LTLIBOBJS=$ac_ltlibobjs 11473 11474 11475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11476printf %s "checking that generated files are newer than configure... " >&6; } 11477 if test -n "$am_sleep_pid"; then 11478 # Hide warnings about reused PIDs. 11479 wait $am_sleep_pid 2>/dev/null 11480 fi 11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11482printf "%s\n" "done" >&6; } 11483 if test -n "$EXEEXT"; then 11484 am__EXEEXT_TRUE= 11485 am__EXEEXT_FALSE='#' 11486else 11487 am__EXEEXT_TRUE='#' 11488 am__EXEEXT_FALSE= 11489fi 11490 11491if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11492 as_fn_error $? "conditional \"AMDEP\" was never defined. 11493Usually this means the macro was only invoked conditionally." "$LINENO" 5 11494fi 11495if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11496 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11497Usually this means the macro was only invoked conditionally." "$LINENO" 5 11498fi 11499 11500: "${CONFIG_STATUS=./config.status}" 11501ac_write_fail=0 11502ac_clean_files_save=$ac_clean_files 11503ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11505printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11506as_write_fail=0 11507cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11508#! $SHELL 11509# Generated by $as_me. 11510# Run this file to recreate the current configuration. 11511# Compiler output produced by configure, useful for debugging 11512# configure, is in config.log if it exists. 11513 11514debug=false 11515ac_cs_recheck=false 11516ac_cs_silent=false 11517 11518SHELL=\${CONFIG_SHELL-$SHELL} 11519export SHELL 11520_ASEOF 11521cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11522## -------------------- ## 11523## M4sh Initialization. ## 11524## -------------------- ## 11525 11526# Be more Bourne compatible 11527DUALCASE=1; export DUALCASE # for MKS sh 11528as_nop=: 11529if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11530then : 11531 emulate sh 11532 NULLCMD=: 11533 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11534 # is contrary to our usage. Disable this feature. 11535 alias -g '${1+"$@"}'='"$@"' 11536 setopt NO_GLOB_SUBST 11537else $as_nop 11538 case `(set -o) 2>/dev/null` in #( 11539 *posix*) : 11540 set -o posix ;; #( 11541 *) : 11542 ;; 11543esac 11544fi 11545 11546 11547 11548# Reset variables that may have inherited troublesome values from 11549# the environment. 11550 11551# IFS needs to be set, to space, tab, and newline, in precisely that order. 11552# (If _AS_PATH_WALK were called with IFS unset, it would have the 11553# side effect of setting IFS to empty, thus disabling word splitting.) 11554# Quoting is to prevent editors from complaining about space-tab. 11555as_nl=' 11556' 11557export as_nl 11558IFS=" "" $as_nl" 11559 11560PS1='$ ' 11561PS2='> ' 11562PS4='+ ' 11563 11564# Ensure predictable behavior from utilities with locale-dependent output. 11565LC_ALL=C 11566export LC_ALL 11567LANGUAGE=C 11568export LANGUAGE 11569 11570# We cannot yet rely on "unset" to work, but we need these variables 11571# to be unset--not just set to an empty or harmless value--now, to 11572# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11573# also avoids known problems related to "unset" and subshell syntax 11574# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11575for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11576do eval test \${$as_var+y} \ 11577 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11578done 11579 11580# Ensure that fds 0, 1, and 2 are open. 11581if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11582if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11583if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11584 11585# The user is always right. 11586if ${PATH_SEPARATOR+false} :; then 11587 PATH_SEPARATOR=: 11588 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11589 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11590 PATH_SEPARATOR=';' 11591 } 11592fi 11593 11594 11595# Find who we are. Look in the path if we contain no directory separator. 11596as_myself= 11597case $0 in #(( 11598 *[\\/]* ) as_myself=$0 ;; 11599 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11600for as_dir in $PATH 11601do 11602 IFS=$as_save_IFS 11603 case $as_dir in #((( 11604 '') as_dir=./ ;; 11605 */) ;; 11606 *) as_dir=$as_dir/ ;; 11607 esac 11608 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11609 done 11610IFS=$as_save_IFS 11611 11612 ;; 11613esac 11614# We did not find ourselves, most probably we were run as `sh COMMAND' 11615# in which case we are not to be found in the path. 11616if test "x$as_myself" = x; then 11617 as_myself=$0 11618fi 11619if test ! -f "$as_myself"; then 11620 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11621 exit 1 11622fi 11623 11624 11625 11626# as_fn_error STATUS ERROR [LINENO LOG_FD] 11627# ---------------------------------------- 11628# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11629# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11630# script with STATUS, using 1 if that was 0. 11631as_fn_error () 11632{ 11633 as_status=$1; test $as_status -eq 0 && as_status=1 11634 if test "$4"; then 11635 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11637 fi 11638 printf "%s\n" "$as_me: error: $2" >&2 11639 as_fn_exit $as_status 11640} # as_fn_error 11641 11642 11643 11644# as_fn_set_status STATUS 11645# ----------------------- 11646# Set $? to STATUS, without forking. 11647as_fn_set_status () 11648{ 11649 return $1 11650} # as_fn_set_status 11651 11652# as_fn_exit STATUS 11653# ----------------- 11654# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11655as_fn_exit () 11656{ 11657 set +e 11658 as_fn_set_status $1 11659 exit $1 11660} # as_fn_exit 11661 11662# as_fn_unset VAR 11663# --------------- 11664# Portably unset VAR. 11665as_fn_unset () 11666{ 11667 { eval $1=; unset $1;} 11668} 11669as_unset=as_fn_unset 11670 11671# as_fn_append VAR VALUE 11672# ---------------------- 11673# Append the text in VALUE to the end of the definition contained in VAR. Take 11674# advantage of any shell optimizations that allow amortized linear growth over 11675# repeated appends, instead of the typical quadratic growth present in naive 11676# implementations. 11677if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11678then : 11679 eval 'as_fn_append () 11680 { 11681 eval $1+=\$2 11682 }' 11683else $as_nop 11684 as_fn_append () 11685 { 11686 eval $1=\$$1\$2 11687 } 11688fi # as_fn_append 11689 11690# as_fn_arith ARG... 11691# ------------------ 11692# Perform arithmetic evaluation on the ARGs, and store the result in the 11693# global $as_val. Take advantage of shells that can avoid forks. The arguments 11694# must be portable across $(()) and expr. 11695if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11696then : 11697 eval 'as_fn_arith () 11698 { 11699 as_val=$(( $* )) 11700 }' 11701else $as_nop 11702 as_fn_arith () 11703 { 11704 as_val=`expr "$@" || test $? -eq 1` 11705 } 11706fi # as_fn_arith 11707 11708 11709if expr a : '\(a\)' >/dev/null 2>&1 && 11710 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11711 as_expr=expr 11712else 11713 as_expr=false 11714fi 11715 11716if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11717 as_basename=basename 11718else 11719 as_basename=false 11720fi 11721 11722if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11723 as_dirname=dirname 11724else 11725 as_dirname=false 11726fi 11727 11728as_me=`$as_basename -- "$0" || 11729$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11730 X"$0" : 'X\(//\)$' \| \ 11731 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11732printf "%s\n" X/"$0" | 11733 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11734 s//\1/ 11735 q 11736 } 11737 /^X\/\(\/\/\)$/{ 11738 s//\1/ 11739 q 11740 } 11741 /^X\/\(\/\).*/{ 11742 s//\1/ 11743 q 11744 } 11745 s/.*/./; q'` 11746 11747# Avoid depending upon Character Ranges. 11748as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11749as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11750as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11751as_cr_digits='0123456789' 11752as_cr_alnum=$as_cr_Letters$as_cr_digits 11753 11754 11755# Determine whether it's possible to make 'echo' print without a newline. 11756# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11757# for compatibility with existing Makefiles. 11758ECHO_C= ECHO_N= ECHO_T= 11759case `echo -n x` in #((((( 11760-n*) 11761 case `echo 'xy\c'` in 11762 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11763 xy) ECHO_C='\c';; 11764 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11765 ECHO_T=' ';; 11766 esac;; 11767*) 11768 ECHO_N='-n';; 11769esac 11770 11771# For backward compatibility with old third-party macros, we provide 11772# the shell variables $as_echo and $as_echo_n. New code should use 11773# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11774as_echo='printf %s\n' 11775as_echo_n='printf %s' 11776 11777rm -f conf$$ conf$$.exe conf$$.file 11778if test -d conf$$.dir; then 11779 rm -f conf$$.dir/conf$$.file 11780else 11781 rm -f conf$$.dir 11782 mkdir conf$$.dir 2>/dev/null 11783fi 11784if (echo >conf$$.file) 2>/dev/null; then 11785 if ln -s conf$$.file conf$$ 2>/dev/null; then 11786 as_ln_s='ln -s' 11787 # ... but there are two gotchas: 11788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11790 # In both cases, we have to default to `cp -pR'. 11791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11792 as_ln_s='cp -pR' 11793 elif ln conf$$.file conf$$ 2>/dev/null; then 11794 as_ln_s=ln 11795 else 11796 as_ln_s='cp -pR' 11797 fi 11798else 11799 as_ln_s='cp -pR' 11800fi 11801rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11802rmdir conf$$.dir 2>/dev/null 11803 11804 11805# as_fn_mkdir_p 11806# ------------- 11807# Create "$as_dir" as a directory, including parents if necessary. 11808as_fn_mkdir_p () 11809{ 11810 11811 case $as_dir in #( 11812 -*) as_dir=./$as_dir;; 11813 esac 11814 test -d "$as_dir" || eval $as_mkdir_p || { 11815 as_dirs= 11816 while :; do 11817 case $as_dir in #( 11818 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11819 *) as_qdir=$as_dir;; 11820 esac 11821 as_dirs="'$as_qdir' $as_dirs" 11822 as_dir=`$as_dirname -- "$as_dir" || 11823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11824 X"$as_dir" : 'X\(//\)[^/]' \| \ 11825 X"$as_dir" : 'X\(//\)$' \| \ 11826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11827printf "%s\n" X"$as_dir" | 11828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11829 s//\1/ 11830 q 11831 } 11832 /^X\(\/\/\)[^/].*/{ 11833 s//\1/ 11834 q 11835 } 11836 /^X\(\/\/\)$/{ 11837 s//\1/ 11838 q 11839 } 11840 /^X\(\/\).*/{ 11841 s//\1/ 11842 q 11843 } 11844 s/.*/./; q'` 11845 test -d "$as_dir" && break 11846 done 11847 test -z "$as_dirs" || eval "mkdir $as_dirs" 11848 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11849 11850 11851} # as_fn_mkdir_p 11852if mkdir -p . 2>/dev/null; then 11853 as_mkdir_p='mkdir -p "$as_dir"' 11854else 11855 test -d ./-p && rmdir ./-p 11856 as_mkdir_p=false 11857fi 11858 11859 11860# as_fn_executable_p FILE 11861# ----------------------- 11862# Test if FILE is an executable regular file. 11863as_fn_executable_p () 11864{ 11865 test -f "$1" && test -x "$1" 11866} # as_fn_executable_p 11867as_test_x='test -x' 11868as_executable_p=as_fn_executable_p 11869 11870# Sed expression to map a string onto a valid CPP name. 11871as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11872 11873# Sed expression to map a string onto a valid variable name. 11874as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11875 11876 11877exec 6>&1 11878## ----------------------------------- ## 11879## Main body of $CONFIG_STATUS script. ## 11880## ----------------------------------- ## 11881_ASEOF 11882test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11883 11884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11885# Save the log message, to keep $0 and so on meaningful, and to 11886# report actual input values of CONFIG_FILES etc. instead of their 11887# values after options handling. 11888ac_log=" 11889This file was extended by xkbevd $as_me 1.1.5, which was 11890generated by GNU Autoconf 2.71. Invocation command line was 11891 11892 CONFIG_FILES = $CONFIG_FILES 11893 CONFIG_HEADERS = $CONFIG_HEADERS 11894 CONFIG_LINKS = $CONFIG_LINKS 11895 CONFIG_COMMANDS = $CONFIG_COMMANDS 11896 $ $0 $@ 11897 11898on `(hostname || uname -n) 2>/dev/null | sed 1q` 11899" 11900 11901_ACEOF 11902 11903case $ac_config_files in *" 11904"*) set x $ac_config_files; shift; ac_config_files=$*;; 11905esac 11906 11907case $ac_config_headers in *" 11908"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11909esac 11910 11911 11912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11913# Files that config.status was made for. 11914config_files="$ac_config_files" 11915config_headers="$ac_config_headers" 11916config_commands="$ac_config_commands" 11917 11918_ACEOF 11919 11920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11921ac_cs_usage="\ 11922\`$as_me' instantiates files and other configuration actions 11923from templates according to the current configuration. Unless the files 11924and actions are specified as TAGs, all are instantiated by default. 11925 11926Usage: $0 [OPTION]... [TAG]... 11927 11928 -h, --help print this help, then exit 11929 -V, --version print version number and configuration settings, then exit 11930 --config print configuration, then exit 11931 -q, --quiet, --silent 11932 do not print progress messages 11933 -d, --debug don't remove temporary files 11934 --recheck update $as_me by reconfiguring in the same conditions 11935 --file=FILE[:TEMPLATE] 11936 instantiate the configuration file FILE 11937 --header=FILE[:TEMPLATE] 11938 instantiate the configuration header FILE 11939 11940Configuration files: 11941$config_files 11942 11943Configuration headers: 11944$config_headers 11945 11946Configuration commands: 11947$config_commands 11948 11949Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>." 11950 11951_ACEOF 11952ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11953ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11955ac_cs_config='$ac_cs_config_escaped' 11956ac_cs_version="\\ 11957xkbevd config.status 1.1.5 11958configured by $0, generated by GNU Autoconf 2.71, 11959 with options \\"\$ac_cs_config\\" 11960 11961Copyright (C) 2021 Free Software Foundation, Inc. 11962This config.status script is free software; the Free Software Foundation 11963gives unlimited permission to copy, distribute and modify it." 11964 11965ac_pwd='$ac_pwd' 11966srcdir='$srcdir' 11967INSTALL='$INSTALL' 11968MKDIR_P='$MKDIR_P' 11969AWK='$AWK' 11970test -n "\$AWK" || AWK=awk 11971_ACEOF 11972 11973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11974# The default lists apply if the user does not specify any file. 11975ac_need_defaults=: 11976while test $# != 0 11977do 11978 case $1 in 11979 --*=?*) 11980 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11981 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11982 ac_shift=: 11983 ;; 11984 --*=) 11985 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11986 ac_optarg= 11987 ac_shift=: 11988 ;; 11989 *) 11990 ac_option=$1 11991 ac_optarg=$2 11992 ac_shift=shift 11993 ;; 11994 esac 11995 11996 case $ac_option in 11997 # Handling of the options. 11998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11999 ac_cs_recheck=: ;; 12000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12001 printf "%s\n" "$ac_cs_version"; exit ;; 12002 --config | --confi | --conf | --con | --co | --c ) 12003 printf "%s\n" "$ac_cs_config"; exit ;; 12004 --debug | --debu | --deb | --de | --d | -d ) 12005 debug=: ;; 12006 --file | --fil | --fi | --f ) 12007 $ac_shift 12008 case $ac_optarg in 12009 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12010 '') as_fn_error $? "missing file argument" ;; 12011 esac 12012 as_fn_append CONFIG_FILES " '$ac_optarg'" 12013 ac_need_defaults=false;; 12014 --header | --heade | --head | --hea ) 12015 $ac_shift 12016 case $ac_optarg in 12017 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12018 esac 12019 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12020 ac_need_defaults=false;; 12021 --he | --h) 12022 # Conflict between --help and --header 12023 as_fn_error $? "ambiguous option: \`$1' 12024Try \`$0 --help' for more information.";; 12025 --help | --hel | -h ) 12026 printf "%s\n" "$ac_cs_usage"; exit ;; 12027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12028 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12029 ac_cs_silent=: ;; 12030 12031 # This is an error. 12032 -*) as_fn_error $? "unrecognized option: \`$1' 12033Try \`$0 --help' for more information." ;; 12034 12035 *) as_fn_append ac_config_targets " $1" 12036 ac_need_defaults=false ;; 12037 12038 esac 12039 shift 12040done 12041 12042ac_configure_extra_args= 12043 12044if $ac_cs_silent; then 12045 exec 6>/dev/null 12046 ac_configure_extra_args="$ac_configure_extra_args --silent" 12047fi 12048 12049_ACEOF 12050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12051if \$ac_cs_recheck; then 12052 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12053 shift 12054 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12055 CONFIG_SHELL='$SHELL' 12056 export CONFIG_SHELL 12057 exec "\$@" 12058fi 12059 12060_ACEOF 12061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12062exec 5>>config.log 12063{ 12064 echo 12065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12066## Running $as_me. ## 12067_ASBOX 12068 printf "%s\n" "$ac_log" 12069} >&5 12070 12071_ACEOF 12072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12073# 12074# INIT-COMMANDS 12075# 12076AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12077 12078_ACEOF 12079 12080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12081 12082# Handling of arguments. 12083for ac_config_target in $ac_config_targets 12084do 12085 case $ac_config_target in 12086 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12087 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12088 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12089 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12090 12091 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12092 esac 12093done 12094 12095 12096# If the user did not use the arguments to specify the items to instantiate, 12097# then the envvar interface is used. Set only those that are not. 12098# We use the long form for the default assignment because of an extremely 12099# bizarre bug on SunOS 4.1.3. 12100if $ac_need_defaults; then 12101 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12102 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12103 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12104fi 12105 12106# Have a temporary directory for convenience. Make it in the build tree 12107# simply because there is no reason against having it here, and in addition, 12108# creating and moving files from /tmp can sometimes cause problems. 12109# Hook for its removal unless debugging. 12110# Note that there is a small window in which the directory will not be cleaned: 12111# after its creation but before its name has been assigned to `$tmp'. 12112$debug || 12113{ 12114 tmp= ac_tmp= 12115 trap 'exit_status=$? 12116 : "${ac_tmp:=$tmp}" 12117 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12118' 0 12119 trap 'as_fn_exit 1' 1 2 13 15 12120} 12121# Create a (secure) tmp directory for tmp files. 12122 12123{ 12124 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12125 test -d "$tmp" 12126} || 12127{ 12128 tmp=./conf$$-$RANDOM 12129 (umask 077 && mkdir "$tmp") 12130} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12131ac_tmp=$tmp 12132 12133# Set up the scripts for CONFIG_FILES section. 12134# No need to generate them if there are no CONFIG_FILES. 12135# This happens for instance with `./config.status config.h'. 12136if test -n "$CONFIG_FILES"; then 12137 12138 12139ac_cr=`echo X | tr X '\015'` 12140# On cygwin, bash can eat \r inside `` if the user requested igncr. 12141# But we know of no other shell where ac_cr would be empty at this 12142# point, so we can use a bashism as a fallback. 12143if test "x$ac_cr" = x; then 12144 eval ac_cr=\$\'\\r\' 12145fi 12146ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12147if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12148 ac_cs_awk_cr='\\r' 12149else 12150 ac_cs_awk_cr=$ac_cr 12151fi 12152 12153echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12154_ACEOF 12155 12156 12157{ 12158 echo "cat >conf$$subs.awk <<_ACEOF" && 12159 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12160 echo "_ACEOF" 12161} >conf$$subs.sh || 12162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12163ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12164ac_delim='%!_!# ' 12165for ac_last_try in false false false false false :; do 12166 . ./conf$$subs.sh || 12167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12168 12169 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12170 if test $ac_delim_n = $ac_delim_num; then 12171 break 12172 elif $ac_last_try; then 12173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12174 else 12175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12176 fi 12177done 12178rm -f conf$$subs.sh 12179 12180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12181cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12182_ACEOF 12183sed -n ' 12184h 12185s/^/S["/; s/!.*/"]=/ 12186p 12187g 12188s/^[^!]*!// 12189:repl 12190t repl 12191s/'"$ac_delim"'$// 12192t delim 12193:nl 12194h 12195s/\(.\{148\}\)..*/\1/ 12196t more1 12197s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12198p 12199n 12200b repl 12201:more1 12202s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12203p 12204g 12205s/.\{148\}// 12206t nl 12207:delim 12208h 12209s/\(.\{148\}\)..*/\1/ 12210t more2 12211s/["\\]/\\&/g; s/^/"/; s/$/"/ 12212p 12213b 12214:more2 12215s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12216p 12217g 12218s/.\{148\}// 12219t delim 12220' <conf$$subs.awk | sed ' 12221/^[^""]/{ 12222 N 12223 s/\n// 12224} 12225' >>$CONFIG_STATUS || ac_write_fail=1 12226rm -f conf$$subs.awk 12227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12228_ACAWK 12229cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12230 for (key in S) S_is_set[key] = 1 12231 FS = "" 12232 12233} 12234{ 12235 line = $ 0 12236 nfields = split(line, field, "@") 12237 substed = 0 12238 len = length(field[1]) 12239 for (i = 2; i < nfields; i++) { 12240 key = field[i] 12241 keylen = length(key) 12242 if (S_is_set[key]) { 12243 value = S[key] 12244 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12245 len += length(value) + length(field[++i]) 12246 substed = 1 12247 } else 12248 len += 1 + keylen 12249 } 12250 12251 print line 12252} 12253 12254_ACAWK 12255_ACEOF 12256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12257if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12258 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12259else 12260 cat 12261fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12262 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12263_ACEOF 12264 12265# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12266# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12267# trailing colons and then remove the whole line if VPATH becomes empty 12268# (actually we leave an empty line to preserve line numbers). 12269if test "x$srcdir" = x.; then 12270 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12271h 12272s/// 12273s/^/:/ 12274s/[ ]*$/:/ 12275s/:\$(srcdir):/:/g 12276s/:\${srcdir}:/:/g 12277s/:@srcdir@:/:/g 12278s/^:*// 12279s/:*$// 12280x 12281s/\(=[ ]*\).*/\1/ 12282G 12283s/\n// 12284s/^[^=]*=[ ]*$// 12285}' 12286fi 12287 12288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12289fi # test -n "$CONFIG_FILES" 12290 12291# Set up the scripts for CONFIG_HEADERS section. 12292# No need to generate them if there are no CONFIG_HEADERS. 12293# This happens for instance with `./config.status Makefile'. 12294if test -n "$CONFIG_HEADERS"; then 12295cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12296BEGIN { 12297_ACEOF 12298 12299# Transform confdefs.h into an awk script `defines.awk', embedded as 12300# here-document in config.status, that substitutes the proper values into 12301# config.h.in to produce config.h. 12302 12303# Create a delimiter string that does not exist in confdefs.h, to ease 12304# handling of long lines. 12305ac_delim='%!_!# ' 12306for ac_last_try in false false :; do 12307 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12308 if test -z "$ac_tt"; then 12309 break 12310 elif $ac_last_try; then 12311 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12312 else 12313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12314 fi 12315done 12316 12317# For the awk script, D is an array of macro values keyed by name, 12318# likewise P contains macro parameters if any. Preserve backslash 12319# newline sequences. 12320 12321ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12322sed -n ' 12323s/.\{148\}/&'"$ac_delim"'/g 12324t rset 12325:rset 12326s/^[ ]*#[ ]*define[ ][ ]*/ / 12327t def 12328d 12329:def 12330s/\\$// 12331t bsnl 12332s/["\\]/\\&/g 12333s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12334D["\1"]=" \3"/p 12335s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12336d 12337:bsnl 12338s/["\\]/\\&/g 12339s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12340D["\1"]=" \3\\\\\\n"\\/p 12341t cont 12342s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12343t cont 12344d 12345:cont 12346n 12347s/.\{148\}/&'"$ac_delim"'/g 12348t clear 12349:clear 12350s/\\$// 12351t bsnlc 12352s/["\\]/\\&/g; s/^/"/; s/$/"/p 12353d 12354:bsnlc 12355s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12356b cont 12357' <confdefs.h | sed ' 12358s/'"$ac_delim"'/"\\\ 12359"/g' >>$CONFIG_STATUS || ac_write_fail=1 12360 12361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12362 for (key in D) D_is_set[key] = 1 12363 FS = "" 12364} 12365/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12366 line = \$ 0 12367 split(line, arg, " ") 12368 if (arg[1] == "#") { 12369 defundef = arg[2] 12370 mac1 = arg[3] 12371 } else { 12372 defundef = substr(arg[1], 2) 12373 mac1 = arg[2] 12374 } 12375 split(mac1, mac2, "(") #) 12376 macro = mac2[1] 12377 prefix = substr(line, 1, index(line, defundef) - 1) 12378 if (D_is_set[macro]) { 12379 # Preserve the white space surrounding the "#". 12380 print prefix "define", macro P[macro] D[macro] 12381 next 12382 } else { 12383 # Replace #undef with comments. This is necessary, for example, 12384 # in the case of _POSIX_SOURCE, which is predefined and required 12385 # on some systems where configure will not decide to define it. 12386 if (defundef == "undef") { 12387 print "/*", prefix defundef, macro, "*/" 12388 next 12389 } 12390 } 12391} 12392{ print } 12393_ACAWK 12394_ACEOF 12395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12396 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12397fi # test -n "$CONFIG_HEADERS" 12398 12399 12400eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12401shift 12402for ac_tag 12403do 12404 case $ac_tag in 12405 :[FHLC]) ac_mode=$ac_tag; continue;; 12406 esac 12407 case $ac_mode$ac_tag in 12408 :[FHL]*:*);; 12409 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12410 :[FH]-) ac_tag=-:-;; 12411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12412 esac 12413 ac_save_IFS=$IFS 12414 IFS=: 12415 set x $ac_tag 12416 IFS=$ac_save_IFS 12417 shift 12418 ac_file=$1 12419 shift 12420 12421 case $ac_mode in 12422 :L) ac_source=$1;; 12423 :[FH]) 12424 ac_file_inputs= 12425 for ac_f 12426 do 12427 case $ac_f in 12428 -) ac_f="$ac_tmp/stdin";; 12429 *) # Look for the file first in the build tree, then in the source tree 12430 # (if the path is not absolute). The absolute path cannot be DOS-style, 12431 # because $ac_f cannot contain `:'. 12432 test -f "$ac_f" || 12433 case $ac_f in 12434 [\\/$]*) false;; 12435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12436 esac || 12437 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12438 esac 12439 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12440 as_fn_append ac_file_inputs " '$ac_f'" 12441 done 12442 12443 # Let's still pretend it is `configure' which instantiates (i.e., don't 12444 # use $as_me), people would be surprised to read: 12445 # /* config.h. Generated by config.status. */ 12446 configure_input='Generated from '` 12447 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12448 `' by configure.' 12449 if test x"$ac_file" != x-; then 12450 configure_input="$ac_file. $configure_input" 12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12452printf "%s\n" "$as_me: creating $ac_file" >&6;} 12453 fi 12454 # Neutralize special characters interpreted by sed in replacement strings. 12455 case $configure_input in #( 12456 *\&* | *\|* | *\\* ) 12457 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12458 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12459 *) ac_sed_conf_input=$configure_input;; 12460 esac 12461 12462 case $ac_tag in 12463 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12465 esac 12466 ;; 12467 esac 12468 12469 ac_dir=`$as_dirname -- "$ac_file" || 12470$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12471 X"$ac_file" : 'X\(//\)[^/]' \| \ 12472 X"$ac_file" : 'X\(//\)$' \| \ 12473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12474printf "%s\n" X"$ac_file" | 12475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12476 s//\1/ 12477 q 12478 } 12479 /^X\(\/\/\)[^/].*/{ 12480 s//\1/ 12481 q 12482 } 12483 /^X\(\/\/\)$/{ 12484 s//\1/ 12485 q 12486 } 12487 /^X\(\/\).*/{ 12488 s//\1/ 12489 q 12490 } 12491 s/.*/./; q'` 12492 as_dir="$ac_dir"; as_fn_mkdir_p 12493 ac_builddir=. 12494 12495case "$ac_dir" in 12496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12497*) 12498 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12499 # A ".." for each directory in $ac_dir_suffix. 12500 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12501 case $ac_top_builddir_sub in 12502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12504 esac ;; 12505esac 12506ac_abs_top_builddir=$ac_pwd 12507ac_abs_builddir=$ac_pwd$ac_dir_suffix 12508# for backward compatibility: 12509ac_top_builddir=$ac_top_build_prefix 12510 12511case $srcdir in 12512 .) # We are building in place. 12513 ac_srcdir=. 12514 ac_top_srcdir=$ac_top_builddir_sub 12515 ac_abs_top_srcdir=$ac_pwd ;; 12516 [\\/]* | ?:[\\/]* ) # Absolute name. 12517 ac_srcdir=$srcdir$ac_dir_suffix; 12518 ac_top_srcdir=$srcdir 12519 ac_abs_top_srcdir=$srcdir ;; 12520 *) # Relative name. 12521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12522 ac_top_srcdir=$ac_top_build_prefix$srcdir 12523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12524esac 12525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12526 12527 12528 case $ac_mode in 12529 :F) 12530 # 12531 # CONFIG_FILE 12532 # 12533 12534 case $INSTALL in 12535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12536 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12537 esac 12538 ac_MKDIR_P=$MKDIR_P 12539 case $MKDIR_P in 12540 [\\/$]* | ?:[\\/]* ) ;; 12541 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12542 esac 12543_ACEOF 12544 12545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12546# If the template does not know about datarootdir, expand it. 12547# FIXME: This hack should be removed a few years after 2.60. 12548ac_datarootdir_hack=; ac_datarootdir_seen= 12549ac_sed_dataroot=' 12550/datarootdir/ { 12551 p 12552 q 12553} 12554/@datadir@/p 12555/@docdir@/p 12556/@infodir@/p 12557/@localedir@/p 12558/@mandir@/p' 12559case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12560*datarootdir*) ac_datarootdir_seen=yes;; 12561*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12563printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12564_ACEOF 12565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12566 ac_datarootdir_hack=' 12567 s&@datadir@&$datadir&g 12568 s&@docdir@&$docdir&g 12569 s&@infodir@&$infodir&g 12570 s&@localedir@&$localedir&g 12571 s&@mandir@&$mandir&g 12572 s&\\\${datarootdir}&$datarootdir&g' ;; 12573esac 12574_ACEOF 12575 12576# Neutralize VPATH when `$srcdir' = `.'. 12577# Shell code in configure.ac might set extrasub. 12578# FIXME: do we really want to maintain this feature? 12579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12580ac_sed_extra="$ac_vpsub 12581$extrasub 12582_ACEOF 12583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12584:t 12585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12586s|@configure_input@|$ac_sed_conf_input|;t t 12587s&@top_builddir@&$ac_top_builddir_sub&;t t 12588s&@top_build_prefix@&$ac_top_build_prefix&;t t 12589s&@srcdir@&$ac_srcdir&;t t 12590s&@abs_srcdir@&$ac_abs_srcdir&;t t 12591s&@top_srcdir@&$ac_top_srcdir&;t t 12592s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12593s&@builddir@&$ac_builddir&;t t 12594s&@abs_builddir@&$ac_abs_builddir&;t t 12595s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12596s&@INSTALL@&$ac_INSTALL&;t t 12597s&@MKDIR_P@&$ac_MKDIR_P&;t t 12598$ac_datarootdir_hack 12599" 12600eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12601 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12602 12603test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12604 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12606 "$ac_tmp/out"`; test -z "$ac_out"; } && 12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12608which seems to be undefined. Please make sure it is defined" >&5 12609printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12610which seems to be undefined. Please make sure it is defined" >&2;} 12611 12612 rm -f "$ac_tmp/stdin" 12613 case $ac_file in 12614 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12615 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12616 esac \ 12617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12618 ;; 12619 :H) 12620 # 12621 # CONFIG_HEADER 12622 # 12623 if test x"$ac_file" != x-; then 12624 { 12625 printf "%s\n" "/* $configure_input */" >&1 \ 12626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12627 } >"$ac_tmp/config.h" \ 12628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12629 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12631printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12632 else 12633 rm -f "$ac_file" 12634 mv "$ac_tmp/config.h" "$ac_file" \ 12635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12636 fi 12637 else 12638 printf "%s\n" "/* $configure_input */" >&1 \ 12639 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12640 || as_fn_error $? "could not create -" "$LINENO" 5 12641 fi 12642# Compute "$ac_file"'s index in $config_headers. 12643_am_arg="$ac_file" 12644_am_stamp_count=1 12645for _am_header in $config_headers :; do 12646 case $_am_header in 12647 $_am_arg | $_am_arg:* ) 12648 break ;; 12649 * ) 12650 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12651 esac 12652done 12653echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12654$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12655 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12656 X"$_am_arg" : 'X\(//\)$' \| \ 12657 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12658printf "%s\n" X"$_am_arg" | 12659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12660 s//\1/ 12661 q 12662 } 12663 /^X\(\/\/\)[^/].*/{ 12664 s//\1/ 12665 q 12666 } 12667 /^X\(\/\/\)$/{ 12668 s//\1/ 12669 q 12670 } 12671 /^X\(\/\).*/{ 12672 s//\1/ 12673 q 12674 } 12675 s/.*/./; q'`/stamp-h$_am_stamp_count 12676 ;; 12677 12678 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12679printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12680 ;; 12681 esac 12682 12683 12684 case $ac_file$ac_mode in 12685 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12686 # Older Autoconf quotes --file arguments for eval, but not when files 12687 # are listed without --file. Let's play safe and only enable the eval 12688 # if we detect the quoting. 12689 # TODO: see whether this extra hack can be removed once we start 12690 # requiring Autoconf 2.70 or later. 12691 case $CONFIG_FILES in #( 12692 *\'*) : 12693 eval set x "$CONFIG_FILES" ;; #( 12694 *) : 12695 set x $CONFIG_FILES ;; #( 12696 *) : 12697 ;; 12698esac 12699 shift 12700 # Used to flag and report bootstrapping failures. 12701 am_rc=0 12702 for am_mf 12703 do 12704 # Strip MF so we end up with the name of the file. 12705 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12706 # Check whether this is an Automake generated Makefile which includes 12707 # dependency-tracking related rules and includes. 12708 # Grep'ing the whole file directly is not great: AIX grep has a line 12709 # limit of 2048, but all sed's we know have understand at least 4000. 12710 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12711 || continue 12712 am_dirpart=`$as_dirname -- "$am_mf" || 12713$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12714 X"$am_mf" : 'X\(//\)[^/]' \| \ 12715 X"$am_mf" : 'X\(//\)$' \| \ 12716 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12717printf "%s\n" X"$am_mf" | 12718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12719 s//\1/ 12720 q 12721 } 12722 /^X\(\/\/\)[^/].*/{ 12723 s//\1/ 12724 q 12725 } 12726 /^X\(\/\/\)$/{ 12727 s//\1/ 12728 q 12729 } 12730 /^X\(\/\).*/{ 12731 s//\1/ 12732 q 12733 } 12734 s/.*/./; q'` 12735 am_filepart=`$as_basename -- "$am_mf" || 12736$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12737 X"$am_mf" : 'X\(//\)$' \| \ 12738 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12739printf "%s\n" X/"$am_mf" | 12740 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12741 s//\1/ 12742 q 12743 } 12744 /^X\/\(\/\/\)$/{ 12745 s//\1/ 12746 q 12747 } 12748 /^X\/\(\/\).*/{ 12749 s//\1/ 12750 q 12751 } 12752 s/.*/./; q'` 12753 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12754 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12755 | $MAKE -f - am--depfiles" >&5 12756 (cd "$am_dirpart" \ 12757 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12758 | $MAKE -f - am--depfiles) >&5 2>&5 12759 ac_status=$? 12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12761 (exit $ac_status); } || am_rc=$? 12762 done 12763 if test $am_rc -ne 0; then 12764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12766as_fn_error $? "Something went wrong bootstrapping makefile fragments 12767 for automatic dependency tracking. If GNU make was not used, consider 12768 re-running the configure script with MAKE=\"gmake\" (or whatever is 12769 necessary). You can also try re-running configure with the 12770 '--disable-dependency-tracking' option to at least be able to build 12771 the package (albeit without support for automatic dependency tracking). 12772See \`config.log' for more details" "$LINENO" 5; } 12773 fi 12774 { am_dirpart=; unset am_dirpart;} 12775 { am_filepart=; unset am_filepart;} 12776 { am_mf=; unset am_mf;} 12777 { am_rc=; unset am_rc;} 12778 rm -f conftest-deps.mk 12779} 12780 ;; 12781 12782 esac 12783done # for ac_tag 12784 12785 12786as_fn_exit 0 12787_ACEOF 12788ac_clean_files=$ac_clean_files_save 12789 12790test $ac_write_fail = 0 || 12791 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12792 12793 12794# configure is writing to config.log, and then calls config.status. 12795# config.status does its own redirection, appending to config.log. 12796# Unfortunately, on DOS this fails, as config.log is still kept open 12797# by configure, so config.status won't be able to write to it; its 12798# output is simply discarded. So we exec the FD to /dev/null, 12799# effectively closing config.log, so it can be properly (re)opened and 12800# appended to by config.status. When coming back to configure, we 12801# need to make the FD available again. 12802if test "$no_create" != yes; then 12803 ac_cs_success=: 12804 ac_config_status_args= 12805 test "$silent" = yes && 12806 ac_config_status_args="$ac_config_status_args --quiet" 12807 exec 5>/dev/null 12808 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12809 exec 5>>config.log 12810 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12811 # would make configure fail if this is the last instruction. 12812 $ac_cs_success || as_fn_exit 1 12813fi 12814if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12816printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12817fi 12818 12819 12820