configure revision a57d84fe
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xkbcomp 1.4.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/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/xkbcomp/-/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='xkbcomp' 614PACKAGE_TARNAME='xkbcomp' 615PACKAGE_VERSION='1.4.6' 616PACKAGE_STRING='xkbcomp 1.4.6' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/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 657XKBCONFIGROOT 658XKBCOMP_LIBS 659XKBCOMP_CFLAGS 660YACC_INST 661YFLAGS 662YACC 663MAN_SUBSTS 664XORG_MAN_PAGE 665ADMIN_MAN_DIR 666DRIVER_MAN_DIR 667MISC_MAN_DIR 668FILE_MAN_DIR 669LIB_MAN_DIR 670APP_MAN_DIR 671ADMIN_MAN_SUFFIX 672DRIVER_MAN_SUFFIX 673MISC_MAN_SUFFIX 674FILE_MAN_SUFFIX 675LIB_MAN_SUFFIX 676APP_MAN_SUFFIX 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686INSTALL_CMD 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CHANGELOG_CMD 691STRICT_CFLAGS 692CWARNFLAGS 693BASE_CFLAGS 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714CSCOPE 715ETAGS 716CTAGS 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL 779am__quote' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_dependency_tracking 785enable_selective_werror 786enable_strict_compilation 787enable_largefile 788with_xkb_config_root 789' 790 ac_precious_vars='build_alias 791host_alias 792target_alias 793CC 794CFLAGS 795LDFLAGS 796LIBS 797CPPFLAGS 798PKG_CONFIG 799PKG_CONFIG_PATH 800PKG_CONFIG_LIBDIR 801YACC 802YFLAGS 803XKBCOMP_CFLAGS 804XKBCOMP_LIBS' 805 806 807# Initialize some variables set by options. 808ac_init_help= 809ac_init_version=false 810ac_unrecognized_opts= 811ac_unrecognized_sep= 812# The variables have the same names as the options, with 813# dashes changed to underlines. 814cache_file=/dev/null 815exec_prefix=NONE 816no_create= 817no_recursion= 818prefix=NONE 819program_prefix=NONE 820program_suffix=NONE 821program_transform_name=s,x,x, 822silent= 823site= 824srcdir= 825verbose= 826x_includes=NONE 827x_libraries=NONE 828 829# Installation directory options. 830# These are left unexpanded so users can "make install exec_prefix=/foo" 831# and all the variables that are supposed to be based on exec_prefix 832# by default will actually change. 833# Use braces instead of parens because sh, perl, etc. also accept them. 834# (The list follows the same order as the GNU Coding Standards.) 835bindir='${exec_prefix}/bin' 836sbindir='${exec_prefix}/sbin' 837libexecdir='${exec_prefix}/libexec' 838datarootdir='${prefix}/share' 839datadir='${datarootdir}' 840sysconfdir='${prefix}/etc' 841sharedstatedir='${prefix}/com' 842localstatedir='${prefix}/var' 843runstatedir='${localstatedir}/run' 844includedir='${prefix}/include' 845oldincludedir='/usr/include' 846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 847infodir='${datarootdir}/info' 848htmldir='${docdir}' 849dvidir='${docdir}' 850pdfdir='${docdir}' 851psdir='${docdir}' 852libdir='${exec_prefix}/lib' 853localedir='${datarootdir}/locale' 854mandir='${datarootdir}/man' 855 856ac_prev= 857ac_dashdash= 858for ac_option 859do 860 # If the previous option needs an argument, assign it. 861 if test -n "$ac_prev"; then 862 eval $ac_prev=\$ac_option 863 ac_prev= 864 continue 865 fi 866 867 case $ac_option in 868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 869 *=) ac_optarg= ;; 870 *) ac_optarg=yes ;; 871 esac 872 873 case $ac_dashdash$ac_option in 874 --) 875 ac_dashdash=yes ;; 876 877 -bindir | --bindir | --bindi | --bind | --bin | --bi) 878 ac_prev=bindir ;; 879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 880 bindir=$ac_optarg ;; 881 882 -build | --build | --buil | --bui | --bu) 883 ac_prev=build_alias ;; 884 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 885 build_alias=$ac_optarg ;; 886 887 -cache-file | --cache-file | --cache-fil | --cache-fi \ 888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 889 ac_prev=cache_file ;; 890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 892 cache_file=$ac_optarg ;; 893 894 --config-cache | -C) 895 cache_file=config.cache ;; 896 897 -datadir | --datadir | --datadi | --datad) 898 ac_prev=datadir ;; 899 -datadir=* | --datadir=* | --datadi=* | --datad=*) 900 datadir=$ac_optarg ;; 901 902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 903 | --dataroo | --dataro | --datar) 904 ac_prev=datarootdir ;; 905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 907 datarootdir=$ac_optarg ;; 908 909 -disable-* | --disable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: \`$ac_useropt'" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=no ;; 924 925 -docdir | --docdir | --docdi | --doc | --do) 926 ac_prev=docdir ;; 927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 928 docdir=$ac_optarg ;; 929 930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 931 ac_prev=dvidir ;; 932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 933 dvidir=$ac_optarg ;; 934 935 -enable-* | --enable-*) 936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 as_fn_error $? "invalid feature name: \`$ac_useropt'" 940 ac_useropt_orig=$ac_useropt 941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 942 case $ac_user_opts in 943 *" 944"enable_$ac_useropt" 945"*) ;; 946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 947 ac_unrecognized_sep=', ';; 948 esac 949 eval enable_$ac_useropt=\$ac_optarg ;; 950 951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 953 | --exec | --exe | --ex) 954 ac_prev=exec_prefix ;; 955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 957 | --exec=* | --exe=* | --ex=*) 958 exec_prefix=$ac_optarg ;; 959 960 -gas | --gas | --ga | --g) 961 # Obsolete; use --with-gas. 962 with_gas=yes ;; 963 964 -help | --help | --hel | --he | -h) 965 ac_init_help=long ;; 966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 967 ac_init_help=recursive ;; 968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 969 ac_init_help=short ;; 970 971 -host | --host | --hos | --ho) 972 ac_prev=host_alias ;; 973 -host=* | --host=* | --hos=* | --ho=*) 974 host_alias=$ac_optarg ;; 975 976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 977 ac_prev=htmldir ;; 978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 979 | --ht=*) 980 htmldir=$ac_optarg ;; 981 982 -includedir | --includedir | --includedi | --included | --include \ 983 | --includ | --inclu | --incl | --inc) 984 ac_prev=includedir ;; 985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 986 | --includ=* | --inclu=* | --incl=* | --inc=*) 987 includedir=$ac_optarg ;; 988 989 -infodir | --infodir | --infodi | --infod | --info | --inf) 990 ac_prev=infodir ;; 991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 992 infodir=$ac_optarg ;; 993 994 -libdir | --libdir | --libdi | --libd) 995 ac_prev=libdir ;; 996 -libdir=* | --libdir=* | --libdi=* | --libd=*) 997 libdir=$ac_optarg ;; 998 999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1000 | --libexe | --libex | --libe) 1001 ac_prev=libexecdir ;; 1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1003 | --libexe=* | --libex=* | --libe=*) 1004 libexecdir=$ac_optarg ;; 1005 1006 -localedir | --localedir | --localedi | --localed | --locale) 1007 ac_prev=localedir ;; 1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1009 localedir=$ac_optarg ;; 1010 1011 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1012 | --localstate | --localstat | --localsta | --localst | --locals) 1013 ac_prev=localstatedir ;; 1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1016 localstatedir=$ac_optarg ;; 1017 1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1019 ac_prev=mandir ;; 1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1021 mandir=$ac_optarg ;; 1022 1023 -nfp | --nfp | --nf) 1024 # Obsolete; use --without-fp. 1025 with_fp=no ;; 1026 1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1028 | --no-cr | --no-c | -n) 1029 no_create=yes ;; 1030 1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1033 no_recursion=yes ;; 1034 1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1037 | --oldin | --oldi | --old | --ol | --o) 1038 ac_prev=oldincludedir ;; 1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1042 oldincludedir=$ac_optarg ;; 1043 1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1045 ac_prev=prefix ;; 1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1047 prefix=$ac_optarg ;; 1048 1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1050 | --program-pre | --program-pr | --program-p) 1051 ac_prev=program_prefix ;; 1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1054 program_prefix=$ac_optarg ;; 1055 1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1057 | --program-suf | --program-su | --program-s) 1058 ac_prev=program_suffix ;; 1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1061 program_suffix=$ac_optarg ;; 1062 1063 -program-transform-name | --program-transform-name \ 1064 | --program-transform-nam | --program-transform-na \ 1065 | --program-transform-n | --program-transform- \ 1066 | --program-transform | --program-transfor \ 1067 | --program-transfo | --program-transf \ 1068 | --program-trans | --program-tran \ 1069 | --progr-tra | --program-tr | --program-t) 1070 ac_prev=program_transform_name ;; 1071 -program-transform-name=* | --program-transform-name=* \ 1072 | --program-transform-nam=* | --program-transform-na=* \ 1073 | --program-transform-n=* | --program-transform-=* \ 1074 | --program-transform=* | --program-transfor=* \ 1075 | --program-transfo=* | --program-transf=* \ 1076 | --program-trans=* | --program-tran=* \ 1077 | --progr-tra=* | --program-tr=* | --program-t=*) 1078 program_transform_name=$ac_optarg ;; 1079 1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1081 ac_prev=pdfdir ;; 1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1083 pdfdir=$ac_optarg ;; 1084 1085 -psdir | --psdir | --psdi | --psd | --ps) 1086 ac_prev=psdir ;; 1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1088 psdir=$ac_optarg ;; 1089 1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1091 | -silent | --silent | --silen | --sile | --sil) 1092 silent=yes ;; 1093 1094 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1095 | --runstate | --runstat | --runsta | --runst | --runs \ 1096 | --run | --ru | --r) 1097 ac_prev=runstatedir ;; 1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1100 | --run=* | --ru=* | --r=*) 1101 runstatedir=$ac_optarg ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: \`$ac_useropt'" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: \`$ac_useropt'" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information" 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error $? "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir runstatedir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 elif test "x$build_alias" != "x$host_alias"; then 1269 cross_compiling=yes 1270 fi 1271fi 1272 1273ac_tool_prefix= 1274test -n "$host_alias" && ac_tool_prefix=$host_alias- 1275 1276test "$silent" = yes && exec 6>/dev/null 1277 1278 1279ac_pwd=`pwd` && test -n "$ac_pwd" && 1280ac_ls_di=`ls -di .` && 1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1282 as_fn_error $? "working directory cannot be determined" 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1284 as_fn_error $? "pwd does not report name of working directory" 1285 1286 1287# Find the source files, if location was not specified. 1288if test -z "$srcdir"; then 1289 ac_srcdir_defaulted=yes 1290 # Try the directory containing this script, then the parent directory. 1291 ac_confdir=`$as_dirname -- "$as_myself" || 1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1294 X"$as_myself" : 'X\(//\)$' \| \ 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1296printf "%s\n" X"$as_myself" | 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)[^/].*/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\).*/{ 1310 s//\1/ 1311 q 1312 } 1313 s/.*/./; q'` 1314 srcdir=$ac_confdir 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 srcdir=.. 1317 fi 1318else 1319 ac_srcdir_defaulted=no 1320fi 1321if test ! -r "$srcdir/$ac_unique_file"; then 1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1324fi 1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1326ac_abs_confdir=`( 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1328 pwd)` 1329# When building in place, set srcdir=. 1330if test "$ac_abs_confdir" = "$ac_pwd"; then 1331 srcdir=. 1332fi 1333# Remove unnecessary trailing slashes from srcdir. 1334# Double slashes in file names in object file debugging info 1335# mess up M-x gdb in Emacs. 1336case $srcdir in 1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1338esac 1339for ac_var in $ac_precious_vars; do 1340 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_env_${ac_var}_value=\$${ac_var} 1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1344done 1345 1346# 1347# Report the --help message. 1348# 1349if test "$ac_init_help" = "long"; then 1350 # Omit some internal or obsolete options to make the list less imposing. 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1352 cat <<_ACEOF 1353\`configure' configures xkbcomp 1.4.6 to adapt to many kinds of systems. 1354 1355Usage: $0 [OPTION]... [VAR=VALUE]... 1356 1357To assign environment variables (e.g., CC, CFLAGS...), specify them as 1358VAR=VALUE. See below for descriptions of some of the useful variables. 1359 1360Defaults for the options are specified in brackets. 1361 1362Configuration: 1363 -h, --help display this help and exit 1364 --help=short display options specific to this package 1365 --help=recursive display the short help of all the included packages 1366 -V, --version display version information and exit 1367 -q, --quiet, --silent do not print \`checking ...' messages 1368 --cache-file=FILE cache test results in FILE [disabled] 1369 -C, --config-cache alias for \`--cache-file=config.cache' 1370 -n, --no-create do not create output files 1371 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1372 1373Installation directories: 1374 --prefix=PREFIX install architecture-independent files in PREFIX 1375 [$ac_default_prefix] 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1377 [PREFIX] 1378 1379By default, \`make install' will install all the files in 1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1381an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1382for instance \`--prefix=\$HOME'. 1383 1384For better control, use the options below. 1385 1386Fine tuning of the installation directories: 1387 --bindir=DIR user executables [EPREFIX/bin] 1388 --sbindir=DIR system admin executables [EPREFIX/sbin] 1389 --libexecdir=DIR program executables [EPREFIX/libexec] 1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1394 --libdir=DIR object code libraries [EPREFIX/lib] 1395 --includedir=DIR C header files [PREFIX/include] 1396 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1399 --infodir=DIR info documentation [DATAROOTDIR/info] 1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1401 --mandir=DIR man documentation [DATAROOTDIR/man] 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp] 1403 --htmldir=DIR html documentation [DOCDIR] 1404 --dvidir=DIR dvi documentation [DOCDIR] 1405 --pdfdir=DIR pdf documentation [DOCDIR] 1406 --psdir=DIR ps documentation [DOCDIR] 1407_ACEOF 1408 1409 cat <<\_ACEOF 1410 1411Program names: 1412 --program-prefix=PREFIX prepend PREFIX to installed program names 1413 --program-suffix=SUFFIX append SUFFIX to installed program names 1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1415 1416System types: 1417 --build=BUILD configure for building on BUILD [guessed] 1418 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1419_ACEOF 1420fi 1421 1422if test -n "$ac_init_help"; then 1423 case $ac_init_help in 1424 short | recursive ) echo "Configuration of xkbcomp 1.4.6:";; 1425 esac 1426 cat <<\_ACEOF 1427 1428Optional Features: 1429 --disable-option-checking ignore unrecognized --enable/--with options 1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1432 --enable-silent-rules less verbose build output (undo: "make V=1") 1433 --disable-silent-rules verbose build output (undo: "make V=0") 1434 --enable-dependency-tracking 1435 do not reject slow dependency extractors 1436 --disable-dependency-tracking 1437 speeds up one-time build 1438 --disable-selective-werror 1439 Turn off selective compiler errors. (default: 1440 enabled) 1441 --enable-strict-compilation 1442 Enable all warnings from compiler and make them 1443 errors (default: disabled) 1444 --disable-largefile omit support for large files 1445 1446Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-xkb-config-root=<paths> 1450 Set default XKB config root (default: 1451 ${datadir}/X11/xkb) 1452 1453Some influential environment variables: 1454 CC C compiler command 1455 CFLAGS C compiler flags 1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1457 nonstandard directory <lib dir> 1458 LIBS libraries to pass to the linker, e.g. -l<library> 1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1460 you have headers in a nonstandard directory <include dir> 1461 PKG_CONFIG path to pkg-config utility 1462 PKG_CONFIG_PATH 1463 directories to add to pkg-config's search path 1464 PKG_CONFIG_LIBDIR 1465 path overriding pkg-config's built-in search path 1466 YACC The `Yet Another Compiler Compiler' implementation to use. 1467 Defaults to the first program found out of: `bison -y', `byacc', 1468 `yacc'. 1469 YFLAGS The list of arguments that will be passed by default to $YACC. 1470 This script will default YFLAGS to the empty string to avoid a 1471 default value of `-d' given by some make applications. 1472 XKBCOMP_CFLAGS 1473 C compiler flags for XKBCOMP, overriding pkg-config 1474 XKBCOMP_LIBS 1475 linker flags for XKBCOMP, overriding pkg-config 1476 1477Use these variables to override the choices made by `configure' or to help 1478it to find libraries and programs with nonstandard names/locations. 1479 1480Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>. 1481_ACEOF 1482ac_status=$? 1483fi 1484 1485if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for configure.gnu first; this name is used for a wrapper for 1527 # Metaconfig's "Configure" on case-insensitive file systems. 1528 if test -f "$ac_srcdir/configure.gnu"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1531 elif test -f "$ac_srcdir/configure"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure" --help=recursive 1534 else 1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1536 fi || ac_status=$? 1537 cd "$ac_pwd" || { ac_status=$?; break; } 1538 done 1539fi 1540 1541test -n "$ac_init_help" && exit $ac_status 1542if $ac_init_version; then 1543 cat <<\_ACEOF 1544xkbcomp configure 1.4.6 1545generated by GNU Autoconf 2.71 1546 1547Copyright (C) 2021 Free Software Foundation, Inc. 1548This configure script is free software; the Free Software Foundation 1549gives unlimited permission to copy, distribute and modify it. 1550_ACEOF 1551 exit 1552fi 1553 1554## ------------------------ ## 1555## Autoconf initialization. ## 1556## ------------------------ ## 1557 1558# ac_fn_c_try_compile LINENO 1559# -------------------------- 1560# Try to compile conftest.$ac_ext, and return whether this succeeded. 1561ac_fn_c_try_compile () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 rm -f conftest.$ac_objext conftest.beam 1565 if { { ac_try="$ac_compile" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571printf "%s\n" "$ac_try_echo"; } >&5 1572 (eval "$ac_compile") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } && { 1581 test -z "$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 } && test -s conftest.$ac_objext 1584then : 1585 ac_retval=0 1586else $as_nop 1587 printf "%s\n" "$as_me: failed program was:" >&5 1588sed 's/^/| /' conftest.$ac_ext >&5 1589 1590 ac_retval=1 1591fi 1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1593 as_fn_set_status $ac_retval 1594 1595} # ac_fn_c_try_compile 1596 1597# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1598# ------------------------------------------------------------------ 1599# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1600# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1601ac_fn_check_decl () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 as_decl_name=`echo $2|sed 's/ *(.*//'` 1605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1606printf %s "checking whether $as_decl_name is declared... " >&6; } 1607if eval test \${$3+y} 1608then : 1609 printf %s "(cached) " >&6 1610else $as_nop 1611 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1612 eval ac_save_FLAGS=\$$6 1613 as_fn_append $6 " $5" 1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1615/* end confdefs.h. */ 1616$4 1617int 1618main (void) 1619{ 1620#ifndef $as_decl_name 1621#ifdef __cplusplus 1622 (void) $as_decl_use; 1623#else 1624 (void) $as_decl_name; 1625#endif 1626#endif 1627 1628 ; 1629 return 0; 1630} 1631_ACEOF 1632if ac_fn_c_try_compile "$LINENO" 1633then : 1634 eval "$3=yes" 1635else $as_nop 1636 eval "$3=no" 1637fi 1638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1639 eval $6=\$ac_save_FLAGS 1640 1641fi 1642eval ac_res=\$$3 1643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1644printf "%s\n" "$ac_res" >&6; } 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 1647} # ac_fn_check_decl 1648 1649# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1650# ------------------------------------------------------- 1651# Tests whether HEADER exists and can be compiled using the include files in 1652# INCLUDES, setting the cache variable VAR accordingly. 1653ac_fn_c_check_header_compile () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1657printf %s "checking for $2... " >&6; } 1658if eval test \${$3+y} 1659then : 1660 printf %s "(cached) " >&6 1661else $as_nop 1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1663/* end confdefs.h. */ 1664$4 1665#include <$2> 1666_ACEOF 1667if ac_fn_c_try_compile "$LINENO" 1668then : 1669 eval "$3=yes" 1670else $as_nop 1671 eval "$3=no" 1672fi 1673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1674fi 1675eval ac_res=\$$3 1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677printf "%s\n" "$ac_res" >&6; } 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 1680} # ac_fn_c_check_header_compile 1681 1682# ac_fn_c_try_link LINENO 1683# ----------------------- 1684# Try to link conftest.$ac_ext, and return whether this succeeded. 1685ac_fn_c_try_link () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1689 if { { ac_try="$ac_link" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695printf "%s\n" "$ac_try_echo"; } >&5 1696 (eval "$ac_link") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { 1705 test -z "$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 } && test -s conftest$ac_exeext && { 1708 test "$cross_compiling" = yes || 1709 test -x conftest$ac_exeext 1710 } 1711then : 1712 ac_retval=0 1713else $as_nop 1714 printf "%s\n" "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1721 # interfere with the next link command; also delete a directory that is 1722 # left behind by Apple's compiler. We do this before executing the actions. 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 as_fn_set_status $ac_retval 1726 1727} # ac_fn_c_try_link 1728 1729# ac_fn_c_check_func LINENO FUNC VAR 1730# ---------------------------------- 1731# Tests whether FUNC exists, setting the cache variable VAR accordingly 1732ac_fn_c_check_func () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736printf %s "checking for $2... " >&6; } 1737if eval test \${$3+y} 1738then : 1739 printf %s "(cached) " >&6 1740else $as_nop 1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742/* end confdefs.h. */ 1743/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1745#define $2 innocuous_$2 1746 1747/* System header to define __stub macros and hopefully few prototypes, 1748 which can conflict with char $2 (); below. */ 1749 1750#include <limits.h> 1751#undef $2 1752 1753/* Override any GCC internal prototype to avoid an error. 1754 Use char because int might match the return type of a GCC 1755 builtin and then its argument prototype would still apply. */ 1756#ifdef __cplusplus 1757extern "C" 1758#endif 1759char $2 (); 1760/* The GNU C library defines this for functions which it implements 1761 to always fail with ENOSYS. Some functions are actually named 1762 something starting with __ and the normal name is an alias. */ 1763#if defined __stub_$2 || defined __stub___$2 1764choke me 1765#endif 1766 1767int 1768main (void) 1769{ 1770return $2 (); 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775if ac_fn_c_try_link "$LINENO" 1776then : 1777 eval "$3=yes" 1778else $as_nop 1779 eval "$3=no" 1780fi 1781rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1782 conftest$ac_exeext conftest.$ac_ext 1783fi 1784eval ac_res=\$$3 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786printf "%s\n" "$ac_res" >&6; } 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 1789} # ac_fn_c_check_func 1790ac_configure_args_raw= 1791for ac_arg 1792do 1793 case $ac_arg in 1794 *\'*) 1795 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1796 esac 1797 as_fn_append ac_configure_args_raw " '$ac_arg'" 1798done 1799 1800case $ac_configure_args_raw in 1801 *$as_nl*) 1802 ac_safe_unquote= ;; 1803 *) 1804 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1805 ac_unsafe_a="$ac_unsafe_z#~" 1806 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1807 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1808esac 1809 1810cat >config.log <<_ACEOF 1811This file contains any messages produced by compilers while 1812running configure, to aid debugging if configure makes a mistake. 1813 1814It was created by xkbcomp $as_me 1.4.6, which was 1815generated by GNU Autoconf 2.71. Invocation command line was 1816 1817 $ $0$ac_configure_args_raw 1818 1819_ACEOF 1820exec 5>>config.log 1821{ 1822cat <<_ASUNAME 1823## --------- ## 1824## Platform. ## 1825## --------- ## 1826 1827hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1828uname -m = `(uname -m) 2>/dev/null || echo unknown` 1829uname -r = `(uname -r) 2>/dev/null || echo unknown` 1830uname -s = `(uname -s) 2>/dev/null || echo unknown` 1831uname -v = `(uname -v) 2>/dev/null || echo unknown` 1832 1833/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1834/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1835 1836/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1837/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1838/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1839/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1840/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1841/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1842/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1843 1844_ASUNAME 1845 1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1847for as_dir in $PATH 1848do 1849 IFS=$as_save_IFS 1850 case $as_dir in #((( 1851 '') as_dir=./ ;; 1852 */) ;; 1853 *) as_dir=$as_dir/ ;; 1854 esac 1855 printf "%s\n" "PATH: $as_dir" 1856 done 1857IFS=$as_save_IFS 1858 1859} >&5 1860 1861cat >&5 <<_ACEOF 1862 1863 1864## ----------- ## 1865## Core tests. ## 1866## ----------- ## 1867 1868_ACEOF 1869 1870 1871# Keep a trace of the command line. 1872# Strip out --no-create and --no-recursion so they do not pile up. 1873# Strip out --silent because we don't want to record it for future runs. 1874# Also quote any args containing shell meta-characters. 1875# Make two passes to allow for proper duplicate-argument suppression. 1876ac_configure_args= 1877ac_configure_args0= 1878ac_configure_args1= 1879ac_must_keep_next=false 1880for ac_pass in 1 2 1881do 1882 for ac_arg 1883 do 1884 case $ac_arg in 1885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1887 | -silent | --silent | --silen | --sile | --sil) 1888 continue ;; 1889 *\'*) 1890 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 esac 1892 case $ac_pass in 1893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1894 2) 1895 as_fn_append ac_configure_args1 " '$ac_arg'" 1896 if test $ac_must_keep_next = true; then 1897 ac_must_keep_next=false # Got value, back to normal. 1898 else 1899 case $ac_arg in 1900 *=* | --config-cache | -C | -disable-* | --disable-* \ 1901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1903 | -with-* | --with-* | -without-* | --without-* | --x) 1904 case "$ac_configure_args0 " in 1905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1906 esac 1907 ;; 1908 -* ) ac_must_keep_next=true ;; 1909 esac 1910 fi 1911 as_fn_append ac_configure_args " '$ac_arg'" 1912 ;; 1913 esac 1914 done 1915done 1916{ ac_configure_args0=; unset ac_configure_args0;} 1917{ ac_configure_args1=; unset ac_configure_args1;} 1918 1919# When interrupted or exit'd, cleanup temporary files, and complete 1920# config.log. We remove comments because anyway the quotes in there 1921# would cause problems or look ugly. 1922# WARNING: Use '\'' to represent an apostrophe within the trap. 1923# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1924trap 'exit_status=$? 1925 # Sanitize IFS. 1926 IFS=" "" $as_nl" 1927 # Save into config.log some information that might help in debugging. 1928 { 1929 echo 1930 1931 printf "%s\n" "## ---------------- ## 1932## Cache variables. ## 1933## ---------------- ##" 1934 echo 1935 # The following way of writing the cache mishandles newlines in values, 1936( 1937 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1938 eval ac_val=\$$ac_var 1939 case $ac_val in #( 1940 *${as_nl}*) 1941 case $ac_var in #( 1942 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1943printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1944 esac 1945 case $ac_var in #( 1946 _ | IFS | as_nl) ;; #( 1947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1948 *) { eval $ac_var=; unset $ac_var;} ;; 1949 esac ;; 1950 esac 1951 done 1952 (set) 2>&1 | 1953 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1954 *${as_nl}ac_space=\ *) 1955 sed -n \ 1956 "s/'\''/'\''\\\\'\'''\''/g; 1957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1958 ;; #( 1959 *) 1960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1961 ;; 1962 esac | 1963 sort 1964) 1965 echo 1966 1967 printf "%s\n" "## ----------------- ## 1968## Output variables. ## 1969## ----------------- ##" 1970 echo 1971 for ac_var in $ac_subst_vars 1972 do 1973 eval ac_val=\$$ac_var 1974 case $ac_val in 1975 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1976 esac 1977 printf "%s\n" "$ac_var='\''$ac_val'\''" 1978 done | sort 1979 echo 1980 1981 if test -n "$ac_subst_files"; then 1982 printf "%s\n" "## ------------------- ## 1983## File substitutions. ## 1984## ------------------- ##" 1985 echo 1986 for ac_var in $ac_subst_files 1987 do 1988 eval ac_val=\$$ac_var 1989 case $ac_val in 1990 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1991 esac 1992 printf "%s\n" "$ac_var='\''$ac_val'\''" 1993 done | sort 1994 echo 1995 fi 1996 1997 if test -s confdefs.h; then 1998 printf "%s\n" "## ----------- ## 1999## confdefs.h. ## 2000## ----------- ##" 2001 echo 2002 cat confdefs.h 2003 echo 2004 fi 2005 test "$ac_signal" != 0 && 2006 printf "%s\n" "$as_me: caught signal $ac_signal" 2007 printf "%s\n" "$as_me: exit $exit_status" 2008 } >&5 2009 rm -f core *.core core.conftest.* && 2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2011 exit $exit_status 2012' 0 2013for ac_signal in 1 2 13 15; do 2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2015done 2016ac_signal=0 2017 2018# confdefs.h avoids OS command line length limits that DEFS can exceed. 2019rm -f -r conftest* confdefs.h 2020 2021printf "%s\n" "/* confdefs.h */" > confdefs.h 2022 2023# Predefined preprocessor variables. 2024 2025printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2026 2027printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2028 2029printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2030 2031printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2032 2033printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2034 2035printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2036 2037 2038# Let the site file select an alternate cache file if it wants to. 2039# Prefer an explicitly selected file to automatically selected ones. 2040if test -n "$CONFIG_SITE"; then 2041 ac_site_files="$CONFIG_SITE" 2042elif test "x$prefix" != xNONE; then 2043 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2044else 2045 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2046fi 2047 2048for ac_site_file in $ac_site_files 2049do 2050 case $ac_site_file in #( 2051 */*) : 2052 ;; #( 2053 *) : 2054 ac_site_file=./$ac_site_file ;; 2055esac 2056 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2058printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2059 sed 's/^/| /' "$ac_site_file" >&5 2060 . "$ac_site_file" \ 2061 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2062printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2063as_fn_error $? "failed to load site script $ac_site_file 2064See \`config.log' for more details" "$LINENO" 5; } 2065 fi 2066done 2067 2068if test -r "$cache_file"; then 2069 # Some versions of bash will fail to source /dev/null (special files 2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2073printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2074 case $cache_file in 2075 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2076 *) . "./$cache_file";; 2077 esac 2078 fi 2079else 2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2081printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2082 >$cache_file 2083fi 2084 2085# Test code for whether the C compiler supports C89 (global declarations) 2086ac_c_conftest_c89_globals=' 2087/* Does the compiler advertise C89 conformance? 2088 Do not test the value of __STDC__, because some compilers set it to 0 2089 while being otherwise adequately conformant. */ 2090#if !defined __STDC__ 2091# error "Compiler does not advertise C89 conformance" 2092#endif 2093 2094#include <stddef.h> 2095#include <stdarg.h> 2096struct stat; 2097/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2098struct buf { int x; }; 2099struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2100static char *e (p, i) 2101 char **p; 2102 int i; 2103{ 2104 return p[i]; 2105} 2106static char *f (char * (*g) (char **, int), char **p, ...) 2107{ 2108 char *s; 2109 va_list v; 2110 va_start (v,p); 2111 s = g (p, va_arg (v,int)); 2112 va_end (v); 2113 return s; 2114} 2115 2116/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2117 function prototypes and stuff, but not \xHH hex character constants. 2118 These do not provoke an error unfortunately, instead are silently treated 2119 as an "x". The following induces an error, until -std is added to get 2120 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2121 array size at least. It is necessary to write \x00 == 0 to get something 2122 that is true only with -std. */ 2123int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2124 2125/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2126 inside strings and character constants. */ 2127#define FOO(x) '\''x'\'' 2128int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2129 2130int test (int i, double x); 2131struct s1 {int (*f) (int a);}; 2132struct s2 {int (*f) (double a);}; 2133int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2134 int, int);' 2135 2136# Test code for whether the C compiler supports C89 (body of main). 2137ac_c_conftest_c89_main=' 2138ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2139' 2140 2141# Test code for whether the C compiler supports C99 (global declarations) 2142ac_c_conftest_c99_globals=' 2143// Does the compiler advertise C99 conformance? 2144#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2145# error "Compiler does not advertise C99 conformance" 2146#endif 2147 2148#include <stdbool.h> 2149extern int puts (const char *); 2150extern int printf (const char *, ...); 2151extern int dprintf (int, const char *, ...); 2152extern void *malloc (size_t); 2153 2154// Check varargs macros. These examples are taken from C99 6.10.3.5. 2155// dprintf is used instead of fprintf to avoid needing to declare 2156// FILE and stderr. 2157#define debug(...) dprintf (2, __VA_ARGS__) 2158#define showlist(...) puts (#__VA_ARGS__) 2159#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2160static void 2161test_varargs_macros (void) 2162{ 2163 int x = 1234; 2164 int y = 5678; 2165 debug ("Flag"); 2166 debug ("X = %d\n", x); 2167 showlist (The first, second, and third items.); 2168 report (x>y, "x is %d but y is %d", x, y); 2169} 2170 2171// Check long long types. 2172#define BIG64 18446744073709551615ull 2173#define BIG32 4294967295ul 2174#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2175#if !BIG_OK 2176 #error "your preprocessor is broken" 2177#endif 2178#if BIG_OK 2179#else 2180 #error "your preprocessor is broken" 2181#endif 2182static long long int bignum = -9223372036854775807LL; 2183static unsigned long long int ubignum = BIG64; 2184 2185struct incomplete_array 2186{ 2187 int datasize; 2188 double data[]; 2189}; 2190 2191struct named_init { 2192 int number; 2193 const wchar_t *name; 2194 double average; 2195}; 2196 2197typedef const char *ccp; 2198 2199static inline int 2200test_restrict (ccp restrict text) 2201{ 2202 // See if C++-style comments work. 2203 // Iterate through items via the restricted pointer. 2204 // Also check for declarations in for loops. 2205 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2206 continue; 2207 return 0; 2208} 2209 2210// Check varargs and va_copy. 2211static bool 2212test_varargs (const char *format, ...) 2213{ 2214 va_list args; 2215 va_start (args, format); 2216 va_list args_copy; 2217 va_copy (args_copy, args); 2218 2219 const char *str = ""; 2220 int number = 0; 2221 float fnumber = 0; 2222 2223 while (*format) 2224 { 2225 switch (*format++) 2226 { 2227 case '\''s'\'': // string 2228 str = va_arg (args_copy, const char *); 2229 break; 2230 case '\''d'\'': // int 2231 number = va_arg (args_copy, int); 2232 break; 2233 case '\''f'\'': // float 2234 fnumber = va_arg (args_copy, double); 2235 break; 2236 default: 2237 break; 2238 } 2239 } 2240 va_end (args_copy); 2241 va_end (args); 2242 2243 return *str && number && fnumber; 2244} 2245' 2246 2247# Test code for whether the C compiler supports C99 (body of main). 2248ac_c_conftest_c99_main=' 2249 // Check bool. 2250 _Bool success = false; 2251 success |= (argc != 0); 2252 2253 // Check restrict. 2254 if (test_restrict ("String literal") == 0) 2255 success = true; 2256 char *restrict newvar = "Another string"; 2257 2258 // Check varargs. 2259 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2260 test_varargs_macros (); 2261 2262 // Check flexible array members. 2263 struct incomplete_array *ia = 2264 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2265 ia->datasize = 10; 2266 for (int i = 0; i < ia->datasize; ++i) 2267 ia->data[i] = i * 1.234; 2268 2269 // Check named initializers. 2270 struct named_init ni = { 2271 .number = 34, 2272 .name = L"Test wide string", 2273 .average = 543.34343, 2274 }; 2275 2276 ni.number = 58; 2277 2278 int dynamic_array[ni.number]; 2279 dynamic_array[0] = argv[0][0]; 2280 dynamic_array[ni.number - 1] = 543; 2281 2282 // work around unused variable warnings 2283 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2284 || dynamic_array[ni.number - 1] != 543); 2285' 2286 2287# Test code for whether the C compiler supports C11 (global declarations) 2288ac_c_conftest_c11_globals=' 2289// Does the compiler advertise C11 conformance? 2290#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2291# error "Compiler does not advertise C11 conformance" 2292#endif 2293 2294// Check _Alignas. 2295char _Alignas (double) aligned_as_double; 2296char _Alignas (0) no_special_alignment; 2297extern char aligned_as_int; 2298char _Alignas (0) _Alignas (int) aligned_as_int; 2299 2300// Check _Alignof. 2301enum 2302{ 2303 int_alignment = _Alignof (int), 2304 int_array_alignment = _Alignof (int[100]), 2305 char_alignment = _Alignof (char) 2306}; 2307_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2308 2309// Check _Noreturn. 2310int _Noreturn does_not_return (void) { for (;;) continue; } 2311 2312// Check _Static_assert. 2313struct test_static_assert 2314{ 2315 int x; 2316 _Static_assert (sizeof (int) <= sizeof (long int), 2317 "_Static_assert does not work in struct"); 2318 long int y; 2319}; 2320 2321// Check UTF-8 literals. 2322#define u8 syntax error! 2323char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2324 2325// Check duplicate typedefs. 2326typedef long *long_ptr; 2327typedef long int *long_ptr; 2328typedef long_ptr long_ptr; 2329 2330// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2331struct anonymous 2332{ 2333 union { 2334 struct { int i; int j; }; 2335 struct { int k; long int l; } w; 2336 }; 2337 int m; 2338} v1; 2339' 2340 2341# Test code for whether the C compiler supports C11 (body of main). 2342ac_c_conftest_c11_main=' 2343 _Static_assert ((offsetof (struct anonymous, i) 2344 == offsetof (struct anonymous, w.k)), 2345 "Anonymous union alignment botch"); 2346 v1.i = 2; 2347 v1.w.k = 5; 2348 ok |= v1.i != 5; 2349' 2350 2351# Test code for whether the C compiler supports C11 (complete). 2352ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2353${ac_c_conftest_c99_globals} 2354${ac_c_conftest_c11_globals} 2355 2356int 2357main (int argc, char **argv) 2358{ 2359 int ok = 0; 2360 ${ac_c_conftest_c89_main} 2361 ${ac_c_conftest_c99_main} 2362 ${ac_c_conftest_c11_main} 2363 return ok; 2364} 2365" 2366 2367# Test code for whether the C compiler supports C99 (complete). 2368ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2369${ac_c_conftest_c99_globals} 2370 2371int 2372main (int argc, char **argv) 2373{ 2374 int ok = 0; 2375 ${ac_c_conftest_c89_main} 2376 ${ac_c_conftest_c99_main} 2377 return ok; 2378} 2379" 2380 2381# Test code for whether the C compiler supports C89 (complete). 2382ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2383 2384int 2385main (int argc, char **argv) 2386{ 2387 int ok = 0; 2388 ${ac_c_conftest_c89_main} 2389 return ok; 2390} 2391" 2392 2393as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2394as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2395as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2396as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2397as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2398as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2399as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2400as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2401as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2402 2403# Auxiliary files required by this configure script. 2404ac_aux_files="config.guess config.sub compile missing install-sh" 2405 2406# Locations in which to look for auxiliary files. 2407ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2408 2409# Search for a directory containing all of the required auxiliary files, 2410# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2411# If we don't find one directory that contains all the files we need, 2412# we report the set of missing files from the *first* directory in 2413# $ac_aux_dir_candidates and give up. 2414ac_missing_aux_files="" 2415ac_first_candidate=: 2416printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418as_found=false 2419for as_dir in $ac_aux_dir_candidates 2420do 2421 IFS=$as_save_IFS 2422 case $as_dir in #((( 2423 '') as_dir=./ ;; 2424 */) ;; 2425 *) as_dir=$as_dir/ ;; 2426 esac 2427 as_found=: 2428 2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2430 ac_aux_dir_found=yes 2431 ac_install_sh= 2432 for ac_aux in $ac_aux_files 2433 do 2434 # As a special case, if "install-sh" is required, that requirement 2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2436 # and $ac_install_sh is set appropriately for whichever one is found. 2437 if test x"$ac_aux" = x"install-sh" 2438 then 2439 if test -f "${as_dir}install-sh"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2441 ac_install_sh="${as_dir}install-sh -c" 2442 elif test -f "${as_dir}install.sh"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2444 ac_install_sh="${as_dir}install.sh -c" 2445 elif test -f "${as_dir}shtool"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2447 ac_install_sh="${as_dir}shtool install -c" 2448 else 2449 ac_aux_dir_found=no 2450 if $ac_first_candidate; then 2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2452 else 2453 break 2454 fi 2455 fi 2456 else 2457 if test -f "${as_dir}${ac_aux}"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2459 else 2460 ac_aux_dir_found=no 2461 if $ac_first_candidate; then 2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2463 else 2464 break 2465 fi 2466 fi 2467 fi 2468 done 2469 if test "$ac_aux_dir_found" = yes; then 2470 ac_aux_dir="$as_dir" 2471 break 2472 fi 2473 ac_first_candidate=false 2474 2475 as_found=false 2476done 2477IFS=$as_save_IFS 2478if $as_found 2479then : 2480 2481else $as_nop 2482 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2483fi 2484 2485 2486# These three variables are undocumented and unsupported, 2487# and are intended to be withdrawn in a future Autoconf release. 2488# They can cause serious problems if a builder's source tree is in a directory 2489# whose full name contains unusual characters. 2490if test -f "${ac_aux_dir}config.guess"; then 2491 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2492fi 2493if test -f "${ac_aux_dir}config.sub"; then 2494 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2495fi 2496if test -f "$ac_aux_dir/configure"; then 2497 ac_configure="$SHELL ${ac_aux_dir}configure" 2498fi 2499 2500# Check that the precious variables saved in the cache have kept the same 2501# value. 2502ac_cache_corrupted=false 2503for ac_var in $ac_precious_vars; do 2504 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2505 eval ac_new_set=\$ac_env_${ac_var}_set 2506 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2507 eval ac_new_val=\$ac_env_${ac_var}_value 2508 case $ac_old_set,$ac_new_set in 2509 set,) 2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2511printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2512 ac_cache_corrupted=: ;; 2513 ,set) 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2515printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2516 ac_cache_corrupted=: ;; 2517 ,);; 2518 *) 2519 if test "x$ac_old_val" != "x$ac_new_val"; then 2520 # differences in whitespace do not lead to failure. 2521 ac_old_val_w=`echo x $ac_old_val` 2522 ac_new_val_w=`echo x $ac_new_val` 2523 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2525printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2526 ac_cache_corrupted=: 2527 else 2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2529printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2530 eval $ac_var=\$ac_old_val 2531 fi 2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2533printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2535printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2536 fi;; 2537 esac 2538 # Pass precious variables to config.status. 2539 if test "$ac_new_set" = set; then 2540 case $ac_new_val in 2541 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2542 *) ac_arg=$ac_var=$ac_new_val ;; 2543 esac 2544 case " $ac_configure_args " in 2545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2546 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2547 esac 2548 fi 2549done 2550if $ac_cache_corrupted; then 2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2552printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2554printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2555 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2556 and start over" "$LINENO" 5 2557fi 2558## -------------------- ## 2559## Main body of script. ## 2560## -------------------- ## 2561 2562ac_ext=c 2563ac_cpp='$CPP $CPPFLAGS' 2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2566ac_compiler_gnu=$ac_cv_c_compiler_gnu 2567 2568 2569 2570ac_config_headers="$ac_config_headers config.h" 2571 2572 2573# Initialize Automake 2574am__api_version='1.16' 2575 2576 2577 2578 # Find a good install program. We prefer a C program (faster), 2579# so one script is as good as another. But avoid the broken or 2580# incompatible versions: 2581# SysV /etc/install, /usr/sbin/install 2582# SunOS /usr/etc/install 2583# IRIX /sbin/install 2584# AIX /bin/install 2585# AmigaOS /C/install, which installs bootblocks on floppy discs 2586# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2587# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2588# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2589# OS/2's system install, which has a completely different semantic 2590# ./install, which can be erroneously created by make from ./install.sh. 2591# Reject install programs that cannot install multiple files. 2592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2593printf %s "checking for a BSD-compatible install... " >&6; } 2594if test -z "$INSTALL"; then 2595if test ${ac_cv_path_install+y} 2596then : 2597 printf %s "(cached) " >&6 2598else $as_nop 2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600for as_dir in $PATH 2601do 2602 IFS=$as_save_IFS 2603 case $as_dir in #((( 2604 '') as_dir=./ ;; 2605 */) ;; 2606 *) as_dir=$as_dir/ ;; 2607 esac 2608 # Account for fact that we put trailing slashes in our PATH walk. 2609case $as_dir in #(( 2610 ./ | /[cC]/* | \ 2611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2613 /usr/ucb/* ) ;; 2614 *) 2615 # OSF1 and SCO ODT 3.0 have their own names for install. 2616 # Don't use installbsd from OSF since it installs stuff as root 2617 # by default. 2618 for ac_prog in ginstall scoinst install; do 2619 for ac_exec_ext in '' $ac_executable_extensions; do 2620 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2621 if test $ac_prog = install && 2622 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2623 # AIX install. It has an incompatible calling convention. 2624 : 2625 elif test $ac_prog = install && 2626 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2627 # program-specific install script used by HP pwplus--don't use. 2628 : 2629 else 2630 rm -rf conftest.one conftest.two conftest.dir 2631 echo one > conftest.one 2632 echo two > conftest.two 2633 mkdir conftest.dir 2634 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2635 test -s conftest.one && test -s conftest.two && 2636 test -s conftest.dir/conftest.one && 2637 test -s conftest.dir/conftest.two 2638 then 2639 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2640 break 3 2641 fi 2642 fi 2643 fi 2644 done 2645 done 2646 ;; 2647esac 2648 2649 done 2650IFS=$as_save_IFS 2651 2652rm -rf conftest.one conftest.two conftest.dir 2653 2654fi 2655 if test ${ac_cv_path_install+y}; then 2656 INSTALL=$ac_cv_path_install 2657 else 2658 # As a last resort, use the slow shell script. Don't cache a 2659 # value for INSTALL within a source directory, because that will 2660 # break other packages using the cache if that directory is 2661 # removed, or if the value is a relative name. 2662 INSTALL=$ac_install_sh 2663 fi 2664fi 2665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2666printf "%s\n" "$INSTALL" >&6; } 2667 2668# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2669# It thinks the first close brace ends the variable substitution. 2670test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2671 2672test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2673 2674test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2675 2676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2677printf %s "checking whether build environment is sane... " >&6; } 2678# Reject unsafe characters in $srcdir or the absolute working directory 2679# name. Accept space and tab only in the latter. 2680am_lf=' 2681' 2682case `pwd` in 2683 *[\\\"\#\$\&\'\`$am_lf]*) 2684 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2685esac 2686case $srcdir in 2687 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2688 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2689esac 2690 2691# Do 'set' in a subshell so we don't clobber the current shell's 2692# arguments. Must try -L first in case configure is actually a 2693# symlink; some systems play weird games with the mod time of symlinks 2694# (eg FreeBSD returns the mod time of the symlink's containing 2695# directory). 2696if ( 2697 am_has_slept=no 2698 for am_try in 1 2; do 2699 echo "timestamp, slept: $am_has_slept" > conftest.file 2700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2701 if test "$*" = "X"; then 2702 # -L didn't work. 2703 set X `ls -t "$srcdir/configure" conftest.file` 2704 fi 2705 if test "$*" != "X $srcdir/configure conftest.file" \ 2706 && test "$*" != "X conftest.file $srcdir/configure"; then 2707 2708 # If neither matched, then we have a broken ls. This can happen 2709 # if, for instance, CONFIG_SHELL is bash and it inherits a 2710 # broken ls alias from the environment. This has actually 2711 # happened. Such a system could not be considered "sane". 2712 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2713 alias in your environment" "$LINENO" 5 2714 fi 2715 if test "$2" = conftest.file || test $am_try -eq 2; then 2716 break 2717 fi 2718 # Just in case. 2719 sleep 1 2720 am_has_slept=yes 2721 done 2722 test "$2" = conftest.file 2723 ) 2724then 2725 # Ok. 2726 : 2727else 2728 as_fn_error $? "newly created file is older than distributed files! 2729Check your system clock" "$LINENO" 5 2730fi 2731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2732printf "%s\n" "yes" >&6; } 2733# If we didn't sleep, we still need to ensure time stamps of config.status and 2734# generated files are strictly newer. 2735am_sleep_pid= 2736if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2737 ( sleep 1 ) & 2738 am_sleep_pid=$! 2739fi 2740 2741rm -f conftest.file 2742 2743test "$program_prefix" != NONE && 2744 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2745# Use a double $ so make ignores it. 2746test "$program_suffix" != NONE && 2747 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2748# Double any \ or $. 2749# By default was `s,x,x', remove it if useless. 2750ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2751program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2752 2753 2754# Expand $ac_aux_dir to an absolute path. 2755am_aux_dir=`cd "$ac_aux_dir" && pwd` 2756 2757 2758 if test x"${MISSING+set}" != xset; then 2759 MISSING="\${SHELL} '$am_aux_dir/missing'" 2760fi 2761# Use eval to expand $SHELL 2762if eval "$MISSING --is-lightweight"; then 2763 am_missing_run="$MISSING " 2764else 2765 am_missing_run= 2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2767printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2768fi 2769 2770if test x"${install_sh+set}" != xset; then 2771 case $am_aux_dir in 2772 *\ * | *\ *) 2773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2774 *) 2775 install_sh="\${SHELL} $am_aux_dir/install-sh" 2776 esac 2777fi 2778 2779# Installed binaries are usually stripped using 'strip' when the user 2780# run "make install-strip". However 'strip' might not be the right 2781# tool to use in cross-compilation environments, therefore Automake 2782# will honor the 'STRIP' environment variable to overrule this program. 2783if test "$cross_compiling" != no; then 2784 if test -n "$ac_tool_prefix"; then 2785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2786set dummy ${ac_tool_prefix}strip; ac_word=$2 2787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788printf %s "checking for $ac_word... " >&6; } 2789if test ${ac_cv_prog_STRIP+y} 2790then : 2791 printf %s "(cached) " >&6 2792else $as_nop 2793 if test -n "$STRIP"; then 2794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 case $as_dir in #((( 2801 '') as_dir=./ ;; 2802 */) ;; 2803 *) as_dir=$as_dir/ ;; 2804 esac 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2807 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817STRIP=$ac_cv_prog_STRIP 2818if test -n "$STRIP"; then 2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2820printf "%s\n" "$STRIP" >&6; } 2821else 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823printf "%s\n" "no" >&6; } 2824fi 2825 2826 2827fi 2828if test -z "$ac_cv_prog_STRIP"; then 2829 ac_ct_STRIP=$STRIP 2830 # Extract the first word of "strip", so it can be a program name with args. 2831set dummy strip; ac_word=$2 2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833printf %s "checking for $ac_word... " >&6; } 2834if test ${ac_cv_prog_ac_ct_STRIP+y} 2835then : 2836 printf %s "(cached) " >&6 2837else $as_nop 2838 if test -n "$ac_ct_STRIP"; then 2839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2840else 2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842for as_dir in $PATH 2843do 2844 IFS=$as_save_IFS 2845 case $as_dir in #((( 2846 '') as_dir=./ ;; 2847 */) ;; 2848 *) as_dir=$as_dir/ ;; 2849 esac 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2852 ac_cv_prog_ac_ct_STRIP="strip" 2853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857 done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2863if test -n "$ac_ct_STRIP"; then 2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2865printf "%s\n" "$ac_ct_STRIP" >&6; } 2866else 2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868printf "%s\n" "no" >&6; } 2869fi 2870 2871 if test "x$ac_ct_STRIP" = x; then 2872 STRIP=":" 2873 else 2874 case $cross_compiling:$ac_tool_warned in 2875yes:) 2876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2877printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2878ac_tool_warned=yes ;; 2879esac 2880 STRIP=$ac_ct_STRIP 2881 fi 2882else 2883 STRIP="$ac_cv_prog_STRIP" 2884fi 2885 2886fi 2887INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2888 2889 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2891printf %s "checking for a race-free mkdir -p... " >&6; } 2892if test -z "$MKDIR_P"; then 2893 if test ${ac_cv_path_mkdir+y} 2894then : 2895 printf %s "(cached) " >&6 2896else $as_nop 2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2899do 2900 IFS=$as_save_IFS 2901 case $as_dir in #((( 2902 '') as_dir=./ ;; 2903 */) ;; 2904 *) as_dir=$as_dir/ ;; 2905 esac 2906 for ac_prog in mkdir gmkdir; do 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2909 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2910 'mkdir ('*'coreutils) '* | \ 2911 'BusyBox '* | \ 2912 'mkdir (fileutils) '4.1*) 2913 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2914 break 3;; 2915 esac 2916 done 2917 done 2918 done 2919IFS=$as_save_IFS 2920 2921fi 2922 2923 test -d ./--version && rmdir ./--version 2924 if test ${ac_cv_path_mkdir+y}; then 2925 MKDIR_P="$ac_cv_path_mkdir -p" 2926 else 2927 # As a last resort, use the slow shell script. Don't cache a 2928 # value for MKDIR_P within a source directory, because that will 2929 # break other packages using the cache if that directory is 2930 # removed, or if the value is a relative name. 2931 MKDIR_P="$ac_install_sh -d" 2932 fi 2933fi 2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2935printf "%s\n" "$MKDIR_P" >&6; } 2936 2937for ac_prog in gawk mawk nawk awk 2938do 2939 # Extract the first word of "$ac_prog", so it can be a program name with args. 2940set dummy $ac_prog; ac_word=$2 2941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942printf %s "checking for $ac_word... " >&6; } 2943if test ${ac_cv_prog_AWK+y} 2944then : 2945 printf %s "(cached) " >&6 2946else $as_nop 2947 if test -n "$AWK"; then 2948 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 case $as_dir in #((( 2955 '') as_dir=./ ;; 2956 */) ;; 2957 *) as_dir=$as_dir/ ;; 2958 esac 2959 for ac_exec_ext in '' $ac_executable_extensions; do 2960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2961 ac_cv_prog_AWK="$ac_prog" 2962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2963 break 2 2964 fi 2965done 2966 done 2967IFS=$as_save_IFS 2968 2969fi 2970fi 2971AWK=$ac_cv_prog_AWK 2972if test -n "$AWK"; then 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2974printf "%s\n" "$AWK" >&6; } 2975else 2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2977printf "%s\n" "no" >&6; } 2978fi 2979 2980 2981 test -n "$AWK" && break 2982done 2983 2984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2985printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2986set x ${MAKE-make} 2987ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2988if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2989then : 2990 printf %s "(cached) " >&6 2991else $as_nop 2992 cat >conftest.make <<\_ACEOF 2993SHELL = /bin/sh 2994all: 2995 @echo '@@@%%%=$(MAKE)=@@@%%%' 2996_ACEOF 2997# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2998case `${MAKE-make} -f conftest.make 2>/dev/null` in 2999 *@@@%%%=?*=@@@%%%*) 3000 eval ac_cv_prog_make_${ac_make}_set=yes;; 3001 *) 3002 eval ac_cv_prog_make_${ac_make}_set=no;; 3003esac 3004rm -f conftest.make 3005fi 3006if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3008printf "%s\n" "yes" >&6; } 3009 SET_MAKE= 3010else 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3012printf "%s\n" "no" >&6; } 3013 SET_MAKE="MAKE=${MAKE-make}" 3014fi 3015 3016rm -rf .tst 2>/dev/null 3017mkdir .tst 2>/dev/null 3018if test -d .tst; then 3019 am__leading_dot=. 3020else 3021 am__leading_dot=_ 3022fi 3023rmdir .tst 2>/dev/null 3024 3025# Check whether --enable-silent-rules was given. 3026if test ${enable_silent_rules+y} 3027then : 3028 enableval=$enable_silent_rules; 3029fi 3030 3031case $enable_silent_rules in # ((( 3032 yes) AM_DEFAULT_VERBOSITY=0;; 3033 no) AM_DEFAULT_VERBOSITY=1;; 3034 *) AM_DEFAULT_VERBOSITY=1;; 3035esac 3036am_make=${MAKE-make} 3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3038printf %s "checking whether $am_make supports nested variables... " >&6; } 3039if test ${am_cv_make_support_nested_variables+y} 3040then : 3041 printf %s "(cached) " >&6 3042else $as_nop 3043 if printf "%s\n" 'TRUE=$(BAR$(V)) 3044BAR0=false 3045BAR1=true 3046V=1 3047am__doit: 3048 @$(TRUE) 3049.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3050 am_cv_make_support_nested_variables=yes 3051else 3052 am_cv_make_support_nested_variables=no 3053fi 3054fi 3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3056printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3057if test $am_cv_make_support_nested_variables = yes; then 3058 AM_V='$(V)' 3059 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3060else 3061 AM_V=$AM_DEFAULT_VERBOSITY 3062 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3063fi 3064AM_BACKSLASH='\' 3065 3066if test "`cd $srcdir && pwd`" != "`pwd`"; then 3067 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3068 # is not polluted with repeated "-I." 3069 am__isrc=' -I$(srcdir)' 3070 # test to see if srcdir already configured 3071 if test -f $srcdir/config.status; then 3072 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3073 fi 3074fi 3075 3076# test whether we have cygpath 3077if test -z "$CYGPATH_W"; then 3078 if (cygpath --version) >/dev/null 2>/dev/null; then 3079 CYGPATH_W='cygpath -w' 3080 else 3081 CYGPATH_W=echo 3082 fi 3083fi 3084 3085 3086# Define the identity of the package. 3087 PACKAGE='xkbcomp' 3088 VERSION='1.4.6' 3089 3090 3091printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3092 3093 3094printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3095 3096# Some tools Automake needs. 3097 3098ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3099 3100 3101AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3102 3103 3104AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3105 3106 3107AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3108 3109 3110MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3111 3112# For better backward compatibility. To be removed once Automake 1.9.x 3113# dies out for good. For more background, see: 3114# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3115# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3116mkdir_p='$(MKDIR_P)' 3117 3118# We need awk for the "check" target (and possibly the TAP driver). The 3119# system "awk" is bad on some platforms. 3120# Always define AMTAR for backward compatibility. Yes, it's still used 3121# in the wild :-( We should find a proper way to deprecate it ... 3122AMTAR='$${TAR-tar}' 3123 3124 3125# We'll loop over all known methods to create a tar archive until one works. 3126_am_tools='gnutar pax cpio none' 3127 3128am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3129 3130 3131 3132 3133 3134# Variables for tags utilities; see am/tags.am 3135if test -z "$CTAGS"; then 3136 CTAGS=ctags 3137fi 3138 3139if test -z "$ETAGS"; then 3140 ETAGS=etags 3141fi 3142 3143if test -z "$CSCOPE"; then 3144 CSCOPE=cscope 3145fi 3146 3147 3148 3149# POSIX will say in a future version that running "rm -f" with no argument 3150# is OK; and we want to be able to make that assumption in our Makefile 3151# recipes. So use an aggressive probe to check that the usage we want is 3152# actually supported "in the wild" to an acceptable degree. 3153# See automake bug#10828. 3154# To make any issue more visible, cause the running configure to be aborted 3155# by default if the 'rm' program in use doesn't match our expectations; the 3156# user can still override this though. 3157if rm -f && rm -fr && rm -rf; then : OK; else 3158 cat >&2 <<'END' 3159Oops! 3160 3161Your 'rm' program seems unable to run without file operands specified 3162on the command line, even when the '-f' option is present. This is contrary 3163to the behaviour of most rm programs out there, and not conforming with 3164the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3165 3166Please tell bug-automake@gnu.org about your system, including the value 3167of your $PATH and any error possibly output before this message. This 3168can help us improve future automake versions. 3169 3170END 3171 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3172 echo 'Configuration will proceed anyway, since you have set the' >&2 3173 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3174 echo >&2 3175 else 3176 cat >&2 <<'END' 3177Aborting the configuration process, to ensure you take notice of the issue. 3178 3179You can download and install GNU coreutils to get an 'rm' implementation 3180that behaves properly: <https://www.gnu.org/software/coreutils/>. 3181 3182If you want to complete the configuration process using your problematic 3183'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3184to "yes", and re-run configure. 3185 3186END 3187 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3188 fi 3189fi 3190 3191 3192# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213DEPDIR="${am__leading_dot}deps" 3214 3215ac_config_commands="$ac_config_commands depfiles" 3216 3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3218printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3219cat > confinc.mk << 'END' 3220am__doit: 3221 @echo this is the am__doit target >confinc.out 3222.PHONY: am__doit 3223END 3224am__include="#" 3225am__quote= 3226# BSD make does it like this. 3227echo '.include "confinc.mk" # ignored' > confmf.BSD 3228# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3229echo 'include confinc.mk # ignored' > confmf.GNU 3230_am_result=no 3231for s in GNU BSD; do 3232 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3233 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3234 ac_status=$? 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); } 3237 case $?:`cat confinc.out 2>/dev/null` in #( 3238 '0:this is the am__doit target') : 3239 case $s in #( 3240 BSD) : 3241 am__include='.include' am__quote='"' ;; #( 3242 *) : 3243 am__include='include' am__quote='' ;; 3244esac ;; #( 3245 *) : 3246 ;; 3247esac 3248 if test "$am__include" != "#"; then 3249 _am_result="yes ($s style)" 3250 break 3251 fi 3252done 3253rm -f confinc.* confmf.* 3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3255printf "%s\n" "${_am_result}" >&6; } 3256 3257# Check whether --enable-dependency-tracking was given. 3258if test ${enable_dependency_tracking+y} 3259then : 3260 enableval=$enable_dependency_tracking; 3261fi 3262 3263if test "x$enable_dependency_tracking" != xno; then 3264 am_depcomp="$ac_aux_dir/depcomp" 3265 AMDEPBACKSLASH='\' 3266 am__nodep='_no' 3267fi 3268 if test "x$enable_dependency_tracking" != xno; then 3269 AMDEP_TRUE= 3270 AMDEP_FALSE='#' 3271else 3272 AMDEP_TRUE='#' 3273 AMDEP_FALSE= 3274fi 3275 3276 3277ac_ext=c 3278ac_cpp='$CPP $CPPFLAGS' 3279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3281ac_compiler_gnu=$ac_cv_c_compiler_gnu 3282if test -n "$ac_tool_prefix"; then 3283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3284set dummy ${ac_tool_prefix}gcc; ac_word=$2 3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286printf %s "checking for $ac_word... " >&6; } 3287if test ${ac_cv_prog_CC+y} 3288then : 3289 printf %s "(cached) " >&6 3290else $as_nop 3291 if test -n "$CC"; then 3292 ac_cv_prog_CC="$CC" # Let the user override the test. 3293else 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 case $as_dir in #((( 3299 '') as_dir=./ ;; 3300 */) ;; 3301 *) as_dir=$as_dir/ ;; 3302 esac 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3305 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309done 3310 done 3311IFS=$as_save_IFS 3312 3313fi 3314fi 3315CC=$ac_cv_prog_CC 3316if test -n "$CC"; then 3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3318printf "%s\n" "$CC" >&6; } 3319else 3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3321printf "%s\n" "no" >&6; } 3322fi 3323 3324 3325fi 3326if test -z "$ac_cv_prog_CC"; then 3327 ac_ct_CC=$CC 3328 # Extract the first word of "gcc", so it can be a program name with args. 3329set dummy gcc; ac_word=$2 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3331printf %s "checking for $ac_word... " >&6; } 3332if test ${ac_cv_prog_ac_ct_CC+y} 3333then : 3334 printf %s "(cached) " >&6 3335else $as_nop 3336 if test -n "$ac_ct_CC"; then 3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3338else 3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3340for as_dir in $PATH 3341do 3342 IFS=$as_save_IFS 3343 case $as_dir in #((( 3344 '') as_dir=./ ;; 3345 */) ;; 3346 *) as_dir=$as_dir/ ;; 3347 esac 3348 for ac_exec_ext in '' $ac_executable_extensions; do 3349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3350 ac_cv_prog_ac_ct_CC="gcc" 3351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3352 break 2 3353 fi 3354done 3355 done 3356IFS=$as_save_IFS 3357 3358fi 3359fi 3360ac_ct_CC=$ac_cv_prog_ac_ct_CC 3361if test -n "$ac_ct_CC"; then 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3363printf "%s\n" "$ac_ct_CC" >&6; } 3364else 3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366printf "%s\n" "no" >&6; } 3367fi 3368 3369 if test "x$ac_ct_CC" = x; then 3370 CC="" 3371 else 3372 case $cross_compiling:$ac_tool_warned in 3373yes:) 3374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3375printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3376ac_tool_warned=yes ;; 3377esac 3378 CC=$ac_ct_CC 3379 fi 3380else 3381 CC="$ac_cv_prog_CC" 3382fi 3383 3384if test -z "$CC"; then 3385 if test -n "$ac_tool_prefix"; then 3386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3387set dummy ${ac_tool_prefix}cc; ac_word=$2 3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389printf %s "checking for $ac_word... " >&6; } 3390if test ${ac_cv_prog_CC+y} 3391then : 3392 printf %s "(cached) " >&6 3393else $as_nop 3394 if test -n "$CC"; then 3395 ac_cv_prog_CC="$CC" # Let the user override the test. 3396else 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 case $as_dir in #((( 3402 '') as_dir=./ ;; 3403 */) ;; 3404 *) as_dir=$as_dir/ ;; 3405 esac 3406 for ac_exec_ext in '' $ac_executable_extensions; do 3407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3408 ac_cv_prog_CC="${ac_tool_prefix}cc" 3409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3410 break 2 3411 fi 3412done 3413 done 3414IFS=$as_save_IFS 3415 3416fi 3417fi 3418CC=$ac_cv_prog_CC 3419if test -n "$CC"; then 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3421printf "%s\n" "$CC" >&6; } 3422else 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424printf "%s\n" "no" >&6; } 3425fi 3426 3427 3428 fi 3429fi 3430if test -z "$CC"; then 3431 # Extract the first word of "cc", so it can be a program name with args. 3432set dummy cc; ac_word=$2 3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434printf %s "checking for $ac_word... " >&6; } 3435if test ${ac_cv_prog_CC+y} 3436then : 3437 printf %s "(cached) " >&6 3438else $as_nop 3439 if test -n "$CC"; then 3440 ac_cv_prog_CC="$CC" # Let the user override the test. 3441else 3442 ac_prog_rejected=no 3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3444for as_dir in $PATH 3445do 3446 IFS=$as_save_IFS 3447 case $as_dir in #((( 3448 '') as_dir=./ ;; 3449 */) ;; 3450 *) as_dir=$as_dir/ ;; 3451 esac 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3454 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3455 ac_prog_rejected=yes 3456 continue 3457 fi 3458 ac_cv_prog_CC="cc" 3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462done 3463 done 3464IFS=$as_save_IFS 3465 3466if test $ac_prog_rejected = yes; then 3467 # We found a bogon in the path, so make sure we never use it. 3468 set dummy $ac_cv_prog_CC 3469 shift 3470 if test $# != 0; then 3471 # We chose a different compiler from the bogus one. 3472 # However, it has the same basename, so the bogon will be chosen 3473 # first if we set CC to just the basename; use the full file name. 3474 shift 3475 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3476 fi 3477fi 3478fi 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483printf "%s\n" "$CC" >&6; } 3484else 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486printf "%s\n" "no" >&6; } 3487fi 3488 3489 3490fi 3491if test -z "$CC"; then 3492 if test -n "$ac_tool_prefix"; then 3493 for ac_prog in cl.exe 3494 do 3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3498printf %s "checking for $ac_word... " >&6; } 3499if test ${ac_cv_prog_CC+y} 3500then : 3501 printf %s "(cached) " >&6 3502else $as_nop 3503 if test -n "$CC"; then 3504 ac_cv_prog_CC="$CC" # Let the user override the test. 3505else 3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3507for as_dir in $PATH 3508do 3509 IFS=$as_save_IFS 3510 case $as_dir in #((( 3511 '') as_dir=./ ;; 3512 */) ;; 3513 *) as_dir=$as_dir/ ;; 3514 esac 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521done 3522 done 3523IFS=$as_save_IFS 3524 3525fi 3526fi 3527CC=$ac_cv_prog_CC 3528if test -n "$CC"; then 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3530printf "%s\n" "$CC" >&6; } 3531else 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533printf "%s\n" "no" >&6; } 3534fi 3535 3536 3537 test -n "$CC" && break 3538 done 3539fi 3540if test -z "$CC"; then 3541 ac_ct_CC=$CC 3542 for ac_prog in cl.exe 3543do 3544 # Extract the first word of "$ac_prog", so it can be a program name with args. 3545set dummy $ac_prog; ac_word=$2 3546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3547printf %s "checking for $ac_word... " >&6; } 3548if test ${ac_cv_prog_ac_ct_CC+y} 3549then : 3550 printf %s "(cached) " >&6 3551else $as_nop 3552 if test -n "$ac_ct_CC"; then 3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3554else 3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556for as_dir in $PATH 3557do 3558 IFS=$as_save_IFS 3559 case $as_dir in #((( 3560 '') as_dir=./ ;; 3561 */) ;; 3562 *) as_dir=$as_dir/ ;; 3563 esac 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3566 ac_cv_prog_ac_ct_CC="$ac_prog" 3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3568 break 2 3569 fi 3570done 3571 done 3572IFS=$as_save_IFS 3573 3574fi 3575fi 3576ac_ct_CC=$ac_cv_prog_ac_ct_CC 3577if test -n "$ac_ct_CC"; then 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3579printf "%s\n" "$ac_ct_CC" >&6; } 3580else 3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3582printf "%s\n" "no" >&6; } 3583fi 3584 3585 3586 test -n "$ac_ct_CC" && break 3587done 3588 3589 if test "x$ac_ct_CC" = x; then 3590 CC="" 3591 else 3592 case $cross_compiling:$ac_tool_warned in 3593yes:) 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3595printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3596ac_tool_warned=yes ;; 3597esac 3598 CC=$ac_ct_CC 3599 fi 3600fi 3601 3602fi 3603if test -z "$CC"; then 3604 if test -n "$ac_tool_prefix"; then 3605 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3606set dummy ${ac_tool_prefix}clang; ac_word=$2 3607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3608printf %s "checking for $ac_word... " >&6; } 3609if test ${ac_cv_prog_CC+y} 3610then : 3611 printf %s "(cached) " >&6 3612else $as_nop 3613 if test -n "$CC"; then 3614 ac_cv_prog_CC="$CC" # Let the user override the test. 3615else 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH 3618do 3619 IFS=$as_save_IFS 3620 case $as_dir in #((( 3621 '') as_dir=./ ;; 3622 */) ;; 3623 *) as_dir=$as_dir/ ;; 3624 esac 3625 for ac_exec_ext in '' $ac_executable_extensions; do 3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3627 ac_cv_prog_CC="${ac_tool_prefix}clang" 3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3629 break 2 3630 fi 3631done 3632 done 3633IFS=$as_save_IFS 3634 3635fi 3636fi 3637CC=$ac_cv_prog_CC 3638if test -n "$CC"; then 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3640printf "%s\n" "$CC" >&6; } 3641else 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3643printf "%s\n" "no" >&6; } 3644fi 3645 3646 3647fi 3648if test -z "$ac_cv_prog_CC"; then 3649 ac_ct_CC=$CC 3650 # Extract the first word of "clang", so it can be a program name with args. 3651set dummy clang; ac_word=$2 3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3653printf %s "checking for $ac_word... " >&6; } 3654if test ${ac_cv_prog_ac_ct_CC+y} 3655then : 3656 printf %s "(cached) " >&6 3657else $as_nop 3658 if test -n "$ac_ct_CC"; then 3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3660else 3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH 3663do 3664 IFS=$as_save_IFS 3665 case $as_dir in #((( 3666 '') as_dir=./ ;; 3667 */) ;; 3668 *) as_dir=$as_dir/ ;; 3669 esac 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3672 ac_cv_prog_ac_ct_CC="clang" 3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676done 3677 done 3678IFS=$as_save_IFS 3679 3680fi 3681fi 3682ac_ct_CC=$ac_cv_prog_ac_ct_CC 3683if test -n "$ac_ct_CC"; then 3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3685printf "%s\n" "$ac_ct_CC" >&6; } 3686else 3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688printf "%s\n" "no" >&6; } 3689fi 3690 3691 if test "x$ac_ct_CC" = x; then 3692 CC="" 3693 else 3694 case $cross_compiling:$ac_tool_warned in 3695yes:) 3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3698ac_tool_warned=yes ;; 3699esac 3700 CC=$ac_ct_CC 3701 fi 3702else 3703 CC="$ac_cv_prog_CC" 3704fi 3705 3706fi 3707 3708 3709test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3710printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3711as_fn_error $? "no acceptable C compiler found in \$PATH 3712See \`config.log' for more details" "$LINENO" 5; } 3713 3714# Provide some information about the compiler. 3715printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3716set X $ac_compile 3717ac_compiler=$2 3718for ac_option in --version -v -V -qversion -version; do 3719 { { ac_try="$ac_compiler $ac_option >&5" 3720case "(($ac_try" in 3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3722 *) ac_try_echo=$ac_try;; 3723esac 3724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3725printf "%s\n" "$ac_try_echo"; } >&5 3726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3727 ac_status=$? 3728 if test -s conftest.err; then 3729 sed '10a\ 3730... rest of stderr output deleted ... 3731 10q' conftest.err >conftest.er1 3732 cat conftest.er1 >&5 3733 fi 3734 rm -f conftest.er1 conftest.err 3735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3736 test $ac_status = 0; } 3737done 3738 3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741 3742int 3743main (void) 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750ac_clean_files_save=$ac_clean_files 3751ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3752# Try to create an executable without -o first, disregard a.out. 3753# It will help us diagnose broken compilers, and finding out an intuition 3754# of exeext. 3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3756printf %s "checking whether the C compiler works... " >&6; } 3757ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3758 3759# The possible output files: 3760ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3761 3762ac_rmfiles= 3763for ac_file in $ac_files 3764do 3765 case $ac_file in 3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3767 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3768 esac 3769done 3770rm -f $ac_rmfiles 3771 3772if { { ac_try="$ac_link_default" 3773case "(($ac_try" in 3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3775 *) ac_try_echo=$ac_try;; 3776esac 3777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3778printf "%s\n" "$ac_try_echo"; } >&5 3779 (eval "$ac_link_default") 2>&5 3780 ac_status=$? 3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3782 test $ac_status = 0; } 3783then : 3784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3786# in a Makefile. We should not override ac_cv_exeext if it was cached, 3787# so that the user can short-circuit this test for compilers unknown to 3788# Autoconf. 3789for ac_file in $ac_files '' 3790do 3791 test -f "$ac_file" || continue 3792 case $ac_file in 3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3794 ;; 3795 [ab].out ) 3796 # We found the default executable, but exeext='' is most 3797 # certainly right. 3798 break;; 3799 *.* ) 3800 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3801 then :; else 3802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3803 fi 3804 # We set ac_cv_exeext here because the later test for it is not 3805 # safe: cross compilers may not add the suffix if given an `-o' 3806 # argument, so we may need to know it at that point already. 3807 # Even if this section looks crufty: it has the advantage of 3808 # actually working. 3809 break;; 3810 * ) 3811 break;; 3812 esac 3813done 3814test "$ac_cv_exeext" = no && ac_cv_exeext= 3815 3816else $as_nop 3817 ac_file='' 3818fi 3819if test -z "$ac_file" 3820then : 3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3822printf "%s\n" "no" >&6; } 3823printf "%s\n" "$as_me: failed program was:" >&5 3824sed 's/^/| /' conftest.$ac_ext >&5 3825 3826{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3828as_fn_error 77 "C compiler cannot create executables 3829See \`config.log' for more details" "$LINENO" 5; } 3830else $as_nop 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3832printf "%s\n" "yes" >&6; } 3833fi 3834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3835printf %s "checking for C compiler default output file name... " >&6; } 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3837printf "%s\n" "$ac_file" >&6; } 3838ac_exeext=$ac_cv_exeext 3839 3840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3841ac_clean_files=$ac_clean_files_save 3842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3843printf %s "checking for suffix of executables... " >&6; } 3844if { { ac_try="$ac_link" 3845case "(($ac_try" in 3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3847 *) ac_try_echo=$ac_try;; 3848esac 3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3850printf "%s\n" "$ac_try_echo"; } >&5 3851 (eval "$ac_link") 2>&5 3852 ac_status=$? 3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3854 test $ac_status = 0; } 3855then : 3856 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3857# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3858# work properly (i.e., refer to `conftest.exe'), while it won't with 3859# `rm'. 3860for ac_file in conftest.exe conftest conftest.*; do 3861 test -f "$ac_file" || continue 3862 case $ac_file in 3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3865 break;; 3866 * ) break;; 3867 esac 3868done 3869else $as_nop 3870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3872as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3873See \`config.log' for more details" "$LINENO" 5; } 3874fi 3875rm -f conftest conftest$ac_cv_exeext 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3877printf "%s\n" "$ac_cv_exeext" >&6; } 3878 3879rm -f conftest.$ac_ext 3880EXEEXT=$ac_cv_exeext 3881ac_exeext=$EXEEXT 3882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883/* end confdefs.h. */ 3884#include <stdio.h> 3885int 3886main (void) 3887{ 3888FILE *f = fopen ("conftest.out", "w"); 3889 return ferror (f) || fclose (f) != 0; 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895ac_clean_files="$ac_clean_files conftest.out" 3896# Check that the compiler produces executables we can run. If not, either 3897# the compiler is broken, or we cross compile. 3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3899printf %s "checking whether we are cross compiling... " >&6; } 3900if test "$cross_compiling" != yes; then 3901 { { ac_try="$ac_link" 3902case "(($ac_try" in 3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3904 *) ac_try_echo=$ac_try;; 3905esac 3906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3907printf "%s\n" "$ac_try_echo"; } >&5 3908 (eval "$ac_link") 2>&5 3909 ac_status=$? 3910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3911 test $ac_status = 0; } 3912 if { ac_try='./conftest$ac_cv_exeext' 3913 { { case "(($ac_try" in 3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3915 *) ac_try_echo=$ac_try;; 3916esac 3917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3918printf "%s\n" "$ac_try_echo"; } >&5 3919 (eval "$ac_try") 2>&5 3920 ac_status=$? 3921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3922 test $ac_status = 0; }; }; then 3923 cross_compiling=no 3924 else 3925 if test "$cross_compiling" = maybe; then 3926 cross_compiling=yes 3927 else 3928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3929printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3930as_fn_error 77 "cannot run C compiled programs. 3931If you meant to cross compile, use \`--host'. 3932See \`config.log' for more details" "$LINENO" 5; } 3933 fi 3934 fi 3935fi 3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3937printf "%s\n" "$cross_compiling" >&6; } 3938 3939rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3940ac_clean_files=$ac_clean_files_save 3941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3942printf %s "checking for suffix of object files... " >&6; } 3943if test ${ac_cv_objext+y} 3944then : 3945 printf %s "(cached) " >&6 3946else $as_nop 3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3948/* end confdefs.h. */ 3949 3950int 3951main (void) 3952{ 3953 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958rm -f conftest.o conftest.obj 3959if { { ac_try="$ac_compile" 3960case "(($ac_try" in 3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3962 *) ac_try_echo=$ac_try;; 3963esac 3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3965printf "%s\n" "$ac_try_echo"; } >&5 3966 (eval "$ac_compile") 2>&5 3967 ac_status=$? 3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3969 test $ac_status = 0; } 3970then : 3971 for ac_file in conftest.o conftest.obj conftest.*; do 3972 test -f "$ac_file" || continue; 3973 case $ac_file in 3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3976 break;; 3977 esac 3978done 3979else $as_nop 3980 printf "%s\n" "$as_me: failed program was:" >&5 3981sed 's/^/| /' conftest.$ac_ext >&5 3982 3983{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3984printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3985as_fn_error $? "cannot compute suffix of object files: cannot compile 3986See \`config.log' for more details" "$LINENO" 5; } 3987fi 3988rm -f conftest.$ac_cv_objext conftest.$ac_ext 3989fi 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3991printf "%s\n" "$ac_cv_objext" >&6; } 3992OBJEXT=$ac_cv_objext 3993ac_objext=$OBJEXT 3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3995printf %s "checking whether the compiler supports GNU C... " >&6; } 3996if test ${ac_cv_c_compiler_gnu+y} 3997then : 3998 printf %s "(cached) " >&6 3999else $as_nop 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003int 4004main (void) 4005{ 4006#ifndef __GNUC__ 4007 choke me 4008#endif 4009 4010 ; 4011 return 0; 4012} 4013_ACEOF 4014if ac_fn_c_try_compile "$LINENO" 4015then : 4016 ac_compiler_gnu=yes 4017else $as_nop 4018 ac_compiler_gnu=no 4019fi 4020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4021ac_cv_c_compiler_gnu=$ac_compiler_gnu 4022 4023fi 4024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4025printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4026ac_compiler_gnu=$ac_cv_c_compiler_gnu 4027 4028if test $ac_compiler_gnu = yes; then 4029 GCC=yes 4030else 4031 GCC= 4032fi 4033ac_test_CFLAGS=${CFLAGS+y} 4034ac_save_CFLAGS=$CFLAGS 4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4036printf %s "checking whether $CC accepts -g... " >&6; } 4037if test ${ac_cv_prog_cc_g+y} 4038then : 4039 printf %s "(cached) " >&6 4040else $as_nop 4041 ac_save_c_werror_flag=$ac_c_werror_flag 4042 ac_c_werror_flag=yes 4043 ac_cv_prog_cc_g=no 4044 CFLAGS="-g" 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047 4048int 4049main (void) 4050{ 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO" 4057then : 4058 ac_cv_prog_cc_g=yes 4059else $as_nop 4060 CFLAGS="" 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063 4064int 4065main (void) 4066{ 4067 4068 ; 4069 return 0; 4070} 4071_ACEOF 4072if ac_fn_c_try_compile "$LINENO" 4073then : 4074 4075else $as_nop 4076 ac_c_werror_flag=$ac_save_c_werror_flag 4077 CFLAGS="-g" 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080 4081int 4082main (void) 4083{ 4084 4085 ; 4086 return 0; 4087} 4088_ACEOF 4089if ac_fn_c_try_compile "$LINENO" 4090then : 4091 ac_cv_prog_cc_g=yes 4092fi 4093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4094fi 4095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4096fi 4097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4098 ac_c_werror_flag=$ac_save_c_werror_flag 4099fi 4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4101printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4102if test $ac_test_CFLAGS; then 4103 CFLAGS=$ac_save_CFLAGS 4104elif test $ac_cv_prog_cc_g = yes; then 4105 if test "$GCC" = yes; then 4106 CFLAGS="-g -O2" 4107 else 4108 CFLAGS="-g" 4109 fi 4110else 4111 if test "$GCC" = yes; then 4112 CFLAGS="-O2" 4113 else 4114 CFLAGS= 4115 fi 4116fi 4117ac_prog_cc_stdc=no 4118if test x$ac_prog_cc_stdc = xno 4119then : 4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4121printf %s "checking for $CC option to enable C11 features... " >&6; } 4122if test ${ac_cv_prog_cc_c11+y} 4123then : 4124 printf %s "(cached) " >&6 4125else $as_nop 4126 ac_cv_prog_cc_c11=no 4127ac_save_CC=$CC 4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130$ac_c_conftest_c11_program 4131_ACEOF 4132for ac_arg in '' -std=gnu11 4133do 4134 CC="$ac_save_CC $ac_arg" 4135 if ac_fn_c_try_compile "$LINENO" 4136then : 4137 ac_cv_prog_cc_c11=$ac_arg 4138fi 4139rm -f core conftest.err conftest.$ac_objext conftest.beam 4140 test "x$ac_cv_prog_cc_c11" != "xno" && break 4141done 4142rm -f conftest.$ac_ext 4143CC=$ac_save_CC 4144fi 4145 4146if test "x$ac_cv_prog_cc_c11" = xno 4147then : 4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4149printf "%s\n" "unsupported" >&6; } 4150else $as_nop 4151 if test "x$ac_cv_prog_cc_c11" = x 4152then : 4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4154printf "%s\n" "none needed" >&6; } 4155else $as_nop 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4157printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4158 CC="$CC $ac_cv_prog_cc_c11" 4159fi 4160 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4161 ac_prog_cc_stdc=c11 4162fi 4163fi 4164if test x$ac_prog_cc_stdc = xno 4165then : 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4167printf %s "checking for $CC option to enable C99 features... " >&6; } 4168if test ${ac_cv_prog_cc_c99+y} 4169then : 4170 printf %s "(cached) " >&6 4171else $as_nop 4172 ac_cv_prog_cc_c99=no 4173ac_save_CC=$CC 4174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175/* end confdefs.h. */ 4176$ac_c_conftest_c99_program 4177_ACEOF 4178for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4179do 4180 CC="$ac_save_CC $ac_arg" 4181 if ac_fn_c_try_compile "$LINENO" 4182then : 4183 ac_cv_prog_cc_c99=$ac_arg 4184fi 4185rm -f core conftest.err conftest.$ac_objext conftest.beam 4186 test "x$ac_cv_prog_cc_c99" != "xno" && break 4187done 4188rm -f conftest.$ac_ext 4189CC=$ac_save_CC 4190fi 4191 4192if test "x$ac_cv_prog_cc_c99" = xno 4193then : 4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4195printf "%s\n" "unsupported" >&6; } 4196else $as_nop 4197 if test "x$ac_cv_prog_cc_c99" = x 4198then : 4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4200printf "%s\n" "none needed" >&6; } 4201else $as_nop 4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4203printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4204 CC="$CC $ac_cv_prog_cc_c99" 4205fi 4206 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4207 ac_prog_cc_stdc=c99 4208fi 4209fi 4210if test x$ac_prog_cc_stdc = xno 4211then : 4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4213printf %s "checking for $CC option to enable C89 features... " >&6; } 4214if test ${ac_cv_prog_cc_c89+y} 4215then : 4216 printf %s "(cached) " >&6 4217else $as_nop 4218 ac_cv_prog_cc_c89=no 4219ac_save_CC=$CC 4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222$ac_c_conftest_c89_program 4223_ACEOF 4224for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4225do 4226 CC="$ac_save_CC $ac_arg" 4227 if ac_fn_c_try_compile "$LINENO" 4228then : 4229 ac_cv_prog_cc_c89=$ac_arg 4230fi 4231rm -f core conftest.err conftest.$ac_objext conftest.beam 4232 test "x$ac_cv_prog_cc_c89" != "xno" && break 4233done 4234rm -f conftest.$ac_ext 4235CC=$ac_save_CC 4236fi 4237 4238if test "x$ac_cv_prog_cc_c89" = xno 4239then : 4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4241printf "%s\n" "unsupported" >&6; } 4242else $as_nop 4243 if test "x$ac_cv_prog_cc_c89" = x 4244then : 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4246printf "%s\n" "none needed" >&6; } 4247else $as_nop 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4249printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4250 CC="$CC $ac_cv_prog_cc_c89" 4251fi 4252 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4253 ac_prog_cc_stdc=c89 4254fi 4255fi 4256 4257ac_ext=c 4258ac_cpp='$CPP $CPPFLAGS' 4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4261ac_compiler_gnu=$ac_cv_c_compiler_gnu 4262 4263 4264 ac_ext=c 4265ac_cpp='$CPP $CPPFLAGS' 4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4268ac_compiler_gnu=$ac_cv_c_compiler_gnu 4269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4270printf %s "checking whether $CC understands -c and -o together... " >&6; } 4271if test ${am_cv_prog_cc_c_o+y} 4272then : 4273 printf %s "(cached) " >&6 4274else $as_nop 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278int 4279main (void) 4280{ 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286 # Make sure it works both with $CC and with simple cc. 4287 # Following AC_PROG_CC_C_O, we do the test twice because some 4288 # compilers refuse to overwrite an existing .o file with -o, 4289 # though they will create one. 4290 am_cv_prog_cc_c_o=yes 4291 for am_i in 1 2; do 4292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4294 ac_status=$? 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4296 (exit $ac_status); } \ 4297 && test -f conftest2.$ac_objext; then 4298 : OK 4299 else 4300 am_cv_prog_cc_c_o=no 4301 break 4302 fi 4303 done 4304 rm -f core conftest* 4305 unset am_i 4306fi 4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4308printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4309if test "$am_cv_prog_cc_c_o" != yes; then 4310 # Losing compiler, so override with the script. 4311 # FIXME: It is wrong to rewrite CC. 4312 # But if we don't then we get into trouble of one sort or another. 4313 # A longer-term fix would be to have automake use am__CC in this case, 4314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4315 CC="$am_aux_dir/compile $CC" 4316fi 4317ac_ext=c 4318ac_cpp='$CPP $CPPFLAGS' 4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4321ac_compiler_gnu=$ac_cv_c_compiler_gnu 4322 4323 4324depcc="$CC" am_compiler_list= 4325 4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4327printf %s "checking dependency style of $depcc... " >&6; } 4328if test ${am_cv_CC_dependencies_compiler_type+y} 4329then : 4330 printf %s "(cached) " >&6 4331else $as_nop 4332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4333 # We make a subdir and do the tests there. Otherwise we can end up 4334 # making bogus files that we don't know about and never remove. For 4335 # instance it was reported that on HP-UX the gcc test will end up 4336 # making a dummy file named 'D' -- because '-MD' means "put the output 4337 # in D". 4338 rm -rf conftest.dir 4339 mkdir conftest.dir 4340 # Copy depcomp to subdir because otherwise we won't find it if we're 4341 # using a relative directory. 4342 cp "$am_depcomp" conftest.dir 4343 cd conftest.dir 4344 # We will build objects and dependencies in a subdirectory because 4345 # it helps to detect inapplicable dependency modes. For instance 4346 # both Tru64's cc and ICC support -MD to output dependencies as a 4347 # side effect of compilation, but ICC will put the dependencies in 4348 # the current directory while Tru64 will put them in the object 4349 # directory. 4350 mkdir sub 4351 4352 am_cv_CC_dependencies_compiler_type=none 4353 if test "$am_compiler_list" = ""; then 4354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4355 fi 4356 am__universal=false 4357 case " $depcc " in #( 4358 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4359 esac 4360 4361 for depmode in $am_compiler_list; do 4362 # Setup a source with many dependencies, because some compilers 4363 # like to wrap large dependency lists on column 80 (with \), and 4364 # we should not choose a depcomp mode which is confused by this. 4365 # 4366 # We need to recreate these files for each test, as the compiler may 4367 # overwrite some of them when testing with obscure command lines. 4368 # This happens at least with the AIX C compiler. 4369 : > sub/conftest.c 4370 for i in 1 2 3 4 5 6; do 4371 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4372 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4373 # Solaris 10 /bin/sh. 4374 echo '/* dummy */' > sub/conftst$i.h 4375 done 4376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4377 4378 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4379 # mode. It turns out that the SunPro C++ compiler does not properly 4380 # handle '-M -o', and we need to detect this. Also, some Intel 4381 # versions had trouble with output in subdirs. 4382 am__obj=sub/conftest.${OBJEXT-o} 4383 am__minus_obj="-o $am__obj" 4384 case $depmode in 4385 gcc) 4386 # This depmode causes a compiler race in universal mode. 4387 test "$am__universal" = false || continue 4388 ;; 4389 nosideeffect) 4390 # After this tag, mechanisms are not by side-effect, so they'll 4391 # only be used when explicitly requested. 4392 if test "x$enable_dependency_tracking" = xyes; then 4393 continue 4394 else 4395 break 4396 fi 4397 ;; 4398 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4399 # This compiler won't grok '-c -o', but also, the minuso test has 4400 # not run yet. These depmodes are late enough in the game, and 4401 # so weak that their functioning should not be impacted. 4402 am__obj=conftest.${OBJEXT-o} 4403 am__minus_obj= 4404 ;; 4405 none) break ;; 4406 esac 4407 if depmode=$depmode \ 4408 source=sub/conftest.c object=$am__obj \ 4409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4411 >/dev/null 2>conftest.err && 4412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4416 # icc doesn't choke on unknown options, it will just issue warnings 4417 # or remarks (even with -Werror). So we grep stderr for any message 4418 # that says an option was ignored or not supported. 4419 # When given -MP, icc 7.0 and 7.1 complain thusly: 4420 # icc: Command line warning: ignoring option '-M'; no argument required 4421 # The diagnosis changed in icc 8.0: 4422 # icc: Command line remark: option '-MP' not supported 4423 if (grep 'ignoring option' conftest.err || 4424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4425 am_cv_CC_dependencies_compiler_type=$depmode 4426 break 4427 fi 4428 fi 4429 done 4430 4431 cd .. 4432 rm -rf conftest.dir 4433else 4434 am_cv_CC_dependencies_compiler_type=none 4435fi 4436 4437fi 4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4439printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4440CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4441 4442 if 4443 test "x$enable_dependency_tracking" != xno \ 4444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4445 am__fastdepCC_TRUE= 4446 am__fastdepCC_FALSE='#' 4447else 4448 am__fastdepCC_TRUE='#' 4449 am__fastdepCC_FALSE= 4450fi 4451 4452 4453 4454 4455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4456printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4457if test ${ac_cv_c_undeclared_builtin_options+y} 4458then : 4459 printf %s "(cached) " >&6 4460else $as_nop 4461 ac_save_CFLAGS=$CFLAGS 4462 ac_cv_c_undeclared_builtin_options='cannot detect' 4463 for ac_arg in '' -fno-builtin; do 4464 CFLAGS="$ac_save_CFLAGS $ac_arg" 4465 # This test program should *not* compile successfully. 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468 4469int 4470main (void) 4471{ 4472(void) strchr; 4473 ; 4474 return 0; 4475} 4476_ACEOF 4477if ac_fn_c_try_compile "$LINENO" 4478then : 4479 4480else $as_nop 4481 # This test program should compile successfully. 4482 # No library function is consistently available on 4483 # freestanding implementations, so test against a dummy 4484 # declaration. Include always-available headers on the 4485 # off chance that they somehow elicit warnings. 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487/* end confdefs.h. */ 4488#include <float.h> 4489#include <limits.h> 4490#include <stdarg.h> 4491#include <stddef.h> 4492extern void ac_decl (int, char *); 4493 4494int 4495main (void) 4496{ 4497(void) ac_decl (0, (char *) 0); 4498 (void) ac_decl; 4499 4500 ; 4501 return 0; 4502} 4503_ACEOF 4504if ac_fn_c_try_compile "$LINENO" 4505then : 4506 if test x"$ac_arg" = x 4507then : 4508 ac_cv_c_undeclared_builtin_options='none needed' 4509else $as_nop 4510 ac_cv_c_undeclared_builtin_options=$ac_arg 4511fi 4512 break 4513fi 4514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4515fi 4516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4517 done 4518 CFLAGS=$ac_save_CFLAGS 4519 4520fi 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4522printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4523 case $ac_cv_c_undeclared_builtin_options in #( 4524 'cannot detect') : 4525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4526printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4527as_fn_error $? "cannot make $CC report undeclared builtins 4528See \`config.log' for more details" "$LINENO" 5; } ;; #( 4529 'none needed') : 4530 ac_c_undeclared_builtin_options='' ;; #( 4531 *) : 4532 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4533esac 4534 4535ac_header= ac_cache= 4536for ac_item in $ac_header_c_list 4537do 4538 if test $ac_cache; then 4539 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4540 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4541 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4542 fi 4543 ac_header= ac_cache= 4544 elif test $ac_header; then 4545 ac_cache=$ac_item 4546 else 4547 ac_header=$ac_item 4548 fi 4549done 4550 4551 4552 4553 4554 4555 4556 4557 4558if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4559then : 4560 4561printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4562 4563fi 4564 4565 4566 4567 4568ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4569if test "x$ac_cv_have_decl___clang__" = xyes 4570then : 4571 CLANGCC="yes" 4572else $as_nop 4573 CLANGCC="no" 4574fi 4575ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4576if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4577then : 4578 INTELCC="yes" 4579else $as_nop 4580 INTELCC="no" 4581fi 4582ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4583if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4584then : 4585 SUNCC="yes" 4586else $as_nop 4587 SUNCC="no" 4588fi 4589 4590 4591 4592 4593 4594 4595 4596 4597if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4598 if test -n "$ac_tool_prefix"; then 4599 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4600set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4602printf %s "checking for $ac_word... " >&6; } 4603if test ${ac_cv_path_PKG_CONFIG+y} 4604then : 4605 printf %s "(cached) " >&6 4606else $as_nop 4607 case $PKG_CONFIG in 4608 [\\/]* | ?:[\\/]*) 4609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4610 ;; 4611 *) 4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4613for as_dir in $PATH 4614do 4615 IFS=$as_save_IFS 4616 case $as_dir in #((( 4617 '') as_dir=./ ;; 4618 */) ;; 4619 *) as_dir=$as_dir/ ;; 4620 esac 4621 for ac_exec_ext in '' $ac_executable_extensions; do 4622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4623 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4625 break 2 4626 fi 4627done 4628 done 4629IFS=$as_save_IFS 4630 4631 ;; 4632esac 4633fi 4634PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4635if test -n "$PKG_CONFIG"; then 4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4637printf "%s\n" "$PKG_CONFIG" >&6; } 4638else 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640printf "%s\n" "no" >&6; } 4641fi 4642 4643 4644fi 4645if test -z "$ac_cv_path_PKG_CONFIG"; then 4646 ac_pt_PKG_CONFIG=$PKG_CONFIG 4647 # Extract the first word of "pkg-config", so it can be a program name with args. 4648set dummy pkg-config; ac_word=$2 4649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4650printf %s "checking for $ac_word... " >&6; } 4651if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4652then : 4653 printf %s "(cached) " >&6 4654else $as_nop 4655 case $ac_pt_PKG_CONFIG in 4656 [\\/]* | ?:[\\/]*) 4657 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4658 ;; 4659 *) 4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4661for as_dir in $PATH 4662do 4663 IFS=$as_save_IFS 4664 case $as_dir in #((( 4665 '') as_dir=./ ;; 4666 */) ;; 4667 *) as_dir=$as_dir/ ;; 4668 esac 4669 for ac_exec_ext in '' $ac_executable_extensions; do 4670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675done 4676 done 4677IFS=$as_save_IFS 4678 4679 ;; 4680esac 4681fi 4682ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4683if test -n "$ac_pt_PKG_CONFIG"; then 4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4685printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4686else 4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4688printf "%s\n" "no" >&6; } 4689fi 4690 4691 if test "x$ac_pt_PKG_CONFIG" = x; then 4692 PKG_CONFIG="" 4693 else 4694 case $cross_compiling:$ac_tool_warned in 4695yes:) 4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4698ac_tool_warned=yes ;; 4699esac 4700 PKG_CONFIG=$ac_pt_PKG_CONFIG 4701 fi 4702else 4703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4704fi 4705 4706fi 4707if test -n "$PKG_CONFIG"; then 4708 _pkg_min_version=0.9.0 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4710printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4713printf "%s\n" "yes" >&6; } 4714 else 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716printf "%s\n" "no" >&6; } 4717 PKG_CONFIG="" 4718 fi 4719fi 4720 4721 4722 # Make sure we can run config.sub. 4723$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4724 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4725 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4727printf %s "checking build system type... " >&6; } 4728if test ${ac_cv_build+y} 4729then : 4730 printf %s "(cached) " >&6 4731else $as_nop 4732 ac_build_alias=$build_alias 4733test "x$ac_build_alias" = x && 4734 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4735test "x$ac_build_alias" = x && 4736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4737ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4738 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4739 4740fi 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4742printf "%s\n" "$ac_cv_build" >&6; } 4743case $ac_cv_build in 4744*-*-*) ;; 4745*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4746esac 4747build=$ac_cv_build 4748ac_save_IFS=$IFS; IFS='-' 4749set x $ac_cv_build 4750shift 4751build_cpu=$1 4752build_vendor=$2 4753shift; shift 4754# Remember, the first character of IFS is used to create $*, 4755# except with old shells: 4756build_os=$* 4757IFS=$ac_save_IFS 4758case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4759 4760 4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4762printf %s "checking host system type... " >&6; } 4763if test ${ac_cv_host+y} 4764then : 4765 printf %s "(cached) " >&6 4766else $as_nop 4767 if test "x$host_alias" = x; then 4768 ac_cv_host=$ac_cv_build 4769else 4770 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4771 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4772fi 4773 4774fi 4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4776printf "%s\n" "$ac_cv_host" >&6; } 4777case $ac_cv_host in 4778*-*-*) ;; 4779*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4780esac 4781host=$ac_cv_host 4782ac_save_IFS=$IFS; IFS='-' 4783set x $ac_cv_host 4784shift 4785host_cpu=$1 4786host_vendor=$2 4787shift; shift 4788# Remember, the first character of IFS is used to create $*, 4789# except with old shells: 4790host_os=$* 4791IFS=$ac_save_IFS 4792case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4793 4794 4795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4796printf %s "checking for a sed that does not truncate output... " >&6; } 4797if test ${ac_cv_path_SED+y} 4798then : 4799 printf %s "(cached) " >&6 4800else $as_nop 4801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4802 for ac_i in 1 2 3 4 5 6 7; do 4803 ac_script="$ac_script$as_nl$ac_script" 4804 done 4805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4806 { ac_script=; unset ac_script;} 4807 if test -z "$SED"; then 4808 ac_path_SED_found=false 4809 # Loop through the user's path and test for each of PROGNAME-LIST 4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811for as_dir in $PATH 4812do 4813 IFS=$as_save_IFS 4814 case $as_dir in #((( 4815 '') as_dir=./ ;; 4816 */) ;; 4817 *) as_dir=$as_dir/ ;; 4818 esac 4819 for ac_prog in sed gsed 4820 do 4821 for ac_exec_ext in '' $ac_executable_extensions; do 4822 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4823 as_fn_executable_p "$ac_path_SED" || continue 4824# Check for GNU ac_path_SED and select it if it is found. 4825 # Check for GNU $ac_path_SED 4826case `"$ac_path_SED" --version 2>&1` in 4827*GNU*) 4828 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4829*) 4830 ac_count=0 4831 printf %s 0123456789 >"conftest.in" 4832 while : 4833 do 4834 cat "conftest.in" "conftest.in" >"conftest.tmp" 4835 mv "conftest.tmp" "conftest.in" 4836 cp "conftest.in" "conftest.nl" 4837 printf "%s\n" '' >> "conftest.nl" 4838 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4840 as_fn_arith $ac_count + 1 && ac_count=$as_val 4841 if test $ac_count -gt ${ac_path_SED_max-0}; then 4842 # Best one so far, save it but keep looking for a better one 4843 ac_cv_path_SED="$ac_path_SED" 4844 ac_path_SED_max=$ac_count 4845 fi 4846 # 10*(2^10) chars as input seems more than enough 4847 test $ac_count -gt 10 && break 4848 done 4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4850esac 4851 4852 $ac_path_SED_found && break 3 4853 done 4854 done 4855 done 4856IFS=$as_save_IFS 4857 if test -z "$ac_cv_path_SED"; then 4858 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4859 fi 4860else 4861 ac_cv_path_SED=$SED 4862fi 4863 4864fi 4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4866printf "%s\n" "$ac_cv_path_SED" >&6; } 4867 SED="$ac_cv_path_SED" 4868 rm -f conftest.sed 4869 4870 4871 4872 4873 4874 4875# Check whether --enable-selective-werror was given. 4876if test ${enable_selective_werror+y} 4877then : 4878 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4879else $as_nop 4880 SELECTIVE_WERROR=yes 4881fi 4882 4883 4884 4885 4886 4887# -v is too short to test reliably with XORG_TESTSET_CFLAG 4888if test "x$SUNCC" = "xyes"; then 4889 BASE_CFLAGS="-v" 4890else 4891 BASE_CFLAGS="" 4892fi 4893 4894# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908xorg_testset_save_CFLAGS="$CFLAGS" 4909 4910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4914if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4915then : 4916 printf %s "(cached) " >&6 4917else $as_nop 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920int i; 4921_ACEOF 4922if ac_fn_c_try_compile "$LINENO" 4923then : 4924 xorg_cv_cc_flag_unknown_warning_option=yes 4925else $as_nop 4926 xorg_cv_cc_flag_unknown_warning_option=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4929fi 4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4933 CFLAGS="$xorg_testset_save_CFLAGS" 4934fi 4935 4936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4939 fi 4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4943if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4944then : 4945 printf %s "(cached) " >&6 4946else $as_nop 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949int i; 4950_ACEOF 4951if ac_fn_c_try_compile "$LINENO" 4952then : 4953 xorg_cv_cc_flag_unused_command_line_argument=yes 4954else $as_nop 4955 xorg_cv_cc_flag_unused_command_line_argument=no 4956fi 4957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4958fi 4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4962 CFLAGS="$xorg_testset_save_CFLAGS" 4963fi 4964 4965found="no" 4966 4967 if test $found = "no" ; then 4968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4970 fi 4971 4972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4974 fi 4975 4976 CFLAGS="$CFLAGS -Wall" 4977 4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4979printf %s "checking if $CC supports -Wall... " >&6; } 4980 cacheid=xorg_cv_cc_flag__Wall 4981 if eval test \${$cacheid+y} 4982then : 4983 printf %s "(cached) " >&6 4984else $as_nop 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987int i; 4988int 4989main (void) 4990{ 4991 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996if ac_fn_c_try_link "$LINENO" 4997then : 4998 eval $cacheid=yes 4999else $as_nop 5000 eval $cacheid=no 5001fi 5002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5003 conftest$ac_exeext conftest.$ac_ext 5004fi 5005 5006 5007 CFLAGS="$xorg_testset_save_CFLAGS" 5008 5009 eval supported=\$$cacheid 5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5011printf "%s\n" "$supported" >&6; } 5012 if test "$supported" = "yes" ; then 5013 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5014 found="yes" 5015 fi 5016 fi 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032xorg_testset_save_CFLAGS="$CFLAGS" 5033 5034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5038if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5039then : 5040 printf %s "(cached) " >&6 5041else $as_nop 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044int i; 5045_ACEOF 5046if ac_fn_c_try_compile "$LINENO" 5047then : 5048 xorg_cv_cc_flag_unknown_warning_option=yes 5049else $as_nop 5050 xorg_cv_cc_flag_unknown_warning_option=no 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5053fi 5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058fi 5059 5060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5063 fi 5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5068then : 5069 printf %s "(cached) " >&6 5070else $as_nop 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072/* end confdefs.h. */ 5073int i; 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO" 5076then : 5077 xorg_cv_cc_flag_unused_command_line_argument=yes 5078else $as_nop 5079 xorg_cv_cc_flag_unused_command_line_argument=no 5080fi 5081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5082fi 5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5086 CFLAGS="$xorg_testset_save_CFLAGS" 5087fi 5088 5089found="no" 5090 5091 if test $found = "no" ; then 5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5094 fi 5095 5096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5098 fi 5099 5100 CFLAGS="$CFLAGS -Wpointer-arith" 5101 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5103printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5104 cacheid=xorg_cv_cc_flag__Wpointer_arith 5105 if eval test \${$cacheid+y} 5106then : 5107 printf %s "(cached) " >&6 5108else $as_nop 5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5110/* end confdefs.h. */ 5111int i; 5112int 5113main (void) 5114{ 5115 5116 ; 5117 return 0; 5118} 5119_ACEOF 5120if ac_fn_c_try_link "$LINENO" 5121then : 5122 eval $cacheid=yes 5123else $as_nop 5124 eval $cacheid=no 5125fi 5126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5127 conftest$ac_exeext conftest.$ac_ext 5128fi 5129 5130 5131 CFLAGS="$xorg_testset_save_CFLAGS" 5132 5133 eval supported=\$$cacheid 5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5135printf "%s\n" "$supported" >&6; } 5136 if test "$supported" = "yes" ; then 5137 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5138 found="yes" 5139 fi 5140 fi 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156xorg_testset_save_CFLAGS="$CFLAGS" 5157 5158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5162if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5163then : 5164 printf %s "(cached) " >&6 5165else $as_nop 5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5167/* end confdefs.h. */ 5168int i; 5169_ACEOF 5170if ac_fn_c_try_compile "$LINENO" 5171then : 5172 xorg_cv_cc_flag_unknown_warning_option=yes 5173else $as_nop 5174 xorg_cv_cc_flag_unknown_warning_option=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5177fi 5178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5181 CFLAGS="$xorg_testset_save_CFLAGS" 5182fi 5183 5184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 fi 5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5191if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5192then : 5193 printf %s "(cached) " >&6 5194else $as_nop 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197int i; 5198_ACEOF 5199if ac_fn_c_try_compile "$LINENO" 5200then : 5201 xorg_cv_cc_flag_unused_command_line_argument=yes 5202else $as_nop 5203 xorg_cv_cc_flag_unused_command_line_argument=no 5204fi 5205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5206fi 5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211fi 5212 5213found="no" 5214 5215 if test $found = "no" ; then 5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 fi 5219 5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5222 fi 5223 5224 CFLAGS="$CFLAGS -Wmissing-declarations" 5225 5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5227printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5228 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5229 if eval test \${$cacheid+y} 5230then : 5231 printf %s "(cached) " >&6 5232else $as_nop 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235int i; 5236int 5237main (void) 5238{ 5239 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244if ac_fn_c_try_link "$LINENO" 5245then : 5246 eval $cacheid=yes 5247else $as_nop 5248 eval $cacheid=no 5249fi 5250rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5251 conftest$ac_exeext conftest.$ac_ext 5252fi 5253 5254 5255 CFLAGS="$xorg_testset_save_CFLAGS" 5256 5257 eval supported=\$$cacheid 5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5259printf "%s\n" "$supported" >&6; } 5260 if test "$supported" = "yes" ; then 5261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5262 found="yes" 5263 fi 5264 fi 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280xorg_testset_save_CFLAGS="$CFLAGS" 5281 5282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5286if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5287then : 5288 printf %s "(cached) " >&6 5289else $as_nop 5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291/* end confdefs.h. */ 5292int i; 5293_ACEOF 5294if ac_fn_c_try_compile "$LINENO" 5295then : 5296 xorg_cv_cc_flag_unknown_warning_option=yes 5297else $as_nop 5298 xorg_cv_cc_flag_unknown_warning_option=no 5299fi 5300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5301fi 5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5305 CFLAGS="$xorg_testset_save_CFLAGS" 5306fi 5307 5308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 fi 5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5315if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5316then : 5317 printf %s "(cached) " >&6 5318else $as_nop 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321int i; 5322_ACEOF 5323if ac_fn_c_try_compile "$LINENO" 5324then : 5325 xorg_cv_cc_flag_unused_command_line_argument=yes 5326else $as_nop 5327 xorg_cv_cc_flag_unused_command_line_argument=no 5328fi 5329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5330fi 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335fi 5336 5337found="no" 5338 5339 if test $found = "no" ; then 5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 fi 5343 5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 fi 5347 5348 CFLAGS="$CFLAGS -Wformat=2" 5349 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5351printf %s "checking if $CC supports -Wformat=2... " >&6; } 5352 cacheid=xorg_cv_cc_flag__Wformat_2 5353 if eval test \${$cacheid+y} 5354then : 5355 printf %s "(cached) " >&6 5356else $as_nop 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359int i; 5360int 5361main (void) 5362{ 5363 5364 ; 5365 return 0; 5366} 5367_ACEOF 5368if ac_fn_c_try_link "$LINENO" 5369then : 5370 eval $cacheid=yes 5371else $as_nop 5372 eval $cacheid=no 5373fi 5374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5375 conftest$ac_exeext conftest.$ac_ext 5376fi 5377 5378 5379 CFLAGS="$xorg_testset_save_CFLAGS" 5380 5381 eval supported=\$$cacheid 5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5383printf "%s\n" "$supported" >&6; } 5384 if test "$supported" = "yes" ; then 5385 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5386 found="yes" 5387 fi 5388 fi 5389 5390 if test $found = "no" ; then 5391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5393 fi 5394 5395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5397 fi 5398 5399 CFLAGS="$CFLAGS -Wformat" 5400 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5402printf %s "checking if $CC supports -Wformat... " >&6; } 5403 cacheid=xorg_cv_cc_flag__Wformat 5404 if eval test \${$cacheid+y} 5405then : 5406 printf %s "(cached) " >&6 5407else $as_nop 5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5409/* end confdefs.h. */ 5410int i; 5411int 5412main (void) 5413{ 5414 5415 ; 5416 return 0; 5417} 5418_ACEOF 5419if ac_fn_c_try_link "$LINENO" 5420then : 5421 eval $cacheid=yes 5422else $as_nop 5423 eval $cacheid=no 5424fi 5425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5426 conftest$ac_exeext conftest.$ac_ext 5427fi 5428 5429 5430 CFLAGS="$xorg_testset_save_CFLAGS" 5431 5432 eval supported=\$$cacheid 5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5434printf "%s\n" "$supported" >&6; } 5435 if test "$supported" = "yes" ; then 5436 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5437 found="yes" 5438 fi 5439 fi 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457xorg_testset_save_CFLAGS="$CFLAGS" 5458 5459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5464then : 5465 printf %s "(cached) " >&6 5466else $as_nop 5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5468/* end confdefs.h. */ 5469int i; 5470_ACEOF 5471if ac_fn_c_try_compile "$LINENO" 5472then : 5473 xorg_cv_cc_flag_unknown_warning_option=yes 5474else $as_nop 5475 xorg_cv_cc_flag_unknown_warning_option=no 5476fi 5477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5478fi 5479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5482 CFLAGS="$xorg_testset_save_CFLAGS" 5483fi 5484 5485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5488 fi 5489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5492if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5493then : 5494 printf %s "(cached) " >&6 5495else $as_nop 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497/* end confdefs.h. */ 5498int i; 5499_ACEOF 5500if ac_fn_c_try_compile "$LINENO" 5501then : 5502 xorg_cv_cc_flag_unused_command_line_argument=yes 5503else $as_nop 5504 xorg_cv_cc_flag_unused_command_line_argument=no 5505fi 5506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5507fi 5508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5511 CFLAGS="$xorg_testset_save_CFLAGS" 5512fi 5513 5514found="no" 5515 5516 if test $found = "no" ; then 5517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5519 fi 5520 5521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5523 fi 5524 5525 CFLAGS="$CFLAGS -Wstrict-prototypes" 5526 5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5528printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5529 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5530 if eval test \${$cacheid+y} 5531then : 5532 printf %s "(cached) " >&6 5533else $as_nop 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536int i; 5537int 5538main (void) 5539{ 5540 5541 ; 5542 return 0; 5543} 5544_ACEOF 5545if ac_fn_c_try_link "$LINENO" 5546then : 5547 eval $cacheid=yes 5548else $as_nop 5549 eval $cacheid=no 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5552 conftest$ac_exeext conftest.$ac_ext 5553fi 5554 5555 5556 CFLAGS="$xorg_testset_save_CFLAGS" 5557 5558 eval supported=\$$cacheid 5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5560printf "%s\n" "$supported" >&6; } 5561 if test "$supported" = "yes" ; then 5562 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5563 found="yes" 5564 fi 5565 fi 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581xorg_testset_save_CFLAGS="$CFLAGS" 5582 5583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5587if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5588then : 5589 printf %s "(cached) " >&6 5590else $as_nop 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593int i; 5594_ACEOF 5595if ac_fn_c_try_compile "$LINENO" 5596then : 5597 xorg_cv_cc_flag_unknown_warning_option=yes 5598else $as_nop 5599 xorg_cv_cc_flag_unknown_warning_option=no 5600fi 5601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5602fi 5603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5606 CFLAGS="$xorg_testset_save_CFLAGS" 5607fi 5608 5609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5612 fi 5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5617then : 5618 printf %s "(cached) " >&6 5619else $as_nop 5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5621/* end confdefs.h. */ 5622int i; 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO" 5625then : 5626 xorg_cv_cc_flag_unused_command_line_argument=yes 5627else $as_nop 5628 xorg_cv_cc_flag_unused_command_line_argument=no 5629fi 5630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5631fi 5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5635 CFLAGS="$xorg_testset_save_CFLAGS" 5636fi 5637 5638found="no" 5639 5640 if test $found = "no" ; then 5641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5643 fi 5644 5645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5647 fi 5648 5649 CFLAGS="$CFLAGS -Wmissing-prototypes" 5650 5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5652printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5653 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5654 if eval test \${$cacheid+y} 5655then : 5656 printf %s "(cached) " >&6 5657else $as_nop 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660int i; 5661int 5662main (void) 5663{ 5664 5665 ; 5666 return 0; 5667} 5668_ACEOF 5669if ac_fn_c_try_link "$LINENO" 5670then : 5671 eval $cacheid=yes 5672else $as_nop 5673 eval $cacheid=no 5674fi 5675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5676 conftest$ac_exeext conftest.$ac_ext 5677fi 5678 5679 5680 CFLAGS="$xorg_testset_save_CFLAGS" 5681 5682 eval supported=\$$cacheid 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5684printf "%s\n" "$supported" >&6; } 5685 if test "$supported" = "yes" ; then 5686 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5687 found="yes" 5688 fi 5689 fi 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705xorg_testset_save_CFLAGS="$CFLAGS" 5706 5707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5710printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5711if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5712then : 5713 printf %s "(cached) " >&6 5714else $as_nop 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5716/* end confdefs.h. */ 5717int i; 5718_ACEOF 5719if ac_fn_c_try_compile "$LINENO" 5720then : 5721 xorg_cv_cc_flag_unknown_warning_option=yes 5722else $as_nop 5723 xorg_cv_cc_flag_unknown_warning_option=no 5724fi 5725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5726fi 5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731fi 5732 5733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 fi 5737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5740if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5741then : 5742 printf %s "(cached) " >&6 5743else $as_nop 5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746int i; 5747_ACEOF 5748if ac_fn_c_try_compile "$LINENO" 5749then : 5750 xorg_cv_cc_flag_unused_command_line_argument=yes 5751else $as_nop 5752 xorg_cv_cc_flag_unused_command_line_argument=no 5753fi 5754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5755fi 5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760fi 5761 5762found="no" 5763 5764 if test $found = "no" ; then 5765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5767 fi 5768 5769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5771 fi 5772 5773 CFLAGS="$CFLAGS -Wnested-externs" 5774 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5776printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5777 cacheid=xorg_cv_cc_flag__Wnested_externs 5778 if eval test \${$cacheid+y} 5779then : 5780 printf %s "(cached) " >&6 5781else $as_nop 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784int i; 5785int 5786main (void) 5787{ 5788 5789 ; 5790 return 0; 5791} 5792_ACEOF 5793if ac_fn_c_try_link "$LINENO" 5794then : 5795 eval $cacheid=yes 5796else $as_nop 5797 eval $cacheid=no 5798fi 5799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5800 conftest$ac_exeext conftest.$ac_ext 5801fi 5802 5803 5804 CFLAGS="$xorg_testset_save_CFLAGS" 5805 5806 eval supported=\$$cacheid 5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5808printf "%s\n" "$supported" >&6; } 5809 if test "$supported" = "yes" ; then 5810 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5811 found="yes" 5812 fi 5813 fi 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829xorg_testset_save_CFLAGS="$CFLAGS" 5830 5831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5835if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5836then : 5837 printf %s "(cached) " >&6 5838else $as_nop 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841int i; 5842_ACEOF 5843if ac_fn_c_try_compile "$LINENO" 5844then : 5845 xorg_cv_cc_flag_unknown_warning_option=yes 5846else $as_nop 5847 xorg_cv_cc_flag_unknown_warning_option=no 5848fi 5849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5850fi 5851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5854 CFLAGS="$xorg_testset_save_CFLAGS" 5855fi 5856 5857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5860 fi 5861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5864if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5865then : 5866 printf %s "(cached) " >&6 5867else $as_nop 5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5869/* end confdefs.h. */ 5870int i; 5871_ACEOF 5872if ac_fn_c_try_compile "$LINENO" 5873then : 5874 xorg_cv_cc_flag_unused_command_line_argument=yes 5875else $as_nop 5876 xorg_cv_cc_flag_unused_command_line_argument=no 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5879fi 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884fi 5885 5886found="no" 5887 5888 if test $found = "no" ; then 5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 fi 5892 5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5895 fi 5896 5897 CFLAGS="$CFLAGS -Wbad-function-cast" 5898 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5900printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5901 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5902 if eval test \${$cacheid+y} 5903then : 5904 printf %s "(cached) " >&6 5905else $as_nop 5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908int i; 5909int 5910main (void) 5911{ 5912 5913 ; 5914 return 0; 5915} 5916_ACEOF 5917if ac_fn_c_try_link "$LINENO" 5918then : 5919 eval $cacheid=yes 5920else $as_nop 5921 eval $cacheid=no 5922fi 5923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5924 conftest$ac_exeext conftest.$ac_ext 5925fi 5926 5927 5928 CFLAGS="$xorg_testset_save_CFLAGS" 5929 5930 eval supported=\$$cacheid 5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5932printf "%s\n" "$supported" >&6; } 5933 if test "$supported" = "yes" ; then 5934 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5935 found="yes" 5936 fi 5937 fi 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953xorg_testset_save_CFLAGS="$CFLAGS" 5954 5955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5959if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5960then : 5961 printf %s "(cached) " >&6 5962else $as_nop 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5964/* end confdefs.h. */ 5965int i; 5966_ACEOF 5967if ac_fn_c_try_compile "$LINENO" 5968then : 5969 xorg_cv_cc_flag_unknown_warning_option=yes 5970else $as_nop 5971 xorg_cv_cc_flag_unknown_warning_option=no 5972fi 5973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5974fi 5975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979fi 5980 5981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5988if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5989then : 5990 printf %s "(cached) " >&6 5991else $as_nop 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994int i; 5995_ACEOF 5996if ac_fn_c_try_compile "$LINENO" 5997then : 5998 xorg_cv_cc_flag_unused_command_line_argument=yes 5999else $as_nop 6000 xorg_cv_cc_flag_unused_command_line_argument=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6003fi 6004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008fi 6009 6010found="no" 6011 6012 if test $found = "no" ; then 6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 fi 6016 6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6019 fi 6020 6021 CFLAGS="$CFLAGS -Wold-style-definition" 6022 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6024printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6025 cacheid=xorg_cv_cc_flag__Wold_style_definition 6026 if eval test \${$cacheid+y} 6027then : 6028 printf %s "(cached) " >&6 6029else $as_nop 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032int i; 6033int 6034main (void) 6035{ 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_link "$LINENO" 6042then : 6043 eval $cacheid=yes 6044else $as_nop 6045 eval $cacheid=no 6046fi 6047rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6048 conftest$ac_exeext conftest.$ac_ext 6049fi 6050 6051 6052 CFLAGS="$xorg_testset_save_CFLAGS" 6053 6054 eval supported=\$$cacheid 6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6056printf "%s\n" "$supported" >&6; } 6057 if test "$supported" = "yes" ; then 6058 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6059 found="yes" 6060 fi 6061 fi 6062 6063 if test $found = "no" ; then 6064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6066 fi 6067 6068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6070 fi 6071 6072 CFLAGS="$CFLAGS -fd" 6073 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6075printf %s "checking if $CC supports -fd... " >&6; } 6076 cacheid=xorg_cv_cc_flag__fd 6077 if eval test \${$cacheid+y} 6078then : 6079 printf %s "(cached) " >&6 6080else $as_nop 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083int i; 6084int 6085main (void) 6086{ 6087 6088 ; 6089 return 0; 6090} 6091_ACEOF 6092if ac_fn_c_try_link "$LINENO" 6093then : 6094 eval $cacheid=yes 6095else $as_nop 6096 eval $cacheid=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6099 conftest$ac_exeext conftest.$ac_ext 6100fi 6101 6102 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104 6105 eval supported=\$$cacheid 6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6107printf "%s\n" "$supported" >&6; } 6108 if test "$supported" = "yes" ; then 6109 BASE_CFLAGS="$BASE_CFLAGS -fd" 6110 found="yes" 6111 fi 6112 fi 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128xorg_testset_save_CFLAGS="$CFLAGS" 6129 6130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6134if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6135then : 6136 printf %s "(cached) " >&6 6137else $as_nop 6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140int i; 6141_ACEOF 6142if ac_fn_c_try_compile "$LINENO" 6143then : 6144 xorg_cv_cc_flag_unknown_warning_option=yes 6145else $as_nop 6146 xorg_cv_cc_flag_unknown_warning_option=no 6147fi 6148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6149fi 6150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6153 CFLAGS="$xorg_testset_save_CFLAGS" 6154fi 6155 6156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6159 fi 6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6163if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6164then : 6165 printf %s "(cached) " >&6 6166else $as_nop 6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6168/* end confdefs.h. */ 6169int i; 6170_ACEOF 6171if ac_fn_c_try_compile "$LINENO" 6172then : 6173 xorg_cv_cc_flag_unused_command_line_argument=yes 6174else $as_nop 6175 xorg_cv_cc_flag_unused_command_line_argument=no 6176fi 6177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6178fi 6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6182 CFLAGS="$xorg_testset_save_CFLAGS" 6183fi 6184 6185found="no" 6186 6187 if test $found = "no" ; then 6188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190 fi 6191 6192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6194 fi 6195 6196 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6197 6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6199printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6200 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6201 if eval test \${$cacheid+y} 6202then : 6203 printf %s "(cached) " >&6 6204else $as_nop 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208int 6209main (void) 6210{ 6211 6212 ; 6213 return 0; 6214} 6215_ACEOF 6216if ac_fn_c_try_link "$LINENO" 6217then : 6218 eval $cacheid=yes 6219else $as_nop 6220 eval $cacheid=no 6221fi 6222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6223 conftest$ac_exeext conftest.$ac_ext 6224fi 6225 6226 6227 CFLAGS="$xorg_testset_save_CFLAGS" 6228 6229 eval supported=\$$cacheid 6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6231printf "%s\n" "$supported" >&6; } 6232 if test "$supported" = "yes" ; then 6233 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6234 found="yes" 6235 fi 6236 fi 6237 6238 6239 6240 6241 6242# This chunk adds additional warnings that could catch undesired effects. 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256xorg_testset_save_CFLAGS="$CFLAGS" 6257 6258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6262if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6263then : 6264 printf %s "(cached) " >&6 6265else $as_nop 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269_ACEOF 6270if ac_fn_c_try_compile "$LINENO" 6271then : 6272 xorg_cv_cc_flag_unknown_warning_option=yes 6273else $as_nop 6274 xorg_cv_cc_flag_unknown_warning_option=no 6275fi 6276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6277fi 6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282fi 6283 6284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6287 fi 6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6292then : 6293 printf %s "(cached) " >&6 6294else $as_nop 6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297int i; 6298_ACEOF 6299if ac_fn_c_try_compile "$LINENO" 6300then : 6301 xorg_cv_cc_flag_unused_command_line_argument=yes 6302else $as_nop 6303 xorg_cv_cc_flag_unused_command_line_argument=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6306fi 6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311fi 6312 6313found="no" 6314 6315 if test $found = "no" ; then 6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6318 fi 6319 6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 fi 6323 6324 CFLAGS="$CFLAGS -Wunused" 6325 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6327printf %s "checking if $CC supports -Wunused... " >&6; } 6328 cacheid=xorg_cv_cc_flag__Wunused 6329 if eval test \${$cacheid+y} 6330then : 6331 printf %s "(cached) " >&6 6332else $as_nop 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335int i; 6336int 6337main (void) 6338{ 6339 6340 ; 6341 return 0; 6342} 6343_ACEOF 6344if ac_fn_c_try_link "$LINENO" 6345then : 6346 eval $cacheid=yes 6347else $as_nop 6348 eval $cacheid=no 6349fi 6350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6351 conftest$ac_exeext conftest.$ac_ext 6352fi 6353 6354 6355 CFLAGS="$xorg_testset_save_CFLAGS" 6356 6357 eval supported=\$$cacheid 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6359printf "%s\n" "$supported" >&6; } 6360 if test "$supported" = "yes" ; then 6361 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6362 found="yes" 6363 fi 6364 fi 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380xorg_testset_save_CFLAGS="$CFLAGS" 6381 6382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6386if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6387then : 6388 printf %s "(cached) " >&6 6389else $as_nop 6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6391/* end confdefs.h. */ 6392int i; 6393_ACEOF 6394if ac_fn_c_try_compile "$LINENO" 6395then : 6396 xorg_cv_cc_flag_unknown_warning_option=yes 6397else $as_nop 6398 xorg_cv_cc_flag_unknown_warning_option=no 6399fi 6400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6401fi 6402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6403printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6405 CFLAGS="$xorg_testset_save_CFLAGS" 6406fi 6407 6408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6411 fi 6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6414printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6415if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6416then : 6417 printf %s "(cached) " >&6 6418else $as_nop 6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6420/* end confdefs.h. */ 6421int i; 6422_ACEOF 6423if ac_fn_c_try_compile "$LINENO" 6424then : 6425 xorg_cv_cc_flag_unused_command_line_argument=yes 6426else $as_nop 6427 xorg_cv_cc_flag_unused_command_line_argument=no 6428fi 6429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6430fi 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6434 CFLAGS="$xorg_testset_save_CFLAGS" 6435fi 6436 6437found="no" 6438 6439 if test $found = "no" ; then 6440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6442 fi 6443 6444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6446 fi 6447 6448 CFLAGS="$CFLAGS -Wuninitialized" 6449 6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6451printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6452 cacheid=xorg_cv_cc_flag__Wuninitialized 6453 if eval test \${$cacheid+y} 6454then : 6455 printf %s "(cached) " >&6 6456else $as_nop 6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6458/* end confdefs.h. */ 6459int i; 6460int 6461main (void) 6462{ 6463 6464 ; 6465 return 0; 6466} 6467_ACEOF 6468if ac_fn_c_try_link "$LINENO" 6469then : 6470 eval $cacheid=yes 6471else $as_nop 6472 eval $cacheid=no 6473fi 6474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6475 conftest$ac_exeext conftest.$ac_ext 6476fi 6477 6478 6479 CFLAGS="$xorg_testset_save_CFLAGS" 6480 6481 eval supported=\$$cacheid 6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6483printf "%s\n" "$supported" >&6; } 6484 if test "$supported" = "yes" ; then 6485 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6486 found="yes" 6487 fi 6488 fi 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504xorg_testset_save_CFLAGS="$CFLAGS" 6505 6506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6509printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6510if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6511then : 6512 printf %s "(cached) " >&6 6513else $as_nop 6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6515/* end confdefs.h. */ 6516int i; 6517_ACEOF 6518if ac_fn_c_try_compile "$LINENO" 6519then : 6520 xorg_cv_cc_flag_unknown_warning_option=yes 6521else $as_nop 6522 xorg_cv_cc_flag_unknown_warning_option=no 6523fi 6524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6525fi 6526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6527printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6529 CFLAGS="$xorg_testset_save_CFLAGS" 6530fi 6531 6532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6535 fi 6536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6538printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6539if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6540then : 6541 printf %s "(cached) " >&6 6542else $as_nop 6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545int i; 6546_ACEOF 6547if ac_fn_c_try_compile "$LINENO" 6548then : 6549 xorg_cv_cc_flag_unused_command_line_argument=yes 6550else $as_nop 6551 xorg_cv_cc_flag_unused_command_line_argument=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6554fi 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559fi 6560 6561found="no" 6562 6563 if test $found = "no" ; then 6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 fi 6567 6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6570 fi 6571 6572 CFLAGS="$CFLAGS -Wshadow" 6573 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6575printf %s "checking if $CC supports -Wshadow... " >&6; } 6576 cacheid=xorg_cv_cc_flag__Wshadow 6577 if eval test \${$cacheid+y} 6578then : 6579 printf %s "(cached) " >&6 6580else $as_nop 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583int i; 6584int 6585main (void) 6586{ 6587 6588 ; 6589 return 0; 6590} 6591_ACEOF 6592if ac_fn_c_try_link "$LINENO" 6593then : 6594 eval $cacheid=yes 6595else $as_nop 6596 eval $cacheid=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6599 conftest$ac_exeext conftest.$ac_ext 6600fi 6601 6602 6603 CFLAGS="$xorg_testset_save_CFLAGS" 6604 6605 eval supported=\$$cacheid 6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6607printf "%s\n" "$supported" >&6; } 6608 if test "$supported" = "yes" ; then 6609 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6610 found="yes" 6611 fi 6612 fi 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628xorg_testset_save_CFLAGS="$CFLAGS" 6629 6630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6634if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6635then : 6636 printf %s "(cached) " >&6 6637else $as_nop 6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6639/* end confdefs.h. */ 6640int i; 6641_ACEOF 6642if ac_fn_c_try_compile "$LINENO" 6643then : 6644 xorg_cv_cc_flag_unknown_warning_option=yes 6645else $as_nop 6646 xorg_cv_cc_flag_unknown_warning_option=no 6647fi 6648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6649fi 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6653 CFLAGS="$xorg_testset_save_CFLAGS" 6654fi 6655 6656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6659 fi 6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6663if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6664then : 6665 printf %s "(cached) " >&6 6666else $as_nop 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669int i; 6670_ACEOF 6671if ac_fn_c_try_compile "$LINENO" 6672then : 6673 xorg_cv_cc_flag_unused_command_line_argument=yes 6674else $as_nop 6675 xorg_cv_cc_flag_unused_command_line_argument=no 6676fi 6677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6678fi 6679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6682 CFLAGS="$xorg_testset_save_CFLAGS" 6683fi 6684 6685found="no" 6686 6687 if test $found = "no" ; then 6688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6690 fi 6691 6692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6694 fi 6695 6696 CFLAGS="$CFLAGS -Wmissing-noreturn" 6697 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6699printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6700 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6701 if eval test \${$cacheid+y} 6702then : 6703 printf %s "(cached) " >&6 6704else $as_nop 6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706/* end confdefs.h. */ 6707int i; 6708int 6709main (void) 6710{ 6711 6712 ; 6713 return 0; 6714} 6715_ACEOF 6716if ac_fn_c_try_link "$LINENO" 6717then : 6718 eval $cacheid=yes 6719else $as_nop 6720 eval $cacheid=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6723 conftest$ac_exeext conftest.$ac_ext 6724fi 6725 6726 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728 6729 eval supported=\$$cacheid 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6731printf "%s\n" "$supported" >&6; } 6732 if test "$supported" = "yes" ; then 6733 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6734 found="yes" 6735 fi 6736 fi 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752xorg_testset_save_CFLAGS="$CFLAGS" 6753 6754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6758if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6759then : 6760 printf %s "(cached) " >&6 6761else $as_nop 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764int i; 6765_ACEOF 6766if ac_fn_c_try_compile "$LINENO" 6767then : 6768 xorg_cv_cc_flag_unknown_warning_option=yes 6769else $as_nop 6770 xorg_cv_cc_flag_unknown_warning_option=no 6771fi 6772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6773fi 6774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6777 CFLAGS="$xorg_testset_save_CFLAGS" 6778fi 6779 6780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6783 fi 6784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6787if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6788then : 6789 printf %s "(cached) " >&6 6790else $as_nop 6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6792/* end confdefs.h. */ 6793int i; 6794_ACEOF 6795if ac_fn_c_try_compile "$LINENO" 6796then : 6797 xorg_cv_cc_flag_unused_command_line_argument=yes 6798else $as_nop 6799 xorg_cv_cc_flag_unused_command_line_argument=no 6800fi 6801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6802fi 6803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6806 CFLAGS="$xorg_testset_save_CFLAGS" 6807fi 6808 6809found="no" 6810 6811 if test $found = "no" ; then 6812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 fi 6815 6816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6818 fi 6819 6820 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6821 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6823printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6824 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6825 if eval test \${$cacheid+y} 6826then : 6827 printf %s "(cached) " >&6 6828else $as_nop 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831int i; 6832int 6833main (void) 6834{ 6835 6836 ; 6837 return 0; 6838} 6839_ACEOF 6840if ac_fn_c_try_link "$LINENO" 6841then : 6842 eval $cacheid=yes 6843else $as_nop 6844 eval $cacheid=no 6845fi 6846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6847 conftest$ac_exeext conftest.$ac_ext 6848fi 6849 6850 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852 6853 eval supported=\$$cacheid 6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6855printf "%s\n" "$supported" >&6; } 6856 if test "$supported" = "yes" ; then 6857 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6858 found="yes" 6859 fi 6860 fi 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876xorg_testset_save_CFLAGS="$CFLAGS" 6877 6878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6882if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6883then : 6884 printf %s "(cached) " >&6 6885else $as_nop 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888int i; 6889_ACEOF 6890if ac_fn_c_try_compile "$LINENO" 6891then : 6892 xorg_cv_cc_flag_unknown_warning_option=yes 6893else $as_nop 6894 xorg_cv_cc_flag_unknown_warning_option=no 6895fi 6896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6897fi 6898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6901 CFLAGS="$xorg_testset_save_CFLAGS" 6902fi 6903 6904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6907 fi 6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6911if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6912then : 6913 printf %s "(cached) " >&6 6914else $as_nop 6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916/* end confdefs.h. */ 6917int i; 6918_ACEOF 6919if ac_fn_c_try_compile "$LINENO" 6920then : 6921 xorg_cv_cc_flag_unused_command_line_argument=yes 6922else $as_nop 6923 xorg_cv_cc_flag_unused_command_line_argument=no 6924fi 6925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6926fi 6927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6930 CFLAGS="$xorg_testset_save_CFLAGS" 6931fi 6932 6933found="no" 6934 6935 if test $found = "no" ; then 6936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6938 fi 6939 6940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6942 fi 6943 6944 CFLAGS="$CFLAGS -Wredundant-decls" 6945 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6947printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6948 cacheid=xorg_cv_cc_flag__Wredundant_decls 6949 if eval test \${$cacheid+y} 6950then : 6951 printf %s "(cached) " >&6 6952else $as_nop 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955int i; 6956int 6957main (void) 6958{ 6959 6960 ; 6961 return 0; 6962} 6963_ACEOF 6964if ac_fn_c_try_link "$LINENO" 6965then : 6966 eval $cacheid=yes 6967else $as_nop 6968 eval $cacheid=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6971 conftest$ac_exeext conftest.$ac_ext 6972fi 6973 6974 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976 6977 eval supported=\$$cacheid 6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6979printf "%s\n" "$supported" >&6; } 6980 if test "$supported" = "yes" ; then 6981 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6982 found="yes" 6983 fi 6984 fi 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000xorg_testset_save_CFLAGS="$CFLAGS" 7001 7002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7006if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7007then : 7008 printf %s "(cached) " >&6 7009else $as_nop 7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7011/* end confdefs.h. */ 7012int i; 7013_ACEOF 7014if ac_fn_c_try_compile "$LINENO" 7015then : 7016 xorg_cv_cc_flag_unknown_warning_option=yes 7017else $as_nop 7018 xorg_cv_cc_flag_unknown_warning_option=no 7019fi 7020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7021fi 7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7025 CFLAGS="$xorg_testset_save_CFLAGS" 7026fi 7027 7028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7031 fi 7032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7035if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7036then : 7037 printf %s "(cached) " >&6 7038else $as_nop 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041int i; 7042_ACEOF 7043if ac_fn_c_try_compile "$LINENO" 7044then : 7045 xorg_cv_cc_flag_unused_command_line_argument=yes 7046else $as_nop 7047 xorg_cv_cc_flag_unused_command_line_argument=no 7048fi 7049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7050fi 7051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7054 CFLAGS="$xorg_testset_save_CFLAGS" 7055fi 7056 7057found="no" 7058 7059 if test $found = "no" ; then 7060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7062 fi 7063 7064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7066 fi 7067 7068 CFLAGS="$CFLAGS -Wlogical-op" 7069 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7071printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7072 cacheid=xorg_cv_cc_flag__Wlogical_op 7073 if eval test \${$cacheid+y} 7074then : 7075 printf %s "(cached) " >&6 7076else $as_nop 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080int 7081main (void) 7082{ 7083 7084 ; 7085 return 0; 7086} 7087_ACEOF 7088if ac_fn_c_try_link "$LINENO" 7089then : 7090 eval $cacheid=yes 7091else $as_nop 7092 eval $cacheid=no 7093fi 7094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7095 conftest$ac_exeext conftest.$ac_ext 7096fi 7097 7098 7099 CFLAGS="$xorg_testset_save_CFLAGS" 7100 7101 eval supported=\$$cacheid 7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7103printf "%s\n" "$supported" >&6; } 7104 if test "$supported" = "yes" ; then 7105 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7106 found="yes" 7107 fi 7108 fi 7109 7110 7111 7112# These are currently disabled because they are noisy. They will be enabled 7113# in the future once the codebase is sufficiently modernized to silence 7114# them. For now, I don't want them to drown out the other warnings. 7115# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7116# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7117# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7118 7119# Turn some warnings into errors, so we don't accidently get successful builds 7120# when there are problems that should be fixed. 7121 7122if test "x$SELECTIVE_WERROR" = "xyes" ; then 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136xorg_testset_save_CFLAGS="$CFLAGS" 7137 7138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7142if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7143then : 7144 printf %s "(cached) " >&6 7145else $as_nop 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148int i; 7149_ACEOF 7150if ac_fn_c_try_compile "$LINENO" 7151then : 7152 xorg_cv_cc_flag_unknown_warning_option=yes 7153else $as_nop 7154 xorg_cv_cc_flag_unknown_warning_option=no 7155fi 7156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7157fi 7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7161 CFLAGS="$xorg_testset_save_CFLAGS" 7162fi 7163 7164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7167 fi 7168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7171if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7172then : 7173 printf %s "(cached) " >&6 7174else $as_nop 7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7176/* end confdefs.h. */ 7177int i; 7178_ACEOF 7179if ac_fn_c_try_compile "$LINENO" 7180then : 7181 xorg_cv_cc_flag_unused_command_line_argument=yes 7182else $as_nop 7183 xorg_cv_cc_flag_unused_command_line_argument=no 7184fi 7185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7186fi 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7190 CFLAGS="$xorg_testset_save_CFLAGS" 7191fi 7192 7193found="no" 7194 7195 if test $found = "no" ; then 7196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7198 fi 7199 7200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7202 fi 7203 7204 CFLAGS="$CFLAGS -Werror=implicit" 7205 7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7207printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7208 cacheid=xorg_cv_cc_flag__Werror_implicit 7209 if eval test \${$cacheid+y} 7210then : 7211 printf %s "(cached) " >&6 7212else $as_nop 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216int 7217main (void) 7218{ 7219 7220 ; 7221 return 0; 7222} 7223_ACEOF 7224if ac_fn_c_try_link "$LINENO" 7225then : 7226 eval $cacheid=yes 7227else $as_nop 7228 eval $cacheid=no 7229fi 7230rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7231 conftest$ac_exeext conftest.$ac_ext 7232fi 7233 7234 7235 CFLAGS="$xorg_testset_save_CFLAGS" 7236 7237 eval supported=\$$cacheid 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7239printf "%s\n" "$supported" >&6; } 7240 if test "$supported" = "yes" ; then 7241 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7242 found="yes" 7243 fi 7244 fi 7245 7246 if test $found = "no" ; then 7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 fi 7250 7251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7253 fi 7254 7255 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7256 7257 { 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 7258printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7259 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7260 if eval test \${$cacheid+y} 7261then : 7262 printf %s "(cached) " >&6 7263else $as_nop 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266int i; 7267int 7268main (void) 7269{ 7270 7271 ; 7272 return 0; 7273} 7274_ACEOF 7275if ac_fn_c_try_link "$LINENO" 7276then : 7277 eval $cacheid=yes 7278else $as_nop 7279 eval $cacheid=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7282 conftest$ac_exeext conftest.$ac_ext 7283fi 7284 7285 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287 7288 eval supported=\$$cacheid 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7290printf "%s\n" "$supported" >&6; } 7291 if test "$supported" = "yes" ; then 7292 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7293 found="yes" 7294 fi 7295 fi 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311xorg_testset_save_CFLAGS="$CFLAGS" 7312 7313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7317if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7318then : 7319 printf %s "(cached) " >&6 7320else $as_nop 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322/* end confdefs.h. */ 7323int i; 7324_ACEOF 7325if ac_fn_c_try_compile "$LINENO" 7326then : 7327 xorg_cv_cc_flag_unknown_warning_option=yes 7328else $as_nop 7329 xorg_cv_cc_flag_unknown_warning_option=no 7330fi 7331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7332fi 7333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7336 CFLAGS="$xorg_testset_save_CFLAGS" 7337fi 7338 7339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7342 fi 7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7346if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7347then : 7348 printf %s "(cached) " >&6 7349else $as_nop 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352int i; 7353_ACEOF 7354if ac_fn_c_try_compile "$LINENO" 7355then : 7356 xorg_cv_cc_flag_unused_command_line_argument=yes 7357else $as_nop 7358 xorg_cv_cc_flag_unused_command_line_argument=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7361fi 7362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7365 CFLAGS="$xorg_testset_save_CFLAGS" 7366fi 7367 7368found="no" 7369 7370 if test $found = "no" ; then 7371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 fi 7374 7375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7377 fi 7378 7379 CFLAGS="$CFLAGS -Werror=nonnull" 7380 7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7382printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7383 cacheid=xorg_cv_cc_flag__Werror_nonnull 7384 if eval test \${$cacheid+y} 7385then : 7386 printf %s "(cached) " >&6 7387else $as_nop 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390int i; 7391int 7392main (void) 7393{ 7394 7395 ; 7396 return 0; 7397} 7398_ACEOF 7399if ac_fn_c_try_link "$LINENO" 7400then : 7401 eval $cacheid=yes 7402else $as_nop 7403 eval $cacheid=no 7404fi 7405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7406 conftest$ac_exeext conftest.$ac_ext 7407fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414printf "%s\n" "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7417 found="yes" 7418 fi 7419 fi 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435xorg_testset_save_CFLAGS="$CFLAGS" 7436 7437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7441if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7442then : 7443 printf %s "(cached) " >&6 7444else $as_nop 7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446/* end confdefs.h. */ 7447int i; 7448_ACEOF 7449if ac_fn_c_try_compile "$LINENO" 7450then : 7451 xorg_cv_cc_flag_unknown_warning_option=yes 7452else $as_nop 7453 xorg_cv_cc_flag_unknown_warning_option=no 7454fi 7455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7456fi 7457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7460 CFLAGS="$xorg_testset_save_CFLAGS" 7461fi 7462 7463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7466 fi 7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7470if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7471then : 7472 printf %s "(cached) " >&6 7473else $as_nop 7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476int i; 7477_ACEOF 7478if ac_fn_c_try_compile "$LINENO" 7479then : 7480 xorg_cv_cc_flag_unused_command_line_argument=yes 7481else $as_nop 7482 xorg_cv_cc_flag_unused_command_line_argument=no 7483fi 7484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7485fi 7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7489 CFLAGS="$xorg_testset_save_CFLAGS" 7490fi 7491 7492found="no" 7493 7494 if test $found = "no" ; then 7495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 fi 7498 7499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7501 fi 7502 7503 CFLAGS="$CFLAGS -Werror=init-self" 7504 7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7506printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7507 cacheid=xorg_cv_cc_flag__Werror_init_self 7508 if eval test \${$cacheid+y} 7509then : 7510 printf %s "(cached) " >&6 7511else $as_nop 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514int i; 7515int 7516main (void) 7517{ 7518 7519 ; 7520 return 0; 7521} 7522_ACEOF 7523if ac_fn_c_try_link "$LINENO" 7524then : 7525 eval $cacheid=yes 7526else $as_nop 7527 eval $cacheid=no 7528fi 7529rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7530 conftest$ac_exeext conftest.$ac_ext 7531fi 7532 7533 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535 7536 eval supported=\$$cacheid 7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7538printf "%s\n" "$supported" >&6; } 7539 if test "$supported" = "yes" ; then 7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7541 found="yes" 7542 fi 7543 fi 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559xorg_testset_save_CFLAGS="$CFLAGS" 7560 7561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7565if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7566then : 7567 printf %s "(cached) " >&6 7568else $as_nop 7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570/* end confdefs.h. */ 7571int i; 7572_ACEOF 7573if ac_fn_c_try_compile "$LINENO" 7574then : 7575 xorg_cv_cc_flag_unknown_warning_option=yes 7576else $as_nop 7577 xorg_cv_cc_flag_unknown_warning_option=no 7578fi 7579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7580fi 7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585fi 7586 7587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 fi 7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7594if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7595then : 7596 printf %s "(cached) " >&6 7597else $as_nop 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO" 7603then : 7604 xorg_cv_cc_flag_unused_command_line_argument=yes 7605else $as_nop 7606 xorg_cv_cc_flag_unused_command_line_argument=no 7607fi 7608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7609fi 7610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614fi 7615 7616found="no" 7617 7618 if test $found = "no" ; then 7619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7621 fi 7622 7623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7625 fi 7626 7627 CFLAGS="$CFLAGS -Werror=main" 7628 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7630printf %s "checking if $CC supports -Werror=main... " >&6; } 7631 cacheid=xorg_cv_cc_flag__Werror_main 7632 if eval test \${$cacheid+y} 7633then : 7634 printf %s "(cached) " >&6 7635else $as_nop 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638int i; 7639int 7640main (void) 7641{ 7642 7643 ; 7644 return 0; 7645} 7646_ACEOF 7647if ac_fn_c_try_link "$LINENO" 7648then : 7649 eval $cacheid=yes 7650else $as_nop 7651 eval $cacheid=no 7652fi 7653rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7654 conftest$ac_exeext conftest.$ac_ext 7655fi 7656 7657 7658 CFLAGS="$xorg_testset_save_CFLAGS" 7659 7660 eval supported=\$$cacheid 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7662printf "%s\n" "$supported" >&6; } 7663 if test "$supported" = "yes" ; then 7664 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7665 found="yes" 7666 fi 7667 fi 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683xorg_testset_save_CFLAGS="$CFLAGS" 7684 7685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7689if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7690then : 7691 printf %s "(cached) " >&6 7692else $as_nop 7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7694/* end confdefs.h. */ 7695int i; 7696_ACEOF 7697if ac_fn_c_try_compile "$LINENO" 7698then : 7699 xorg_cv_cc_flag_unknown_warning_option=yes 7700else $as_nop 7701 xorg_cv_cc_flag_unknown_warning_option=no 7702fi 7703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7704fi 7705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7708 CFLAGS="$xorg_testset_save_CFLAGS" 7709fi 7710 7711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7714 fi 7715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7718if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7719then : 7720 printf %s "(cached) " >&6 7721else $as_nop 7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724int i; 7725_ACEOF 7726if ac_fn_c_try_compile "$LINENO" 7727then : 7728 xorg_cv_cc_flag_unused_command_line_argument=yes 7729else $as_nop 7730 xorg_cv_cc_flag_unused_command_line_argument=no 7731fi 7732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7733fi 7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7737 CFLAGS="$xorg_testset_save_CFLAGS" 7738fi 7739 7740found="no" 7741 7742 if test $found = "no" ; then 7743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7745 fi 7746 7747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7749 fi 7750 7751 CFLAGS="$CFLAGS -Werror=missing-braces" 7752 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7754printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7755 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7756 if eval test \${$cacheid+y} 7757then : 7758 printf %s "(cached) " >&6 7759else $as_nop 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762int i; 7763int 7764main (void) 7765{ 7766 7767 ; 7768 return 0; 7769} 7770_ACEOF 7771if ac_fn_c_try_link "$LINENO" 7772then : 7773 eval $cacheid=yes 7774else $as_nop 7775 eval $cacheid=no 7776fi 7777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7778 conftest$ac_exeext conftest.$ac_ext 7779fi 7780 7781 7782 CFLAGS="$xorg_testset_save_CFLAGS" 7783 7784 eval supported=\$$cacheid 7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7786printf "%s\n" "$supported" >&6; } 7787 if test "$supported" = "yes" ; then 7788 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7789 found="yes" 7790 fi 7791 fi 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807xorg_testset_save_CFLAGS="$CFLAGS" 7808 7809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7813if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7814then : 7815 printf %s "(cached) " >&6 7816else $as_nop 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820_ACEOF 7821if ac_fn_c_try_compile "$LINENO" 7822then : 7823 xorg_cv_cc_flag_unknown_warning_option=yes 7824else $as_nop 7825 xorg_cv_cc_flag_unknown_warning_option=no 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7828fi 7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7832 CFLAGS="$xorg_testset_save_CFLAGS" 7833fi 7834 7835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7838 fi 7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7843then : 7844 printf %s "(cached) " >&6 7845else $as_nop 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848int i; 7849_ACEOF 7850if ac_fn_c_try_compile "$LINENO" 7851then : 7852 xorg_cv_cc_flag_unused_command_line_argument=yes 7853else $as_nop 7854 xorg_cv_cc_flag_unused_command_line_argument=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7857fi 7858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862fi 7863 7864found="no" 7865 7866 if test $found = "no" ; then 7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7869 fi 7870 7871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7873 fi 7874 7875 CFLAGS="$CFLAGS -Werror=sequence-point" 7876 7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7878printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7879 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7880 if eval test \${$cacheid+y} 7881then : 7882 printf %s "(cached) " >&6 7883else $as_nop 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885/* end confdefs.h. */ 7886int i; 7887int 7888main (void) 7889{ 7890 7891 ; 7892 return 0; 7893} 7894_ACEOF 7895if ac_fn_c_try_link "$LINENO" 7896then : 7897 eval $cacheid=yes 7898else $as_nop 7899 eval $cacheid=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7902 conftest$ac_exeext conftest.$ac_ext 7903fi 7904 7905 7906 CFLAGS="$xorg_testset_save_CFLAGS" 7907 7908 eval supported=\$$cacheid 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7910printf "%s\n" "$supported" >&6; } 7911 if test "$supported" = "yes" ; then 7912 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7913 found="yes" 7914 fi 7915 fi 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931xorg_testset_save_CFLAGS="$CFLAGS" 7932 7933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7937if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7938then : 7939 printf %s "(cached) " >&6 7940else $as_nop 7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943int i; 7944_ACEOF 7945if ac_fn_c_try_compile "$LINENO" 7946then : 7947 xorg_cv_cc_flag_unknown_warning_option=yes 7948else $as_nop 7949 xorg_cv_cc_flag_unknown_warning_option=no 7950fi 7951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7952fi 7953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957fi 7958 7959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7966if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7967then : 7968 printf %s "(cached) " >&6 7969else $as_nop 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO" 7975then : 7976 xorg_cv_cc_flag_unused_command_line_argument=yes 7977else $as_nop 7978 xorg_cv_cc_flag_unused_command_line_argument=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7981fi 7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988found="no" 7989 7990 if test $found = "no" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7997 fi 7998 7999 CFLAGS="$CFLAGS -Werror=return-type" 8000 8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8002printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8003 cacheid=xorg_cv_cc_flag__Werror_return_type 8004 if eval test \${$cacheid+y} 8005then : 8006 printf %s "(cached) " >&6 8007else $as_nop 8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8009/* end confdefs.h. */ 8010int i; 8011int 8012main (void) 8013{ 8014 8015 ; 8016 return 0; 8017} 8018_ACEOF 8019if ac_fn_c_try_link "$LINENO" 8020then : 8021 eval $cacheid=yes 8022else $as_nop 8023 eval $cacheid=no 8024fi 8025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8026 conftest$ac_exeext conftest.$ac_ext 8027fi 8028 8029 8030 CFLAGS="$xorg_testset_save_CFLAGS" 8031 8032 eval supported=\$$cacheid 8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8034printf "%s\n" "$supported" >&6; } 8035 if test "$supported" = "yes" ; then 8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8037 found="yes" 8038 fi 8039 fi 8040 8041 if test $found = "no" ; then 8042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8044 fi 8045 8046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8048 fi 8049 8050 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8051 8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8053printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8054 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8055 if eval test \${$cacheid+y} 8056then : 8057 printf %s "(cached) " >&6 8058else $as_nop 8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8060/* end confdefs.h. */ 8061int i; 8062int 8063main (void) 8064{ 8065 8066 ; 8067 return 0; 8068} 8069_ACEOF 8070if ac_fn_c_try_link "$LINENO" 8071then : 8072 eval $cacheid=yes 8073else $as_nop 8074 eval $cacheid=no 8075fi 8076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8077 conftest$ac_exeext conftest.$ac_ext 8078fi 8079 8080 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082 8083 eval supported=\$$cacheid 8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8085printf "%s\n" "$supported" >&6; } 8086 if test "$supported" = "yes" ; then 8087 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8088 found="yes" 8089 fi 8090 fi 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106xorg_testset_save_CFLAGS="$CFLAGS" 8107 8108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8113then : 8114 printf %s "(cached) " >&6 8115else $as_nop 8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118int i; 8119_ACEOF 8120if ac_fn_c_try_compile "$LINENO" 8121then : 8122 xorg_cv_cc_flag_unknown_warning_option=yes 8123else $as_nop 8124 xorg_cv_cc_flag_unknown_warning_option=no 8125fi 8126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8127fi 8128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8131 CFLAGS="$xorg_testset_save_CFLAGS" 8132fi 8133 8134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8137 fi 8138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8141if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8142then : 8143 printf %s "(cached) " >&6 8144else $as_nop 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147int i; 8148_ACEOF 8149if ac_fn_c_try_compile "$LINENO" 8150then : 8151 xorg_cv_cc_flag_unused_command_line_argument=yes 8152else $as_nop 8153 xorg_cv_cc_flag_unused_command_line_argument=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8156fi 8157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163found="no" 8164 8165 if test $found = "no" ; then 8166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 fi 8169 8170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8172 fi 8173 8174 CFLAGS="$CFLAGS -Werror=trigraphs" 8175 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8177printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8178 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8179 if eval test \${$cacheid+y} 8180then : 8181 printf %s "(cached) " >&6 8182else $as_nop 8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184/* end confdefs.h. */ 8185int i; 8186int 8187main (void) 8188{ 8189 8190 ; 8191 return 0; 8192} 8193_ACEOF 8194if ac_fn_c_try_link "$LINENO" 8195then : 8196 eval $cacheid=yes 8197else $as_nop 8198 eval $cacheid=no 8199fi 8200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8201 conftest$ac_exeext conftest.$ac_ext 8202fi 8203 8204 8205 CFLAGS="$xorg_testset_save_CFLAGS" 8206 8207 eval supported=\$$cacheid 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8209printf "%s\n" "$supported" >&6; } 8210 if test "$supported" = "yes" ; then 8211 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8212 found="yes" 8213 fi 8214 fi 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230xorg_testset_save_CFLAGS="$CFLAGS" 8231 8232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8236if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8237then : 8238 printf %s "(cached) " >&6 8239else $as_nop 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242int i; 8243_ACEOF 8244if ac_fn_c_try_compile "$LINENO" 8245then : 8246 xorg_cv_cc_flag_unknown_warning_option=yes 8247else $as_nop 8248 xorg_cv_cc_flag_unknown_warning_option=no 8249fi 8250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8251fi 8252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8255 CFLAGS="$xorg_testset_save_CFLAGS" 8256fi 8257 8258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8261 fi 8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8266then : 8267 printf %s "(cached) " >&6 8268else $as_nop 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272_ACEOF 8273if ac_fn_c_try_compile "$LINENO" 8274then : 8275 xorg_cv_cc_flag_unused_command_line_argument=yes 8276else $as_nop 8277 xorg_cv_cc_flag_unused_command_line_argument=no 8278fi 8279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8280fi 8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8284 CFLAGS="$xorg_testset_save_CFLAGS" 8285fi 8286 8287found="no" 8288 8289 if test $found = "no" ; then 8290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 fi 8293 8294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8296 fi 8297 8298 CFLAGS="$CFLAGS -Werror=array-bounds" 8299 8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8301printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8302 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8303 if eval test \${$cacheid+y} 8304then : 8305 printf %s "(cached) " >&6 8306else $as_nop 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309int i; 8310int 8311main (void) 8312{ 8313 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_link "$LINENO" 8319then : 8320 eval $cacheid=yes 8321else $as_nop 8322 eval $cacheid=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8325 conftest$ac_exeext conftest.$ac_ext 8326fi 8327 8328 8329 CFLAGS="$xorg_testset_save_CFLAGS" 8330 8331 eval supported=\$$cacheid 8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8333printf "%s\n" "$supported" >&6; } 8334 if test "$supported" = "yes" ; then 8335 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8336 found="yes" 8337 fi 8338 fi 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354xorg_testset_save_CFLAGS="$CFLAGS" 8355 8356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8360if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8361then : 8362 printf %s "(cached) " >&6 8363else $as_nop 8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8365/* end confdefs.h. */ 8366int i; 8367_ACEOF 8368if ac_fn_c_try_compile "$LINENO" 8369then : 8370 xorg_cv_cc_flag_unknown_warning_option=yes 8371else $as_nop 8372 xorg_cv_cc_flag_unknown_warning_option=no 8373fi 8374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8375fi 8376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380fi 8381 8382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8385 fi 8386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8389if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8390then : 8391 printf %s "(cached) " >&6 8392else $as_nop 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395int i; 8396_ACEOF 8397if ac_fn_c_try_compile "$LINENO" 8398then : 8399 xorg_cv_cc_flag_unused_command_line_argument=yes 8400else $as_nop 8401 xorg_cv_cc_flag_unused_command_line_argument=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8404fi 8405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411found="no" 8412 8413 if test $found = "no" ; then 8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8416 fi 8417 8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8420 fi 8421 8422 CFLAGS="$CFLAGS -Werror=write-strings" 8423 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8425printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8426 cacheid=xorg_cv_cc_flag__Werror_write_strings 8427 if eval test \${$cacheid+y} 8428then : 8429 printf %s "(cached) " >&6 8430else $as_nop 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434int 8435main (void) 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO" 8443then : 8444 eval $cacheid=yes 8445else $as_nop 8446 eval $cacheid=no 8447fi 8448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8449 conftest$ac_exeext conftest.$ac_ext 8450fi 8451 8452 8453 CFLAGS="$xorg_testset_save_CFLAGS" 8454 8455 eval supported=\$$cacheid 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8457printf "%s\n" "$supported" >&6; } 8458 if test "$supported" = "yes" ; then 8459 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8460 found="yes" 8461 fi 8462 fi 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478xorg_testset_save_CFLAGS="$CFLAGS" 8479 8480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8484if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8485then : 8486 printf %s "(cached) " >&6 8487else $as_nop 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491_ACEOF 8492if ac_fn_c_try_compile "$LINENO" 8493then : 8494 xorg_cv_cc_flag_unknown_warning_option=yes 8495else $as_nop 8496 xorg_cv_cc_flag_unknown_warning_option=no 8497fi 8498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8499fi 8500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8503 CFLAGS="$xorg_testset_save_CFLAGS" 8504fi 8505 8506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8509 fi 8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8514then : 8515 printf %s "(cached) " >&6 8516else $as_nop 8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8518/* end confdefs.h. */ 8519int i; 8520_ACEOF 8521if ac_fn_c_try_compile "$LINENO" 8522then : 8523 xorg_cv_cc_flag_unused_command_line_argument=yes 8524else $as_nop 8525 xorg_cv_cc_flag_unused_command_line_argument=no 8526fi 8527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8528fi 8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8532 CFLAGS="$xorg_testset_save_CFLAGS" 8533fi 8534 8535found="no" 8536 8537 if test $found = "no" ; then 8538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8540 fi 8541 8542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8544 fi 8545 8546 CFLAGS="$CFLAGS -Werror=address" 8547 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8549printf %s "checking if $CC supports -Werror=address... " >&6; } 8550 cacheid=xorg_cv_cc_flag__Werror_address 8551 if eval test \${$cacheid+y} 8552then : 8553 printf %s "(cached) " >&6 8554else $as_nop 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557int i; 8558int 8559main (void) 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566if ac_fn_c_try_link "$LINENO" 8567then : 8568 eval $cacheid=yes 8569else $as_nop 8570 eval $cacheid=no 8571fi 8572rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8573 conftest$ac_exeext conftest.$ac_ext 8574fi 8575 8576 8577 CFLAGS="$xorg_testset_save_CFLAGS" 8578 8579 eval supported=\$$cacheid 8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8581printf "%s\n" "$supported" >&6; } 8582 if test "$supported" = "yes" ; then 8583 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8584 found="yes" 8585 fi 8586 fi 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602xorg_testset_save_CFLAGS="$CFLAGS" 8603 8604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8608if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8609then : 8610 printf %s "(cached) " >&6 8611else $as_nop 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO" 8617then : 8618 xorg_cv_cc_flag_unknown_warning_option=yes 8619else $as_nop 8620 xorg_cv_cc_flag_unknown_warning_option=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8623fi 8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628fi 8629 8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 fi 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8638then : 8639 printf %s "(cached) " >&6 8640else $as_nop 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643int i; 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO" 8646then : 8647 xorg_cv_cc_flag_unused_command_line_argument=yes 8648else $as_nop 8649 xorg_cv_cc_flag_unused_command_line_argument=no 8650fi 8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8652fi 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8656 CFLAGS="$xorg_testset_save_CFLAGS" 8657fi 8658 8659found="no" 8660 8661 if test $found = "no" ; then 8662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664 fi 8665 8666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8668 fi 8669 8670 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8671 8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8673printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8674 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8675 if eval test \${$cacheid+y} 8676then : 8677 printf %s "(cached) " >&6 8678else $as_nop 8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681int i; 8682int 8683main (void) 8684{ 8685 8686 ; 8687 return 0; 8688} 8689_ACEOF 8690if ac_fn_c_try_link "$LINENO" 8691then : 8692 eval $cacheid=yes 8693else $as_nop 8694 eval $cacheid=no 8695fi 8696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8697 conftest$ac_exeext conftest.$ac_ext 8698fi 8699 8700 8701 CFLAGS="$xorg_testset_save_CFLAGS" 8702 8703 eval supported=\$$cacheid 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8705printf "%s\n" "$supported" >&6; } 8706 if test "$supported" = "yes" ; then 8707 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8708 found="yes" 8709 fi 8710 fi 8711 8712 if test $found = "no" ; then 8713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 fi 8716 8717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8719 fi 8720 8721 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8722 8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8724printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8725 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8726 if eval test \${$cacheid+y} 8727then : 8728 printf %s "(cached) " >&6 8729else $as_nop 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732int i; 8733int 8734main (void) 8735{ 8736 8737 ; 8738 return 0; 8739} 8740_ACEOF 8741if ac_fn_c_try_link "$LINENO" 8742then : 8743 eval $cacheid=yes 8744else $as_nop 8745 eval $cacheid=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8748 conftest$ac_exeext conftest.$ac_ext 8749fi 8750 8751 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753 8754 eval supported=\$$cacheid 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8756printf "%s\n" "$supported" >&6; } 8757 if test "$supported" = "yes" ; then 8758 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8759 found="yes" 8760 fi 8761 fi 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777xorg_testset_save_CFLAGS="$CFLAGS" 8778 8779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8783if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8784then : 8785 printf %s "(cached) " >&6 8786else $as_nop 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789int i; 8790_ACEOF 8791if ac_fn_c_try_compile "$LINENO" 8792then : 8793 xorg_cv_cc_flag_unknown_warning_option=yes 8794else $as_nop 8795 xorg_cv_cc_flag_unknown_warning_option=no 8796fi 8797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8798fi 8799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8802 CFLAGS="$xorg_testset_save_CFLAGS" 8803fi 8804 8805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 fi 8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8812if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8813then : 8814 printf %s "(cached) " >&6 8815else $as_nop 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818int i; 8819_ACEOF 8820if ac_fn_c_try_compile "$LINENO" 8821then : 8822 xorg_cv_cc_flag_unused_command_line_argument=yes 8823else $as_nop 8824 xorg_cv_cc_flag_unused_command_line_argument=no 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8827fi 8828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832fi 8833 8834found="no" 8835 8836 if test $found = "no" ; then 8837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 fi 8840 8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8843 fi 8844 8845 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8846 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8848printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8849 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8850 if eval test \${$cacheid+y} 8851then : 8852 printf %s "(cached) " >&6 8853else $as_nop 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857int 8858main (void) 8859{ 8860 8861 ; 8862 return 0; 8863} 8864_ACEOF 8865if ac_fn_c_try_link "$LINENO" 8866then : 8867 eval $cacheid=yes 8868else $as_nop 8869 eval $cacheid=no 8870fi 8871rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8872 conftest$ac_exeext conftest.$ac_ext 8873fi 8874 8875 8876 CFLAGS="$xorg_testset_save_CFLAGS" 8877 8878 eval supported=\$$cacheid 8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8880printf "%s\n" "$supported" >&6; } 8881 if test "$supported" = "yes" ; then 8882 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8883 found="yes" 8884 fi 8885 fi 8886 8887 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8888else 8889{ 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 8890printf "%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;} 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904xorg_testset_save_CFLAGS="$CFLAGS" 8905 8906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8909printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8910if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8911then : 8912 printf %s "(cached) " >&6 8913else $as_nop 8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915/* end confdefs.h. */ 8916int i; 8917_ACEOF 8918if ac_fn_c_try_compile "$LINENO" 8919then : 8920 xorg_cv_cc_flag_unknown_warning_option=yes 8921else $as_nop 8922 xorg_cv_cc_flag_unknown_warning_option=no 8923fi 8924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8925fi 8926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8929 CFLAGS="$xorg_testset_save_CFLAGS" 8930fi 8931 8932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8935 fi 8936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8939if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8940then : 8941 printf %s "(cached) " >&6 8942else $as_nop 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944/* end confdefs.h. */ 8945int i; 8946_ACEOF 8947if ac_fn_c_try_compile "$LINENO" 8948then : 8949 xorg_cv_cc_flag_unused_command_line_argument=yes 8950else $as_nop 8951 xorg_cv_cc_flag_unused_command_line_argument=no 8952fi 8953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8954fi 8955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8958 CFLAGS="$xorg_testset_save_CFLAGS" 8959fi 8960 8961found="no" 8962 8963 if test $found = "no" ; then 8964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8966 fi 8967 8968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8970 fi 8971 8972 CFLAGS="$CFLAGS -Wimplicit" 8973 8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8975printf %s "checking if $CC supports -Wimplicit... " >&6; } 8976 cacheid=xorg_cv_cc_flag__Wimplicit 8977 if eval test \${$cacheid+y} 8978then : 8979 printf %s "(cached) " >&6 8980else $as_nop 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983int i; 8984int 8985main (void) 8986{ 8987 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992if ac_fn_c_try_link "$LINENO" 8993then : 8994 eval $cacheid=yes 8995else $as_nop 8996 eval $cacheid=no 8997fi 8998rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8999 conftest$ac_exeext conftest.$ac_ext 9000fi 9001 9002 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004 9005 eval supported=\$$cacheid 9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9007printf "%s\n" "$supported" >&6; } 9008 if test "$supported" = "yes" ; then 9009 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9010 found="yes" 9011 fi 9012 fi 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028xorg_testset_save_CFLAGS="$CFLAGS" 9029 9030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9033printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9034if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9035then : 9036 printf %s "(cached) " >&6 9037else $as_nop 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040int i; 9041_ACEOF 9042if ac_fn_c_try_compile "$LINENO" 9043then : 9044 xorg_cv_cc_flag_unknown_warning_option=yes 9045else $as_nop 9046 xorg_cv_cc_flag_unknown_warning_option=no 9047fi 9048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9049fi 9050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054fi 9055 9056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9059 fi 9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9063if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9064then : 9065 printf %s "(cached) " >&6 9066else $as_nop 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070_ACEOF 9071if ac_fn_c_try_compile "$LINENO" 9072then : 9073 xorg_cv_cc_flag_unused_command_line_argument=yes 9074else $as_nop 9075 xorg_cv_cc_flag_unused_command_line_argument=no 9076fi 9077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9078fi 9079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9082 CFLAGS="$xorg_testset_save_CFLAGS" 9083fi 9084 9085found="no" 9086 9087 if test $found = "no" ; then 9088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9090 fi 9091 9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9094 fi 9095 9096 CFLAGS="$CFLAGS -Wnonnull" 9097 9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9099printf %s "checking if $CC supports -Wnonnull... " >&6; } 9100 cacheid=xorg_cv_cc_flag__Wnonnull 9101 if eval test \${$cacheid+y} 9102then : 9103 printf %s "(cached) " >&6 9104else $as_nop 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107int i; 9108int 9109main (void) 9110{ 9111 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116if ac_fn_c_try_link "$LINENO" 9117then : 9118 eval $cacheid=yes 9119else $as_nop 9120 eval $cacheid=no 9121fi 9122rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9123 conftest$ac_exeext conftest.$ac_ext 9124fi 9125 9126 9127 CFLAGS="$xorg_testset_save_CFLAGS" 9128 9129 eval supported=\$$cacheid 9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9131printf "%s\n" "$supported" >&6; } 9132 if test "$supported" = "yes" ; then 9133 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9134 found="yes" 9135 fi 9136 fi 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152xorg_testset_save_CFLAGS="$CFLAGS" 9153 9154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9157printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9158if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9159then : 9160 printf %s "(cached) " >&6 9161else $as_nop 9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9163/* end confdefs.h. */ 9164int i; 9165_ACEOF 9166if ac_fn_c_try_compile "$LINENO" 9167then : 9168 xorg_cv_cc_flag_unknown_warning_option=yes 9169else $as_nop 9170 xorg_cv_cc_flag_unknown_warning_option=no 9171fi 9172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9173fi 9174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9175printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9177 CFLAGS="$xorg_testset_save_CFLAGS" 9178fi 9179 9180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9183 fi 9184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9186printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9187if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9188then : 9189 printf %s "(cached) " >&6 9190else $as_nop 9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193int i; 9194_ACEOF 9195if ac_fn_c_try_compile "$LINENO" 9196then : 9197 xorg_cv_cc_flag_unused_command_line_argument=yes 9198else $as_nop 9199 xorg_cv_cc_flag_unused_command_line_argument=no 9200fi 9201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9202fi 9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9204printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9206 CFLAGS="$xorg_testset_save_CFLAGS" 9207fi 9208 9209found="no" 9210 9211 if test $found = "no" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9218 fi 9219 9220 CFLAGS="$CFLAGS -Winit-self" 9221 9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9223printf %s "checking if $CC supports -Winit-self... " >&6; } 9224 cacheid=xorg_cv_cc_flag__Winit_self 9225 if eval test \${$cacheid+y} 9226then : 9227 printf %s "(cached) " >&6 9228else $as_nop 9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230/* end confdefs.h. */ 9231int i; 9232int 9233main (void) 9234{ 9235 9236 ; 9237 return 0; 9238} 9239_ACEOF 9240if ac_fn_c_try_link "$LINENO" 9241then : 9242 eval $cacheid=yes 9243else $as_nop 9244 eval $cacheid=no 9245fi 9246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9247 conftest$ac_exeext conftest.$ac_ext 9248fi 9249 9250 9251 CFLAGS="$xorg_testset_save_CFLAGS" 9252 9253 eval supported=\$$cacheid 9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9255printf "%s\n" "$supported" >&6; } 9256 if test "$supported" = "yes" ; then 9257 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9258 found="yes" 9259 fi 9260 fi 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276xorg_testset_save_CFLAGS="$CFLAGS" 9277 9278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9281printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9282if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9283then : 9284 printf %s "(cached) " >&6 9285else $as_nop 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288int i; 9289_ACEOF 9290if ac_fn_c_try_compile "$LINENO" 9291then : 9292 xorg_cv_cc_flag_unknown_warning_option=yes 9293else $as_nop 9294 xorg_cv_cc_flag_unknown_warning_option=no 9295fi 9296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9297fi 9298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9299printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9301 CFLAGS="$xorg_testset_save_CFLAGS" 9302fi 9303 9304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 fi 9308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9310printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9311if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9312then : 9313 printf %s "(cached) " >&6 9314else $as_nop 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO" 9320then : 9321 xorg_cv_cc_flag_unused_command_line_argument=yes 9322else $as_nop 9323 xorg_cv_cc_flag_unused_command_line_argument=no 9324fi 9325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9326fi 9327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9330 CFLAGS="$xorg_testset_save_CFLAGS" 9331fi 9332 9333found="no" 9334 9335 if test $found = "no" ; then 9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 fi 9339 9340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9342 fi 9343 9344 CFLAGS="$CFLAGS -Wmain" 9345 9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9347printf %s "checking if $CC supports -Wmain... " >&6; } 9348 cacheid=xorg_cv_cc_flag__Wmain 9349 if eval test \${$cacheid+y} 9350then : 9351 printf %s "(cached) " >&6 9352else $as_nop 9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9354/* end confdefs.h. */ 9355int i; 9356int 9357main (void) 9358{ 9359 9360 ; 9361 return 0; 9362} 9363_ACEOF 9364if ac_fn_c_try_link "$LINENO" 9365then : 9366 eval $cacheid=yes 9367else $as_nop 9368 eval $cacheid=no 9369fi 9370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9371 conftest$ac_exeext conftest.$ac_ext 9372fi 9373 9374 9375 CFLAGS="$xorg_testset_save_CFLAGS" 9376 9377 eval supported=\$$cacheid 9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9379printf "%s\n" "$supported" >&6; } 9380 if test "$supported" = "yes" ; then 9381 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9382 found="yes" 9383 fi 9384 fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400xorg_testset_save_CFLAGS="$CFLAGS" 9401 9402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9406if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9407then : 9408 printf %s "(cached) " >&6 9409else $as_nop 9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411/* end confdefs.h. */ 9412int i; 9413_ACEOF 9414if ac_fn_c_try_compile "$LINENO" 9415then : 9416 xorg_cv_cc_flag_unknown_warning_option=yes 9417else $as_nop 9418 xorg_cv_cc_flag_unknown_warning_option=no 9419fi 9420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9421fi 9422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426fi 9427 9428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9435if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9436then : 9437 printf %s "(cached) " >&6 9438else $as_nop 9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442_ACEOF 9443if ac_fn_c_try_compile "$LINENO" 9444then : 9445 xorg_cv_cc_flag_unused_command_line_argument=yes 9446else $as_nop 9447 xorg_cv_cc_flag_unused_command_line_argument=no 9448fi 9449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9450fi 9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9454 CFLAGS="$xorg_testset_save_CFLAGS" 9455fi 9456 9457found="no" 9458 9459 if test $found = "no" ; then 9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9462 fi 9463 9464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9466 fi 9467 9468 CFLAGS="$CFLAGS -Wmissing-braces" 9469 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9471printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9472 cacheid=xorg_cv_cc_flag__Wmissing_braces 9473 if eval test \${$cacheid+y} 9474then : 9475 printf %s "(cached) " >&6 9476else $as_nop 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480int 9481main (void) 9482{ 9483 9484 ; 9485 return 0; 9486} 9487_ACEOF 9488if ac_fn_c_try_link "$LINENO" 9489then : 9490 eval $cacheid=yes 9491else $as_nop 9492 eval $cacheid=no 9493fi 9494rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9495 conftest$ac_exeext conftest.$ac_ext 9496fi 9497 9498 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500 9501 eval supported=\$$cacheid 9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9503printf "%s\n" "$supported" >&6; } 9504 if test "$supported" = "yes" ; then 9505 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9506 found="yes" 9507 fi 9508 fi 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524xorg_testset_save_CFLAGS="$CFLAGS" 9525 9526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9531then : 9532 printf %s "(cached) " >&6 9533else $as_nop 9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536int i; 9537_ACEOF 9538if ac_fn_c_try_compile "$LINENO" 9539then : 9540 xorg_cv_cc_flag_unknown_warning_option=yes 9541else $as_nop 9542 xorg_cv_cc_flag_unknown_warning_option=no 9543fi 9544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9545fi 9546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9549 CFLAGS="$xorg_testset_save_CFLAGS" 9550fi 9551 9552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9555 fi 9556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9560then : 9561 printf %s "(cached) " >&6 9562else $as_nop 9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564/* end confdefs.h. */ 9565int i; 9566_ACEOF 9567if ac_fn_c_try_compile "$LINENO" 9568then : 9569 xorg_cv_cc_flag_unused_command_line_argument=yes 9570else $as_nop 9571 xorg_cv_cc_flag_unused_command_line_argument=no 9572fi 9573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9574fi 9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9578 CFLAGS="$xorg_testset_save_CFLAGS" 9579fi 9580 9581found="no" 9582 9583 if test $found = "no" ; then 9584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9586 fi 9587 9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9590 fi 9591 9592 CFLAGS="$CFLAGS -Wsequence-point" 9593 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9595printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9596 cacheid=xorg_cv_cc_flag__Wsequence_point 9597 if eval test \${$cacheid+y} 9598then : 9599 printf %s "(cached) " >&6 9600else $as_nop 9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9602/* end confdefs.h. */ 9603int i; 9604int 9605main (void) 9606{ 9607 9608 ; 9609 return 0; 9610} 9611_ACEOF 9612if ac_fn_c_try_link "$LINENO" 9613then : 9614 eval $cacheid=yes 9615else $as_nop 9616 eval $cacheid=no 9617fi 9618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9619 conftest$ac_exeext conftest.$ac_ext 9620fi 9621 9622 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624 9625 eval supported=\$$cacheid 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9627printf "%s\n" "$supported" >&6; } 9628 if test "$supported" = "yes" ; then 9629 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9630 found="yes" 9631 fi 9632 fi 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648xorg_testset_save_CFLAGS="$CFLAGS" 9649 9650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9654if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9655then : 9656 printf %s "(cached) " >&6 9657else $as_nop 9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9659/* end confdefs.h. */ 9660int i; 9661_ACEOF 9662if ac_fn_c_try_compile "$LINENO" 9663then : 9664 xorg_cv_cc_flag_unknown_warning_option=yes 9665else $as_nop 9666 xorg_cv_cc_flag_unknown_warning_option=no 9667fi 9668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9669fi 9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9673 CFLAGS="$xorg_testset_save_CFLAGS" 9674fi 9675 9676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9679 fi 9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9684then : 9685 printf %s "(cached) " >&6 9686else $as_nop 9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690_ACEOF 9691if ac_fn_c_try_compile "$LINENO" 9692then : 9693 xorg_cv_cc_flag_unused_command_line_argument=yes 9694else $as_nop 9695 xorg_cv_cc_flag_unused_command_line_argument=no 9696fi 9697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9698fi 9699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9702 CFLAGS="$xorg_testset_save_CFLAGS" 9703fi 9704 9705found="no" 9706 9707 if test $found = "no" ; then 9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9710 fi 9711 9712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9714 fi 9715 9716 CFLAGS="$CFLAGS -Wreturn-type" 9717 9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9719printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9720 cacheid=xorg_cv_cc_flag__Wreturn_type 9721 if eval test \${$cacheid+y} 9722then : 9723 printf %s "(cached) " >&6 9724else $as_nop 9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9726/* end confdefs.h. */ 9727int i; 9728int 9729main (void) 9730{ 9731 9732 ; 9733 return 0; 9734} 9735_ACEOF 9736if ac_fn_c_try_link "$LINENO" 9737then : 9738 eval $cacheid=yes 9739else $as_nop 9740 eval $cacheid=no 9741fi 9742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9743 conftest$ac_exeext conftest.$ac_ext 9744fi 9745 9746 9747 CFLAGS="$xorg_testset_save_CFLAGS" 9748 9749 eval supported=\$$cacheid 9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9751printf "%s\n" "$supported" >&6; } 9752 if test "$supported" = "yes" ; then 9753 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9754 found="yes" 9755 fi 9756 fi 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772xorg_testset_save_CFLAGS="$CFLAGS" 9773 9774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9779then : 9780 printf %s "(cached) " >&6 9781else $as_nop 9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783/* end confdefs.h. */ 9784int i; 9785_ACEOF 9786if ac_fn_c_try_compile "$LINENO" 9787then : 9788 xorg_cv_cc_flag_unknown_warning_option=yes 9789else $as_nop 9790 xorg_cv_cc_flag_unknown_warning_option=no 9791fi 9792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9793fi 9794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9797 CFLAGS="$xorg_testset_save_CFLAGS" 9798fi 9799 9800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9803 fi 9804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9808then : 9809 printf %s "(cached) " >&6 9810else $as_nop 9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812/* end confdefs.h. */ 9813int i; 9814_ACEOF 9815if ac_fn_c_try_compile "$LINENO" 9816then : 9817 xorg_cv_cc_flag_unused_command_line_argument=yes 9818else $as_nop 9819 xorg_cv_cc_flag_unused_command_line_argument=no 9820fi 9821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9822fi 9823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9826 CFLAGS="$xorg_testset_save_CFLAGS" 9827fi 9828 9829found="no" 9830 9831 if test $found = "no" ; then 9832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9834 fi 9835 9836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9838 fi 9839 9840 CFLAGS="$CFLAGS -Wtrigraphs" 9841 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9843printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9844 cacheid=xorg_cv_cc_flag__Wtrigraphs 9845 if eval test \${$cacheid+y} 9846then : 9847 printf %s "(cached) " >&6 9848else $as_nop 9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850/* end confdefs.h. */ 9851int i; 9852int 9853main (void) 9854{ 9855 9856 ; 9857 return 0; 9858} 9859_ACEOF 9860if ac_fn_c_try_link "$LINENO" 9861then : 9862 eval $cacheid=yes 9863else $as_nop 9864 eval $cacheid=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9867 conftest$ac_exeext conftest.$ac_ext 9868fi 9869 9870 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872 9873 eval supported=\$$cacheid 9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9875printf "%s\n" "$supported" >&6; } 9876 if test "$supported" = "yes" ; then 9877 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9878 found="yes" 9879 fi 9880 fi 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896xorg_testset_save_CFLAGS="$CFLAGS" 9897 9898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9903then : 9904 printf %s "(cached) " >&6 9905else $as_nop 9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907/* end confdefs.h. */ 9908int i; 9909_ACEOF 9910if ac_fn_c_try_compile "$LINENO" 9911then : 9912 xorg_cv_cc_flag_unknown_warning_option=yes 9913else $as_nop 9914 xorg_cv_cc_flag_unknown_warning_option=no 9915fi 9916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9917fi 9918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9921 CFLAGS="$xorg_testset_save_CFLAGS" 9922fi 9923 9924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9927 fi 9928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9932then : 9933 printf %s "(cached) " >&6 9934else $as_nop 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937int i; 9938_ACEOF 9939if ac_fn_c_try_compile "$LINENO" 9940then : 9941 xorg_cv_cc_flag_unused_command_line_argument=yes 9942else $as_nop 9943 xorg_cv_cc_flag_unused_command_line_argument=no 9944fi 9945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9946fi 9947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9950 CFLAGS="$xorg_testset_save_CFLAGS" 9951fi 9952 9953found="no" 9954 9955 if test $found = "no" ; then 9956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9958 fi 9959 9960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9962 fi 9963 9964 CFLAGS="$CFLAGS -Warray-bounds" 9965 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9967printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9968 cacheid=xorg_cv_cc_flag__Warray_bounds 9969 if eval test \${$cacheid+y} 9970then : 9971 printf %s "(cached) " >&6 9972else $as_nop 9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9974/* end confdefs.h. */ 9975int i; 9976int 9977main (void) 9978{ 9979 9980 ; 9981 return 0; 9982} 9983_ACEOF 9984if ac_fn_c_try_link "$LINENO" 9985then : 9986 eval $cacheid=yes 9987else $as_nop 9988 eval $cacheid=no 9989fi 9990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9991 conftest$ac_exeext conftest.$ac_ext 9992fi 9993 9994 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996 9997 eval supported=\$$cacheid 9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9999printf "%s\n" "$supported" >&6; } 10000 if test "$supported" = "yes" ; then 10001 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10002 found="yes" 10003 fi 10004 fi 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020xorg_testset_save_CFLAGS="$CFLAGS" 10021 10022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10026if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10027then : 10028 printf %s "(cached) " >&6 10029else $as_nop 10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10031/* end confdefs.h. */ 10032int i; 10033_ACEOF 10034if ac_fn_c_try_compile "$LINENO" 10035then : 10036 xorg_cv_cc_flag_unknown_warning_option=yes 10037else $as_nop 10038 xorg_cv_cc_flag_unknown_warning_option=no 10039fi 10040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10041fi 10042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046fi 10047 10048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10055if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10056then : 10057 printf %s "(cached) " >&6 10058else $as_nop 10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10060/* end confdefs.h. */ 10061int i; 10062_ACEOF 10063if ac_fn_c_try_compile "$LINENO" 10064then : 10065 xorg_cv_cc_flag_unused_command_line_argument=yes 10066else $as_nop 10067 xorg_cv_cc_flag_unused_command_line_argument=no 10068fi 10069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10070fi 10071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075fi 10076 10077found="no" 10078 10079 if test $found = "no" ; then 10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 fi 10083 10084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10086 fi 10087 10088 CFLAGS="$CFLAGS -Wwrite-strings" 10089 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10091printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10092 cacheid=xorg_cv_cc_flag__Wwrite_strings 10093 if eval test \${$cacheid+y} 10094then : 10095 printf %s "(cached) " >&6 10096else $as_nop 10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099int i; 10100int 10101main (void) 10102{ 10103 10104 ; 10105 return 0; 10106} 10107_ACEOF 10108if ac_fn_c_try_link "$LINENO" 10109then : 10110 eval $cacheid=yes 10111else $as_nop 10112 eval $cacheid=no 10113fi 10114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10115 conftest$ac_exeext conftest.$ac_ext 10116fi 10117 10118 10119 CFLAGS="$xorg_testset_save_CFLAGS" 10120 10121 eval supported=\$$cacheid 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10123printf "%s\n" "$supported" >&6; } 10124 if test "$supported" = "yes" ; then 10125 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10126 found="yes" 10127 fi 10128 fi 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144xorg_testset_save_CFLAGS="$CFLAGS" 10145 10146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10150if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10151then : 10152 printf %s "(cached) " >&6 10153else $as_nop 10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10155/* end confdefs.h. */ 10156int i; 10157_ACEOF 10158if ac_fn_c_try_compile "$LINENO" 10159then : 10160 xorg_cv_cc_flag_unknown_warning_option=yes 10161else $as_nop 10162 xorg_cv_cc_flag_unknown_warning_option=no 10163fi 10164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10165fi 10166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10169 CFLAGS="$xorg_testset_save_CFLAGS" 10170fi 10171 10172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10180then : 10181 printf %s "(cached) " >&6 10182else $as_nop 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186_ACEOF 10187if ac_fn_c_try_compile "$LINENO" 10188then : 10189 xorg_cv_cc_flag_unused_command_line_argument=yes 10190else $as_nop 10191 xorg_cv_cc_flag_unused_command_line_argument=no 10192fi 10193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10194fi 10195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10198 CFLAGS="$xorg_testset_save_CFLAGS" 10199fi 10200 10201found="no" 10202 10203 if test $found = "no" ; then 10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 fi 10207 10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10210 fi 10211 10212 CFLAGS="$CFLAGS -Waddress" 10213 10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10215printf %s "checking if $CC supports -Waddress... " >&6; } 10216 cacheid=xorg_cv_cc_flag__Waddress 10217 if eval test \${$cacheid+y} 10218then : 10219 printf %s "(cached) " >&6 10220else $as_nop 10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222/* end confdefs.h. */ 10223int i; 10224int 10225main (void) 10226{ 10227 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232if ac_fn_c_try_link "$LINENO" 10233then : 10234 eval $cacheid=yes 10235else $as_nop 10236 eval $cacheid=no 10237fi 10238rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10239 conftest$ac_exeext conftest.$ac_ext 10240fi 10241 10242 10243 CFLAGS="$xorg_testset_save_CFLAGS" 10244 10245 eval supported=\$$cacheid 10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10247printf "%s\n" "$supported" >&6; } 10248 if test "$supported" = "yes" ; then 10249 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10250 found="yes" 10251 fi 10252 fi 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268xorg_testset_save_CFLAGS="$CFLAGS" 10269 10270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10274if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10275then : 10276 printf %s "(cached) " >&6 10277else $as_nop 10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280int i; 10281_ACEOF 10282if ac_fn_c_try_compile "$LINENO" 10283then : 10284 xorg_cv_cc_flag_unknown_warning_option=yes 10285else $as_nop 10286 xorg_cv_cc_flag_unknown_warning_option=no 10287fi 10288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10289fi 10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10293 CFLAGS="$xorg_testset_save_CFLAGS" 10294fi 10295 10296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10299 fi 10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10303if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10304then : 10305 printf %s "(cached) " >&6 10306else $as_nop 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309int i; 10310_ACEOF 10311if ac_fn_c_try_compile "$LINENO" 10312then : 10313 xorg_cv_cc_flag_unused_command_line_argument=yes 10314else $as_nop 10315 xorg_cv_cc_flag_unused_command_line_argument=no 10316fi 10317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10318fi 10319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323fi 10324 10325found="no" 10326 10327 if test $found = "no" ; then 10328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10330 fi 10331 10332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10334 fi 10335 10336 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10337 10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10339printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10340 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10341 if eval test \${$cacheid+y} 10342then : 10343 printf %s "(cached) " >&6 10344else $as_nop 10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346/* end confdefs.h. */ 10347int i; 10348int 10349main (void) 10350{ 10351 10352 ; 10353 return 0; 10354} 10355_ACEOF 10356if ac_fn_c_try_link "$LINENO" 10357then : 10358 eval $cacheid=yes 10359else $as_nop 10360 eval $cacheid=no 10361fi 10362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10363 conftest$ac_exeext conftest.$ac_ext 10364fi 10365 10366 10367 CFLAGS="$xorg_testset_save_CFLAGS" 10368 10369 eval supported=\$$cacheid 10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10371printf "%s\n" "$supported" >&6; } 10372 if test "$supported" = "yes" ; then 10373 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10374 found="yes" 10375 fi 10376 fi 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392xorg_testset_save_CFLAGS="$CFLAGS" 10393 10394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10398if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10399then : 10400 printf %s "(cached) " >&6 10401else $as_nop 10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10403/* end confdefs.h. */ 10404int i; 10405_ACEOF 10406if ac_fn_c_try_compile "$LINENO" 10407then : 10408 xorg_cv_cc_flag_unknown_warning_option=yes 10409else $as_nop 10410 xorg_cv_cc_flag_unknown_warning_option=no 10411fi 10412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10413fi 10414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10417 CFLAGS="$xorg_testset_save_CFLAGS" 10418fi 10419 10420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10423 fi 10424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10427if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10428then : 10429 printf %s "(cached) " >&6 10430else $as_nop 10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433int i; 10434_ACEOF 10435if ac_fn_c_try_compile "$LINENO" 10436then : 10437 xorg_cv_cc_flag_unused_command_line_argument=yes 10438else $as_nop 10439 xorg_cv_cc_flag_unused_command_line_argument=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10442fi 10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447fi 10448 10449found="no" 10450 10451 if test $found = "no" ; then 10452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10454 fi 10455 10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10458 fi 10459 10460 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10461 10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10463printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10464 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10465 if eval test \${$cacheid+y} 10466then : 10467 printf %s "(cached) " >&6 10468else $as_nop 10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10470/* end confdefs.h. */ 10471int i; 10472int 10473main (void) 10474{ 10475 10476 ; 10477 return 0; 10478} 10479_ACEOF 10480if ac_fn_c_try_link "$LINENO" 10481then : 10482 eval $cacheid=yes 10483else $as_nop 10484 eval $cacheid=no 10485fi 10486rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10487 conftest$ac_exeext conftest.$ac_ext 10488fi 10489 10490 10491 CFLAGS="$xorg_testset_save_CFLAGS" 10492 10493 eval supported=\$$cacheid 10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10495printf "%s\n" "$supported" >&6; } 10496 if test "$supported" = "yes" ; then 10497 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10498 found="yes" 10499 fi 10500 fi 10501 10502 10503fi 10504 10505 10506 10507 10508 10509 10510 10511 CWARNFLAGS="$BASE_CFLAGS" 10512 if test "x$GCC" = xyes ; then 10513 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10514 fi 10515 10516 10517 10518 10519 10520 10521 10522 10523# Check whether --enable-strict-compilation was given. 10524if test ${enable_strict_compilation+y} 10525then : 10526 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10527else $as_nop 10528 STRICT_COMPILE=no 10529fi 10530 10531 10532 10533 10534 10535 10536STRICT_CFLAGS="" 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550xorg_testset_save_CFLAGS="$CFLAGS" 10551 10552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10556if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10557then : 10558 printf %s "(cached) " >&6 10559else $as_nop 10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10561/* end confdefs.h. */ 10562int i; 10563_ACEOF 10564if ac_fn_c_try_compile "$LINENO" 10565then : 10566 xorg_cv_cc_flag_unknown_warning_option=yes 10567else $as_nop 10568 xorg_cv_cc_flag_unknown_warning_option=no 10569fi 10570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10571fi 10572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10573printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10575 CFLAGS="$xorg_testset_save_CFLAGS" 10576fi 10577 10578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10581 fi 10582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10584printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10585if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10586then : 10587 printf %s "(cached) " >&6 10588else $as_nop 10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590/* end confdefs.h. */ 10591int i; 10592_ACEOF 10593if ac_fn_c_try_compile "$LINENO" 10594then : 10595 xorg_cv_cc_flag_unused_command_line_argument=yes 10596else $as_nop 10597 xorg_cv_cc_flag_unused_command_line_argument=no 10598fi 10599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10600fi 10601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10602printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10604 CFLAGS="$xorg_testset_save_CFLAGS" 10605fi 10606 10607found="no" 10608 10609 if test $found = "no" ; then 10610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10612 fi 10613 10614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10616 fi 10617 10618 CFLAGS="$CFLAGS -pedantic" 10619 10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10621printf %s "checking if $CC supports -pedantic... " >&6; } 10622 cacheid=xorg_cv_cc_flag__pedantic 10623 if eval test \${$cacheid+y} 10624then : 10625 printf %s "(cached) " >&6 10626else $as_nop 10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10628/* end confdefs.h. */ 10629int i; 10630int 10631main (void) 10632{ 10633 10634 ; 10635 return 0; 10636} 10637_ACEOF 10638if ac_fn_c_try_link "$LINENO" 10639then : 10640 eval $cacheid=yes 10641else $as_nop 10642 eval $cacheid=no 10643fi 10644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10645 conftest$ac_exeext conftest.$ac_ext 10646fi 10647 10648 10649 CFLAGS="$xorg_testset_save_CFLAGS" 10650 10651 eval supported=\$$cacheid 10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10653printf "%s\n" "$supported" >&6; } 10654 if test "$supported" = "yes" ; then 10655 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10656 found="yes" 10657 fi 10658 fi 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674xorg_testset_save_CFLAGS="$CFLAGS" 10675 10676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10679printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10680if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10681then : 10682 printf %s "(cached) " >&6 10683else $as_nop 10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10685/* end confdefs.h. */ 10686int i; 10687_ACEOF 10688if ac_fn_c_try_compile "$LINENO" 10689then : 10690 xorg_cv_cc_flag_unknown_warning_option=yes 10691else $as_nop 10692 xorg_cv_cc_flag_unknown_warning_option=no 10693fi 10694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10695fi 10696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10697printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10699 CFLAGS="$xorg_testset_save_CFLAGS" 10700fi 10701 10702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10705 fi 10706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10708printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10709if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10710then : 10711 printf %s "(cached) " >&6 10712else $as_nop 10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10714/* end confdefs.h. */ 10715int i; 10716_ACEOF 10717if ac_fn_c_try_compile "$LINENO" 10718then : 10719 xorg_cv_cc_flag_unused_command_line_argument=yes 10720else $as_nop 10721 xorg_cv_cc_flag_unused_command_line_argument=no 10722fi 10723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10724fi 10725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10728 CFLAGS="$xorg_testset_save_CFLAGS" 10729fi 10730 10731found="no" 10732 10733 if test $found = "no" ; then 10734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10736 fi 10737 10738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10740 fi 10741 10742 CFLAGS="$CFLAGS -Werror" 10743 10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10745printf %s "checking if $CC supports -Werror... " >&6; } 10746 cacheid=xorg_cv_cc_flag__Werror 10747 if eval test \${$cacheid+y} 10748then : 10749 printf %s "(cached) " >&6 10750else $as_nop 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753int i; 10754int 10755main (void) 10756{ 10757 10758 ; 10759 return 0; 10760} 10761_ACEOF 10762if ac_fn_c_try_link "$LINENO" 10763then : 10764 eval $cacheid=yes 10765else $as_nop 10766 eval $cacheid=no 10767fi 10768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10769 conftest$ac_exeext conftest.$ac_ext 10770fi 10771 10772 10773 CFLAGS="$xorg_testset_save_CFLAGS" 10774 10775 eval supported=\$$cacheid 10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10777printf "%s\n" "$supported" >&6; } 10778 if test "$supported" = "yes" ; then 10779 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10780 found="yes" 10781 fi 10782 fi 10783 10784 if test $found = "no" ; then 10785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10787 fi 10788 10789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10791 fi 10792 10793 CFLAGS="$CFLAGS -errwarn" 10794 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10796printf %s "checking if $CC supports -errwarn... " >&6; } 10797 cacheid=xorg_cv_cc_flag__errwarn 10798 if eval test \${$cacheid+y} 10799then : 10800 printf %s "(cached) " >&6 10801else $as_nop 10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803/* end confdefs.h. */ 10804int i; 10805int 10806main (void) 10807{ 10808 10809 ; 10810 return 0; 10811} 10812_ACEOF 10813if ac_fn_c_try_link "$LINENO" 10814then : 10815 eval $cacheid=yes 10816else $as_nop 10817 eval $cacheid=no 10818fi 10819rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10820 conftest$ac_exeext conftest.$ac_ext 10821fi 10822 10823 10824 CFLAGS="$xorg_testset_save_CFLAGS" 10825 10826 eval supported=\$$cacheid 10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10828printf "%s\n" "$supported" >&6; } 10829 if test "$supported" = "yes" ; then 10830 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10831 found="yes" 10832 fi 10833 fi 10834 10835 10836 10837# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10838# activate it with -Werror, so we add it here explicitly. 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852xorg_testset_save_CFLAGS="$CFLAGS" 10853 10854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10857printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10858if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10859then : 10860 printf %s "(cached) " >&6 10861else $as_nop 10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10863/* end confdefs.h. */ 10864int i; 10865_ACEOF 10866if ac_fn_c_try_compile "$LINENO" 10867then : 10868 xorg_cv_cc_flag_unknown_warning_option=yes 10869else $as_nop 10870 xorg_cv_cc_flag_unknown_warning_option=no 10871fi 10872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10873fi 10874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10875printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10877 CFLAGS="$xorg_testset_save_CFLAGS" 10878fi 10879 10880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10883 fi 10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10886printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10887if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10888then : 10889 printf %s "(cached) " >&6 10890else $as_nop 10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892/* end confdefs.h. */ 10893int i; 10894_ACEOF 10895if ac_fn_c_try_compile "$LINENO" 10896then : 10897 xorg_cv_cc_flag_unused_command_line_argument=yes 10898else $as_nop 10899 xorg_cv_cc_flag_unused_command_line_argument=no 10900fi 10901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10902fi 10903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10906 CFLAGS="$xorg_testset_save_CFLAGS" 10907fi 10908 10909found="no" 10910 10911 if test $found = "no" ; then 10912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10914 fi 10915 10916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10918 fi 10919 10920 CFLAGS="$CFLAGS -Werror=attributes" 10921 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10923printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10924 cacheid=xorg_cv_cc_flag__Werror_attributes 10925 if eval test \${$cacheid+y} 10926then : 10927 printf %s "(cached) " >&6 10928else $as_nop 10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10930/* end confdefs.h. */ 10931int i; 10932int 10933main (void) 10934{ 10935 10936 ; 10937 return 0; 10938} 10939_ACEOF 10940if ac_fn_c_try_link "$LINENO" 10941then : 10942 eval $cacheid=yes 10943else $as_nop 10944 eval $cacheid=no 10945fi 10946rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10947 conftest$ac_exeext conftest.$ac_ext 10948fi 10949 10950 10951 CFLAGS="$xorg_testset_save_CFLAGS" 10952 10953 eval supported=\$$cacheid 10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10955printf "%s\n" "$supported" >&6; } 10956 if test "$supported" = "yes" ; then 10957 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10958 found="yes" 10959 fi 10960 fi 10961 10962 10963 10964if test "x$STRICT_COMPILE" = "xyes"; then 10965 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10966 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10967fi 10968 10969 10970 10971 10972 10973 10974cat >>confdefs.h <<_ACEOF 10975#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10976_ACEOF 10977 10978 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10979 if test "x$PVM" = "x"; then 10980 PVM="0" 10981 fi 10982 10983printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10984 10985 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10986 if test "x$PVP" = "x"; then 10987 PVP="0" 10988 fi 10989 10990printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10991 10992 10993 10994CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10995mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10996|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10997touch \$(top_srcdir)/ChangeLog; \ 10998echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10999 11000 11001 11002 11003macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11004INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11005mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11006|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11007touch \$(top_srcdir)/INSTALL; \ 11008echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11009 11010 11011 11012 11013 11014 11015case $host_os in 11016 solaris*) 11017 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11018 # check for a man page file found in later versions that use 11019 # traditional section numbers instead 11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11021printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11022if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11023then : 11024 printf %s "(cached) " >&6 11025else $as_nop 11026 test "$cross_compiling" = yes && 11027 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11028if test -r "/usr/share/man/man7/attributes.7"; then 11029 ac_cv_file__usr_share_man_man7_attributes_7=yes 11030else 11031 ac_cv_file__usr_share_man_man7_attributes_7=no 11032fi 11033fi 11034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11035printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11036if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11037then : 11038 SYSV_MAN_SECTIONS=false 11039else $as_nop 11040 SYSV_MAN_SECTIONS=true 11041fi 11042 11043 ;; 11044 *) SYSV_MAN_SECTIONS=false ;; 11045esac 11046 11047if test x$APP_MAN_SUFFIX = x ; then 11048 APP_MAN_SUFFIX=1 11049fi 11050if test x$APP_MAN_DIR = x ; then 11051 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11052fi 11053 11054if test x$LIB_MAN_SUFFIX = x ; then 11055 LIB_MAN_SUFFIX=3 11056fi 11057if test x$LIB_MAN_DIR = x ; then 11058 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11059fi 11060 11061if test x$FILE_MAN_SUFFIX = x ; then 11062 case $SYSV_MAN_SECTIONS in 11063 true) FILE_MAN_SUFFIX=4 ;; 11064 *) FILE_MAN_SUFFIX=5 ;; 11065 esac 11066fi 11067if test x$FILE_MAN_DIR = x ; then 11068 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11069fi 11070 11071if test x$MISC_MAN_SUFFIX = x ; then 11072 case $SYSV_MAN_SECTIONS in 11073 true) MISC_MAN_SUFFIX=5 ;; 11074 *) MISC_MAN_SUFFIX=7 ;; 11075 esac 11076fi 11077if test x$MISC_MAN_DIR = x ; then 11078 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11079fi 11080 11081if test x$DRIVER_MAN_SUFFIX = x ; then 11082 case $SYSV_MAN_SECTIONS in 11083 true) DRIVER_MAN_SUFFIX=7 ;; 11084 *) DRIVER_MAN_SUFFIX=4 ;; 11085 esac 11086fi 11087if test x$DRIVER_MAN_DIR = x ; then 11088 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11089fi 11090 11091if test x$ADMIN_MAN_SUFFIX = x ; then 11092 case $SYSV_MAN_SECTIONS in 11093 true) ADMIN_MAN_SUFFIX=1m ;; 11094 *) ADMIN_MAN_SUFFIX=8 ;; 11095 esac 11096fi 11097if test x$ADMIN_MAN_DIR = x ; then 11098 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11099fi 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115XORG_MAN_PAGE="X Version 11" 11116 11117MAN_SUBSTS="\ 11118 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11119 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11120 -e 's|__xservername__|Xorg|g' \ 11121 -e 's|__xconfigfile__|xorg.conf|g' \ 11122 -e 's|__projectroot__|\$(prefix)|g' \ 11123 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11124 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11125 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11126 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11127 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11128 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11129 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11130 11131 11132 11133# Check whether --enable-silent-rules was given. 11134if test ${enable_silent_rules+y} 11135then : 11136 enableval=$enable_silent_rules; 11137fi 11138 11139case $enable_silent_rules in # ((( 11140 yes) AM_DEFAULT_VERBOSITY=0;; 11141 no) AM_DEFAULT_VERBOSITY=1;; 11142 *) AM_DEFAULT_VERBOSITY=0;; 11143esac 11144am_make=${MAKE-make} 11145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11146printf %s "checking whether $am_make supports nested variables... " >&6; } 11147if test ${am_cv_make_support_nested_variables+y} 11148then : 11149 printf %s "(cached) " >&6 11150else $as_nop 11151 if printf "%s\n" 'TRUE=$(BAR$(V)) 11152BAR0=false 11153BAR1=true 11154V=1 11155am__doit: 11156 @$(TRUE) 11157.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11158 am_cv_make_support_nested_variables=yes 11159else 11160 am_cv_make_support_nested_variables=no 11161fi 11162fi 11163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11164printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11165if test $am_cv_make_support_nested_variables = yes; then 11166 AM_V='$(V)' 11167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11168else 11169 AM_V=$AM_DEFAULT_VERBOSITY 11170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11171fi 11172AM_BACKSLASH='\' 11173 11174 11175 11176# If both the C file and YACC are missing, the package cannot be build. 11177for ac_prog in 'bison -y' byacc 11178do 11179 # Extract the first word of "$ac_prog", so it can be a program name with args. 11180set dummy $ac_prog; ac_word=$2 11181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11182printf %s "checking for $ac_word... " >&6; } 11183if test ${ac_cv_prog_YACC+y} 11184then : 11185 printf %s "(cached) " >&6 11186else $as_nop 11187 if test -n "$YACC"; then 11188 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11189else 11190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11191for as_dir in $PATH 11192do 11193 IFS=$as_save_IFS 11194 case $as_dir in #((( 11195 '') as_dir=./ ;; 11196 */) ;; 11197 *) as_dir=$as_dir/ ;; 11198 esac 11199 for ac_exec_ext in '' $ac_executable_extensions; do 11200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11201 ac_cv_prog_YACC="$ac_prog" 11202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11203 break 2 11204 fi 11205done 11206 done 11207IFS=$as_save_IFS 11208 11209fi 11210fi 11211YACC=$ac_cv_prog_YACC 11212if test -n "$YACC"; then 11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11214printf "%s\n" "$YACC" >&6; } 11215else 11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11217printf "%s\n" "no" >&6; } 11218fi 11219 11220 11221 test -n "$YACC" && break 11222done 11223test -n "$YACC" || YACC="yacc" 11224 11225# Extract the first word of "$YACC", so it can be a program name with args. 11226set dummy $YACC; ac_word=$2 11227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11228printf %s "checking for $ac_word... " >&6; } 11229if test ${ac_cv_path_YACC_INST+y} 11230then : 11231 printf %s "(cached) " >&6 11232else $as_nop 11233 case $YACC_INST in 11234 [\\/]* | ?:[\\/]*) 11235 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 11236 ;; 11237 *) 11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11239for as_dir in $PATH 11240do 11241 IFS=$as_save_IFS 11242 case $as_dir in #((( 11243 '') as_dir=./ ;; 11244 */) ;; 11245 *) as_dir=$as_dir/ ;; 11246 esac 11247 for ac_exec_ext in '' $ac_executable_extensions; do 11248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11249 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext" 11250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11251 break 2 11252 fi 11253done 11254 done 11255IFS=$as_save_IFS 11256 11257 ;; 11258esac 11259fi 11260YACC_INST=$ac_cv_path_YACC_INST 11261if test -n "$YACC_INST"; then 11262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 11263printf "%s\n" "$YACC_INST" >&6; } 11264else 11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11266printf "%s\n" "no" >&6; } 11267fi 11268 11269 11270if test ! -f "$srcdir/xkbparse.c"; then 11271 if test -z "$YACC_INST"; then 11272 as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5 11273 fi 11274fi 11275 11276ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 11277if test "x$ac_cv_func_strdup" = xyes 11278then : 11279 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 11280 11281fi 11282ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11283if test "x$ac_cv_func_strcasecmp" = xyes 11284then : 11285 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 11286 11287fi 11288 11289 11290# Checks for pkg-config packages 11291 11292pkg_failed=no 11293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5 11294printf %s "checking for XKBCOMP... " >&6; } 11295 11296if test -n "$XKBCOMP_CFLAGS"; then 11297 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS" 11298 elif test -n "$PKG_CONFIG"; then 11299 if test -n "$PKG_CONFIG" && \ 11300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile xproto >= 7.0.17\""; } >&5 11301 ($PKG_CONFIG --exists --print-errors "x11 xkbfile xproto >= 7.0.17") 2>&5 11302 ac_status=$? 11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11304 test $ac_status = 0; }; then 11305 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "x11 xkbfile xproto >= 7.0.17" 2>/dev/null` 11306 test "x$?" != "x0" && pkg_failed=yes 11307else 11308 pkg_failed=yes 11309fi 11310 else 11311 pkg_failed=untried 11312fi 11313if test -n "$XKBCOMP_LIBS"; then 11314 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS" 11315 elif test -n "$PKG_CONFIG"; then 11316 if test -n "$PKG_CONFIG" && \ 11317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile xproto >= 7.0.17\""; } >&5 11318 ($PKG_CONFIG --exists --print-errors "x11 xkbfile xproto >= 7.0.17") 2>&5 11319 ac_status=$? 11320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11321 test $ac_status = 0; }; then 11322 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "x11 xkbfile xproto >= 7.0.17" 2>/dev/null` 11323 test "x$?" != "x0" && pkg_failed=yes 11324else 11325 pkg_failed=yes 11326fi 11327 else 11328 pkg_failed=untried 11329fi 11330 11331 11332 11333if test $pkg_failed = yes; then 11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11335printf "%s\n" "no" >&6; } 11336 11337if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11338 _pkg_short_errors_supported=yes 11339else 11340 _pkg_short_errors_supported=no 11341fi 11342 if test $_pkg_short_errors_supported = yes; then 11343 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xkbfile xproto >= 7.0.17" 2>&1` 11344 else 11345 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xkbfile xproto >= 7.0.17" 2>&1` 11346 fi 11347 # Put the nasty error message in config.log where it belongs 11348 echo "$XKBCOMP_PKG_ERRORS" >&5 11349 11350 as_fn_error $? "Package requirements (x11 xkbfile xproto >= 7.0.17) were not met: 11351 11352$XKBCOMP_PKG_ERRORS 11353 11354Consider adjusting the PKG_CONFIG_PATH environment variable if you 11355installed software in a non-standard prefix. 11356 11357Alternatively, you may set the environment variables XKBCOMP_CFLAGS 11358and XKBCOMP_LIBS to avoid the need to call pkg-config. 11359See the pkg-config man page for more details." "$LINENO" 5 11360elif test $pkg_failed = untried; then 11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11362printf "%s\n" "no" >&6; } 11363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11364printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11365as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11366is in your PATH or set the PKG_CONFIG environment variable to the full 11367path to pkg-config. 11368 11369Alternatively, you may set the environment variables XKBCOMP_CFLAGS 11370and XKBCOMP_LIBS to avoid the need to call pkg-config. 11371See the pkg-config man page for more details. 11372 11373To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11374See \`config.log' for more details" "$LINENO" 5; } 11375else 11376 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS 11377 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS 11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11379printf "%s\n" "yes" >&6; } 11380 11381fi 11382 11383# Checks for typedefs, structures, and compiler characteristics. 11384# Check whether --enable-largefile was given. 11385if test ${enable_largefile+y} 11386then : 11387 enableval=$enable_largefile; 11388fi 11389 11390if test "$enable_largefile" != no; then 11391 11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11393printf %s "checking for special C compiler options needed for large files... " >&6; } 11394if test ${ac_cv_sys_largefile_CC+y} 11395then : 11396 printf %s "(cached) " >&6 11397else $as_nop 11398 ac_cv_sys_largefile_CC=no 11399 if test "$GCC" != yes; then 11400 ac_save_CC=$CC 11401 while :; do 11402 # IRIX 6.2 and later do not support large files by default, 11403 # so use the C compiler's -n32 option if that helps. 11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11405/* end confdefs.h. */ 11406#include <sys/types.h> 11407 /* Check that off_t can represent 2**63 - 1 correctly. 11408 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11409 since some C++ compilers masquerading as C compilers 11410 incorrectly reject 9223372036854775807. */ 11411#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11413 && LARGE_OFF_T % 2147483647 == 1) 11414 ? 1 : -1]; 11415int 11416main (void) 11417{ 11418 11419 ; 11420 return 0; 11421} 11422_ACEOF 11423 if ac_fn_c_try_compile "$LINENO" 11424then : 11425 break 11426fi 11427rm -f core conftest.err conftest.$ac_objext conftest.beam 11428 CC="$CC -n32" 11429 if ac_fn_c_try_compile "$LINENO" 11430then : 11431 ac_cv_sys_largefile_CC=' -n32'; break 11432fi 11433rm -f core conftest.err conftest.$ac_objext conftest.beam 11434 break 11435 done 11436 CC=$ac_save_CC 11437 rm -f conftest.$ac_ext 11438 fi 11439fi 11440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11441printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 11442 if test "$ac_cv_sys_largefile_CC" != no; then 11443 CC=$CC$ac_cv_sys_largefile_CC 11444 fi 11445 11446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11447printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11448if test ${ac_cv_sys_file_offset_bits+y} 11449then : 11450 printf %s "(cached) " >&6 11451else $as_nop 11452 while :; do 11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454/* end confdefs.h. */ 11455#include <sys/types.h> 11456 /* Check that off_t can represent 2**63 - 1 correctly. 11457 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11458 since some C++ compilers masquerading as C compilers 11459 incorrectly reject 9223372036854775807. */ 11460#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11462 && LARGE_OFF_T % 2147483647 == 1) 11463 ? 1 : -1]; 11464int 11465main (void) 11466{ 11467 11468 ; 11469 return 0; 11470} 11471_ACEOF 11472if ac_fn_c_try_compile "$LINENO" 11473then : 11474 ac_cv_sys_file_offset_bits=no; break 11475fi 11476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479#define _FILE_OFFSET_BITS 64 11480#include <sys/types.h> 11481 /* Check that off_t can represent 2**63 - 1 correctly. 11482 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11483 since some C++ compilers masquerading as C compilers 11484 incorrectly reject 9223372036854775807. */ 11485#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11487 && LARGE_OFF_T % 2147483647 == 1) 11488 ? 1 : -1]; 11489int 11490main (void) 11491{ 11492 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497if ac_fn_c_try_compile "$LINENO" 11498then : 11499 ac_cv_sys_file_offset_bits=64; break 11500fi 11501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11502 ac_cv_sys_file_offset_bits=unknown 11503 break 11504done 11505fi 11506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11507printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 11508case $ac_cv_sys_file_offset_bits in #( 11509 no | unknown) ;; 11510 *) 11511printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 11512;; 11513esac 11514rm -rf conftest* 11515 if test $ac_cv_sys_file_offset_bits = unknown; then 11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11517printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 11518if test ${ac_cv_sys_large_files+y} 11519then : 11520 printf %s "(cached) " >&6 11521else $as_nop 11522 while :; do 11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11524/* end confdefs.h. */ 11525#include <sys/types.h> 11526 /* Check that off_t can represent 2**63 - 1 correctly. 11527 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11528 since some C++ compilers masquerading as C compilers 11529 incorrectly reject 9223372036854775807. */ 11530#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11532 && LARGE_OFF_T % 2147483647 == 1) 11533 ? 1 : -1]; 11534int 11535main (void) 11536{ 11537 11538 ; 11539 return 0; 11540} 11541_ACEOF 11542if ac_fn_c_try_compile "$LINENO" 11543then : 11544 ac_cv_sys_large_files=no; break 11545fi 11546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11548/* end confdefs.h. */ 11549#define _LARGE_FILES 1 11550#include <sys/types.h> 11551 /* Check that off_t can represent 2**63 - 1 correctly. 11552 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11553 since some C++ compilers masquerading as C compilers 11554 incorrectly reject 9223372036854775807. */ 11555#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11557 && LARGE_OFF_T % 2147483647 == 1) 11558 ? 1 : -1]; 11559int 11560main (void) 11561{ 11562 11563 ; 11564 return 0; 11565} 11566_ACEOF 11567if ac_fn_c_try_compile "$LINENO" 11568then : 11569 ac_cv_sys_large_files=1; break 11570fi 11571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11572 ac_cv_sys_large_files=unknown 11573 break 11574done 11575fi 11576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11577printf "%s\n" "$ac_cv_sys_large_files" >&6; } 11578case $ac_cv_sys_large_files in #( 11579 no | unknown) ;; 11580 *) 11581printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 11582;; 11583esac 11584rm -rf conftest* 11585 fi 11586fi 11587 11588 11589 11590# Check whether --with-xkb_config_root was given. 11591if test ${with_xkb_config_root+y} 11592then : 11593 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval" 11594else $as_nop 11595 XKBCONFIGROOT='${datadir}/X11/xkb' 11596fi 11597 11598 11599 11600 11601ac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc" 11602 11603cat >confcache <<\_ACEOF 11604# This file is a shell script that caches the results of configure 11605# tests run on this system so they can be shared between configure 11606# scripts and configure runs, see configure's option --config-cache. 11607# It is not useful on other systems. If it contains results you don't 11608# want to keep, you may remove or edit it. 11609# 11610# config.status only pays attention to the cache file if you give it 11611# the --recheck option to rerun configure. 11612# 11613# `ac_cv_env_foo' variables (set or unset) will be overridden when 11614# loading this file, other *unset* `ac_cv_foo' will be assigned the 11615# following values. 11616 11617_ACEOF 11618 11619# The following way of writing the cache mishandles newlines in values, 11620# but we know of no workaround that is simple, portable, and efficient. 11621# So, we kill variables containing newlines. 11622# Ultrix sh set writes to stderr and can't be redirected directly, 11623# and sets the high bit in the cache file unless we assign to the vars. 11624( 11625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11626 eval ac_val=\$$ac_var 11627 case $ac_val in #( 11628 *${as_nl}*) 11629 case $ac_var in #( 11630 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11631printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11632 esac 11633 case $ac_var in #( 11634 _ | IFS | as_nl) ;; #( 11635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11636 *) { eval $ac_var=; unset $ac_var;} ;; 11637 esac ;; 11638 esac 11639 done 11640 11641 (set) 2>&1 | 11642 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11643 *${as_nl}ac_space=\ *) 11644 # `set' does not quote correctly, so add quotes: double-quote 11645 # substitution turns \\\\ into \\, and sed turns \\ into \. 11646 sed -n \ 11647 "s/'/'\\\\''/g; 11648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11649 ;; #( 11650 *) 11651 # `set' quotes correctly as required by POSIX, so do not add quotes. 11652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11653 ;; 11654 esac | 11655 sort 11656) | 11657 sed ' 11658 /^ac_cv_env_/b end 11659 t clear 11660 :clear 11661 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11662 t end 11663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11664 :end' >>confcache 11665if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11666 if test -w "$cache_file"; then 11667 if test "x$cache_file" != "x/dev/null"; then 11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11669printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11670 if test ! -f "$cache_file" || test -h "$cache_file"; then 11671 cat confcache >"$cache_file" 11672 else 11673 case $cache_file in #( 11674 */* | ?:*) 11675 mv -f confcache "$cache_file"$$ && 11676 mv -f "$cache_file"$$ "$cache_file" ;; #( 11677 *) 11678 mv -f confcache "$cache_file" ;; 11679 esac 11680 fi 11681 fi 11682 else 11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11684printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11685 fi 11686fi 11687rm -f confcache 11688 11689test "x$prefix" = xNONE && prefix=$ac_default_prefix 11690# Let make expand exec_prefix. 11691test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11692 11693DEFS=-DHAVE_CONFIG_H 11694 11695ac_libobjs= 11696ac_ltlibobjs= 11697U= 11698for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11699 # 1. Remove the extension, and $U if already installed. 11700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11701 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11703 # will be set to the directory where LIBOBJS objects are built. 11704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11706done 11707LIBOBJS=$ac_libobjs 11708 11709LTLIBOBJS=$ac_ltlibobjs 11710 11711 11712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11713printf %s "checking that generated files are newer than configure... " >&6; } 11714 if test -n "$am_sleep_pid"; then 11715 # Hide warnings about reused PIDs. 11716 wait $am_sleep_pid 2>/dev/null 11717 fi 11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11719printf "%s\n" "done" >&6; } 11720 if test -n "$EXEEXT"; then 11721 am__EXEEXT_TRUE= 11722 am__EXEEXT_FALSE='#' 11723else 11724 am__EXEEXT_TRUE='#' 11725 am__EXEEXT_FALSE= 11726fi 11727 11728if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11729 as_fn_error $? "conditional \"AMDEP\" was never defined. 11730Usually this means the macro was only invoked conditionally." "$LINENO" 5 11731fi 11732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11733 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11734Usually this means the macro was only invoked conditionally." "$LINENO" 5 11735fi 11736 11737: "${CONFIG_STATUS=./config.status}" 11738ac_write_fail=0 11739ac_clean_files_save=$ac_clean_files 11740ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11742printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11743as_write_fail=0 11744cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11745#! $SHELL 11746# Generated by $as_me. 11747# Run this file to recreate the current configuration. 11748# Compiler output produced by configure, useful for debugging 11749# configure, is in config.log if it exists. 11750 11751debug=false 11752ac_cs_recheck=false 11753ac_cs_silent=false 11754 11755SHELL=\${CONFIG_SHELL-$SHELL} 11756export SHELL 11757_ASEOF 11758cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11759## -------------------- ## 11760## M4sh Initialization. ## 11761## -------------------- ## 11762 11763# Be more Bourne compatible 11764DUALCASE=1; export DUALCASE # for MKS sh 11765as_nop=: 11766if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11767then : 11768 emulate sh 11769 NULLCMD=: 11770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11771 # is contrary to our usage. Disable this feature. 11772 alias -g '${1+"$@"}'='"$@"' 11773 setopt NO_GLOB_SUBST 11774else $as_nop 11775 case `(set -o) 2>/dev/null` in #( 11776 *posix*) : 11777 set -o posix ;; #( 11778 *) : 11779 ;; 11780esac 11781fi 11782 11783 11784 11785# Reset variables that may have inherited troublesome values from 11786# the environment. 11787 11788# IFS needs to be set, to space, tab, and newline, in precisely that order. 11789# (If _AS_PATH_WALK were called with IFS unset, it would have the 11790# side effect of setting IFS to empty, thus disabling word splitting.) 11791# Quoting is to prevent editors from complaining about space-tab. 11792as_nl=' 11793' 11794export as_nl 11795IFS=" "" $as_nl" 11796 11797PS1='$ ' 11798PS2='> ' 11799PS4='+ ' 11800 11801# Ensure predictable behavior from utilities with locale-dependent output. 11802LC_ALL=C 11803export LC_ALL 11804LANGUAGE=C 11805export LANGUAGE 11806 11807# We cannot yet rely on "unset" to work, but we need these variables 11808# to be unset--not just set to an empty or harmless value--now, to 11809# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11810# also avoids known problems related to "unset" and subshell syntax 11811# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11812for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11813do eval test \${$as_var+y} \ 11814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11815done 11816 11817# Ensure that fds 0, 1, and 2 are open. 11818if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11819if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11820if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11821 11822# The user is always right. 11823if ${PATH_SEPARATOR+false} :; then 11824 PATH_SEPARATOR=: 11825 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11826 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11827 PATH_SEPARATOR=';' 11828 } 11829fi 11830 11831 11832# Find who we are. Look in the path if we contain no directory separator. 11833as_myself= 11834case $0 in #(( 11835 *[\\/]* ) as_myself=$0 ;; 11836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11837for as_dir in $PATH 11838do 11839 IFS=$as_save_IFS 11840 case $as_dir in #((( 11841 '') as_dir=./ ;; 11842 */) ;; 11843 *) as_dir=$as_dir/ ;; 11844 esac 11845 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11846 done 11847IFS=$as_save_IFS 11848 11849 ;; 11850esac 11851# We did not find ourselves, most probably we were run as `sh COMMAND' 11852# in which case we are not to be found in the path. 11853if test "x$as_myself" = x; then 11854 as_myself=$0 11855fi 11856if test ! -f "$as_myself"; then 11857 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11858 exit 1 11859fi 11860 11861 11862 11863# as_fn_error STATUS ERROR [LINENO LOG_FD] 11864# ---------------------------------------- 11865# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11866# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11867# script with STATUS, using 1 if that was 0. 11868as_fn_error () 11869{ 11870 as_status=$1; test $as_status -eq 0 && as_status=1 11871 if test "$4"; then 11872 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11874 fi 11875 printf "%s\n" "$as_me: error: $2" >&2 11876 as_fn_exit $as_status 11877} # as_fn_error 11878 11879 11880 11881# as_fn_set_status STATUS 11882# ----------------------- 11883# Set $? to STATUS, without forking. 11884as_fn_set_status () 11885{ 11886 return $1 11887} # as_fn_set_status 11888 11889# as_fn_exit STATUS 11890# ----------------- 11891# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11892as_fn_exit () 11893{ 11894 set +e 11895 as_fn_set_status $1 11896 exit $1 11897} # as_fn_exit 11898 11899# as_fn_unset VAR 11900# --------------- 11901# Portably unset VAR. 11902as_fn_unset () 11903{ 11904 { eval $1=; unset $1;} 11905} 11906as_unset=as_fn_unset 11907 11908# as_fn_append VAR VALUE 11909# ---------------------- 11910# Append the text in VALUE to the end of the definition contained in VAR. Take 11911# advantage of any shell optimizations that allow amortized linear growth over 11912# repeated appends, instead of the typical quadratic growth present in naive 11913# implementations. 11914if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11915then : 11916 eval 'as_fn_append () 11917 { 11918 eval $1+=\$2 11919 }' 11920else $as_nop 11921 as_fn_append () 11922 { 11923 eval $1=\$$1\$2 11924 } 11925fi # as_fn_append 11926 11927# as_fn_arith ARG... 11928# ------------------ 11929# Perform arithmetic evaluation on the ARGs, and store the result in the 11930# global $as_val. Take advantage of shells that can avoid forks. The arguments 11931# must be portable across $(()) and expr. 11932if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11933then : 11934 eval 'as_fn_arith () 11935 { 11936 as_val=$(( $* )) 11937 }' 11938else $as_nop 11939 as_fn_arith () 11940 { 11941 as_val=`expr "$@" || test $? -eq 1` 11942 } 11943fi # as_fn_arith 11944 11945 11946if expr a : '\(a\)' >/dev/null 2>&1 && 11947 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11948 as_expr=expr 11949else 11950 as_expr=false 11951fi 11952 11953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11954 as_basename=basename 11955else 11956 as_basename=false 11957fi 11958 11959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11960 as_dirname=dirname 11961else 11962 as_dirname=false 11963fi 11964 11965as_me=`$as_basename -- "$0" || 11966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11967 X"$0" : 'X\(//\)$' \| \ 11968 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11969printf "%s\n" X/"$0" | 11970 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11971 s//\1/ 11972 q 11973 } 11974 /^X\/\(\/\/\)$/{ 11975 s//\1/ 11976 q 11977 } 11978 /^X\/\(\/\).*/{ 11979 s//\1/ 11980 q 11981 } 11982 s/.*/./; q'` 11983 11984# Avoid depending upon Character Ranges. 11985as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11987as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11988as_cr_digits='0123456789' 11989as_cr_alnum=$as_cr_Letters$as_cr_digits 11990 11991 11992# Determine whether it's possible to make 'echo' print without a newline. 11993# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11994# for compatibility with existing Makefiles. 11995ECHO_C= ECHO_N= ECHO_T= 11996case `echo -n x` in #((((( 11997-n*) 11998 case `echo 'xy\c'` in 11999 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12000 xy) ECHO_C='\c';; 12001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12002 ECHO_T=' ';; 12003 esac;; 12004*) 12005 ECHO_N='-n';; 12006esac 12007 12008# For backward compatibility with old third-party macros, we provide 12009# the shell variables $as_echo and $as_echo_n. New code should use 12010# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12011as_echo='printf %s\n' 12012as_echo_n='printf %s' 12013 12014rm -f conf$$ conf$$.exe conf$$.file 12015if test -d conf$$.dir; then 12016 rm -f conf$$.dir/conf$$.file 12017else 12018 rm -f conf$$.dir 12019 mkdir conf$$.dir 2>/dev/null 12020fi 12021if (echo >conf$$.file) 2>/dev/null; then 12022 if ln -s conf$$.file conf$$ 2>/dev/null; then 12023 as_ln_s='ln -s' 12024 # ... but there are two gotchas: 12025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12027 # In both cases, we have to default to `cp -pR'. 12028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12029 as_ln_s='cp -pR' 12030 elif ln conf$$.file conf$$ 2>/dev/null; then 12031 as_ln_s=ln 12032 else 12033 as_ln_s='cp -pR' 12034 fi 12035else 12036 as_ln_s='cp -pR' 12037fi 12038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12039rmdir conf$$.dir 2>/dev/null 12040 12041 12042# as_fn_mkdir_p 12043# ------------- 12044# Create "$as_dir" as a directory, including parents if necessary. 12045as_fn_mkdir_p () 12046{ 12047 12048 case $as_dir in #( 12049 -*) as_dir=./$as_dir;; 12050 esac 12051 test -d "$as_dir" || eval $as_mkdir_p || { 12052 as_dirs= 12053 while :; do 12054 case $as_dir in #( 12055 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12056 *) as_qdir=$as_dir;; 12057 esac 12058 as_dirs="'$as_qdir' $as_dirs" 12059 as_dir=`$as_dirname -- "$as_dir" || 12060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12061 X"$as_dir" : 'X\(//\)[^/]' \| \ 12062 X"$as_dir" : 'X\(//\)$' \| \ 12063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12064printf "%s\n" X"$as_dir" | 12065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12066 s//\1/ 12067 q 12068 } 12069 /^X\(\/\/\)[^/].*/{ 12070 s//\1/ 12071 q 12072 } 12073 /^X\(\/\/\)$/{ 12074 s//\1/ 12075 q 12076 } 12077 /^X\(\/\).*/{ 12078 s//\1/ 12079 q 12080 } 12081 s/.*/./; q'` 12082 test -d "$as_dir" && break 12083 done 12084 test -z "$as_dirs" || eval "mkdir $as_dirs" 12085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12086 12087 12088} # as_fn_mkdir_p 12089if mkdir -p . 2>/dev/null; then 12090 as_mkdir_p='mkdir -p "$as_dir"' 12091else 12092 test -d ./-p && rmdir ./-p 12093 as_mkdir_p=false 12094fi 12095 12096 12097# as_fn_executable_p FILE 12098# ----------------------- 12099# Test if FILE is an executable regular file. 12100as_fn_executable_p () 12101{ 12102 test -f "$1" && test -x "$1" 12103} # as_fn_executable_p 12104as_test_x='test -x' 12105as_executable_p=as_fn_executable_p 12106 12107# Sed expression to map a string onto a valid CPP name. 12108as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12109 12110# Sed expression to map a string onto a valid variable name. 12111as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12112 12113 12114exec 6>&1 12115## ----------------------------------- ## 12116## Main body of $CONFIG_STATUS script. ## 12117## ----------------------------------- ## 12118_ASEOF 12119test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12120 12121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12122# Save the log message, to keep $0 and so on meaningful, and to 12123# report actual input values of CONFIG_FILES etc. instead of their 12124# values after options handling. 12125ac_log=" 12126This file was extended by xkbcomp $as_me 1.4.6, which was 12127generated by GNU Autoconf 2.71. Invocation command line was 12128 12129 CONFIG_FILES = $CONFIG_FILES 12130 CONFIG_HEADERS = $CONFIG_HEADERS 12131 CONFIG_LINKS = $CONFIG_LINKS 12132 CONFIG_COMMANDS = $CONFIG_COMMANDS 12133 $ $0 $@ 12134 12135on `(hostname || uname -n) 2>/dev/null | sed 1q` 12136" 12137 12138_ACEOF 12139 12140case $ac_config_files in *" 12141"*) set x $ac_config_files; shift; ac_config_files=$*;; 12142esac 12143 12144case $ac_config_headers in *" 12145"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12146esac 12147 12148 12149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12150# Files that config.status was made for. 12151config_files="$ac_config_files" 12152config_headers="$ac_config_headers" 12153config_commands="$ac_config_commands" 12154 12155_ACEOF 12156 12157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12158ac_cs_usage="\ 12159\`$as_me' instantiates files and other configuration actions 12160from templates according to the current configuration. Unless the files 12161and actions are specified as TAGs, all are instantiated by default. 12162 12163Usage: $0 [OPTION]... [TAG]... 12164 12165 -h, --help print this help, then exit 12166 -V, --version print version number and configuration settings, then exit 12167 --config print configuration, then exit 12168 -q, --quiet, --silent 12169 do not print progress messages 12170 -d, --debug don't remove temporary files 12171 --recheck update $as_me by reconfiguring in the same conditions 12172 --file=FILE[:TEMPLATE] 12173 instantiate the configuration file FILE 12174 --header=FILE[:TEMPLATE] 12175 instantiate the configuration header FILE 12176 12177Configuration files: 12178$config_files 12179 12180Configuration headers: 12181$config_headers 12182 12183Configuration commands: 12184$config_commands 12185 12186Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>." 12187 12188_ACEOF 12189ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12190ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12192ac_cs_config='$ac_cs_config_escaped' 12193ac_cs_version="\\ 12194xkbcomp config.status 1.4.6 12195configured by $0, generated by GNU Autoconf 2.71, 12196 with options \\"\$ac_cs_config\\" 12197 12198Copyright (C) 2021 Free Software Foundation, Inc. 12199This config.status script is free software; the Free Software Foundation 12200gives unlimited permission to copy, distribute and modify it." 12201 12202ac_pwd='$ac_pwd' 12203srcdir='$srcdir' 12204INSTALL='$INSTALL' 12205MKDIR_P='$MKDIR_P' 12206AWK='$AWK' 12207test -n "\$AWK" || AWK=awk 12208_ACEOF 12209 12210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12211# The default lists apply if the user does not specify any file. 12212ac_need_defaults=: 12213while test $# != 0 12214do 12215 case $1 in 12216 --*=?*) 12217 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12219 ac_shift=: 12220 ;; 12221 --*=) 12222 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12223 ac_optarg= 12224 ac_shift=: 12225 ;; 12226 *) 12227 ac_option=$1 12228 ac_optarg=$2 12229 ac_shift=shift 12230 ;; 12231 esac 12232 12233 case $ac_option in 12234 # Handling of the options. 12235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12236 ac_cs_recheck=: ;; 12237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12238 printf "%s\n" "$ac_cs_version"; exit ;; 12239 --config | --confi | --conf | --con | --co | --c ) 12240 printf "%s\n" "$ac_cs_config"; exit ;; 12241 --debug | --debu | --deb | --de | --d | -d ) 12242 debug=: ;; 12243 --file | --fil | --fi | --f ) 12244 $ac_shift 12245 case $ac_optarg in 12246 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12247 '') as_fn_error $? "missing file argument" ;; 12248 esac 12249 as_fn_append CONFIG_FILES " '$ac_optarg'" 12250 ac_need_defaults=false;; 12251 --header | --heade | --head | --hea ) 12252 $ac_shift 12253 case $ac_optarg in 12254 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12255 esac 12256 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12257 ac_need_defaults=false;; 12258 --he | --h) 12259 # Conflict between --help and --header 12260 as_fn_error $? "ambiguous option: \`$1' 12261Try \`$0 --help' for more information.";; 12262 --help | --hel | -h ) 12263 printf "%s\n" "$ac_cs_usage"; exit ;; 12264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12265 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12266 ac_cs_silent=: ;; 12267 12268 # This is an error. 12269 -*) as_fn_error $? "unrecognized option: \`$1' 12270Try \`$0 --help' for more information." ;; 12271 12272 *) as_fn_append ac_config_targets " $1" 12273 ac_need_defaults=false ;; 12274 12275 esac 12276 shift 12277done 12278 12279ac_configure_extra_args= 12280 12281if $ac_cs_silent; then 12282 exec 6>/dev/null 12283 ac_configure_extra_args="$ac_configure_extra_args --silent" 12284fi 12285 12286_ACEOF 12287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12288if \$ac_cs_recheck; then 12289 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12290 shift 12291 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12292 CONFIG_SHELL='$SHELL' 12293 export CONFIG_SHELL 12294 exec "\$@" 12295fi 12296 12297_ACEOF 12298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12299exec 5>>config.log 12300{ 12301 echo 12302 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12303## Running $as_me. ## 12304_ASBOX 12305 printf "%s\n" "$ac_log" 12306} >&5 12307 12308_ACEOF 12309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12310# 12311# INIT-COMMANDS 12312# 12313AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12314 12315_ACEOF 12316 12317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12318 12319# Handling of arguments. 12320for ac_config_target in $ac_config_targets 12321do 12322 case $ac_config_target in 12323 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12325 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12326 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12327 "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;; 12328 12329 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12330 esac 12331done 12332 12333 12334# If the user did not use the arguments to specify the items to instantiate, 12335# then the envvar interface is used. Set only those that are not. 12336# We use the long form for the default assignment because of an extremely 12337# bizarre bug on SunOS 4.1.3. 12338if $ac_need_defaults; then 12339 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12340 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12341 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12342fi 12343 12344# Have a temporary directory for convenience. Make it in the build tree 12345# simply because there is no reason against having it here, and in addition, 12346# creating and moving files from /tmp can sometimes cause problems. 12347# Hook for its removal unless debugging. 12348# Note that there is a small window in which the directory will not be cleaned: 12349# after its creation but before its name has been assigned to `$tmp'. 12350$debug || 12351{ 12352 tmp= ac_tmp= 12353 trap 'exit_status=$? 12354 : "${ac_tmp:=$tmp}" 12355 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12356' 0 12357 trap 'as_fn_exit 1' 1 2 13 15 12358} 12359# Create a (secure) tmp directory for tmp files. 12360 12361{ 12362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12363 test -d "$tmp" 12364} || 12365{ 12366 tmp=./conf$$-$RANDOM 12367 (umask 077 && mkdir "$tmp") 12368} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12369ac_tmp=$tmp 12370 12371# Set up the scripts for CONFIG_FILES section. 12372# No need to generate them if there are no CONFIG_FILES. 12373# This happens for instance with `./config.status config.h'. 12374if test -n "$CONFIG_FILES"; then 12375 12376 12377ac_cr=`echo X | tr X '\015'` 12378# On cygwin, bash can eat \r inside `` if the user requested igncr. 12379# But we know of no other shell where ac_cr would be empty at this 12380# point, so we can use a bashism as a fallback. 12381if test "x$ac_cr" = x; then 12382 eval ac_cr=\$\'\\r\' 12383fi 12384ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12385if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12386 ac_cs_awk_cr='\\r' 12387else 12388 ac_cs_awk_cr=$ac_cr 12389fi 12390 12391echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12392_ACEOF 12393 12394 12395{ 12396 echo "cat >conf$$subs.awk <<_ACEOF" && 12397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12398 echo "_ACEOF" 12399} >conf$$subs.sh || 12400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12401ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12402ac_delim='%!_!# ' 12403for ac_last_try in false false false false false :; do 12404 . ./conf$$subs.sh || 12405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12406 12407 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12408 if test $ac_delim_n = $ac_delim_num; then 12409 break 12410 elif $ac_last_try; then 12411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12412 else 12413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12414 fi 12415done 12416rm -f conf$$subs.sh 12417 12418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12419cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12420_ACEOF 12421sed -n ' 12422h 12423s/^/S["/; s/!.*/"]=/ 12424p 12425g 12426s/^[^!]*!// 12427:repl 12428t repl 12429s/'"$ac_delim"'$// 12430t delim 12431:nl 12432h 12433s/\(.\{148\}\)..*/\1/ 12434t more1 12435s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12436p 12437n 12438b repl 12439:more1 12440s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12441p 12442g 12443s/.\{148\}// 12444t nl 12445:delim 12446h 12447s/\(.\{148\}\)..*/\1/ 12448t more2 12449s/["\\]/\\&/g; s/^/"/; s/$/"/ 12450p 12451b 12452:more2 12453s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12454p 12455g 12456s/.\{148\}// 12457t delim 12458' <conf$$subs.awk | sed ' 12459/^[^""]/{ 12460 N 12461 s/\n// 12462} 12463' >>$CONFIG_STATUS || ac_write_fail=1 12464rm -f conf$$subs.awk 12465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12466_ACAWK 12467cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12468 for (key in S) S_is_set[key] = 1 12469 FS = "" 12470 12471} 12472{ 12473 line = $ 0 12474 nfields = split(line, field, "@") 12475 substed = 0 12476 len = length(field[1]) 12477 for (i = 2; i < nfields; i++) { 12478 key = field[i] 12479 keylen = length(key) 12480 if (S_is_set[key]) { 12481 value = S[key] 12482 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12483 len += length(value) + length(field[++i]) 12484 substed = 1 12485 } else 12486 len += 1 + keylen 12487 } 12488 12489 print line 12490} 12491 12492_ACAWK 12493_ACEOF 12494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12495if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12496 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12497else 12498 cat 12499fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12500 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12501_ACEOF 12502 12503# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12504# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12505# trailing colons and then remove the whole line if VPATH becomes empty 12506# (actually we leave an empty line to preserve line numbers). 12507if test "x$srcdir" = x.; then 12508 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12509h 12510s/// 12511s/^/:/ 12512s/[ ]*$/:/ 12513s/:\$(srcdir):/:/g 12514s/:\${srcdir}:/:/g 12515s/:@srcdir@:/:/g 12516s/^:*// 12517s/:*$// 12518x 12519s/\(=[ ]*\).*/\1/ 12520G 12521s/\n// 12522s/^[^=]*=[ ]*$// 12523}' 12524fi 12525 12526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12527fi # test -n "$CONFIG_FILES" 12528 12529# Set up the scripts for CONFIG_HEADERS section. 12530# No need to generate them if there are no CONFIG_HEADERS. 12531# This happens for instance with `./config.status Makefile'. 12532if test -n "$CONFIG_HEADERS"; then 12533cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12534BEGIN { 12535_ACEOF 12536 12537# Transform confdefs.h into an awk script `defines.awk', embedded as 12538# here-document in config.status, that substitutes the proper values into 12539# config.h.in to produce config.h. 12540 12541# Create a delimiter string that does not exist in confdefs.h, to ease 12542# handling of long lines. 12543ac_delim='%!_!# ' 12544for ac_last_try in false false :; do 12545 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12546 if test -z "$ac_tt"; then 12547 break 12548 elif $ac_last_try; then 12549 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12550 else 12551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12552 fi 12553done 12554 12555# For the awk script, D is an array of macro values keyed by name, 12556# likewise P contains macro parameters if any. Preserve backslash 12557# newline sequences. 12558 12559ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12560sed -n ' 12561s/.\{148\}/&'"$ac_delim"'/g 12562t rset 12563:rset 12564s/^[ ]*#[ ]*define[ ][ ]*/ / 12565t def 12566d 12567:def 12568s/\\$// 12569t bsnl 12570s/["\\]/\\&/g 12571s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12572D["\1"]=" \3"/p 12573s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12574d 12575:bsnl 12576s/["\\]/\\&/g 12577s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12578D["\1"]=" \3\\\\\\n"\\/p 12579t cont 12580s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12581t cont 12582d 12583:cont 12584n 12585s/.\{148\}/&'"$ac_delim"'/g 12586t clear 12587:clear 12588s/\\$// 12589t bsnlc 12590s/["\\]/\\&/g; s/^/"/; s/$/"/p 12591d 12592:bsnlc 12593s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12594b cont 12595' <confdefs.h | sed ' 12596s/'"$ac_delim"'/"\\\ 12597"/g' >>$CONFIG_STATUS || ac_write_fail=1 12598 12599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12600 for (key in D) D_is_set[key] = 1 12601 FS = "" 12602} 12603/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12604 line = \$ 0 12605 split(line, arg, " ") 12606 if (arg[1] == "#") { 12607 defundef = arg[2] 12608 mac1 = arg[3] 12609 } else { 12610 defundef = substr(arg[1], 2) 12611 mac1 = arg[2] 12612 } 12613 split(mac1, mac2, "(") #) 12614 macro = mac2[1] 12615 prefix = substr(line, 1, index(line, defundef) - 1) 12616 if (D_is_set[macro]) { 12617 # Preserve the white space surrounding the "#". 12618 print prefix "define", macro P[macro] D[macro] 12619 next 12620 } else { 12621 # Replace #undef with comments. This is necessary, for example, 12622 # in the case of _POSIX_SOURCE, which is predefined and required 12623 # on some systems where configure will not decide to define it. 12624 if (defundef == "undef") { 12625 print "/*", prefix defundef, macro, "*/" 12626 next 12627 } 12628 } 12629} 12630{ print } 12631_ACAWK 12632_ACEOF 12633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12634 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12635fi # test -n "$CONFIG_HEADERS" 12636 12637 12638eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12639shift 12640for ac_tag 12641do 12642 case $ac_tag in 12643 :[FHLC]) ac_mode=$ac_tag; continue;; 12644 esac 12645 case $ac_mode$ac_tag in 12646 :[FHL]*:*);; 12647 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12648 :[FH]-) ac_tag=-:-;; 12649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12650 esac 12651 ac_save_IFS=$IFS 12652 IFS=: 12653 set x $ac_tag 12654 IFS=$ac_save_IFS 12655 shift 12656 ac_file=$1 12657 shift 12658 12659 case $ac_mode in 12660 :L) ac_source=$1;; 12661 :[FH]) 12662 ac_file_inputs= 12663 for ac_f 12664 do 12665 case $ac_f in 12666 -) ac_f="$ac_tmp/stdin";; 12667 *) # Look for the file first in the build tree, then in the source tree 12668 # (if the path is not absolute). The absolute path cannot be DOS-style, 12669 # because $ac_f cannot contain `:'. 12670 test -f "$ac_f" || 12671 case $ac_f in 12672 [\\/$]*) false;; 12673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12674 esac || 12675 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12676 esac 12677 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12678 as_fn_append ac_file_inputs " '$ac_f'" 12679 done 12680 12681 # Let's still pretend it is `configure' which instantiates (i.e., don't 12682 # use $as_me), people would be surprised to read: 12683 # /* config.h. Generated by config.status. */ 12684 configure_input='Generated from '` 12685 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12686 `' by configure.' 12687 if test x"$ac_file" != x-; then 12688 configure_input="$ac_file. $configure_input" 12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12690printf "%s\n" "$as_me: creating $ac_file" >&6;} 12691 fi 12692 # Neutralize special characters interpreted by sed in replacement strings. 12693 case $configure_input in #( 12694 *\&* | *\|* | *\\* ) 12695 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12696 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12697 *) ac_sed_conf_input=$configure_input;; 12698 esac 12699 12700 case $ac_tag in 12701 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12703 esac 12704 ;; 12705 esac 12706 12707 ac_dir=`$as_dirname -- "$ac_file" || 12708$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12709 X"$ac_file" : 'X\(//\)[^/]' \| \ 12710 X"$ac_file" : 'X\(//\)$' \| \ 12711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12712printf "%s\n" X"$ac_file" | 12713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12714 s//\1/ 12715 q 12716 } 12717 /^X\(\/\/\)[^/].*/{ 12718 s//\1/ 12719 q 12720 } 12721 /^X\(\/\/\)$/{ 12722 s//\1/ 12723 q 12724 } 12725 /^X\(\/\).*/{ 12726 s//\1/ 12727 q 12728 } 12729 s/.*/./; q'` 12730 as_dir="$ac_dir"; as_fn_mkdir_p 12731 ac_builddir=. 12732 12733case "$ac_dir" in 12734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12735*) 12736 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12737 # A ".." for each directory in $ac_dir_suffix. 12738 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12739 case $ac_top_builddir_sub in 12740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12742 esac ;; 12743esac 12744ac_abs_top_builddir=$ac_pwd 12745ac_abs_builddir=$ac_pwd$ac_dir_suffix 12746# for backward compatibility: 12747ac_top_builddir=$ac_top_build_prefix 12748 12749case $srcdir in 12750 .) # We are building in place. 12751 ac_srcdir=. 12752 ac_top_srcdir=$ac_top_builddir_sub 12753 ac_abs_top_srcdir=$ac_pwd ;; 12754 [\\/]* | ?:[\\/]* ) # Absolute name. 12755 ac_srcdir=$srcdir$ac_dir_suffix; 12756 ac_top_srcdir=$srcdir 12757 ac_abs_top_srcdir=$srcdir ;; 12758 *) # Relative name. 12759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12760 ac_top_srcdir=$ac_top_build_prefix$srcdir 12761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12762esac 12763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12764 12765 12766 case $ac_mode in 12767 :F) 12768 # 12769 # CONFIG_FILE 12770 # 12771 12772 case $INSTALL in 12773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12775 esac 12776 ac_MKDIR_P=$MKDIR_P 12777 case $MKDIR_P in 12778 [\\/$]* | ?:[\\/]* ) ;; 12779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12780 esac 12781_ACEOF 12782 12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12784# If the template does not know about datarootdir, expand it. 12785# FIXME: This hack should be removed a few years after 2.60. 12786ac_datarootdir_hack=; ac_datarootdir_seen= 12787ac_sed_dataroot=' 12788/datarootdir/ { 12789 p 12790 q 12791} 12792/@datadir@/p 12793/@docdir@/p 12794/@infodir@/p 12795/@localedir@/p 12796/@mandir@/p' 12797case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12798*datarootdir*) ac_datarootdir_seen=yes;; 12799*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12801printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12802_ACEOF 12803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12804 ac_datarootdir_hack=' 12805 s&@datadir@&$datadir&g 12806 s&@docdir@&$docdir&g 12807 s&@infodir@&$infodir&g 12808 s&@localedir@&$localedir&g 12809 s&@mandir@&$mandir&g 12810 s&\\\${datarootdir}&$datarootdir&g' ;; 12811esac 12812_ACEOF 12813 12814# Neutralize VPATH when `$srcdir' = `.'. 12815# Shell code in configure.ac might set extrasub. 12816# FIXME: do we really want to maintain this feature? 12817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12818ac_sed_extra="$ac_vpsub 12819$extrasub 12820_ACEOF 12821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12822:t 12823/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12824s|@configure_input@|$ac_sed_conf_input|;t t 12825s&@top_builddir@&$ac_top_builddir_sub&;t t 12826s&@top_build_prefix@&$ac_top_build_prefix&;t t 12827s&@srcdir@&$ac_srcdir&;t t 12828s&@abs_srcdir@&$ac_abs_srcdir&;t t 12829s&@top_srcdir@&$ac_top_srcdir&;t t 12830s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12831s&@builddir@&$ac_builddir&;t t 12832s&@abs_builddir@&$ac_abs_builddir&;t t 12833s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12834s&@INSTALL@&$ac_INSTALL&;t t 12835s&@MKDIR_P@&$ac_MKDIR_P&;t t 12836$ac_datarootdir_hack 12837" 12838eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12839 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12840 12841test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12842 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12844 "$ac_tmp/out"`; test -z "$ac_out"; } && 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12846which seems to be undefined. Please make sure it is defined" >&5 12847printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12848which seems to be undefined. Please make sure it is defined" >&2;} 12849 12850 rm -f "$ac_tmp/stdin" 12851 case $ac_file in 12852 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12853 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12854 esac \ 12855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12856 ;; 12857 :H) 12858 # 12859 # CONFIG_HEADER 12860 # 12861 if test x"$ac_file" != x-; then 12862 { 12863 printf "%s\n" "/* $configure_input */" >&1 \ 12864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12865 } >"$ac_tmp/config.h" \ 12866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12867 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12869printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12870 else 12871 rm -f "$ac_file" 12872 mv "$ac_tmp/config.h" "$ac_file" \ 12873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12874 fi 12875 else 12876 printf "%s\n" "/* $configure_input */" >&1 \ 12877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12878 || as_fn_error $? "could not create -" "$LINENO" 5 12879 fi 12880# Compute "$ac_file"'s index in $config_headers. 12881_am_arg="$ac_file" 12882_am_stamp_count=1 12883for _am_header in $config_headers :; do 12884 case $_am_header in 12885 $_am_arg | $_am_arg:* ) 12886 break ;; 12887 * ) 12888 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12889 esac 12890done 12891echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12892$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12893 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12894 X"$_am_arg" : 'X\(//\)$' \| \ 12895 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12896printf "%s\n" X"$_am_arg" | 12897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12898 s//\1/ 12899 q 12900 } 12901 /^X\(\/\/\)[^/].*/{ 12902 s//\1/ 12903 q 12904 } 12905 /^X\(\/\/\)$/{ 12906 s//\1/ 12907 q 12908 } 12909 /^X\(\/\).*/{ 12910 s//\1/ 12911 q 12912 } 12913 s/.*/./; q'`/stamp-h$_am_stamp_count 12914 ;; 12915 12916 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12917printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12918 ;; 12919 esac 12920 12921 12922 case $ac_file$ac_mode in 12923 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12924 # Older Autoconf quotes --file arguments for eval, but not when files 12925 # are listed without --file. Let's play safe and only enable the eval 12926 # if we detect the quoting. 12927 # TODO: see whether this extra hack can be removed once we start 12928 # requiring Autoconf 2.70 or later. 12929 case $CONFIG_FILES in #( 12930 *\'*) : 12931 eval set x "$CONFIG_FILES" ;; #( 12932 *) : 12933 set x $CONFIG_FILES ;; #( 12934 *) : 12935 ;; 12936esac 12937 shift 12938 # Used to flag and report bootstrapping failures. 12939 am_rc=0 12940 for am_mf 12941 do 12942 # Strip MF so we end up with the name of the file. 12943 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12944 # Check whether this is an Automake generated Makefile which includes 12945 # dependency-tracking related rules and includes. 12946 # Grep'ing the whole file directly is not great: AIX grep has a line 12947 # limit of 2048, but all sed's we know have understand at least 4000. 12948 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12949 || continue 12950 am_dirpart=`$as_dirname -- "$am_mf" || 12951$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12952 X"$am_mf" : 'X\(//\)[^/]' \| \ 12953 X"$am_mf" : 'X\(//\)$' \| \ 12954 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12955printf "%s\n" X"$am_mf" | 12956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12957 s//\1/ 12958 q 12959 } 12960 /^X\(\/\/\)[^/].*/{ 12961 s//\1/ 12962 q 12963 } 12964 /^X\(\/\/\)$/{ 12965 s//\1/ 12966 q 12967 } 12968 /^X\(\/\).*/{ 12969 s//\1/ 12970 q 12971 } 12972 s/.*/./; q'` 12973 am_filepart=`$as_basename -- "$am_mf" || 12974$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12975 X"$am_mf" : 'X\(//\)$' \| \ 12976 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12977printf "%s\n" X/"$am_mf" | 12978 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12979 s//\1/ 12980 q 12981 } 12982 /^X\/\(\/\/\)$/{ 12983 s//\1/ 12984 q 12985 } 12986 /^X\/\(\/\).*/{ 12987 s//\1/ 12988 q 12989 } 12990 s/.*/./; q'` 12991 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12992 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12993 | $MAKE -f - am--depfiles" >&5 12994 (cd "$am_dirpart" \ 12995 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12996 | $MAKE -f - am--depfiles) >&5 2>&5 12997 ac_status=$? 12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12999 (exit $ac_status); } || am_rc=$? 13000 done 13001 if test $am_rc -ne 0; then 13002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13003printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13004as_fn_error $? "Something went wrong bootstrapping makefile fragments 13005 for automatic dependency tracking. If GNU make was not used, consider 13006 re-running the configure script with MAKE=\"gmake\" (or whatever is 13007 necessary). You can also try re-running configure with the 13008 '--disable-dependency-tracking' option to at least be able to build 13009 the package (albeit without support for automatic dependency tracking). 13010See \`config.log' for more details" "$LINENO" 5; } 13011 fi 13012 { am_dirpart=; unset am_dirpart;} 13013 { am_filepart=; unset am_filepart;} 13014 { am_mf=; unset am_mf;} 13015 { am_rc=; unset am_rc;} 13016 rm -f conftest-deps.mk 13017} 13018 ;; 13019 13020 esac 13021done # for ac_tag 13022 13023 13024as_fn_exit 0 13025_ACEOF 13026ac_clean_files=$ac_clean_files_save 13027 13028test $ac_write_fail = 0 || 13029 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13030 13031 13032# configure is writing to config.log, and then calls config.status. 13033# config.status does its own redirection, appending to config.log. 13034# Unfortunately, on DOS this fails, as config.log is still kept open 13035# by configure, so config.status won't be able to write to it; its 13036# output is simply discarded. So we exec the FD to /dev/null, 13037# effectively closing config.log, so it can be properly (re)opened and 13038# appended to by config.status. When coming back to configure, we 13039# need to make the FD available again. 13040if test "$no_create" != yes; then 13041 ac_cs_success=: 13042 ac_config_status_args= 13043 test "$silent" = yes && 13044 ac_config_status_args="$ac_config_status_args --quiet" 13045 exec 5>/dev/null 13046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13047 exec 5>>config.log 13048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13049 # would make configure fail if this is the last instruction. 13050 $ac_cs_success || as_fn_exit 1 13051fi 13052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13054printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13055fi 13056 13057 13058